Name | Type | Description | Notes |
---|---|---|---|
AntifraudInfo | Pointer to NullableCustomerAntifraudInfo | [optional] | |
Corporate | Pointer to bool | It is a value that allows identifying if the email is corporate or not. | [optional] [default to false] |
CustomReference | Pointer to string | It is an undefined value. | [optional] |
DateOfBirth | Pointer to string | It is a parameter that allows to identify the date of birth of the client. | [optional] |
string | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). | ||
DefaultPaymentSourceId | Pointer to string | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional] |
DefaultShippingContactId | Pointer to string | It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) | [optional] |
FiscalEntities | Pointer to []CustomerFiscalEntitiesRequest | [optional] | |
Metadata | Pointer to map[string]interface{} | [optional] | |
Name | string | Client's name | |
NationalId | Pointer to string | It is a parameter that allows to identify the national identification number of the client. | [optional] |
PaymentSources | Pointer to []CustomerPaymentMethodsRequest | Contains details of the payment methods that the customer has active or has used in Conekta | [optional] |
Phone | string | Is the customer's phone number | |
PlanId | Pointer to string | Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription | [optional] |
ShippingContacts | Pointer to []CustomerShippingContacts | Contains the detail of the shipping addresses that the client has active or has used in Conekta | [optional] |
Subscription | Pointer to SubscriptionRequest | [optional] |
func NewCustomer(email string, name string, phone string, ) *Customer
NewCustomer instantiates a new Customer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCustomerWithDefaults() *Customer
NewCustomerWithDefaults instantiates a new Customer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Customer) GetAntifraudInfo() CustomerAntifraudInfo
GetAntifraudInfo returns the AntifraudInfo field if non-nil, zero value otherwise.
func (o *Customer) GetAntifraudInfoOk() (*CustomerAntifraudInfo, bool)
GetAntifraudInfoOk returns a tuple with the AntifraudInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetAntifraudInfo(v CustomerAntifraudInfo)
SetAntifraudInfo sets AntifraudInfo field to given value.
func (o *Customer) HasAntifraudInfo() bool
HasAntifraudInfo returns a boolean if a field has been set.
func (o *Customer) SetAntifraudInfoNil(b bool)
SetAntifraudInfoNil sets the value for AntifraudInfo to be an explicit nil
func (o *Customer) UnsetAntifraudInfo()
UnsetAntifraudInfo ensures that no value is present for AntifraudInfo, not even an explicit nil
func (o *Customer) GetCorporate() bool
GetCorporate returns the Corporate field if non-nil, zero value otherwise.
func (o *Customer) GetCorporateOk() (*bool, bool)
GetCorporateOk returns a tuple with the Corporate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetCorporate(v bool)
SetCorporate sets Corporate field to given value.
func (o *Customer) HasCorporate() bool
HasCorporate returns a boolean if a field has been set.
func (o *Customer) GetCustomReference() string
GetCustomReference returns the CustomReference field if non-nil, zero value otherwise.
func (o *Customer) GetCustomReferenceOk() (*string, bool)
GetCustomReferenceOk returns a tuple with the CustomReference field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetCustomReference(v string)
SetCustomReference sets CustomReference field to given value.
func (o *Customer) HasCustomReference() bool
HasCustomReference returns a boolean if a field has been set.
func (o *Customer) GetDateOfBirth() string
GetDateOfBirth returns the DateOfBirth field if non-nil, zero value otherwise.
func (o *Customer) GetDateOfBirthOk() (*string, bool)
GetDateOfBirthOk returns a tuple with the DateOfBirth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetDateOfBirth(v string)
SetDateOfBirth sets DateOfBirth field to given value.
func (o *Customer) HasDateOfBirth() bool
HasDateOfBirth returns a boolean if a field has been set.
func (o *Customer) GetEmail() string
GetEmail returns the Email field if non-nil, zero value otherwise.
func (o *Customer) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetEmail(v string)
SetEmail sets Email field to given value.
func (o *Customer) GetDefaultPaymentSourceId() string
GetDefaultPaymentSourceId returns the DefaultPaymentSourceId field if non-nil, zero value otherwise.
func (o *Customer) GetDefaultPaymentSourceIdOk() (*string, bool)
GetDefaultPaymentSourceIdOk returns a tuple with the DefaultPaymentSourceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetDefaultPaymentSourceId(v string)
SetDefaultPaymentSourceId sets DefaultPaymentSourceId field to given value.
func (o *Customer) HasDefaultPaymentSourceId() bool
HasDefaultPaymentSourceId returns a boolean if a field has been set.
func (o *Customer) GetDefaultShippingContactId() string
GetDefaultShippingContactId returns the DefaultShippingContactId field if non-nil, zero value otherwise.
func (o *Customer) GetDefaultShippingContactIdOk() (*string, bool)
GetDefaultShippingContactIdOk returns a tuple with the DefaultShippingContactId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetDefaultShippingContactId(v string)
SetDefaultShippingContactId sets DefaultShippingContactId field to given value.
func (o *Customer) HasDefaultShippingContactId() bool
HasDefaultShippingContactId returns a boolean if a field has been set.
func (o *Customer) GetFiscalEntities() []CustomerFiscalEntitiesRequest
GetFiscalEntities returns the FiscalEntities field if non-nil, zero value otherwise.
func (o *Customer) GetFiscalEntitiesOk() (*[]CustomerFiscalEntitiesRequest, bool)
GetFiscalEntitiesOk returns a tuple with the FiscalEntities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetFiscalEntities(v []CustomerFiscalEntitiesRequest)
SetFiscalEntities sets FiscalEntities field to given value.
func (o *Customer) HasFiscalEntities() bool
HasFiscalEntities returns a boolean if a field has been set.
func (o *Customer) GetMetadata() map[string]interface{}
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *Customer) GetMetadataOk() (*map[string]interface{}, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetMetadata(v map[string]interface{})
SetMetadata sets Metadata field to given value.
func (o *Customer) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *Customer) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Customer) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetName(v string)
SetName sets Name field to given value.
func (o *Customer) GetNationalId() string
GetNationalId returns the NationalId field if non-nil, zero value otherwise.
func (o *Customer) GetNationalIdOk() (*string, bool)
GetNationalIdOk returns a tuple with the NationalId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetNationalId(v string)
SetNationalId sets NationalId field to given value.
func (o *Customer) HasNationalId() bool
HasNationalId returns a boolean if a field has been set.
func (o *Customer) GetPaymentSources() []CustomerPaymentMethodsRequest
GetPaymentSources returns the PaymentSources field if non-nil, zero value otherwise.
func (o *Customer) GetPaymentSourcesOk() (*[]CustomerPaymentMethodsRequest, bool)
GetPaymentSourcesOk returns a tuple with the PaymentSources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetPaymentSources(v []CustomerPaymentMethodsRequest)
SetPaymentSources sets PaymentSources field to given value.
func (o *Customer) HasPaymentSources() bool
HasPaymentSources returns a boolean if a field has been set.
func (o *Customer) GetPhone() string
GetPhone returns the Phone field if non-nil, zero value otherwise.
func (o *Customer) GetPhoneOk() (*string, bool)
GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetPhone(v string)
SetPhone sets Phone field to given value.
func (o *Customer) GetPlanId() string
GetPlanId returns the PlanId field if non-nil, zero value otherwise.
func (o *Customer) GetPlanIdOk() (*string, bool)
GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetPlanId(v string)
SetPlanId sets PlanId field to given value.
func (o *Customer) HasPlanId() bool
HasPlanId returns a boolean if a field has been set.
func (o *Customer) GetShippingContacts() []CustomerShippingContacts
GetShippingContacts returns the ShippingContacts field if non-nil, zero value otherwise.
func (o *Customer) GetShippingContactsOk() (*[]CustomerShippingContacts, bool)
GetShippingContactsOk returns a tuple with the ShippingContacts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetShippingContacts(v []CustomerShippingContacts)
SetShippingContacts sets ShippingContacts field to given value.
func (o *Customer) HasShippingContacts() bool
HasShippingContacts returns a boolean if a field has been set.
func (o *Customer) GetSubscription() SubscriptionRequest
GetSubscription returns the Subscription field if non-nil, zero value otherwise.
func (o *Customer) GetSubscriptionOk() (*SubscriptionRequest, bool)
GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Customer) SetSubscription(v SubscriptionRequest)
SetSubscription sets Subscription field to given value.
func (o *Customer) HasSubscription() bool
HasSubscription returns a boolean if a field has been set.