@poweredbysous/storefront-sdk 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2722,6 +2722,7 @@ interface components {
|
|
|
2722
2722
|
readonly promotion: {
|
|
2723
2723
|
[key: string]: unknown;
|
|
2724
2724
|
} | null;
|
|
2725
|
+
readonly pending_auto_discount: components["schemas"]["CartPendingAutoDiscount"] | null;
|
|
2725
2726
|
readonly shipping_estimate: components["schemas"]["ShippingEstimate"] | null;
|
|
2726
2727
|
/**
|
|
2727
2728
|
* Format: decimal
|
|
@@ -2861,6 +2862,40 @@ interface components {
|
|
|
2861
2862
|
/** @description 'product' or 'modifier' */
|
|
2862
2863
|
source: string;
|
|
2863
2864
|
};
|
|
2865
|
+
/**
|
|
2866
|
+
* @description A codeless discount the cart holds products for but does not get yet.
|
|
2867
|
+
*
|
|
2868
|
+
* Documentation only: the payload is built by
|
|
2869
|
+
* ``CartSerializer.get_pending_auto_discount``. Null whenever a discount is
|
|
2870
|
+
* on the cart, a typed code included.
|
|
2871
|
+
*/
|
|
2872
|
+
CartPendingAutoDiscount: {
|
|
2873
|
+
/** Format: uuid */
|
|
2874
|
+
discount_id: string;
|
|
2875
|
+
name: string;
|
|
2876
|
+
/**
|
|
2877
|
+
* @description min_order_not_met: the cart subtotal is below min_order_amount; amount_needed says by how much. fulfillment_type_not_allowed: no line the discount covers uses one of allowed_fulfillment_types. Reported before the minimum, since adding to the basket cannot lift it.
|
|
2878
|
+
*
|
|
2879
|
+
* * `min_order_not_met` - min_order_not_met
|
|
2880
|
+
* * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
|
|
2881
|
+
*/
|
|
2882
|
+
reason: components["schemas"]["CartPendingAutoDiscountReasonEnum"];
|
|
2883
|
+
/** Format: decimal */
|
|
2884
|
+
min_order_amount: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* Format: decimal
|
|
2887
|
+
* @description What the subtotal still needs. Null unless min_order_not_met.
|
|
2888
|
+
*/
|
|
2889
|
+
amount_needed: string | null;
|
|
2890
|
+
allowed_fulfillment_types: string[];
|
|
2891
|
+
currency: string;
|
|
2892
|
+
};
|
|
2893
|
+
/**
|
|
2894
|
+
* @description * `min_order_not_met` - min_order_not_met
|
|
2895
|
+
* * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
|
|
2896
|
+
* @enum {string}
|
|
2897
|
+
*/
|
|
2898
|
+
CartPendingAutoDiscountReasonEnum: "min_order_not_met" | "fulfillment_type_not_allowed";
|
|
2864
2899
|
Category: {
|
|
2865
2900
|
readonly id: number;
|
|
2866
2901
|
slug: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2722,6 +2722,7 @@ interface components {
|
|
|
2722
2722
|
readonly promotion: {
|
|
2723
2723
|
[key: string]: unknown;
|
|
2724
2724
|
} | null;
|
|
2725
|
+
readonly pending_auto_discount: components["schemas"]["CartPendingAutoDiscount"] | null;
|
|
2725
2726
|
readonly shipping_estimate: components["schemas"]["ShippingEstimate"] | null;
|
|
2726
2727
|
/**
|
|
2727
2728
|
* Format: decimal
|
|
@@ -2861,6 +2862,40 @@ interface components {
|
|
|
2861
2862
|
/** @description 'product' or 'modifier' */
|
|
2862
2863
|
source: string;
|
|
2863
2864
|
};
|
|
2865
|
+
/**
|
|
2866
|
+
* @description A codeless discount the cart holds products for but does not get yet.
|
|
2867
|
+
*
|
|
2868
|
+
* Documentation only: the payload is built by
|
|
2869
|
+
* ``CartSerializer.get_pending_auto_discount``. Null whenever a discount is
|
|
2870
|
+
* on the cart, a typed code included.
|
|
2871
|
+
*/
|
|
2872
|
+
CartPendingAutoDiscount: {
|
|
2873
|
+
/** Format: uuid */
|
|
2874
|
+
discount_id: string;
|
|
2875
|
+
name: string;
|
|
2876
|
+
/**
|
|
2877
|
+
* @description min_order_not_met: the cart subtotal is below min_order_amount; amount_needed says by how much. fulfillment_type_not_allowed: no line the discount covers uses one of allowed_fulfillment_types. Reported before the minimum, since adding to the basket cannot lift it.
|
|
2878
|
+
*
|
|
2879
|
+
* * `min_order_not_met` - min_order_not_met
|
|
2880
|
+
* * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
|
|
2881
|
+
*/
|
|
2882
|
+
reason: components["schemas"]["CartPendingAutoDiscountReasonEnum"];
|
|
2883
|
+
/** Format: decimal */
|
|
2884
|
+
min_order_amount: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* Format: decimal
|
|
2887
|
+
* @description What the subtotal still needs. Null unless min_order_not_met.
|
|
2888
|
+
*/
|
|
2889
|
+
amount_needed: string | null;
|
|
2890
|
+
allowed_fulfillment_types: string[];
|
|
2891
|
+
currency: string;
|
|
2892
|
+
};
|
|
2893
|
+
/**
|
|
2894
|
+
* @description * `min_order_not_met` - min_order_not_met
|
|
2895
|
+
* * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
|
|
2896
|
+
* @enum {string}
|
|
2897
|
+
*/
|
|
2898
|
+
CartPendingAutoDiscountReasonEnum: "min_order_not_met" | "fulfillment_type_not_allowed";
|
|
2864
2899
|
Category: {
|
|
2865
2900
|
readonly id: number;
|
|
2866
2901
|
slug: string;
|