Skip to content

Commit 1304c2e

Browse files
fix: change StoreForFutureUse field to pointer type for better handling (#186)
1 parent 7d9abcd commit 1304c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

payments/nas/sources/sources.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type (
3838
BillingAddress *common.Address `json:"billing_address,omitempty"`
3939
Phone *common.Phone `json:"phone,omitempty"`
4040
Stored *bool `json:"stored,omitempty"`
41-
StoreForFutureUse bool `json:"store_for_future_use,omitempty"`
41+
StoreForFutureUse *bool `json:"store_for_future_use,omitempty"`
4242
AccountHolder *common.AccountHolder `json:"account_holder,omitempty"`
4343
}
4444

@@ -58,7 +58,7 @@ type (
5858
Cryptogram string `json:"cryptogram,omitempty"`
5959
Eci string `json:"eci,omitempty"`
6060
Stored bool `json:"stored"`
61-
StoreForFutureUse bool `json:"store_for_future_use,omitempty"`
61+
StoreForFutureUse *bool `json:"store_for_future_use,omitempty"`
6262
Name string `json:"name,omitempty"`
6363
Cvv string `json:"cvv,omitempty"`
6464
BillingAddress *common.Address `json:"billing_address,omitempty"`

0 commit comments

Comments
 (0)