@longvansoftware/storefront-js-client 1.7.1 → 1.7.2

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.
@@ -155,7 +155,7 @@ export declare class OrderService extends Service {
155
155
  * @returns A promise that resolves when the customer and shipping address are updated.
156
156
  * @throws If an error occurs while updating the customer and shipping address.
157
157
  */
158
- updateShippngService(orderId: string, shippingServiceId: string, updatedBy: string): Promise<any>;
158
+ updateShippingService(orderId: string, shippingServiceId: string, updatedBy: string): Promise<any>;
159
159
  /**
160
160
  * Update shipping order
161
161
  * @param orderId - The ID of the order.
@@ -269,7 +269,7 @@ export declare class OrderService extends Service {
269
269
  * @returns A promise that resolves when the customer and shipping address are updated.
270
270
  * @throws If an error occurs while updating the customer and shipping address.
271
271
  */
272
- getListShippingService(): Promise<any>;
272
+ getShippingService(shippingCarrierId: string): Promise<any>;
273
273
  /**
274
274
  * Get info sell order
275
275
  * @param orderId - The ID of the order.
@@ -369,7 +369,7 @@ class OrderService extends serviceSDK_1.Service {
369
369
  * @returns A promise that resolves when the customer and shipping address are updated.
370
370
  * @throws If an error occurs while updating the customer and shipping address.
371
371
  */
372
- updateShippngService(orderId, shippingServiceId, updatedBy) {
372
+ updateShippingService(orderId, shippingServiceId, updatedBy) {
373
373
  return __awaiter(this, void 0, void 0, function* () {
374
374
  const endpoint = `/orders/${this.orgId}/${orderId}/${shippingServiceId}/shippingService?updated_by=${updatedBy}`;
375
375
  const method = "PUT";
@@ -665,9 +665,9 @@ class OrderService extends serviceSDK_1.Service {
665
665
  * @returns A promise that resolves when the customer and shipping address are updated.
666
666
  * @throws If an error occurs while updating the customer and shipping address.
667
667
  */
668
- getListShippingService() {
668
+ getShippingService(shippingCarrierId) {
669
669
  return __awaiter(this, void 0, void 0, function* () {
670
- const endpoint = `/orders/${this.orgId}/${this.storeId}/shippingCarrier`;
670
+ const endpoint = `/orders/${this.orgId}/${this.storeId}/${shippingCarrierId}/shippingService`;
671
671
  const method = "GET";
672
672
  try {
673
673
  const response = yield this.restApiCallWithToken(endpoint, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [