diff options
Diffstat (limited to 'merchant_inquiry.go')
| -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) { |
