Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(data *GetParams) (*xendit.Balance, *xendit.Error)
Get gets balance
Example ¶
xendit.Opt.SecretKey = "examplesecretkey" data := balance.GetParams{ AccountType: "CASH", } resp, err := balance.Get(&data) if err != nil { log.Fatal(err) } fmt.Printf("balance: %+v\n", resp)
Output:
func GetWithContext ¶
GetWithContext gets balance with context
Types ¶
type Client ¶
type Client struct { Opt *xendit.Option APIRequester xendit.APIRequester }
Client is the client used to invoke balance API.
type GetParams ¶
type GetParams struct { ForUserID string `json:"-"` AccountType xendit.BalanceAccountTypeEnum `json:"account_type"` }
GetParams contains parameters for Get
func (*GetParams) QueryString ¶
QueryString creates query string from GetParams, ignores nil values
Click to show internal directories.
Click to hide internal directories.