arky-sdk 0.4.43 → 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 +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +84 -57
- package/dist/types.d.ts +84 -57
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
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,25 +1380,28 @@ var createPlatformApi = (apiConfig) => {
|
|
|
1377
1380
|
var createShippingApi = (apiConfig) => {
|
|
1378
1381
|
return {
|
|
1379
1382
|
/**
|
|
1380
|
-
* Get available shipping rates for
|
|
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
|
{
|
|
1386
|
-
|
|
1387
|
-
fromAddress: params.fromAddress
|
|
1389
|
+
shippingProviderId: params.shippingProviderId,
|
|
1390
|
+
fromAddress: params.fromAddress,
|
|
1391
|
+
toAddress: params.toAddress,
|
|
1392
|
+
parcel: params.parcel
|
|
1388
1393
|
},
|
|
1389
1394
|
options
|
|
1390
1395
|
);
|
|
1391
1396
|
},
|
|
1392
1397
|
/**
|
|
1393
|
-
* Purchase a shipping label
|
|
1398
|
+
* Purchase a shipping label for a shipment
|
|
1394
1399
|
*/
|
|
1395
1400
|
async purchaseLabel(params, options) {
|
|
1396
1401
|
return apiConfig.httpClient.post(
|
|
1397
1402
|
`/v1/businesses/${apiConfig.businessId}/orders/${params.orderId}/shipping/purchase`,
|
|
1398
1403
|
{
|
|
1404
|
+
shipmentId: params.shipmentId,
|
|
1399
1405
|
rateId: params.rateId,
|
|
1400
1406
|
carrier: params.carrier,
|
|
1401
1407
|
service: params.service
|