import type * as Square from "../../../../index"; /** * @example * { * customers: { * "8bb76c4f-e35d-4c5b-90de-1194cd9179f0": { * 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" * }, * "d1689f23-b25d-4932-b2f0-aed00f5e2029": { * givenName: "Marie", * familyName: "Curie", * emailAddress: "Marie.Curie@example.com", * address: { * addressLine1: "500 Electric Ave", * addressLine2: "Suite 601", * locality: "New York", * administrativeDistrictLevel1: "NY", * postalCode: "10003", * country: "US" * }, * phoneNumber: "+1-212-444-4240", * referenceId: "YOUR_REFERENCE_ID", * note: "another customer" * } * } * } */ export interface BulkCreateCustomersRequest { /** * A map of 1 to 100 individual create requests, represented by `idempotency key: { customer data }` * key-value pairs. * * Each key is an [idempotency key](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) * that uniquely identifies the create request. Each value contains the customer data used to create the * customer profile. */ customers: Record; }