github.com/Ingenico-ePayments/connect-sdk-go@v0.0.0-20240318153750-1f8cd329b9c9/domain/payment/Customer.go (about)

     1  // This class was auto-generated from the API references found at
     2  // https://epayments-api.developer-ingenico.com/
     3  
     4  package payment
     5  
     6  import "github.com/Ingenico-ePayments/connect-sdk-go/domain/definitions"
     7  
     8  // Customer represents class Customer
     9  type Customer struct {
    10  	Account             *CustomerAccount                `json:"account,omitempty"`
    11  	AccountType         *string                         `json:"accountType,omitempty"`
    12  	BillingAddress      *definitions.Address            `json:"billingAddress,omitempty"`
    13  	CompanyInformation  *definitions.CompanyInformation `json:"companyInformation,omitempty"`
    14  	ContactDetails      *ContactDetails                 `json:"contactDetails,omitempty"`
    15  	Device              *CustomerDevice                 `json:"device,omitempty"`
    16  	FiscalNumber        *string                         `json:"fiscalNumber,omitempty"`
    17  	IsCompany           *bool                           `json:"isCompany,omitempty"`
    18  	IsPreviousCustomer  *bool                           `json:"isPreviousCustomer,omitempty"`
    19  	Locale              *string                         `json:"locale,omitempty"`
    20  	MerchantCustomerID  *string                         `json:"merchantCustomerId,omitempty"`
    21  	PersonalInformation *PersonalInformation            `json:"personalInformation,omitempty"`
    22  	// Deprecated: Use Order.shipping.address instead
    23  	ShippingAddress     *AddressPersonal                `json:"shippingAddress,omitempty"`
    24  	// Deprecated: Use companyInformation.vatNumber instead
    25  	VatNumber           *string                         `json:"vatNumber,omitempty"`
    26  }
    27  
    28  // NewCustomer constructs a new Customer
    29  func NewCustomer() *Customer {
    30  	return &Customer{}
    31  }