Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateQRIS(ctx context.Context, payload fazz.PaymentMethodCreateQRISPayload) (*PaymentMethodQRIS, *fazz.Error)
- func (c *Client) CreateVA(ctx context.Context, payload fazz.PaymentMethodCreateVAPayload) (*PaymentMethodVA, *fazz.Error)
- func (c *Client) ListPaymentsQRIS(ctx context.Context, paymentMethodId string, params fazz.FazzParams) ([]ListPaymentQRIS, *fazz.Error)
- func (c *Client) ListPaymentsVA(ctx context.Context, paymentMethodId string, params fazz.FazzParams) ([]ListPaymentVA, *fazz.Error)
- func (c *Client) PaymentMethodQRIS(ctx context.Context, paymentMethodId string) (*PaymentMethodQRIS, *fazz.Error)
- func (c *Client) PaymentMethodVA(ctx context.Context, paymentMethodId string) (*PaymentMethodVA, *fazz.Error)
- func (c *Client) SimulatePaymentQRIS(ctx context.Context, paymentMethodId string, ...) (*SimulatePaymentQRIS, *fazz.Error)
- func (c *Client) SimulatePaymentVA(ctx context.Context, paymentMethodId string, ...) (*SimulatePaymentVA, *fazz.Error)
- type ListPaymentMethodQRIS
- type ListPaymentMethodVA
- type ListPaymentQRIS
- type ListPaymentQRISAttributes
- type ListPaymentVA
- type ListPaymentVAAttributes
- type PaymentMethodQRIS
- type PaymentMethodQRISAttributes
- type PaymentMethodVA
- type PaymentMethodVAAttributes
- type QRISInstructions
- type SimulatePaymentOptions
- type SimulatePaymentQRIS
- type SimulatePaymentQRISAttributes
- type SimulatePaymentVA
- type SimulatePaymentVAAttributes
- type VAInstructions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateQRIS ¶
func (c *Client) CreateQRIS(ctx context.Context, payload fazz.PaymentMethodCreateQRISPayload) (*PaymentMethodQRIS, *fazz.Error)
CreateQRIS return response from Create a Payment Method API for QRIS type.
Docs: https://docs.fazz.com/v4-ID/reference/create-a-payment-method
func (*Client) CreateVA ¶
func (c *Client) CreateVA(ctx context.Context, payload fazz.PaymentMethodCreateVAPayload) (*PaymentMethodVA, *fazz.Error)
CreateVA return response from Create a Payment Method API for virtual_bank_accounts type.
Docs: https://docs.fazz.com/v4-ID/reference/create-a-payment-method
func (*Client) ListPaymentsQRIS ¶
func (c *Client) ListPaymentsQRIS(ctx context.Context, paymentMethodId string, params fazz.FazzParams) ([]ListPaymentQRIS, *fazz.Error)
ListPaymentsQRIS return response from Get a List of Payments for a Payment Method API (QRIS)
Docs: https://docs.fazz.com/v4-ID/reference/get-payment-method-payments
func (*Client) ListPaymentsVA ¶
func (c *Client) ListPaymentsVA(ctx context.Context, paymentMethodId string, params fazz.FazzParams) ([]ListPaymentVA, *fazz.Error)
ListPaymentsVA return response from Get a List of Payments for a Payment Method API (virtual_bank_accounts)
Docs: https://docs.fazz.com/v4-ID/reference/get-payment-method-payments
func (*Client) PaymentMethodQRIS ¶
func (c *Client) PaymentMethodQRIS(ctx context.Context, paymentMethodId string) (*PaymentMethodQRIS, *fazz.Error)
PaymentMethodQRIS return response from Get a Payment Method API for QRIS type.
Docs: https://docs.fazz.com/v4-ID/reference/get-payment-method
func (*Client) PaymentMethodVA ¶
func (c *Client) PaymentMethodVA(ctx context.Context, paymentMethodId string) (*PaymentMethodVA, *fazz.Error)
PaymentMethodVA return response from Get a Payment Method API for virtual_bank_accounts type.
Docs: https://docs.fazz.com/v4-ID/reference/get-payment-method
func (*Client) SimulatePaymentQRIS ¶
func (c *Client) SimulatePaymentQRIS(ctx context.Context, paymentMethodId string, payload fazz.PaymentMethodSimulatePayload) (*SimulatePaymentQRIS, *fazz.Error)
SimulatePaymentQRIS return response from Create a mock payment for a payment method API (QRIS).
Docs: https://docs.fazz.com/v4-ID/reference/create-mock-payment-for-payment-method
func (*Client) SimulatePaymentVA ¶
func (c *Client) SimulatePaymentVA(ctx context.Context, paymentMethodId string, payload fazz.PaymentMethodSimulatePayload) (*SimulatePaymentVA, *fazz.Error)
SimulatePaymentVA return response from Create a mock payment for a payment method API (virtual_bank_accounts).
Docs: https://docs.fazz.com/v4-ID/reference/create-mock-payment-for-payment-method
type ListPaymentMethodQRIS ¶
type ListPaymentMethodQRIS struct {
ID string `json:"id"`
Type string `json:"type"`
ReferenceId string `json:"referenceId"`
Instructions QRISInstructions `json:"instructions"`
}
ListPaymentMethodQRIS is part of ListPaymentQRISAttributes
type ListPaymentMethodVA ¶
type ListPaymentMethodVA struct {
ID string `json:"id"`
Type string `json:"type"`
ReferenceId string `json:"referenceId"`
Instructions VAInstructions `json:"instructions"`
}
ListPaymentMethodVA is part of ListPaymentVAAttributes
type ListPaymentQRIS ¶
type ListPaymentQRIS struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes ListPaymentQRISAttributes `json:"attributes"`
}
ListPaymentVA represents response from Get a list of payments for a payment method API on type QRIS
type ListPaymentQRISAttributes ¶
type ListPaymentQRISAttributes struct {
Status string `json:"status"`
Amount string `json:"amount"`
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
ExpiredAt time.Time `json:"expiredAt"`
ReferenceId string `json:"referenceId"`
Fees string `json:"fees"`
PaymentMethod ListPaymentMethodQRIS `json:"paymentMethod"`
}
ListPaymentQRISAttributes is part of ListPaymentQRIS
type ListPaymentVA ¶
type ListPaymentVA struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes ListPaymentVAAttributes `json:"attributes"`
}
ListPaymentVA represents response from Get a list of payments for a payment method API on type Virtual Account
type ListPaymentVAAttributes ¶
type ListPaymentVAAttributes struct {
Status string `json:"status"`
Amount string `json:"amount"`
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
ExpiredAt time.Time `json:"expiredAt"`
ReferenceId string `json:"referenceId"`
Fees string `json:"fees"`
PaymentMethod ListPaymentMethodVA `json:"paymentMethod"`
}
ListPaymentVAAttributes is part of ListPaymentVA
type PaymentMethodQRIS ¶
type PaymentMethodQRIS struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes PaymentMethodQRISAttributes `json:"attributes"`
}
PaymentMethodQRIS represents response from Create a payment method & Get a payment method API for type QRIS
type PaymentMethodQRISAttributes ¶
type PaymentMethodQRISAttributes struct {
ReferenceId string `json:"referenceId"`
Instructions QRISInstructions `json:"instructions"`
}
PaymentMethodQRISAttributes is part of PaymentMethodQRIS
type PaymentMethodVA ¶
type PaymentMethodVA struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes PaymentMethodVAAttributes `json:"attributes"`
}
PaymentMethodVA represents response from Create a payment method & Get a payment method API for type Virtual Account
type PaymentMethodVAAttributes ¶
type PaymentMethodVAAttributes struct {
ReferenceId string `json:"referenceId"`
Instructions VAInstructions `json:"instructions"`
}
PaymentMethodVAAttributes is part of PaymentMethodVA
type QRISInstructions ¶
type QRISInstructions struct {
ImageURL string `json:"imageUrl"`
DisplayName string `json:"displayName"`
}
QRISInstructions is part of PaymentMethodQRIS & ListPaymentMethodQRIS
type SimulatePaymentOptions ¶
type SimulatePaymentOptions struct {
Amount string `json:"amount"`
}
SimulatePaymentOptions is part of SimulatePaymentVAAttributes & SimulatePaymentQRISAttributes
type SimulatePaymentQRIS ¶
type SimulatePaymentQRIS struct {
Type string `json:"type"`
Attributes SimulatePaymentQRISAttributes `json:"attributes"`
}
SimulatePaymentVA represents response from Create a mock payment for a payment method QRIS
type SimulatePaymentQRISAttributes ¶
type SimulatePaymentQRISAttributes struct {
TargetId string `json:"targetId"`
TargetType string `json:"targetType"`
Action string `json:"action"`
Options SimulatePaymentOptions `json:"options"`
}
SimulatePaymentQRISAttributes is part of SimulatePaymentQRIS
type SimulatePaymentVA ¶
type SimulatePaymentVA struct {
Type string `json:"type"`
Attributes SimulatePaymentVAAttributes `json:"attributes"`
}
SimulatePaymentVA represents response from Create a mock payment for a payment method Virtual Account
type SimulatePaymentVAAttributes ¶
type SimulatePaymentVAAttributes struct {
TargetId string `json:"targetId"`
TargetType string `json:"targetType"`
ReferenceId string `json:"referenceId"`
Action string `json:"action"`
Options SimulatePaymentOptions `json:"options"`
}
SimulatePaymentVAAttributes is part of SimulatePaymentVA
type VAInstructions ¶
type VAInstructions struct {
BankShortCode string `json:"bankShortCode"`
AccountNo string `json:"accountNo"`
DisplayName string `json:"displayName"`
}
VAInstructions is part of PaymentMethodVA & ListPaymentMethodVA