@epcc-sdk/sdks-shopper 0.0.32 → 0.0.34

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.
@@ -680,7 +680,7 @@ const deleteACart = (options) => {
680
680
  url: "/v2/carts/{cartID}"
681
681
  });
682
682
  };
683
- const getCart = (options) => {
683
+ const getACart = (options) => {
684
684
  return (options?.client ?? client).get({
685
685
  ...options,
686
686
  security: [
@@ -1040,6 +1040,74 @@ const updateCustomDiscountForCartItem = (options) => {
1040
1040
  url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
1041
1041
  });
1042
1042
  };
1043
+ const getShippingGroups = (options) => {
1044
+ return (options?.client ?? client).get({
1045
+ ...options,
1046
+ security: [
1047
+ {
1048
+ scheme: "bearer",
1049
+ type: "http"
1050
+ }
1051
+ ],
1052
+ url: "/v2/carts/{cartID}/shipping-groups"
1053
+ });
1054
+ };
1055
+ const createShippingGroup = (options) => {
1056
+ return (options?.client ?? client).post({
1057
+ ...options,
1058
+ headers: {
1059
+ "Content-Type": "application/json",
1060
+ ...options?.headers
1061
+ },
1062
+ security: [
1063
+ {
1064
+ scheme: "bearer",
1065
+ type: "http"
1066
+ }
1067
+ ],
1068
+ url: "/v2/carts/{cartID}/shipping-groups"
1069
+ });
1070
+ };
1071
+ const deleteCartShippingGroup = (options) => {
1072
+ return (options?.client ?? client).delete({
1073
+ ...options,
1074
+ security: [
1075
+ {
1076
+ scheme: "bearer",
1077
+ type: "http"
1078
+ }
1079
+ ],
1080
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
1081
+ });
1082
+ };
1083
+ const getShippingGroupById = (options) => {
1084
+ return (options?.client ?? client).get({
1085
+ ...options,
1086
+ security: [
1087
+ {
1088
+ scheme: "bearer",
1089
+ type: "http"
1090
+ }
1091
+ ],
1092
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
1093
+ });
1094
+ };
1095
+ const updateShippingGroup = (options) => {
1096
+ return (options?.client ?? client).put({
1097
+ ...options,
1098
+ headers: {
1099
+ "Content-Type": "application/json",
1100
+ ...options?.headers
1101
+ },
1102
+ security: [
1103
+ {
1104
+ scheme: "bearer",
1105
+ type: "http"
1106
+ }
1107
+ ],
1108
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
1109
+ });
1110
+ };
1043
1111
  const createCartPaymentIntent = (options) => {
1044
1112
  return (options?.client ?? client).post({
1045
1113
  ...options,
@@ -1056,6 +1124,22 @@ const createCartPaymentIntent = (options) => {
1056
1124
  url: "/v2/carts/{cartID}/payments"
1057
1125
  });
1058
1126
  };
1127
+ const updateCartPaymentIntent = (options) => {
1128
+ return (options?.client ?? client).put({
1129
+ ...options,
1130
+ headers: {
1131
+ "Content-Type": "application/json",
1132
+ ...options?.headers
1133
+ },
1134
+ security: [
1135
+ {
1136
+ scheme: "bearer",
1137
+ type: "http"
1138
+ }
1139
+ ],
1140
+ url: "/v2/carts/{cartID}/payments/{paymentIntentID}"
1141
+ });
1142
+ };
1059
1143
  const checkoutApi = (options) => {
1060
1144
  return (options?.client ?? client).post({
1061
1145
  ...options,
@@ -1140,6 +1224,18 @@ const anonymizeOrders = (options) => {
1140
1224
  url: "/v2/orders/anonymize"
1141
1225
  });
1142
1226
  };
1227
+ const confirmOrder = (options) => {
1228
+ return (options?.client ?? client).post({
1229
+ ...options,
1230
+ security: [
1231
+ {
1232
+ scheme: "bearer",
1233
+ type: "http"
1234
+ }
1235
+ ],
1236
+ url: "/v2/orders/{orderID}/confirm"
1237
+ });
1238
+ };
1143
1239
  const paymentSetup = (options) => {
1144
1240
  return (options?.client ?? client).post({
1145
1241
  ...options,
@@ -1244,7 +1340,7 @@ const cancelATransaction = (options) => {
1244
1340
  url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
1245
1341
  });
1246
1342
  };
1247
- const getSubscriptionProduct = (options) => {
1343
+ const getOrderShippingGroups = (options) => {
1248
1344
  return (options?.client ?? client).get({
1249
1345
  ...options,
1250
1346
  security: [
@@ -1253,10 +1349,26 @@ const getSubscriptionProduct = (options) => {
1253
1349
  type: "http"
1254
1350
  }
1255
1351
  ],
1256
- url: "/v2/subscriptions/products/{product_uuid}"
1352
+ url: "/v2/orders/{orderID}/shipping-groups"
1353
+ });
1354
+ };
1355
+ const createOrderShippingGroup = (options) => {
1356
+ return (options?.client ?? client).post({
1357
+ ...options,
1358
+ headers: {
1359
+ "Content-Type": "application/json",
1360
+ ...options?.headers
1361
+ },
1362
+ security: [
1363
+ {
1364
+ scheme: "bearer",
1365
+ type: "http"
1366
+ }
1367
+ ],
1368
+ url: "/v2/orders/{orderID}/shipping-groups"
1257
1369
  });
1258
1370
  };
1259
- const getPlan = (options) => {
1371
+ const getShippingGroupsById = (options) => {
1260
1372
  return (options?.client ?? client).get({
1261
1373
  ...options,
1262
1374
  security: [
@@ -1265,7 +1377,23 @@ const getPlan = (options) => {
1265
1377
  type: "http"
1266
1378
  }
1267
1379
  ],
1268
- url: "/v2/subscriptions/plans/{plan_uuid}"
1380
+ url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
1381
+ });
1382
+ };
1383
+ const putShippingGroupById = (options) => {
1384
+ return (options?.client ?? client).put({
1385
+ ...options,
1386
+ headers: {
1387
+ "Content-Type": "application/json",
1388
+ ...options?.headers
1389
+ },
1390
+ security: [
1391
+ {
1392
+ scheme: "bearer",
1393
+ type: "http"
1394
+ }
1395
+ ],
1396
+ url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
1269
1397
  });
1270
1398
  };
1271
1399
  const listOfferings = (options) => {
@@ -1277,6 +1405,12 @@ const listOfferings = (options) => {
1277
1405
  type: "http"
1278
1406
  }
1279
1407
  ],
1408
+ querySerializer: {
1409
+ array: {
1410
+ explode: false,
1411
+ style: "form"
1412
+ }
1413
+ },
1280
1414
  url: "/v2/subscriptions/offerings"
1281
1415
  });
1282
1416
  };
@@ -1289,10 +1423,16 @@ const getOffering = (options) => {
1289
1423
  type: "http"
1290
1424
  }
1291
1425
  ],
1426
+ querySerializer: {
1427
+ array: {
1428
+ explode: false,
1429
+ style: "form"
1430
+ }
1431
+ },
1292
1432
  url: "/v2/subscriptions/offerings/{offering_uuid}"
1293
1433
  });
1294
1434
  };
1295
- const listOfferingPlans = (options) => {
1435
+ const listOfferingPricingOptions = (options) => {
1296
1436
  return (options?.client ?? client).get({
1297
1437
  ...options,
1298
1438
  security: [
@@ -1301,7 +1441,7 @@ const listOfferingPlans = (options) => {
1301
1441
  type: "http"
1302
1442
  }
1303
1443
  ],
1304
- url: "/v2/subscriptions/offerings/{offering_uuid}/plans"
1444
+ url: "/v2/subscriptions/offerings/{offering_uuid}/pricing-options"
1305
1445
  });
1306
1446
  };
1307
1447
  const listOfferingFeatures = (options) => {
@@ -1316,7 +1456,19 @@ const listOfferingFeatures = (options) => {
1316
1456
  url: "/v2/subscriptions/offerings/{offering_uuid}/features"
1317
1457
  });
1318
1458
  };
1319
- const listOfferingProducts = (options) => {
1459
+ const listOfferingPlans = (options) => {
1460
+ return (options?.client ?? client).get({
1461
+ ...options,
1462
+ security: [
1463
+ {
1464
+ scheme: "bearer",
1465
+ type: "http"
1466
+ }
1467
+ ],
1468
+ url: "/v2/subscriptions/offerings/{offering_uuid}/plans"
1469
+ });
1470
+ };
1471
+ const listOfferingPlanPricingOptions = (options) => {
1320
1472
  return (options?.client ?? client).get({
1321
1473
  ...options,
1322
1474
  security: [
@@ -1325,7 +1477,7 @@ const listOfferingProducts = (options) => {
1325
1477
  type: "http"
1326
1478
  }
1327
1479
  ],
1328
- url: "/v2/subscriptions/offerings/{offering_uuid}/products"
1480
+ url: "/v2/subscriptions/offerings/{offering_uuid}/plans/{plan_uuid}/relationships/pricing_options"
1329
1481
  });
1330
1482
  };
1331
1483
  const listSubscriptions = (options) => {
@@ -1337,6 +1489,12 @@ const listSubscriptions = (options) => {
1337
1489
  type: "http"
1338
1490
  }
1339
1491
  ],
1492
+ querySerializer: {
1493
+ array: {
1494
+ explode: false,
1495
+ style: "form"
1496
+ }
1497
+ },
1340
1498
  url: "/v2/subscriptions/subscriptions"
1341
1499
  });
