@poweredbysous/storefront-all-sdk 4.13.0 → 4.13.1

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 CHANGED
@@ -7609,6 +7609,7 @@ interface components {
7609
7609
  readonly promotion: {
7610
7610
  [key: string]: unknown;
7611
7611
  } | null;
7612
+ readonly pending_auto_discount: components["schemas"]["CartPendingAutoDiscount"] | null;
7612
7613
  readonly shipping_estimate: components["schemas"]["ShippingEstimate"] | null;
7613
7614
  /**
7614
7615
  * Format: decimal
@@ -7748,6 +7749,40 @@ interface components {
7748
7749
  /** @description 'product' or 'modifier' */
7749
7750
  source: string;
7750
7751
  };
7752
+ /**
7753
+ * @description A codeless discount the cart holds products for but does not get yet.
7754
+ *
7755
+ * Documentation only: the payload is built by
7756
+ * ``CartSerializer.get_pending_auto_discount``. Null whenever a discount is
7757
+ * on the cart, a typed code included.
7758
+ */
7759
+ CartPendingAutoDiscount: {
7760
+ /** Format: uuid */
7761
+ discount_id: string;
7762
+ name: string;
7763
+ /**
7764
+ * @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.
7765
+ *
7766
+ * * `min_order_not_met` - min_order_not_met
7767
+ * * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
7768
+ */
7769
+ reason: components["schemas"]["CartPendingAutoDiscountReasonEnum"];
7770
+ /** Format: decimal */
7771
+ min_order_amount: string | null;
7772
+ /**
7773
+ * Format: decimal
7774
+ * @description What the subtotal still needs. Null unless min_order_not_met.
7775
+ */
7776
+ amount_needed: string | null;
7777
+ allowed_fulfillment_types: string[];
7778
+ currency: string;
7779
+ };
7780
+ /**
7781
+ * @description * `min_order_not_met` - min_order_not_met
7782
+ * * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
7783
+ * @enum {string}
7784
+ */
7785
+ CartPendingAutoDiscountReasonEnum: "min_order_not_met" | "fulfillment_type_not_allowed";
7751
7786
  Category: {
7752
7787
  readonly id: number;
7753
7788
  slug: string;
package/dist/index.d.ts CHANGED
@@ -7609,6 +7609,7 @@ interface components {
7609
7609
  readonly promotion: {
7610
7610
  [key: string]: unknown;
7611
7611
  } | null;
7612
+ readonly pending_auto_discount: components["schemas"]["CartPendingAutoDiscount"] | null;
7612
7613
  readonly shipping_estimate: components["schemas"]["ShippingEstimate"] | null;
7613
7614
  /**
7614
7615
  * Format: decimal
@@ -7748,6 +7749,40 @@ interface components {
7748
7749
  /** @description 'product' or 'modifier' */
7749
7750
  source: string;
7750
7751
  };
7752
+ /**
7753
+ * @description A codeless discount the cart holds products for but does not get yet.
7754
+ *
7755
+ * Documentation only: the payload is built by
7756
+ * ``CartSerializer.get_pending_auto_discount``. Null whenever a discount is
7757
+ * on the cart, a typed code included.
7758
+ */
7759
+ CartPendingAutoDiscount: {
7760
+ /** Format: uuid */
7761
+ discount_id: string;
7762
+ name: string;
7763
+ /**
7764
+ * @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.
7765
+ *
7766
+ * * `min_order_not_met` - min_order_not_met
7767
+ * * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
7768
+ */
7769
+ reason: components["schemas"]["CartPendingAutoDiscountReasonEnum"];
7770
+ /** Format: decimal */
7771
+ min_order_amount: string | null;
7772
+ /**
7773
+ * Format: decimal
7774
+ * @description What the subtotal still needs. Null unless min_order_not_met.
7775
+ */
7776
+ amount_needed: string | null;
7777
+ allowed_fulfillment_types: string[];
7778
+ currency: string;
7779
+ };
7780
+ /**
7781
+ * @description * `min_order_not_met` - min_order_not_met
7782
+ * * `fulfillment_type_not_allowed` - fulfillment_type_not_allowed
7783
+ * @enum {string}
7784
+ */
7785
+ CartPendingAutoDiscountReasonEnum: "min_order_not_met" | "fulfillment_type_not_allowed";
7751
7786
  Category: {
7752
7787
  readonly id: number;
7753
7788
  slug: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-all-sdk",
3
- "version": "4.13.0",
3
+ "version": "4.13.1",
4
4
  "description": "Type-safe TypeScript SDK for all SOUS Storefront Backend endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,