arky-sdk 0.4.42 → 0.4.44

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.cjs CHANGED
@@ -862,7 +862,8 @@ var createEshopApi = (apiConfig) => {
862
862
  blocks: params.blocks || [],
863
863
  paymentMethodId: params.paymentMethodId,
864
864
  shippingMethodId: params.shippingMethodId,
865
- promoCode: params.promoCode
865
+ promoCode: params.promoCode,
866
+ location: params.location
866
867
  };
867
868
  return apiConfig.httpClient.post(
868
869
  `/v1/businesses/${apiConfig.businessId}/orders/quote`,
@@ -878,7 +879,9 @@ var createEshopApi = (apiConfig) => {
878
879
  blocks: params.blocks || [],
879
880
  paymentMethodId: params.paymentMethodId,
880
881
  shippingMethodId: params.shippingMethodId,
881
- promoCodeId: params.promoCodeId
882
+ promoCodeId: params.promoCodeId,
883
+ shippingAddress: params.shippingAddress,
884
+ billingAddress: params.billingAddress
882
885
  };
883
886
  return apiConfig.httpClient.post(
884
887
  `/v1/businesses/${apiConfig.businessId}/orders/checkout`,
@@ -1377,24 +1380,28 @@ var createPlatformApi = (apiConfig) => {
1377
1380
  var createShippingApi = (apiConfig) => {
1378
1381
  return {
1379
1382
  /**
1380
- * Get available shipping rates for an order
1383
+ * Get available shipping rates for a shipment
1381
1384
  */
1382
1385
  async getRates(params, options) {
1383
1386
  return apiConfig.httpClient.post(
1384
1387
  `/v1/businesses/${apiConfig.businessId}/orders/${params.orderId}/shipping/rates`,
1385
1388
  {
1389
+ shippingProviderId: params.shippingProviderId,
1390
+ fromAddress: params.fromAddress,
1391
+ toAddress: params.toAddress,
1386
1392
  parcel: params.parcel
1387
1393
  },
1388
1394
  options
1389
1395
  );
1390
1396
  },
1391
1397
  /**
1392
- * Purchase a shipping label using a selected rate
1398
+ * Purchase a shipping label for a shipment
1393
1399
  */
1394
1400
  async purchaseLabel(params, options) {
1395
1401
  return apiConfig.httpClient.post(
1396
1402
  `/v1/businesses/${apiConfig.businessId}/orders/${params.orderId}/shipping/purchase`,
1397
1403
  {
1404
+ shipmentId: params.shipmentId,
1398
1405
  rateId: params.rateId,
1399
1406
  carrier: params.carrier,
1400
1407
  service: params.service