@arrowsphere/api-client 3.432.0 → 3.433.0-rc-mms-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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.433.0-rc-mms-1] - 2026.11.30
7
+ ### Added
8
+ - [cart] Add `ItemBundleUpdateRequestType` and `ItemBundleBasePriceBandUpdateRequestType`: `updateItem` on a bundle parent line accepts the full snapshot of its base offers (`basePriceBands` identified by `itemId`)
9
+
6
10
  ## [3.432.0] - 2026.11.27
7
11
  ### Added
8
12
  - [Licenses] Add `pricingRules` (tier, type, rateType, value) to `LicenseGetResult`
@@ -59,13 +59,33 @@ export declare type ItemUpdateRequestType = {
59
59
  [ItemRequestFields.QUANTITY]: number;
60
60
  [ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
61
61
  };
62
+ /**
63
+ * One base offer of a bundle in an update snapshot, identified by the item id of its cart line
64
+ */
65
+ export declare type ItemBundleBasePriceBandUpdateRequestType = {
66
+ [ItemRequestFields.ITEM_ID]: string;
67
+ [ItemRequestFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
68
+ [ItemRequestFields.QUANTITY]: number;
69
+ [ItemRequestFields.ADDITIONAL_DATA]?: ItemAdditionalDataRequestType[];
70
+ };
71
+ /**
72
+ * Full snapshot of the base offers of a bundle, sent to update the bundle parent line.
73
+ * It must contain each base offer of the bundle exactly once.
74
+ */
75
+ export declare type ItemBundleUpdateRequestType = {
76
+ [ItemRequestFields.BASE_PRICE_BANDS]: ItemBundleBasePriceBandUpdateRequestType[];
77
+ };
62
78
  export declare class CartClient extends AbstractRestfulClient {
63
79
  protected basePath: string;
64
80
  addItem(postData: ItemAddRequestType, parameters?: Parameters): Promise<GetResult<Item>>;
65
81
  changeCustomer(postData: ChangeCustomerRequestType, parameters?: Parameters): Promise<CartItemListResult>;
66
82
  checkPromotion(parameters?: Parameters): Promise<GetResult<GetPromotionCartListResult>>;
67
83
  checkPrerequisites(itemId: string, parameters?: Parameters): Promise<GetResult<GetPrerequisitesListResult>>;
68
- updateItem(itemId: string, postData: ItemUpdateRequestType, parameters?: Parameters): Promise<GetResult<Item>>;
84
+ /**
85
+ * Update a cart item.
86
+ * For a bundle, use the item id of the bundle parent line and send the full snapshot of its base offers.
87
+ */
88
+ updateItem(itemId: string, postData: ItemUpdateRequestType | ItemBundleUpdateRequestType, parameters?: Parameters): Promise<GetResult<Item>>;
69
89
  removeItem(itemId: string, parameters?: Parameters): Promise<void>;
70
90
  removeItems(parameters?: Parameters): Promise<void>;
71
91
  listItems(perPage?: number, page?: number, parameters?: Parameters): Promise<CartItemListResult>;
@@ -54,6 +54,10 @@ class CartClient extends abstractRestfulClient_1.AbstractRestfulClient {
54
54
  this.path = `/${itemId}/prerequisites`;
55
55
  return new getResult_1.GetResult(prerequisiteList_1.GetPrerequisitesListResult, await this.get(parameters));
56
56
  }
57
+ /**
58
+ * Update a cart item.
59
+ * For a bundle, use the item id of the bundle parent line and send the full snapshot of its base offers.
60
+ */
57
61
  async updateItem(itemId, postData, parameters = {}) {
58
62
  this.path = `/${itemId}`;
59
63
  return new getResult_1.GetResult(entities_1.Item, await this.patch(postData, parameters));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.432.0",
7
+ "version": "3.433.0-rc-mms-1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",