@poweredbysous/storefront-all-sdk 4.14.0 → 4.15.0

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
@@ -7643,6 +7643,7 @@ interface components {
7643
7643
  * @description Last computed full shipping estimate (before delivery fee split). NULL means no estimate has been computed — which is not the same as an estimate of zero, and must never be read as free delivery.
7644
7644
  */
7645
7645
  estimated_shipping_cost?: string | null;
7646
+ readonly delivery_address: components["schemas"]["CartDeliveryAddress"] | null;
7646
7647
  readonly service_fees: {
7647
7648
  /**
7648
7649
  * Format: decimal
@@ -7665,10 +7666,13 @@ interface components {
7665
7666
  }[];
7666
7667
  };
7667
7668
  /**
7668
- * @description Return cart_total + customer shipping portion + service fees.
7669
+ * @description What checkout will charge for this basket, before gift cards and
7670
+ * Zeemijlen: the items, surcharges, delivery fee and service fee, less
7671
+ * discounts. Leaves out only a delivery fee not priced yet, which
7672
+ * ``service_fees.estimated`` says.
7669
7673
  *
7670
- * Uses the service_fees and shipping_estimate already computed
7671
- * by this serializer (which include pass-through splits).
7674
+ * Totalled by ``order_total_before_points``, the formula checkout
7675
+ * totals with, so the cart total is the checkout total.
7672
7676
  */
7673
7677
  readonly estimated_total: string;
7674
7678
  /**
@@ -7688,6 +7692,24 @@ interface components {
7688
7692
  /** Format: date-time */
7689
7693
  expires_at: string;
7690
7694
  };
7695
+ /**
7696
+ * @description Where the shopper wants delivery, as the shipping estimate reads it.
7697
+ *
7698
+ * Given with the fulfilment choice, before the first item, so every cart
7699
+ * response carries the delivery fee checkout will charge (price
7700
+ * transparency). The same fields a cart GET takes as query parameters.
7701
+ */
7702
+ CartDeliveryAddress: {
7703
+ /** Format: decimal */
7704
+ latitude: string;
7705
+ /** Format: decimal */
7706
+ longitude: string;
7707
+ postal_code?: string;
7708
+ address_street?: string;
7709
+ address_city?: string;
7710
+ /** @description ISO 3166-1 alpha-2, case-insensitive. A nationwide carrier prices by country, so it is enough without a street and city; a live courier quote needs all three. */
7711
+ address_country?: string;
7712
+ };
7691
7713
  /** @description Validates a single cart item for eligibility checks. */
7692
7714
  CartItem: {
7693
7715
  product_id: number;
@@ -10469,6 +10491,8 @@ interface components {
10469
10491
  fulfillment_type?: components["schemas"]["FulfillmentTypeEnum"];
10470
10492
  /** Format: date */
10471
10493
  fulfillment_date?: string;
10494
+ /** @description The shopper's delivery address. Stored on the cart so every cart response prices the delivery fee; null forgets it, and leaving it out keeps the one already given. */
10495
+ delivery_address?: components["schemas"]["CartDeliveryAddress"] | null;
10472
10496
  };
10473
10497
  PatchedSetNationwideShipping: {
10474
10498
  is_enabled?: boolean;
@@ -20002,7 +20026,7 @@ interface operations {
20002
20026
  address_country?: string;
20003
20027
  /** @description Delivery destination street line. Required together with address_city and address_country to trigger a live shipping quote (e.g. from Uber Direct); without all three the shipping_estimate group will report cost_known=false. */
20004
20028
  address_street?: string;
20005
- /** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. */
20029
+ /** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. Ignored, like every address parameter here, once the cart holds a `delivery_address` from the fulfilment PATCH. */
20006
20030
  latitude?: number;
20007
20031
  /** @description Delivery destination longitude. */
20008
20032
  longitude?: number;
package/dist/index.d.ts CHANGED
@@ -7643,6 +7643,7 @@ interface components {
7643
7643
  * @description Last computed full shipping estimate (before delivery fee split). NULL means no estimate has been computed — which is not the same as an estimate of zero, and must never be read as free delivery.
7644
7644
  */
7645
7645
  estimated_shipping_cost?: string | null;
7646
+ readonly delivery_address: components["schemas"]["CartDeliveryAddress"] | null;
7646
7647
  readonly service_fees: {
7647
7648
  /**
7648
7649
  * Format: decimal
@@ -7665,10 +7666,13 @@ interface components {
7665
7666
  }[];
7666
7667
  };
7667
7668
  /**
7668
- * @description Return cart_total + customer shipping portion + service fees.
7669
+ * @description What checkout will charge for this basket, before gift cards and
7670
+ * Zeemijlen: the items, surcharges, delivery fee and service fee, less
7671
+ * discounts. Leaves out only a delivery fee not priced yet, which
7672
+ * ``service_fees.estimated`` says.
7669
7673
  *
7670
- * Uses the service_fees and shipping_estimate already computed
7671
- * by this serializer (which include pass-through splits).
7674
+ * Totalled by ``order_total_before_points``, the formula checkout
7675
+ * totals with, so the cart total is the checkout total.
7672
7676
  */
7673
7677
  readonly estimated_total: string;
7674
7678
  /**
@@ -7688,6 +7692,24 @@ interface components {
7688
7692
  /** Format: date-time */
7689
7693
  expires_at: string;
7690
7694
  };
7695
+ /**
7696
+ * @description Where the shopper wants delivery, as the shipping estimate reads it.
7697
+ *
7698
+ * Given with the fulfilment choice, before the first item, so every cart
7699
+ * response carries the delivery fee checkout will charge (price
7700
+ * transparency). The same fields a cart GET takes as query parameters.
7701
+ */
7702
+ CartDeliveryAddress: {
7703
+ /** Format: decimal */
7704
+ latitude: string;
7705
+ /** Format: decimal */
7706
+ longitude: string;
7707
+ postal_code?: string;
7708
+ address_street?: string;
7709
+ address_city?: string;
7710
+ /** @description ISO 3166-1 alpha-2, case-insensitive. A nationwide carrier prices by country, so it is enough without a street and city; a live courier quote needs all three. */
7711
+ address_country?: string;
7712
+ };
7691
7713
  /** @description Validates a single cart item for eligibility checks. */
7692
7714
  CartItem: {
7693
7715
  product_id: number;
@@ -10469,6 +10491,8 @@ interface components {
10469
10491
  fulfillment_type?: components["schemas"]["FulfillmentTypeEnum"];
10470
10492
  /** Format: date */
10471
10493
  fulfillment_date?: string;
10494
+ /** @description The shopper's delivery address. Stored on the cart so every cart response prices the delivery fee; null forgets it, and leaving it out keeps the one already given. */
10495
+ delivery_address?: components["schemas"]["CartDeliveryAddress"] | null;
10472
10496
  };
10473
10497
  PatchedSetNationwideShipping: {
10474
10498
  is_enabled?: boolean;
@@ -20002,7 +20026,7 @@ interface operations {
20002
20026
  address_country?: string;
20003
20027
  /** @description Delivery destination street line. Required together with address_city and address_country to trigger a live shipping quote (e.g. from Uber Direct); without all three the shipping_estimate group will report cost_known=false. */
20004
20028
  address_street?: string;
20005
- /** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. */
20029
+ /** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. Ignored, like every address parameter here, once the cart holds a `delivery_address` from the fulfilment PATCH. */
20006
20030
  latitude?: number;
20007
20031
  /** @description Delivery destination longitude. */
20008
20032
  longitude?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-all-sdk",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "Type-safe TypeScript SDK for all SOUS Storefront Backend endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,