From 9318bcba3b36b1778aebba5f4a87f2a5c22d1432 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 9 Mar 2023 17:22:29 +0700 Subject: all: export the field ExpiryPeriode in MerchantInquiry This is to allow client to override default expiration periode, rather than using the default. --- merchant_inquiry.go | 12 ++++++------ 1 file 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) { -- cgit v1.3