1342
1500
  };
@@ -1349,10 +1507,16 @@ const getSubscription = (options) => {
1349
1507
  type: "http"
1350
1508
  }
1351
1509
  ],
1510
+ querySerializer: {
1511
+ array: {
1512
+ explode: false,
1513
+ style: "form"
1514
+ }
1515
+ },
1352
1516
  url: "/v2/subscriptions/subscriptions/{subscription_uuid}"
1353
1517
  });
1354
1518
  };
1355
- const listSubscriptionProducts = (options) => {
1519
+ const listSubscriptionPlans = (options) => {
1356
1520
  return (options?.client ?? client).get({
1357
1521
  ...options,
1358
1522
  security: [
@@ -1361,10 +1525,10 @@ const listSubscriptionProducts = (options) => {
1361
1525
  type: "http"
1362
1526
  }
1363
1527
  ],
1364
- url: "/v2/subscriptions/subscriptions/{subscription_uuid}/products"
1528
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans"
1365
1529
  });
1366
1530
  };
1367
- const listSubscriptionPlans = (options) => {
1531
+ const listSubscriptionPricingOptions = (options) => {
1368
1532
  return (options?.client ?? client).get({
1369
1533
  ...options,
1370
1534
  security: [
@@ -1373,7 +1537,7 @@ const listSubscriptionPlans = (options) => {
1373
1537
  type: "http"
1374
1538
  }
1375
1539
  ],
1376
- url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans"
1540
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/pricing-options"
1377
1541
  });
1378
1542
  };
1379
1543
  const listSubscriptionStates = (options) => {
@@ -1789,6 +1953,7 @@ export {
1789
1953
  checkoutApi,
1790
1954
  client,
1791
1955
  configureByContextProduct,
1956
+ confirmOrder,
1792
1957
  confirmPayment,
1793
1958
  createACart,
1794
1959
  createAccountCartAssociation,
@@ -1797,13 +1962,16 @@ export {
1797
1962
  createCatalog,
1798
1963
  createCustomerCartAssociation,
1799
1964
  createOneTimePasswordTokenRequest,
1965
+ createOrderShippingGroup,
1800
1966
  createRule,
1967
+ createShippingGroup,
1801
1968
  deleteACart,
1802
1969
  deleteACartItem,
1803
1970
  deleteAPromotionViaPromotionCode,
1804
1971
  deleteATaxItem,
1805
1972
  deleteAccountCartAssociation,
1806
1973
  deleteAllCartItems,
1974
+ deleteCartShippingGroup,
1807
1975
  deleteCatalogById,
1808
1976
  deleteCustomDiscountFromCart,
1809
1977
  deleteCustomDiscountFromCartItem,
@@ -1812,6 +1980,7 @@ export {
1812
1980
  deleteReleases,
1813
1981
  deleteRuleById,
1814
1982
  deleteV2AccountAddress,
1983
+ getACart,
1815
1984
  getACurrency,
1816
1985
  getAFile,
1817
1986
  getATransaction,
@@ -1837,7 +2006,6 @@ export {
1837
2006
  getByContextProductsForHierarchy,
1838
2007
  getByContextProductsForNode,
1839
2008
  getByContextRelease,
1840
- getCart,
1841
2009
  getCartItems,
1842
2010
  getCarts,
1843
2011
  getCatalogById,
@@ -1854,8 +2022,8 @@ export {
1854
2022
  getNode,
1855
2023
  getOffering,
1856
2024
  getOrderItems,
2025
+ getOrderShippingGroups,
1857
2026
  getOrderTransactions,
1858
- getPlan,
1859
2027
  getProduct,
1860
2028
  getProductsForHierarchy,
1861
2029
  getProductsForNode,
@@ -1863,11 +2031,13 @@ export {
1863
2031
  getReleases,
1864
2032
  getRuleById,
1865
2033
  getRules,
2034
+ getShippingGroupById,
2035
+ getShippingGroups,
2036
+ getShippingGroupsById,
1866
2037
  getStock,
1867
2038
  getSubscription,
1868
2039
  getSubscriptionInvoice,
1869
2040
  getSubscriptionInvoicePayment,
1870
- getSubscriptionProduct,
1871
2041
  getSubscriptionState,
1872
2042
  getV2AccountAddress,
1873
2043
  getV2AccountAddresses,
@@ -1879,13 +2049,14 @@ export {
1879
2049
  listInvoices,
1880
2050
  listLocations,
1881
2051
  listOfferingFeatures,
2052
+ listOfferingPlanPricingOptions,
1882
2053
  listOfferingPlans,
1883
- listOfferingProducts,
2054
+ listOfferingPricingOptions,
1884
2055
  listOfferings,
1885
2056
  listSubscriptionInvoicePayments,
1886
2057
  listSubscriptionInvoices,
1887
2058
  listSubscriptionPlans,
1888
- listSubscriptionProducts,
2059
+ listSubscriptionPricingOptions,
1889
2060
  listSubscriptionStates,
1890
2061
  listSubscriptions,
1891
2062
  manageCarts,
@@ -1894,6 +2065,7 @@ export {
1894
2065
  postV2AccountMembersTokens,
1895
2066
  postV2Accounts,
1896
2067
  publishRelease,
2068
+ putShippingGroupById,
1897
2069
  putV2AccountAddress,
1898
2070
  putV2AccountsAccountId,
1899
2071
  refundATransaction,
@@ -1901,10 +2073,12 @@ export {
1901
2073
  updateACartItem,
1902
2074
  updateATaxItem,
1903
2075
  updateAnOrder,
2076
+ updateCartPaymentIntent,
1904
2077
  updateCatalog,
1905
2078
  updateCustomDiscountForCart,
1906
2079
  updateCustomDiscountForCartItem,
1907
2080
  updatePasswordProfileInfo,
1908
- updateRule
2081
+ updateRule,
2082
+ updateShippingGroup
1909
2083
  };
1910
2084
  //# sourceMappingURL=sdk.gen.mjs.map