Type Alias CartPunchoutPosition

CartPunchoutPosition: {
    description: {
        customerTitle?: LocalizedText;
        description?: Record<string, string | null>;
        title: LocalizedText;
    };
    identifiers: CartPunchoutIdentifiers;
    meta?: CartPunchoutMeta;
    parentPositionId: string | null;
    positionId: string;
    pricing: UnitPricing & {
        lineAmount: string;
    };
    quantity: {
        relation: "per-parent-unit" | "once-per-parent" | "independent";
        total: string;
        unitOfMeasure: string;
        value: string;
    };
    taxCategory: TaxCategory;
    type: "layout" | "tecsafeService" | "hostShopArticle";
}

A layout, service, or shop article transferred to the host cart.

Type declaration

  • description: {
        customerTitle?: LocalizedText;
        description?: Record<string, string | null>;
        title: LocalizedText;
    }
  • identifiers: CartPunchoutIdentifiers
  • Optionalmeta?: CartPunchoutMeta
  • parentPositionId: string | null

    Null for the layout; otherwise the parent layout's positionId.

  • positionId: string

    Opaque position identifier minted by TECSAFE.

  • pricing: UnitPricing & {
        lineAmount: string;
    }
  • quantity: {
        relation: "per-parent-unit" | "once-per-parent" | "independent";
        total: string;
        unitOfMeasure: string;
        value: string;
    }
    • relation: "per-parent-unit" | "once-per-parent" | "independent"
    • total: string

      Quantity derived from the parent relation.

    • unitOfMeasure: string

      UN/ECE Recommendation 20 code, e.g. PCE.

    • value: string
  • taxCategory: TaxCategory
  • type: "layout" | "tecsafeService" | "hostShopArticle"