import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"
export default automation("Bulk Square Create Customers", () => {
onDashboardRun({ title: "Bulk Square Create Customers" })
square.bulkCreateCustomers({
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",
},
},
})
})