Draft type to model divisions that are part of the Company or a higher-order Division. Contains the fields and values of the generic MyBusinessUnitDraft that are used specifically for creating a Division.

interface MyDivisionDraft {
    addresses?: BaseAddress[];
    billingAddresses?: number[];
    contactEmail?: string;
    custom?: CustomFields;
    defaultBillingAddress?: number;
    defaultShippingAddress?: number;
    key: string;
    name: string;
    parentUnit: BusinessUnitResourceIdentifier;
    shippingAddresses?: number[];
    unitType: "Division";
}

Properties

addresses?: BaseAddress[]

Addresses used by the Business Unit.

billingAddresses?: number[]

Indexes of entries in addresses to set as billing addresses. The billingAddressIds of the Customer will be replaced by these addresses.

contactEmail?: string

Email address of the Business Unit.

custom?: CustomFields

Custom Fields for the Business Unit.

defaultBillingAddress?: number

Index of the entry in addresses to set as the default billing address.

defaultShippingAddress?: number

Index of the entry in addresses to set as the default shipping address.

key: string

User-defined unique identifier for the BusinessUnit.

name: string

Name of the Business Unit.

The parent unit of this Division. Can be a Company or a Division.

shippingAddresses?: number[]

Indexes of entries in addresses to set as shipping addresses. The shippingAddressIds of the Customer will be replaced by these addresses.

unitType: "Division"

Generated using TypeDoc