UnifiedBuyer
Definition
export class UnifiedBuyer{
givenName?: string;
familyName?: string;
additionalName?: string;
birthDate?: string;
email?: string;
phone?: string;
alternativePhone?: string;
billingAddress?: UnifiedAddress;
shippingAddress?: UnifiedAddress;
}
Field Name | Type | Description | Details/Example |
---|---|---|---|
givenName | string? | The buyer's first name. | “Jack” |
familyName | string? | The buyer’s last name. | “Seamus” |
additionalName | string? | The buyer’s middle name. | “C.” |
birthDate | string? | The buyer’s birthdate, YYYY-MM- DD. | “1974-08-21” |
string? | The buyer’s email address. | “johncseamus@gmai l.com” | |
phone | string? | The buyer’s phone number. | “13235323423” |
alternativePhone | string? | The buyer’s secondary phone number. | “144235323423” |
billingAddress | UnifiedAddress? | An object containing the billing address for the order. | |
shippingAddress | UnifiedAddress? | An object containing the shipping address for the order. |
Examples
const buyer: UnifiedBuyer = {
givenName: "Jack",
familyName: "Seamus",
additionalName: "C.",
birthDate: "1974-08-21",
email: "[email protected]",
phone: "+13235323423",
billingAddress: {
address1: "323 somethibng lane",
address2: "apt. B",
country: "US",
locality: "NYC",
region: "NY",
postalCode: "11222",
},
shippingAddress: {
address1: "323 something lane",
address2: "apt. B",
country: "US",
locality: "NYC",
region: "NY",
postalCode: "11222",
}
};
Related
Updated almost 2 years ago