import type * as Square from "../../../../index"; /** * @example * { * givenName: "Amelia", * familyName: "Earhart", * emailAddress: "Amelia.Earhart@example.com", * address: { * addressLine1: "500 Electric Ave", * addressLine2: "Suite 600", * locality: "New York", * administrativeDistrictLevel1: "NY", * postalCode: "10003", * country: "US" * }, * phoneNumber: "+1-212-555-4240", * referenceId: "YOUR_REFERENCE_ID", * note: "a customer" * } */ export interface CreateCustomerRequest { /** * The idempotency key for the request. For more information, see * [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). */ idempotencyKey?: string; /** * The given name (that is, the first name) associated with the customer profile. * * The maximum length for this value is 300 characters. */ givenName?: string; /** * The family name (that is, the last name) associated with the customer profile. * * The maximum length for this value is 300 characters. */ familyName?: string; /** * A business name associated with the customer profile. * * The maximum length for this value is 500 characters. */ companyName?: string; /** * A nickname for the customer profile. * * The maximum length for this value is 100 characters. */ nickname?: string; /** * The email address associated with the customer profile. * * The maximum length for this value is 254 characters. */ emailAddress?: string; /** * The physical address associated with the customer profile. For maximum length constraints, see * [Customer addresses](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#address). * The `first_name` and `last_name` fields are ignored if they are present in the request. */ address?: Square.Address; /** * The phone number associated with the customer profile. The phone number must be valid and can contain * 9–16 digits, with an optional `+` prefix and country code. For more information, see * [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number). */ phoneNumber?: string; /** * An optional second ID used to associate the customer profile with an * entity in another system. * * The maximum length for this value is 100 characters. */ referenceId?: string; /** A custom note associated with the customer profile. */ note?: string; /** * The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format. For example, * specify `1998-09-21` for September 21, 1998, or `09-21` for September 21. Birthdays are returned in `YYYY-MM-DD` * format, where `YYYY` is the specified birth year or `0000` if a birth year is not specified. */ birthday?: string; /** * The tax ID associated with the customer profile. This field is available only for customers of sellers * in EU countries or the United Kingdom. For more information, * see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids). */ taxIds?: Square.CustomerTaxIds; }