/** * PagarmeApiSDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { bigint, boolean, dict, lazy, nullable, object, optional, Schema, string, } from '../schema'; import { GetAddressResponse, getAddressResponseSchema, } from './getAddressResponse'; import { GetPhonesResponse, getPhonesResponseSchema, } from './getPhonesResponse'; /** Response object for getting a customer */ export interface GetCustomerResponse { id?: string | null; name?: string | null; email?: string | null; delinquent?: boolean | null; createdAt?: string | null; updatedAt?: string | null; document?: string | null; type?: string | null; fbAccessToken?: string | null; address?: GetAddressResponse | null; metadata?: Record | null; phones?: GetPhonesResponse | null; fbId?: bigint | null; /** Código de referência do cliente no sistema da loja. Max: 52 caracteres */ code?: string | null; documentType?: string | null; } export const getCustomerResponseSchema: Schema = object({ id: ['id', optional(nullable(string()))], name: ['name', optional(nullable(string()))], email: ['email', optional(nullable(string()))], delinquent: ['delinquent', optional(nullable(boolean()))], createdAt: ['created_at', optional(nullable(string()))], updatedAt: ['updated_at', optional(nullable(string()))], document: ['document', optional(nullable(string()))], type: ['type', optional(nullable(string()))], fbAccessToken: ['fb_access_token', optional(nullable(string()))], address: [ 'address', optional(nullable(lazy(() => getAddressResponseSchema))), ], metadata: ['metadata', optional(nullable(dict(string())))], phones: ['phones', optional(nullable(lazy(() => getPhonesResponseSchema)))], fbId: ['fb_id', optional(nullable(bigint()))], code: ['code', optional(nullable(string()))], documentType: ['document_type', optional(nullable(string()))], });