@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.
@@ -31,6 +31,7 @@ __export(sdk_gen_exports, {
31
31
  checkoutApi: () => checkoutApi,
32
32
  client: () => client,
33
33
  configureByContextProduct: () => configureByContextProduct,
34
+ confirmOrder: () => confirmOrder,
34
35
  confirmPayment: () => confirmPayment,
35
36
  createACart: () => createACart,
36
37
  createAccountCartAssociation: () => createAccountCartAssociation,
@@ -39,13 +40,16 @@ __export(sdk_gen_exports, {
39
40
  createCatalog: () => createCatalog,
40
41
  createCustomerCartAssociation: () => createCustomerCartAssociation,
41
42
  createOneTimePasswordTokenRequest: () => createOneTimePasswordTokenRequest,
43
+ createOrderShippingGroup: () => createOrderShippingGroup,
42
44
  createRule: () => createRule,
45
+ createShippingGroup: () => createShippingGroup,
43
46
  deleteACart: () => deleteACart,
44
47
  deleteACartItem: () => deleteACartItem,
45
48
  deleteAPromotionViaPromotionCode: () => deleteAPromotionViaPromotionCode,
46
49
  deleteATaxItem: () => deleteATaxItem,
47
50
  deleteAccountCartAssociation: () => deleteAccountCartAssociation,
48
51
  deleteAllCartItems: () => deleteAllCartItems,
52
+ deleteCartShippingGroup: () => deleteCartShippingGroup,
49
53
  deleteCatalogById: () => deleteCatalogById,
50
54
  deleteCustomDiscountFromCart: () => deleteCustomDiscountFromCart,
51
55
  deleteCustomDiscountFromCartItem: () => deleteCustomDiscountFromCartItem,
@@ -54,6 +58,7 @@ __export(sdk_gen_exports, {
54
58
  deleteReleases: () => deleteReleases,
55
59
  deleteRuleById: () => deleteRuleById,
56
60
  deleteV2AccountAddress: () => deleteV2AccountAddress,
61
+ getACart: () => getACart,
57
62
  getACurrency: () => getACurrency,
58
63
  getAFile: () => getAFile,
59
64
  getATransaction: () => getATransaction,
@@ -79,7 +84,6 @@ __export(sdk_gen_exports, {
79
84
  getByContextProductsForHierarchy: () => getByContextProductsForHierarchy,
80
85
  getByContextProductsForNode: () => getByContextProductsForNode,
81
86
  getByContextRelease: () => getByContextRelease,
82
- getCart: () => getCart,
83
87
  getCartItems: () => getCartItems,
84
88
  getCarts: () => getCarts,
85
89
  getCatalogById: () => getCatalogById,
@@ -96,8 +100,8 @@ __export(sdk_gen_exports, {
96
100
  getNode: () => getNode,
97
101
  getOffering: () => getOffering,
98
102
  getOrderItems: () => getOrderItems,
103
+ getOrderShippingGroups: () => getOrderShippingGroups,
99
104
  getOrderTransactions: () => getOrderTransactions,
100
- getPlan: () => getPlan,
101
105
  getProduct: () => getProduct,
102
106
  getProductsForHierarchy: () => getProductsForHierarchy,
103
107
  getProductsForNode: () => getProductsForNode,
@@ -105,11 +109,13 @@ __export(sdk_gen_exports, {
105
109
  getReleases: () => getReleases,
106
110
  getRuleById: () => getRuleById,
107
111
  getRules: () => getRules,
112
+ getShippingGroupById: () => getShippingGroupById,
113
+ getShippingGroups: () => getShippingGroups,
114
+ getShippingGroupsById: () => getShippingGroupsById,
108
115
  getStock: () => getStock,
109
116
  getSubscription: () => getSubscription,
110
117
  getSubscriptionInvoice: () => getSubscriptionInvoice,
111
118
  getSubscriptionInvoicePayment: () => getSubscriptionInvoicePayment,
112
- getSubscriptionProduct: () => getSubscriptionProduct,
113
119
  getSubscriptionState: () => getSubscriptionState,
114
120
  getV2AccountAddress: () => getV2AccountAddress,
115
121
  getV2AccountAddresses: () => getV2AccountAddresses,
@@ -121,13 +127,14 @@ __export(sdk_gen_exports, {
121
127
  listInvoices: () => listInvoices,
122
128
  listLocations: () => listLocations,
123
129
  listOfferingFeatures: () => listOfferingFeatures,
130
+ listOfferingPlanPricingOptions: () => listOfferingPlanPricingOptions,
124
131
  listOfferingPlans: () => listOfferingPlans,
125
- listOfferingProducts: () => listOfferingProducts,
132
+ listOfferingPricingOptions: () => listOfferingPricingOptions,
126
133
  listOfferings: () => listOfferings,
127
134
  listSubscriptionInvoicePayments: () => listSubscriptionInvoicePayments,
128
135
  listSubscriptionInvoices: () => listSubscriptionInvoices,
129
136
  listSubscriptionPlans: () => listSubscriptionPlans,
130
- listSubscriptionProducts: () => listSubscriptionProducts,
137
+ listSubscriptionPricingOptions: () => listSubscriptionPricingOptions,
131
138
  listSubscriptionStates: () => listSubscriptionStates,
132
139
  listSubscriptions: () => listSubscriptions,
133
140
  manageCarts: () => manageCarts,
@@ -136,6 +143,7 @@ __export(sdk_gen_exports, {
136
143
  postV2AccountMembersTokens: () => postV2AccountMembersTokens,
137
144
  postV2Accounts: () => postV2Accounts,
138
145
  publishRelease: () => publishRelease,
146
+ putShippingGroupById: () => putShippingGroupById,
139
147
  putV2AccountAddress: () => putV2AccountAddress,
140
148
  putV2AccountsAccountId: () => putV2AccountsAccountId,
141
149
  refundATransaction: () => refundATransaction,
@@ -143,11 +151,13 @@ __export(sdk_gen_exports, {
143
151
  updateACartItem: () => updateACartItem,
144
152
  updateATaxItem: () => updateATaxItem,
145
153
  updateAnOrder: () => updateAnOrder,
154
+ updateCartPaymentIntent: () => updateCartPaymentIntent,
146
155
  updateCatalog: () => updateCatalog,
147
156
  updateCustomDiscountForCart: () => updateCustomDiscountForCart,
148
157
  updateCustomDiscountForCartItem: () => updateCustomDiscountForCartItem,
149
158
  updatePasswordProfileInfo: () => updatePasswordProfileInfo,
150
- updateRule: () => updateRule
159
+ updateRule: () => updateRule,
160
+ updateShippingGroup: () => updateShippingGroup
151
161
  });
152
162
  module.exports = __toCommonJS(sdk_gen_exports);
153
163
  var import_client_fetch = require("@hey-api/client-fetch");
@@ -828,7 +838,7 @@ const deleteACart = (options) => {
828
838
  url: "/v2/carts/{cartID}"
829
839
  });
830
840
  };
831
- const getCart = (options) => {
841
+ const getACart = (options) => {
832
842
  return (options?.client ?? client).get({
833
843
  ...options,
834
844
  security: [
@@ -1188,6 +1198,74 @@ const updateCustomDiscountForCartItem = (options) => {
1188
1198
  url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
1189
1199
  });
1190
1200
  };
1201
+ const getShippingGroups = (options) => {
1202
+ return (options?.client ?? client).get({
1203
+ ...options,
1204
+ security: [
1205
+ {
1206
+ scheme: "bearer",
1207
+ type: "http"
1208
+ }
1209
+ ],
1210
+ url: "/v2/carts/{cartID}/shipping-groups"
1211
+ });
1212
+ };
1213
+ const createShippingGroup = (options) => {
1214
+ return (options?.client ?? client).post({
1215
+ ...options,
1216
+ headers: {
1217
+ "Content-Type": "application/json",
1218
+ ...options?.headers
1219
+ },
1220
+ security: [
1221
+ {
1222
+ scheme: "bearer",
1223
+ type: "http"
1224
+ }
1225
+ ],
1226
+ url: "/v2/carts/{cartID}/shipping-groups"
1227
+ });
1228
+ };
1229
+ const deleteCartShippingGroup = (options) => {
1230
+ return (options?.client ?? client).delete({
1231
+ ...options,
1232
+ security: [
1233
+ {
1234
+ scheme: "bearer",
1235
+ type: "http"
1236
+ }
1237
+ ],
1238
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
1239
+ });
1240
+ };
1241
+ const getShippingGroupById = (options) => {
1242
+ return (options?.client ?? client).get({
1243
+ ...options,
1244
+ security: [
1245
+ {
1246
+ scheme: "bearer",
1247
+ type: "http"
1248
+ }
1249
+ ],
1250
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
1251
+ });
1252
+ };
1253
+ const updateShippingGroup = (options) => {
1254
+ return (options?.client ?? client).put({
1255
+ ...options,
1256
+ headers: {
1257
+ "Content-Type": "application/json",
1258
+ ...options?.headers
1259
+ },
1260
+ security: [
1261
+ {
1262
+ scheme: "bearer",
1263
+ type: "http"
1264
+ }
1265
+ ],
1266
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
1267
+ });
1268
+ };
1191
1269
  const createCartPaymentIntent = (options) => {
1192
1270
  return (options?.client ?? client).post({
1193
1271
  ...options,
@@ -1204,6 +1282,22 @@ const createCartPaymentIntent = (options) => {
1204
1282
  url: "/v2/carts/{cartID}/payments"
1205
1283
  });
1206
1284
  };
1285
+ const updateCartPaymentIntent = (options) => {
1286
+ return (options?.client ?? client).put({
1287
+ ...options,
1288
+ headers: {
1289
+ "Content-Type": "application/json",
1290
+ ...options?.headers
1291
+ },
1292
+ security: [
1293
+ {
1294
+ scheme: "bearer",
1295
+ type: "http"
1296
+ }
1297
+ ],
1298
+ url: "/v2/carts/{cartID}/payments/{paymentIntentID}"
1299
+ });
1300
+ };
1207
1301
  const checkoutApi = (options) => {
1208
1302
  return (options?.client ?? client).post({
1209
1303
  ...options,
@@ -1288,6 +1382,18 @@ const anonymizeOrders = (options) => {
1288
1382
  url: "/v2/orders/anonymize"
1289
1383
  });
1290
1384
  };
1385
+ const confirmOrder = (options) => {
1386
+ return (options?.client ?? client).post({
1387
+ ...options,
1388
+ security: [
1389
+ {
1390
+ scheme: "bearer",
1391
+ type: "http"
1392
+ }
1393
+ ],
1394
+ url: "/v2/orders/{orderID}/confirm"
1395
+ });
1396
+ };
1291
1397
  const paymentSetup = (options) => {
1292
1398
  return (options?.client ?? client).post({
1293
1399
  ...options,
@@ -1392,7 +1498,7 @@ const cancelATransaction = (options) => {
1392
1498
  url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
1393
1499
  });
1394
1500
  };
1395
- const getSubscriptionProduct = (options) => {
1501
+ const getOrderShippingGroups = (options) => {
1396
1502
  return (options?.client ?? client).get({
1397
1503
  ...options,
1398
1504
  security: [
@@ -1401,10 +1507,26 @@ const getSubscriptionProduct = (options) => {
1401
1507
  type: "http"
1402
1508
  }
1403
1509
  ],
1404
- url: "/v2/subscriptions/products/{product_uuid}"
1510
+ url: "/v2/orders/{orderID}/shipping-groups"
1511
+ });
1512
+ };
1513
+ const createOrderShippingGroup = (options) => {
1514
+ return (options?.client ?? client).post({
1515
+ ...options,
1516
+ headers: {
1517
+ "Content-Type": "application/json",
1518
+ ...options?.headers
1519
+ },
1520
+ security: [
1521
+ {
1522
+ scheme: "bearer",
1523
+ type: "http"
1524
+ }
1525
+ ],
1526
+ url: "/v2/orders/{orderID}/shipping-groups"
1405
1527
  });
1406
1528
  };
1407
- const getPlan = (options) => {
1529
+ const getShippingGroupsById = (options) => {
1408
1530
  return (options?.client ?? client).get({
1409
1531
  ...options,
1410
1532
  security: [
@@ -1413,7 +1535,23 @@ const getPlan = (options) => {
1413
1535
  type: "http"
1414
1536
  }
1415
1537
  ],
1416
- url: "/v2/subscriptions/plans/{plan_uuid}"
1538
+ url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
1539
+ });
1540
+ };
1541
+ const putShippingGroupById = (options) => {
1542
+ return (options?.client ?? client).put({
1543
+ ...options,
1544
+ headers: {
1545
+ "Content-Type": "application/json",
1546
+ ...options?.headers
1547
+ },
1548
+ security: [
1549
+ {
1550
+ scheme: "bearer",
1551
+ type: "http"
1552
+ }
1553
+ ],
1554
+ url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
1417
1555
  });
1418
1556
  };
1419
1557
  const listOfferings = (options) => {
@@ -1425,6 +1563,12 @@ const listOfferings = (options) => {
1425
1563
  type: "http"
1426
1564
  }
1427
1565
  ],
1566
+ querySerializer: {
1567
+ array: {
1568
+ explode: false,
1569
+ style: "form"
1570
+ }
1571
+ },
1428
1572
  url: "/v2/subscriptions/offerings"
1429
1573
  });
1430
1574
  };
@@ -1437,10 +1581,16 @@ const getOffering = (options) => {
1437
1581
  type: "http"
1438
1582
  }
1439
1583
  ],
1584
+ querySerializer: {
1585
+ array: {
1586
+ explode: false,
1587
+ style: "form"
1588
+ }
1589
+ },
1440
1590
  url: "/v2/subscriptions/offerings/{offering_uuid}"
1441
1591
  });
1442
1592
  };
1443
- const listOfferingPlans = (options) => {
1593
+ const listOfferingPricingOptions = (options) => {
1444
1594
  return (options?.client ?? client).get({
1445
1595
  ...options,
1446
1596
  security: [
@@ -1449,7 +1599,7 @@ const listOfferingPlans = (options) => {
1449
1599
  type: "http"
1450
1600
  }
1451
1601
  ],
1452
- url: "/v2/subscriptions/offerings/{offering_uuid}/plans"
1602
+ url: "/v2/subscriptions/offerings/{offering_uuid}/pricing-options"
1453
1603
  });
1454
1604
  };
1455
1605
  const listOfferingFeatures = (options) => {
@@ -1464,7 +1614,19 @@ const listOfferingFeatures = (options) => {
1464
1614
  url: "/v2/subscriptions/offerings/{offering_uuid}/features"
1465
1615
  });
1466
1616
  };
1467
- const listOfferingProducts = (options) => {
1617
+ const listOfferingPlans = (options) => {
1618
+ return (options?.client ?? client).get({
1619
+ ...options,
1620
+ security: [
1621
+ {
1622
+ scheme: "bearer",
1623
+ type: "http"
1624
+ }
1625
+ ],
1626
+ url: "/v2/subscriptions/offerings/{offering_uuid}/plans"
1627
+ });
1628
+ };
1629
+ const listOfferingPlanPricingOptions = (options) => {
1468
1630
  return (options?.client ?? client).get({
1469
1631
  ...options,
1470
1632
  security: [
@@ -1473,7 +1635,7 @@ const listOfferingProducts = (options) => {
1473
1635
  type: "http"
1474
1636
  }
1475
1637
  ],
1476
- url: "/v2/subscriptions/offerings/{offering_uuid}/products"
1638
+ url: "/v2/subscriptions/offerings/{offering_uuid}/plans/{plan_uuid}/relationships/pricing_options"
1477
1639
  });
1478
1640
  };
1479
1641
  const listSubscriptions = (options) => {
@@ -1485,6 +1647,12 @@ const listSubscriptions = (options) => {
1485
1647
  type: "http"
1486
1648
  }
1487
1649
  ],
1650
+ querySerializer: {
1651
+ array: {
1652
+ explode: false,
1653
+ style: "form"
1654
+ }
1655
+ },
1488
1656
  url: "/v2/subscriptions/subscriptions"
1489
1657
  });
1490
1658
  };
@@ -1497,10 +1665,16 @@ const getSubscription = (options) => {
1497
1665
  type: "http"
1498
1666
  }
1499
1667
  ],
1668
+ querySerializer: {
1669
+ array: {
1670
+ explode: false,
1671
+ style: "form"
1672
+ }
1673
+ },
1500
1674
  url: "/v2/subscriptions/subscriptions/{subscription_uuid}"
1501
1675
  });
1502
1676
  };
1503
- const listSubscriptionProducts = (options) => {
1677
+ const listSubscriptionPlans = (options) => {
1504
1678
  return (options?.client ?? client).get({
1505
1679
  ...options,
1506
1680
  security: [
@@ -1509,10 +1683,10 @@ const listSubscriptionProducts = (options) => {
1509
1683
  type: "http"
1510
1684
  }
1511
1685
  ],
1512
- url: "/v2/subscriptions/subscriptions/{subscription_uuid}/products"
1686
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans"
1513
1687
  });
1514
1688
  };
1515
- const listSubscriptionPlans = (options) => {
1689
+ const listSubscriptionPricingOptions = (options) => {
1516
1690
  return (options?.client ?? client).get({
1517
1691
  ...options,
1518
1692
  security: [
@@ -1521,7 +1695,7 @@ const listSubscriptionPlans = (options) => {
1521
1695
  type: "http"
1522
1696
  }
1523
1697
  ],
1524
- url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans"
1698
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/pricing-options"
1525
1699
  });
1526
1700
  };
1527
1701
  const listSubscriptionStates = (options) => {
@@ -1938,6 +2112,7 @@ const getAFile = (options) => {
1938
2112
  checkoutApi,
1939
2113
  client,
1940
2114
  configureByContextProduct,
2115
+ confirmOrder,
1941
2116
  confirmPayment,
1942
2117
  createACart,
1943
2118
  createAccountCartAssociation,
@@ -1946,13 +2121,16 @@ const getAFile = (options) => {
1946
2121
  createCatalog,
1947
2122
  createCustomerCartAssociation,
1948
2123
  createOneTimePasswordTokenRequest,
2124
+ createOrderShippingGroup,
1949
2125
  createRule,
2126
+ createShippingGroup,
1950
2127
  deleteACart,
1951
2128
  deleteACartItem,
1952
2129
  deleteAPromotionViaPromotionCode,
1953
2130
  deleteATaxItem,
1954
2131
  deleteAccountCartAssociation,
1955
2132
  deleteAllCartItems,
2133
+ deleteCartShippingGroup,
1956
2134
  deleteCatalogById,
1957
2135
  deleteCustomDiscountFromCart,
1958
2136
  deleteCustomDiscountFromCartItem,
@@ -1961,6 +2139,7 @@ const getAFile = (options) => {
1961
2139
  deleteReleases,
1962
2140
  deleteRuleById,
1963
2141
  deleteV2AccountAddress,
2142
+ getACart,
1964
2143
  getACurrency,
1965
2144
  getAFile,
1966
2145
  getATransaction,
@@ -1986,7 +2165,6 @@ const getAFile = (options) => {
1986
2165
  getByContextProductsForHierarchy,
1987
2166
  getByContextProductsForNode,
1988
2167
  getByContextRelease,
1989
- getCart,
1990
2168
  getCartItems,
1991
2169
  getCarts,
1992
2170
  getCatalogById,
@@ -2003,8 +2181,8 @@ const getAFile = (options) => {
2003
2181
  getNode,
2004
2182
  getOffering,
2005
2183
  getOrderItems,
2184
+ getOrderShippingGroups,
2006
2185
  getOrderTransactions,
2007
- getPlan,
2008
2186
  getProduct,
2009
2187
  getProductsForHierarchy,
2010
2188
  getProductsForNode,
@@ -2012,11 +2190,13 @@ const getAFile = (options) => {
2012
2190
  getReleases,
2013
2191
  getRuleById,
2014
2192
  getRules,
2193
+ getShippingGroupById,
2194
+ getShippingGroups,
2195
+ getShippingGroupsById,
2015
2196
  getStock,
2016
2197
  getSubscription,
2017
2198
  getSubscriptionInvoice,
2018
2199
  getSubscriptionInvoicePayment,
2019
- getSubscriptionProduct,
2020
2200
  getSubscriptionState,
2021
2201
  getV2AccountAddress,
2022
2202
  getV2AccountAddresses,
@@ -2028,13 +2208,14 @@ const getAFile = (options) => {
2028
2208
  listInvoices,
2029
2209
  listLocations,
2030
2210
  listOfferingFeatures,
2211
+ listOfferingPlanPricingOptions,
2031
2212
  listOfferingPlans,
2032
- listOfferingProducts,
2213
+ listOfferingPricingOptions,
2033
2214
  listOfferings,
2034
2215
  listSubscriptionInvoicePayments,
2035
2216
  listSubscriptionInvoices,
2036
2217
  listSubscriptionPlans,
2037
- listSubscriptionProducts,
2218
+ listSubscriptionPricingOptions,
2038
2219
  listSubscriptionStates,
2039
2220
  listSubscriptions,
2040
2221
  manageCarts,
@@ -2043,6 +2224,7 @@ const getAFile = (options) => {
2043
2224
  postV2AccountMembersTokens,
2044
2225
  postV2Accounts,
2045
2226
  publishRelease,
2227
+ putShippingGroupById,
2046
2228
  putV2AccountAddress,
2047
2229
  putV2AccountsAccountId,
2048
2230
  refundATransaction,
@@ -2050,10 +2232,12 @@ const getAFile = (options) => {
2050
2232
  updateACartItem,
2051
2233
  updateATaxItem,
2052
2234
  updateAnOrder,
2235
+ updateCartPaymentIntent,
2053
2236
  updateCatalog,
2054
2237
  updateCustomDiscountForCart,
2055
2238
  updateCustomDiscountForCartItem,
2056
2239
  updatePasswordProfileInfo,
2057
- updateRule
2240
+ updateRule,
2241
+ updateShippingGroup
2058
2242
  });
2059
2243
  //# sourceMappingURL=sdk.gen.cjs.map