From 2fada1c14823e0790b2df976ad7fd6b82428413f Mon Sep 17 00:00:00 2001 From: Andhika Maheva Wicaksono Date: Thu, 30 Aug 2018 14:13:09 +0700 Subject: [PATCH] Add omitempty in VaNumber attributes --- request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/request.go b/request.go index 6d97a7d..aaadd82 100644 --- a/request.go +++ b/request.go @@ -67,7 +67,7 @@ type PermataBankTransferDetail struct { // BNIBankTransferDetail : Represent BNI bank_transfer detail type BNIBankTransferDetail struct { Bank Bank `json:"bank,omitemtpy"` - VaNumber string `json:"va_number"` + VaNumber string `json:"va_number,omitempty"` } // BCABankTransferLangDetail : Represent BCA bank_transfer lang detail @@ -99,7 +99,7 @@ type BCABankTransferDetailFreeText struct { // BCABankTransferDetail : Represent BCA bank_transfer detail type BCABankTransferDetail struct { Bank Bank `json:"bank"` - VaNumber string `json:"va_number"` + VaNumber string `json:"va_number,omitempty"` SubCompanyCode string `json:"sub_company_code,omitempty"` FreeText BCABankTransferDetailFreeText `json:"free_text"` }