@epcc-sdk/sdks-shopper 0.0.33 → 0.0.35

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,6 +1340,62 @@ const cancelATransaction = (options) => {
1244
1340
  url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
1245
1341
  });
1246
1342
  };
1343
+ const getOrderShippingGroups = (options) => {
1344
+ return (options?.client ?? client).get({
1345
+ ...options,
1346
+ security: [
1347
+ {
1348
+ scheme: "bearer",
1349
+ type: "http"
1350
+ }
1351
+ ],
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"
1369
+ });
1370
+ };
1371
+ const getShippingGroupsById = (options) => {
1372
+ return (options?.client ?? client).get({
1373
+ ...options,
1374
+ security: [
1375
+ {
1376
+ scheme: "bearer",
1377
+ type: "http"
1378
+ }
1379
+ ],
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}"
1397
+ });
1398
+ };
1247
1399
  const listOfferings = (options) => {
1248
1400
  return (options?.client ?? client).get({
1249
1401
  ...options,
@@ -1400,6 +1552,22 @@ const listSubscriptionStates = (options) => {
1400
1552
  url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
1401
1553
  });
1402
1554
  };
1555
+ const createSubscriptionState = (options) => {
1556
+ return (options?.client ?? client).post({
1557
+ ...options,
1558
+ headers: {
1559
+ "Content-Type": "application/json",
1560
+ ...options?.headers
1561
+ },
1562
+ security: [
1563
+ {
1564
+ scheme: "bearer",
1565
+ type: "http"
1566
+ }
1567
+ ],
1568
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
1569
+ });
1570
+ };
1403
1571
  const getSubscriptionState = (options) => {
1404
1572
  return (options?.client ?? client).get({
1405
1573
  ...options,
@@ -1801,6 +1969,7 @@ export {
1801
1969
  checkoutApi,
1802
1970
  client,
1803
1971
  configureByContextProduct,
1972
+ confirmOrder,
1804
1973
  confirmPayment,
1805
1974
  createACart,
1806
1975
  createAccountCartAssociation,
@@ -1809,13 +1978,17 @@ export {
1809
1978
  createCatalog,
1810
1979
  createCustomerCartAssociation,
1811
1980
  createOneTimePasswordTokenRequest,
1981
+ createOrderShippingGroup,
1812
1982
  createRule,
1983
+ createShippingGroup,
1984
+ createSubscriptionState,
1813
1985
  deleteACart,
1814
1986
  deleteACartItem,
1815
1987
  deleteAPromotionViaPromotionCode,
1816
1988
  deleteATaxItem,
1817
1989
  deleteAccountCartAssociation,
1818
1990
  deleteAllCartItems,
1991
+ deleteCartShippingGroup,
1819
1992
  deleteCatalogById,
1820
1993
  deleteCustomDiscountFromCart,
1821
1994
  deleteCustomDiscountFromCartItem,
@@ -1824,6 +1997,7 @@ export {
1824
1997
  deleteReleases,
1825
1998
  deleteRuleById,
1826
1999
  deleteV2AccountAddress,
2000
+ getACart,
1827
2001
  getACurrency,
1828
2002
  getAFile,
1829
2003
  getATransaction,
@@ -1849,7 +2023,6 @@ export {
1849
2023
  getByContextProductsForHierarchy,
1850
2024
  getByContextProductsForNode,
1851
2025
  getByContextRelease,
1852
- getCart,
1853
2026
  getCartItems,
1854
2027
  getCarts,
1855
2028
  getCatalogById,
@@ -1866,6 +2039,7 @@ export {
1866
2039
  getNode,
1867
2040
  getOffering,
1868
2041
  getOrderItems,
2042
+ getOrderShippingGroups,
1869
2043
  getOrderTransactions,
1870
2044
  getProduct,
1871
2045
  getProductsForHierarchy,
@@ -1874,6 +2048,9 @@ export {
1874
2048
  getReleases,
1875
2049
  getRuleById,
1876
2050
  getRules,
2051
+ getShippingGroupById,
2052
+ getShippingGroups,
2053
+ getShippingGroupsById,
1877
2054
  getStock,
1878
2055
  getSubscription,
1879
2056
  getSubscriptionInvoice,
@@ -1905,6 +2082,7 @@ export {
1905
2082
  postV2AccountMembersTokens,
1906
2083
  postV2Accounts,
1907
2084
  publishRelease,
2085
+ putShippingGroupById,
1908
2086
  putV2AccountAddress,
1909
2087
  putV2AccountsAccountId,
1910
2088
  refundATransaction,
@@ -1912,10 +2090,12 @@ export {
1912
2090
  updateACartItem,
1913
2091
  updateATaxItem,
1914
2092
  updateAnOrder,
2093
+ updateCartPaymentIntent,
1915
2094
  updateCatalog,
1916
2095
  updateCustomDiscountForCart,
1917
2096
  updateCustomDiscountForCartItem,
1918
2097
  updatePasswordProfileInfo,
1919
- updateRule
2098
+ updateRule,
2099
+ updateShippingGroup
1920
2100
  };
1921
2101
  //# sourceMappingURL=sdk.gen.mjs.map