Versions in this module Expand all Collapse all v0 v0.0.8 Jul 29, 2022 v0.0.7 Jul 29, 2022 v0.0.6 Jun 12, 2022 Changes in this version type BillPayResponse + func (response BillPayResponse) IsPending() bool type BillTransaction + func (transaction *BillTransaction) GetDate() (time.Time, error) v0.0.5 Apr 25, 2022 v0.0.4 Apr 22, 2022 Changes in this version + type BillAmountResponse struct + Code int + Message string + Result *int + func (response BillAmountResponse) IsSuccessful() bool + type BillPayResponse struct + Code int + Message string + Result *BillTransaction + func (response BillPayResponse) IsSuccessful() bool v0.0.3 Apr 20, 2022 Changes in this version + const BillSMSDisabled + const BillSMSEnabled + const BillerCamwater + const BillerCanal + const BillerEneoPostpay + const BillerEneoPrepay + const BillerUDS + const ModeAccount + const ModeCash + const ModeMoney + func PointerToString(input *string) string + func StringToPointer(input string) *string type AirtimeResponse + func (response AirtimeResponse) IsSuccessful() bool + type BillPayParams struct + Account *string + Amount *string + BillID string + Biller Biller + Code *string + Mobile *string + Mode Mode + ProcessingNumber *string + Provider *string + SMS *BillSMS + type BillResponse struct + Code int + Message string + Result *BillTransaction + func (response BillResponse) IsSuccessful() bool + type BillSMS string + func (sms BillSMS) Pointer() *BillSMS + type BillTransaction struct + Date string + OperatorID string + ProcessingNumber string + ReferenceID interface{} + Status string + TransactionID string + type Biller string type Client + Bill *billService + type Mode string + func (mode Mode) String() string v0.0.2 Mar 18, 2022 Changes in this version + type AccountBalance struct + MainBalance string + MainDeposit string + Name string + type AccountBalanceResponse struct + Code int + Message string + Result *AccountBalance + func (response AccountBalanceResponse) IsSuccessfull() bool v0.0.1 Mar 18, 2022 Changes in this version + const AirtimeModeAccount + const AirtimeModeCash + const AirtimeModeMoney + type AirtimeMode string + func (mode AirtimeMode) String() string + type AirtimeResponse struct + Code int + Message string + Result *AirtimeTransaction + func (response AirtimeResponse) IsSuccessfull() bool + type AirtimeTransaction struct + Date string + OperatorID string + ProcessingNumber string + ReferenceID string + Status string + Ticket interface{} + TransactionID string + type AirtimeTransferParams struct + Amount string + Mode AirtimeMode + Operator string + PhoneNumber string + PurchaseReference string + type Client struct + Account *accountService + Airtime *airtimeService + func New(options ...Option) *Client + type Option interface + func WithAPIKey(apiKey string) Option + func WithAgentID(agentID string) Option + func WithAgentPassword(agentPassword string) Option + func WithAgentPlatform(agentPlatform string) Option + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + type Response struct + Body *[]byte + HTTPResponse *http.Response + func (r *Response) Error() error