Versions in this module Expand all Collapse all v0 v0.0.3 Apr 20, 2024 Changes in this version type TransferRequest + Reference string v0.0.2 Nov 23, 2022 v0.0.1 Nov 20, 2022 Changes in this version + type APIError struct + Details ErrorResponse + HTTPStatusCode int + Header http.Header + Message string + URL *url.URL + func (aerr *APIError) Error() string + type Assignment struct + AccountType string + AssignedAt string + AssigneeID int + AssigneeType string + Expired bool + Integration int + type Authorization struct + AuthorizationCode string + Bank string + Bin string + Brand string + CardType string + Channel string + CountryCode string + ExpMonth string + ExpYear string + Last4 string + Reusable bool + Signature string + type AuthorizationRequest struct + Amount int + AuthorizationCode string + Currency string + Email string + Metadata Metadata + Reference string + type BVNResponse struct + BVN string + Meta struct{ ... } + type Bank struct + Active bool + Code string + CreatedAt string + Gateway string + ID int + IsDeleted bool + LongCode string + Name string + Slug string + UpdatedAt string + type BankAccount struct + AccountNumber string + Code string + type BankList struct + Meta ListMeta + Values []Bank + type BankService service + func (s *BankService) List() (*BankList, error) + func (s *BankService) ResolveAccountNumber(accountNumber, bankCode string) (Response, error) + func (s *BankService) ResolveBVN(bvn int) (*BVNResponse, error) + type BulkChargeBatch struct + BatchCode string + CreatedAt string + Domain string + ID int + Integration int + PendingCharge string + Status string + TotalCharges string + UpdatedAt string + type BulkChargeBatchList struct + Meta ListMeta + Values []BulkChargeBatch + type BulkChargeRequest struct + Items []BulkItem + type BulkChargeService service + func (s *BulkChargeService) Get(idCode string) (*BulkChargeBatch, error) + func (s *BulkChargeService) GetBatchCharges(idCode string) (Response, error) + func (s *BulkChargeService) Initiate(req *BulkChargeRequest) (*BulkChargeBatch, error) + func (s *BulkChargeService) List() (*BulkChargeBatchList, error) + func (s *BulkChargeService) ListN(count, offset int) (*BulkChargeBatchList, error) + func (s *BulkChargeService) PauseBulkCharge(batchCode string) (Response, error) + func (s *BulkChargeService) ResumeBulkCharge(batchCode string) (Response, error) + type BulkItem struct + Amount float32 + Authorization string + type BulkTransfer struct + Currency string + Source string + Transfers []map[string]interface{} + type Card struct + AddressCountry string + AddressLine1 string + AddressLine2 string + AddressLine3 string + AddressPostalCode string + CVV string + Country string + ExpirtyMonth string + ExpiryYear string + Number string + type ChargeRequest struct + Amount float32 + AuthorizationCode string + Bank *BankAccount + Birthday string + Card *Card + Email string + Metadata *Metadata + Pin string + type ChargeService service + func (s *ChargeService) CheckPending(reference string) (Response, error) + func (s *ChargeService) Create(req *ChargeRequest) (Response, error) + func (s *ChargeService) SubmitBirthday(birthday, reference string) (Response, error) + func (s *ChargeService) SubmitOTP(otp, reference string) (Response, error) + func (s *ChargeService) SubmitPIN(pin, reference string) (Response, error) + func (s *ChargeService) SubmitPhone(phone, reference string) (Response, error) + func (s *ChargeService) Tokenize(req *ChargeRequest) (Response, error) + type Client struct + Bank *BankService + BulkCharge *BulkChargeService + Charge *ChargeService + Customer *CustomerService + Log Logger + LoggingEnabled bool + Page *PageService + Plan *PlanService + Settlement *SettlementService + SubAccount *SubAccountService + Subscription *SubscriptionService + Transaction *TransactionService + Transfer *TransferService + VirtualAccount *VirtualAccountService + func NewClient(key string, httpClient *http.Client) *Client + func (c *Client) Call(method, path string, body, v interface{}) error + func (c *Client) CheckBalance() (Response, error) + func (c *Client) GetSessionTimeout() (Response, error) + func (c *Client) ResolveCardBIN(bin int) (Response, error) + func (c *Client) UpdateSessionTimeout(timeout int) (Response, error) + type Customer struct + Authorizations []interface{} + CreatedAt string + CustomerCode string + Domain string + Email string + FirstName string + ID int + Integration int + LastName string + Metadata Metadata + Phone string + RiskAction string + Subscriptions []Subscription + UpdatedAt string + type CustomerList struct + Meta ListMeta + Values []Customer + type CustomerService service + func (s *CustomerService) Create(customer *Customer) (*Customer, error) + func (s *CustomerService) DeactivateAuthorization(authorizationCode string) (*Response, error) + func (s *CustomerService) Get(customerCode string) (*Customer, error) + func (s *CustomerService) List() (*CustomerList, error) + func (s *CustomerService) ListN(count, offset int) (*CustomerList, error) + func (s *CustomerService) SetRiskAction(customerCode, riskAction string) (*Customer, error) + func (s *CustomerService) Update(customer *Customer) (*Customer, error) + type ErrorResponse struct + Errors map[string]interface{} + Message string + Status bool + type ListMeta struct + Page int + PageCount int + PerPage int + Skipped int + Total int + type Logger interface + Printf func(format string, v ...interface{}) + type Metadata map[string]interface + type Page struct + Active bool + Amount float32 + CreatedAt string + Currency string + CustomFields []map[string]string + Description string + Domain string + ID int + Integration int + Name string + RedirectURL string + Slug string + UpdatedAt string + type PageList struct + Meta ListMeta + Values []Page + type PageService service + func (s *PageService) Create(page *Page) (*Page, error) + func (s *PageService) Get(id int) (*Page, error) + func (s *PageService) List() (*PageList, error) + func (s *PageService) ListN(count, offset int) (*PageList, error) + func (s *PageService) Update(page *Page) (*Page, error) + type Plan struct + Amount float32 + CreatedAt string + Currency string + Description string + Domain string + HostedPage string + HostedPageSummary string + HostedPageURL string + ID int + Integration int + Interval string + InvoiceLimit float32 + Name string + PlanCode string + SendInvoices bool + SendSMS bool + UpdatedAt string + type PlanList struct + Meta ListMeta + Values []Plan + type PlanService service + func (s *PlanService) Create(plan *Plan) (*Plan, error) + func (s *PlanService) Get(id int) (*Plan, error) + func (s *PlanService) List() (*PlanList, error) + func (s *PlanService) ListN(count, offset int) (*PlanList, error) + func (s *PlanService) Update(plan *Plan) (Response, error) + type RequestValues url.Values + func (v RequestValues) MarshalJSON() ([]byte, error) + type Response map[string]interface + type SettlementList struct + Meta ListMeta + Values []Response + type SettlementService service + func (s *SettlementService) List() (*SettlementList, error) + func (s *SettlementService) ListN(count, offset int) (*SettlementList, error) + type SubAccount struct + AccountNumber string + Active bool + BusinessName string + CreatedAt string + Description string + Domain string + ID int + Integration int + IsVerified bool + Metadata Metadata + Migrate bool + PercentageCharge float32 + PrimaryContactEmail string + PrimaryContactName string + PrimaryContactPhone string + SettlementBank string + SettlementSchedule string + SubAccountCode string + UpdatedAt string + type SubAccountList struct + Meta ListMeta + Values []SubAccount + type SubAccountService service + func (s *SubAccountService) Create(subaccount *SubAccount) (*SubAccount, error) + func (s *SubAccountService) Get(id int) (*SubAccount, error) + func (s *SubAccountService) List() (*SubAccountList, error) + func (s *SubAccountService) ListN(count, offset int) (*SubAccountList, error) + func (s *SubAccountService) Update(subaccount *SubAccount) (*SubAccount, error) + type Subscription struct + Amount int + Authorization interface{} + CreatedAt string + CronExpression string + Customer interface{} + Domain string + EasyCronID string + EmailToken string + ID int + Integration int + Invoices []interface{} + NextPaymentDate string + OpenInvoice string + Plan string + Quantity int + StartDate string + Status string + SubscriptionCode string + UpdatedAt string + type SubscriptionList struct + Meta ListMeta + Values []Subscription + type SubscriptionRequest struct + Authorization string + Customer string + Plan string + StartDate string + type SubscriptionService service + func (s *SubscriptionService) Create(subscription *SubscriptionRequest) (*Subscription, error) + func (s *SubscriptionService) Disable(subscriptionCode, emailToken string) (Response, error) + func (s *SubscriptionService) Enable(subscriptionCode, emailToken string) (Response, error) + func (s *SubscriptionService) Get(id int) (*Subscription, error) + func (s *SubscriptionService) List() (*SubscriptionList, error) + func (s *SubscriptionService) ListN(count, offset int) (*SubscriptionList, error) + func (s *SubscriptionService) Update(subscription *Subscription) (*Subscription, error) + type Transaction struct + Amount float32 + Authorization Authorization + Channel string + CreatedAt string + Currency string + Customer Customer + Domain string + Fees int + FeesSplit string + GatewayResponse string + ID int + IPAddress string + Log map[string]interface{} + Message string + Metadata map[string]interface{} + PaidAt string + Plan Plan + Reference string + Status string + SubAccount SubAccount + type TransactionList struct + Meta ListMeta + Values []Transaction + type TransactionRequest struct + Amount float32 + AuthorizationCode string + Bearer string + CallbackURL string + Channels []string + Currency string + Email string + InvoiceLimit int + Metadata Metadata + Plan string + Reference string + SubAccount string + TransactionCharge int + type TransactionService service + func (s *TransactionService) ChargeAuthorization(req *TransactionRequest) (*Transaction, error) + func (s *TransactionService) CheckAuthorization(req AuthorizationRequest) (Response, error) + func (s *TransactionService) Export(params RequestValues) (Response, error) + func (s *TransactionService) Get(id int) (*Transaction, error) + func (s *TransactionService) Initialize(txn *TransactionRequest) (Response, error) + func (s *TransactionService) List() (*TransactionList, error) + func (s *TransactionService) ListN(count, offset int) (*TransactionList, error) + func (s *TransactionService) ReAuthorize(req AuthorizationRequest) (Response, error) + func (s *TransactionService) Timeline(reference string) (*TransactionTimeline, error) + func (s *TransactionService) Totals() (Response, error) + func (s *TransactionService) Verify(reference string) (*Transaction, error) + type TransactionTimeline struct + Attempts int + Authentication string + Channel string + Errors int + History []map[string]interface{} + Input []string + Mobile bool + Success bool + TimeSpent int + type Transfer struct + Amount float32 + CreatedAt string + Currency string + Domain string + Failures interface{} + ID int + Integration int + Reason string + Recipient interface{} + Source string + SourceDetails interface{} + Status string + TitanCode string + TransferCode string + TransferredAt string + UpdatedAt string + type TransferList struct + Meta ListMeta + Values []Transfer + type TransferRecipient struct + AccountNumber string + Active bool + BankCode string + CreatedAt string + Currency string + Description string + Details map[string]interface{} + Domain string + ID int + Metadata Metadata + Name string + RecipientCode string + Type string + UpdatedAt string + type TransferRecipientList struct + Meta ListMeta + Values []TransferRecipient + type TransferRequest struct + Amount float32 + Currency string + Reason string + Recipient string + Source string + type TransferService service + func (s *TransferService) CreateRecipient(recipient *TransferRecipient) (*TransferRecipient, error) + func (s *TransferService) DisableOTP() (Response, error) + func (s *TransferService) EnableOTP() (Response, error) + func (s *TransferService) Finalize(code, otp string) (Response, error) + func (s *TransferService) FinalizeOTPDisable(otp string) (Response, error) + func (s *TransferService) Get(idCode string) (*Transfer, error) + func (s *TransferService) Initiate(req *TransferRequest) (*Transfer, error) + func (s *TransferService) List() (*TransferList, error) + func (s *TransferService) ListN(count, offset int) (*TransferList, error) + func (s *TransferService) ListRecipients() (*TransferRecipientList, error) + func (s *TransferService) ListRecipientsN(count, offset int) (*TransferRecipientList, error) + func (s *TransferService) MakeBulkTransfer(req *BulkTransfer) (Response, error) + func (s *TransferService) ResendOTP(transferCode, reason string) (Response, error) + type VirtualAccount struct + AccountName string + AccountNumber string + Active bool + Assigned bool + Assignment *Assignment + Bank *Bank + CreatedAt string + Currency string + Customer *Customer + ID int + Metadata Metadata + UpdatedAt string + type VirtualAccountList struct + Meta ListMeta + Values []VirtualAccount + type VirtualAccountRequest struct + Customer string + FirstName string + LastName string + Phone string + PreferredBank string + SplitCode string + SubAccount string + type VirtualAccountService service + func (v *VirtualAccountService) Create(req *VirtualAccountRequest) (*VirtualAccount, error) + func (v *VirtualAccountService) Deactivate(id int) (*VirtualAccount, error) + func (v *VirtualAccountService) Get(id int) (*VirtualAccount, error) + func (v *VirtualAccountService) List(active bool, currency string) (*VirtualAccountList, error) + func (v *VirtualAccountService) ReQuery(accountNumber, providerSlug string) (Response, error)