diff options
| author | Shulhan <ms@kilabit.info> | 2023-03-09 17:22:29 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-03-09 17:22:29 +0700 |
| commit | 9318bcba3b36b1778aebba5f4a87f2a5c22d1432 (patch) | |
| tree | ec6384863e0871cd6d8a67625c7c9291512dbbfc | |
| parent | 3f99918ba3f90ebcb88320f2098d2320d73c77eb (diff) | |
| download | duitku-9318bcba3b36b1778aebba5f4a87f2a5c22d1432.tar.xz | |
all: export the field ExpiryPeriode in MerchantInquiry
This is to allow client to override default expiration periode, rather
than using the default.
| -rw-r--r-- | merchant_inquiry.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/merchant_inquiry.go b/merchant_inquiry.go index 26b8d35..9c8495a 100644 --- a/merchant_inquiry.go +++ b/merchant_inquiry.go @@ -65,6 +65,12 @@ type MerchantInquiry struct { // Make sure the PaymentAmount is equal to the total Price in the // ItemDetails. PaymentAmount int64 `json:"paymentAmount"` + + // [OPT] Transaction expiry period in minutes. + // If its empty, it will set to [default] based on PaymentMethod. + // + // [default]: https://docs.duitku.com/api/en/#expiry-period + ExpiryPeriod int `json:"expiryPeriod,omitempty"` } // merchantInquiry contains internal fields that will be set by client @@ -93,12 +99,6 @@ type merchantInquiry struct { Signature string `json:"signature"` MerchantInquiry - - // [OPT] Transaction expiry period in minutes. - // If its empty, it will set to [default] based on PaymentMethod. - // - // [default]: https://docs.duitku.com/api/en/#expiry-period - ExpiryPeriod int `json:"expiryPeriod,omitempty"` } func (inq *merchantInquiry) sign(opts ClientOptions) { |
