@gradientedge/commercetools-utils
    Preparing search index...

    Interface CartSetShippingCustomTypeAction

    This action sets, overwrites, or removes any existing Custom Type and Custom Fields for the Cart's shippingMethod or shipping.

    interface CartSetShippingCustomTypeAction {
        action: "setShippingCustomType";
        fields?: FieldContainer;
        shippingKey?: string;
        type?: TypeResourceIdentifier;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setShippingCustomType"

    Sets the Custom Fields fields for the shippingMethod.

    shippingKey?: string

    The shippingKey of the Shipping to customize. Used to specify which Shipping Method to customize on a Cart with Multiple ShippingMode. Leave this empty to customize the one and only ShippingMethod on a Single ShippingMode Cart.

    Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.