conekta/conekta-node

View on GitHub
model/customer.ts

Summary

Maintainability
A
0 mins
Test Coverage
/* tslint:disable */
/* eslint-disable */
/**
 * Conekta API
 * Conekta sdk
 *
 * The version of the OpenAPI document: 2.1.0
 * Contact: engineering@conekta.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


// May contain unused imports in some cases
// @ts-ignore
import { CustomerAntifraudInfo } from './customer-antifraud-info';
// May contain unused imports in some cases
// @ts-ignore
import { CustomerFiscalEntitiesRequest } from './customer-fiscal-entities-request';
// May contain unused imports in some cases
// @ts-ignore
import { CustomerPaymentMethodsRequest } from './customer-payment-methods-request';
// May contain unused imports in some cases
// @ts-ignore
import { CustomerShippingContacts } from './customer-shipping-contacts';
// May contain unused imports in some cases
// @ts-ignore
import { SubscriptionRequest } from './subscription-request';

/**
 * a customer
 * @export
 * @interface Customer
 */
export interface Customer {
    /**
     * 
     * @type {CustomerAntifraudInfo}
     * @memberof Customer
     */
    'antifraud_info'?: CustomerAntifraudInfo | null;
    /**
     * It is a value that allows identifying if the email is corporate or not.
     * @type {boolean}
     * @memberof Customer
     */
    'corporate'?: boolean;
    /**
     * It is an undefined value.
     * @type {string}
     * @memberof Customer
     */
    'custom_reference'?: 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).
     * @type {string}
     * @memberof Customer
     */
    'email': string;
    /**
     * It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)
     * @type {string}
     * @memberof Customer
     */
    'default_payment_source_id'?: string;
    /**
     * It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact)
     * @type {string}
     * @memberof Customer
     */
    'default_shipping_contact_id'?: string;
    /**
     * 
     * @type {Array<CustomerFiscalEntitiesRequest>}
     * @memberof Customer
     */
    'fiscal_entities'?: Array<CustomerFiscalEntitiesRequest>;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof Customer
     */
    'metadata'?: { [key: string]: any; };
    /**
     * Client\'s name
     * @type {string}
     * @memberof Customer
     */
    'name': string;
    /**
     * Contains details of the payment methods that the customer has active or has used in Conekta
     * @type {Array<CustomerPaymentMethodsRequest>}
     * @memberof Customer
     */
    'payment_sources'?: Array<CustomerPaymentMethodsRequest>;
    /**
     * Is the customer\'s phone number
     * @type {string}
     * @memberof Customer
     */
    'phone': string;
    /**
     * Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription
     * @type {string}
     * @memberof Customer
     */
    'plan_id'?: string;
    /**
     * Contains the detail of the shipping addresses that the client has active or has used in Conekta
     * @type {Array<CustomerShippingContacts>}
     * @memberof Customer
     */
    'shipping_contacts'?: Array<CustomerShippingContacts>;
    /**
     * 
     * @type {SubscriptionRequest}
     * @memberof Customer
     */
    'subscription'?: SubscriptionRequest;
}