UnifiedBuyer

Definition

export class UnifiedBuyer{
  givenName?: string;
  familyName?: string;
  additionalName?: string;
  birthDate?: string;
  email?: string;
  phone?: string;
  alternativePhone?: string;
  billingAddress?: UnifiedAddress;
  shippingAddress?: UnifiedAddress;
}
Field NameTypeDescriptionDetails/Example
givenNamestring?The buyer's first name.“Jack”
familyNamestring?The buyer’s last name.“Seamus”
additionalNamestring?The buyer’s middle name.“C.”
birthDatestring?The buyer’s birthdate, YYYY-MM- DD.“1974-08-21”
emailstring?The buyer’s email address.[email protected] l.com”
phonestring?The buyer’s phone number.“13235323423”
alternativePhonestring?The buyer’s secondary phone number.“144235323423”
billingAddressUnifiedAddress?An object containing the billing address for the order.
shippingAddressUnifiedAddress?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

UnifiedSetupConfig
UnifiedAddress