Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, payload fazz.PaymentLinkCreatePayload) (*PaymentLink, *fazz.Error)
- func (c *Client) PaymentLink(ctx context.Context, paymentLinkId string) (*PaymentLink, *fazz.Error)
- func (c *Client) Update(ctx context.Context, paymentLinkId string, ...) (*PaymentLinkUpdate, *fazz.Error)
- type PaymentLink
- type PaymentLinkAttributes
- type PaymentLinkUpdate
- type PaymentLinkUpdateAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, payload fazz.PaymentLinkCreatePayload) (*PaymentLink, *fazz.Error)
Create return response from Create a Payment Link API.
Docs: https://docs.fazz.com/v4-ID/reference/create-payment-link
func (*Client) PaymentLink ¶
PaymentLink return response from Get a Payment Link API.
Docs: https://docs.fazz.com/v4-ID/reference/get-payment-link
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, paymentLinkId string, payload fazz.PaymentLinkUpdatePayload) (*PaymentLinkUpdate, *fazz.Error)
Update return response from Update a Payment Link API.
Docs: https://docs.fazz.com/v4-ID/reference/update-payment-link
type PaymentLink ¶
type PaymentLink struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes PaymentLinkAttributes `json:"attributes"`
}
PaymentLink represent response from Create & Show Payment Link API.
type PaymentLinkAttributes ¶
type PaymentLinkAttributes struct {
Status string `json:"status"`
Amount string `json:"amount"`
ReferenceId string `json:"referenceId"`
CreatedAt string `json:"createdAt"`
Description string `json:"description"`
ExpiredAt string `json:"expiredAt"`
PaymentLinkUrl string `json:"paymentLinkUrl"`
CustomerName string `json:"customerName"`
CustomerEmail string `json:"customerEmail"`
CustomerPhoneNumber string `json:"customerPhoneNumber"`
DisplayName string `json:"displayName"`
}
PaymentLinkAttributes is part of PaymentLink.
type PaymentLinkUpdate ¶
type PaymentLinkUpdate struct {
Type string `json:"type"`
Attributes PaymentLinkUpdateAttributes `json:"attributes"`
}
PaymentLinkUpdate represent response from Update Payment Link API.
type PaymentLinkUpdateAttributes ¶
type PaymentLinkUpdateAttributes struct {
TargetId string `json:"targetId"`
TargetType string `json:"targetType"`
Action string `json:"action"`
}
PaymentLinkUpdateAttributes is part of PaymentLinkUpdate.
Click to show internal directories.
Click to hide internal directories.