Documentation ¶
Index ¶
- func Create(data *CreateParams) (*xendit.Account, *xendit.Error)
- func CreateWithContext(ctx context.Context, data *CreateParams) (*xendit.Account, *xendit.Error)
- func Get(data *GetParams) (*xendit.Account, *xendit.Error)
- func GetWithContext(ctx context.Context, data *GetParams) (*xendit.Account, *xendit.Error)
- type Client
- func (c *Client) Create(data *CreateParams) (*xendit.Account, *xendit.Error)
- func (c *Client) CreateWithContext(ctx context.Context, data *CreateParams) (*xendit.Account, *xendit.Error)
- func (c *Client) Get(data *GetParams) (*xendit.Account, *xendit.Error)
- func (c *Client) GetWithContext(ctx context.Context, data *GetParams) (*xendit.Account, *xendit.Error)
- type CreateParams
- type GetParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(data *CreateParams) (*xendit.Account, *xendit.Error)
Create creates new account
func CreateWithContext ¶
func CreateWithContext(ctx context.Context, data *CreateParams) (*xendit.Account, *xendit.Error)
CreateWithContext creates new account with context
func GetWithContext ¶
GetWithContext gets one account with context
Types ¶
type Client ¶
type Client struct { Opt *xendit.Option APIRequester xendit.APIRequester }
Client is the client used to invoke account API.
func (*Client) Create ¶
func (c *Client) Create(data *CreateParams) (*xendit.Account, *xendit.Error)
Create creates new invoice
func (*Client) CreateWithContext ¶
func (c *Client) CreateWithContext(ctx context.Context, data *CreateParams) (*xendit.Account, *xendit.Error)
CreateWithContext creates new account with context
type CreateParams ¶
type CreateParams struct { Email string `json:"email" validate:"required"` Type xendit.AccountType `json:"type" validate:"required"` PublicProfile xendit.PublicProfile `json:"public_profile"` }
Click to show internal directories.
Click to hide internal directories.