Skip to content

Commit

Permalink
Remove pointer in some types
Browse files Browse the repository at this point in the history
  • Loading branch information
andhikamaheva committed Aug 21, 2018
1 parent fa8dda2 commit 26d8a50
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ type CreditCardDetail struct {

// PermataBankTransferDetail : Represent Permata bank_transfer detail
type PermataBankTransferDetail struct {
Bank Bank `json:"bank,omitempty"`
VaNumber *string `json:"va_number,omitempty"`
RecipientName *string `json:"recipient_name ,omitempty"`
Bank Bank `json:"bank,omitempty"`
VaNumber string `json:"va_number,omitempty"`
RecipientName string `json:"recipient_name ,omitempty"`
}

// BNIBankTransferDetail : Represent BNI bank_transfer detail
Expand Down Expand Up @@ -101,7 +101,7 @@ type BCABankTransferDetailFreeText struct {
type BCABankTransferDetail struct {
Bank Bank `json:"bank"`
VaNumber string `json:"va_number"`
SubCompanyCode *string `json:"sub_company_code,omitempty"`
SubCompanyCode string `json:"sub_company_code,omitempty"`
FreeText BCABankTransferDetailFreeText `json:"free_text"`
}

Expand Down Expand Up @@ -215,9 +215,9 @@ type SnapReq struct {
BNIBankTransfer *BNIBankTransferDetail `json:"bni_va,omitempty"`
PermataBankTransfer *PermataBankTransferDetail `json:"permata_va,omitempty"`
Expiry *Expiry `json:"expiry,omitempty"`
CustomField1 *string `json:"custom_field1,omitempty"`
CustomField2 *string `json:"custom_field2,omitempty"`
CustomField3 *string `json:"custom_field3,omitempty"`
CustomField1 string `json:"custom_field1,omitempty"`
CustomField2 string `json:"custom_field2,omitempty"`
CustomField3 string `json:"custom_field3,omitempty"`
}

// CaptureReq : Represent Capture request payload
Expand Down

0 comments on commit 26d8a50

Please sign in to comment.