accountinquiry

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(data *GetParams) (*oygo.AccountInquiryGet, *oygo.Error)

Get gets one invoice

func GetWithContext

func GetWithContext(ctx context.Context, data *GetParams) (*oygo.AccountInquiryGet, *oygo.Error)

GetWithContext gets one invoice with context

Types

type Client

type Client struct {
	Opt          *oygo.Option
	APIRequester oygo.APIRequester
}

Client is the client used to invoke invoice API.

func (*Client) Get

func (c *Client) Get(data *GetParams) (*oygo.AccountInquiryGet, *oygo.Error)

Get gets one invoice

func (*Client) GetWithContext

func (c *Client) GetWithContext(ctx context.Context, data *GetParams) (*oygo.AccountInquiryGet, *oygo.Error)

GetWithContext gets one invoice with context

type GetParams

type GetParams struct {
	BankCode      oygo.BankCode `form:"bank_code" json:"bank_code" validate:"required"`
	AccountNumber string        `form:"account_number" json:"account_number" validate:"required"`
}

GetParams contains parameters for Get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL