From c1d8d269eed46e1ce5bf17b9eb7bec58e04a4951 Mon Sep 17 00:00:00 2001 From: Norman Denayer Date: Wed, 5 Feb 2025 17:32:10 +0100 Subject: [PATCH] add BillingAddress, Phone and AccountHolder to payment source with ID (#146) --- payments/nas/sources/sources.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/payments/nas/sources/sources.go b/payments/nas/sources/sources.go index 9d3d01f..d073d21 100644 --- a/payments/nas/sources/sources.go +++ b/payments/nas/sources/sources.go @@ -20,12 +20,15 @@ type ( } requestIdSource struct { - Type payments.SourceType `json:"type,omitempty"` - Id string `json:"id,omitempty"` - Cvv string `json:"cvv,omitempty"` - PaymentMethod string `json:"payment_method,omitempty"` - Stored *bool `json:"stored,omitempty"` - StoreForFutureUse *bool `json:"storeForFutureUse,omitempty"` + Type payments.SourceType `json:"type,omitempty"` + Id string `json:"id,omitempty"` + Cvv string `json:"cvv,omitempty"` + PaymentMethod string `json:"payment_method,omitempty"` + Stored *bool `json:"stored,omitempty"` + StoreForFutureUse *bool `json:"storeForFutureUse,omitempty"` + BillingAddress *common.Address `json:"billing_address,omitempty"` + Phone *common.Phone `json:"phone,omitempty"` + AccountHolder *common.AccountHolder `json:"account_holder,omitempty"` } requestTokenSource struct {