Conekta::UpdateCustomer

December 17, 2024 ยท View on GitHub

Properties

NameTypeDescriptionNotes
antifraud_infoUpdateCustomerAntifraudInfo[optional]
date_of_birthStringIt is a parameter that allows to identify the date of birth of the client.[optional]
default_payment_source_idStringIt is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)[optional]
emailStringAn 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).[optional]
nameStringClient's name[optional]
phoneStringIs the customer's phone number[optional]
plan_idStringContains the ID of a plan, which could together with name, email and phone create a client directly to a subscription[optional]
default_shipping_contact_idStringIt is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact)[optional]
corporateBooleanIt is a value that allows identifying if the email is corporate or not.[optional][default to false]
custom_referenceStringIt is an undefined value.[optional]
fiscal_entitiesArray<CustomerFiscalEntitiesRequest>[optional]
metadataHash<String, Object>[optional]
national_idStringIt is a parameter that allows to identify the national identification number of the client.[optional]
payment_sourcesArray<CustomerPaymentMethodsRequest>Contains details of the payment methods that the customer has active or has used in Conekta[optional]
shipping_contactsArray<CustomerShippingContacts>Contains the detail of the shipping addresses that the client has active or has used in Conekta[optional]
subscriptionSubscriptionRequest[optional]

Example

require 'conekta'

instance = Conekta::UpdateCustomer.new(
  antifraud_info: null,
  date_of_birth: 24/07/1992,
  default_payment_source_id: src_1a2b3c4d5e6f7g8h,
  email: miguel@gmail.com,
  name: miguel,
  phone: +5215555555555,
  plan_id: plan_987234823,
  default_shipping_contact_id: ship_cont_1a2b3c4d5e6f7g8h,
  corporate: false,
  custom_reference: null,
  fiscal_entities: null,
  metadata: null,
  national_id: HEGG560427MVZRRL04,
  payment_sources: null,
  shipping_contacts: null,
  subscription: null
)