-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment_link.go
31 lines (26 loc) · 1.31 KB
/
payment_link.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// File Created: Wednesday, 18th October 2023 12:53:48 am
// Author: Abdul Hamid (abdul.surel@gmail.com)
//
// Copyright (c) 2023 Author
package fazz
// ========== Payloads ==========
// PaymentLinkCreatePayload represent request payload for Create a Payment Link API.
type PaymentLinkCreatePayload struct {
Amount uint32 `json:"amount"` // Required
ReferenceId string `json:"referenceId"` // Required
CustomerName string `json:"customerName"` // Required
CustomerEmail string `json:"customerEmail"` // Required
CustomerPhoneNumber string `json:"customerPhoneNumber"` // Required
Description string `json:"description"` // Required
ExpiredAt string `json:"expiredAt,omitempty"` // ISO601
PaymentMethodOptions PaymentLinkOptions `json:"paymentMethodOptions"`
}
// PaymentLinkOptions is part of PaymentLinkCreatePayload
type PaymentLinkOptions struct {
DisplayName string `json:"displayName,omitempty"`
}
// PaymetLinkUpdatePayload represent request payload for Update a Payment Link API.
type PaymentLinkUpdatePayload struct {
// cancel, receive_payment, or settle. receive_payment & settle for sandbox purpose
Action string `json:"action"`
}