Documentation ¶
Index ¶
- type MoneyLinkData
- type PayPayClient
- func (paypay *PayPayClient) AcceptMoneyLink(linkData *MoneyLinkData, passcode *string) error
- func (paypay *PayPayClient) CreateMoneyLink(amount int64, passcode *string) (*string, error)
- func (paypay *PayPayClient) GetLinkData(verificationCode string) (*MoneyLinkData, error)
- func (paypay *PayPayClient) GetWalletAmount() (int64, error)
- func (paypay *PayPayClient) SignIn(acquireOneTimePassword func() (*string, error)) error
- type PayPayConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoneyLinkData ¶ added in v1.0.2
type PayPayClient ¶ added in v1.0.2
type PayPayClient struct { HttpClient *http.Client Config *PayPayConfig AccessToken string RefreshToken string // contains filtered or unexported fields }
func New ¶
func New(config *PayPayConfig) (*PayPayClient, error)
func (*PayPayClient) AcceptMoneyLink ¶ added in v1.0.2
func (paypay *PayPayClient) AcceptMoneyLink(linkData *MoneyLinkData, passcode *string) error
func (*PayPayClient) CreateMoneyLink ¶ added in v1.0.2
func (paypay *PayPayClient) CreateMoneyLink(amount int64, passcode *string) (*string, error)
func (*PayPayClient) GetLinkData ¶ added in v1.0.2
func (paypay *PayPayClient) GetLinkData(verificationCode string) (*MoneyLinkData, error)
func (*PayPayClient) GetWalletAmount ¶ added in v1.0.2
func (paypay *PayPayClient) GetWalletAmount() (int64, error)
Click to show internal directories.
Click to hide internal directories.