@wix/auto_sdk_ecom_cart-v-2 1.0.0 → 1.0.1

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +134 -147
  2. package/build/cjs/index.js +83 -90
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +71 -78
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +110 -127
  8. package/build/cjs/meta.js +50 -50
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +134 -147
  11. package/build/es/index.mjs +82 -88
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +70 -76
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +110 -127
  17. package/build/es/meta.mjs +49 -49
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +34 -32
  20. package/build/internal/cjs/index.js +83 -90
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +171 -182
  23. package/build/internal/cjs/index.typings.js +71 -78
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +110 -127
  26. package/build/internal/cjs/meta.js +50 -50
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +34 -32
  29. package/build/internal/es/index.mjs +82 -88
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +171 -182
  32. package/build/internal/es/index.typings.mjs +70 -76
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +110 -127
  35. package/build/internal/es/meta.mjs +49 -49
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
package/build/cjs/meta.js CHANGED
@@ -24,13 +24,13 @@ __export(meta_exports, {
24
24
  addGiftCard: () => addGiftCard2,
25
25
  addLineItems: () => addLineItems2,
26
26
  calculateCart: () => calculateCart2,
27
- completeCheckout: () => completeCheckout2,
28
27
  createCart: () => createCart2,
29
28
  deleteCart: () => deleteCart2,
30
29
  getCart: () => getCart2,
31
30
  getCheckoutUrl: () => getCheckoutUrl2,
32
31
  handleAsyncCheckoutCompletion: () => handleAsyncCheckoutCompletion2,
33
32
  markCartAsCompleted: () => markCartAsCompleted2,
33
+ placeOrder: () => placeOrder2,
34
34
  refreshCart: () => refreshCart2,
35
35
  removeDiscount: () => removeDiscount2,
36
36
  removeGiftCard: () => removeGiftCard2,
@@ -502,15 +502,15 @@ function getCheckoutUrl(payload) {
502
502
  }
503
503
  return __getCheckoutUrl;
504
504
  }
505
- function completeCheckout(payload) {
506
- function __completeCheckout({ host }) {
505
+ function placeOrder(payload) {
506
+ function __placeOrder({ host }) {
507
507
  const metadata = {
508
508
  entityFqdn: "wix.ecom.v2.cart",
509
509
  method: "POST",
510
- methodFqn: "wix.ecom.cart.v2.CartService.CompleteCheckout",
510
+ methodFqn: "wix.ecom.cart.v2.CartService.PlaceOrder",
511
511
  packageName: PACKAGE_NAME,
512
512
  url: resolveWixEcomCartV2CartServiceUrl({
513
- protoPath: "/v2/carts/{cartId}/complete-checkout",
513
+ protoPath: "/v2/carts/{cartId}/place-order",
514
514
  data: payload,
515
515
  host
516
516
  }),
@@ -518,7 +518,7 @@ function completeCheckout(payload) {
518
518
  };
519
519
  return metadata;
520
520
  }
521
- return __completeCheckout;
521
+ return __placeOrder;
522
522
  }
523
523
  function addLineItems(payload) {
524
524
  function __addLineItems({ host }) {
@@ -644,15 +644,15 @@ function removeLineItems(payload) {
644
644
  }
645
645
  return __removeLineItems;
646
646
  }
647
- function addDiscount(payload) {
648
- function __addDiscount({ host }) {
647
+ function updateLineItems(payload) {
648
+ function __updateLineItems({ host }) {
649
649
  const metadata = {
650
650
  entityFqdn: "wix.ecom.v2.cart",
651
651
  method: "POST",
652
- methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
652
+ methodFqn: "wix.ecom.cart.v2.CartService.UpdateLineItems",
653
653
  packageName: PACKAGE_NAME,
654
654
  url: resolveWixEcomCartV2CartServiceUrl({
655
- protoPath: "/v2/carts/{cartId}/add-discount",
655
+ protoPath: "/v2/carts/{cartId}/update-line-items",
656
656
  data: payload,
657
657
  host
658
658
  }),
@@ -692,17 +692,17 @@ function addDiscount(payload) {
692
692
  };
693
693
  return metadata;
694
694
  }
695
- return __addDiscount;
695
+ return __updateLineItems;
696
696
  }
697
- function removeDiscount(payload) {
698
- function __removeDiscount({ host }) {
697
+ function addDiscount(payload) {
698
+ function __addDiscount({ host }) {
699
699
  const metadata = {
700
700
  entityFqdn: "wix.ecom.v2.cart",
701
701
  method: "POST",
702
- methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
702
+ methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
703
703
  packageName: PACKAGE_NAME,
704
704
  url: resolveWixEcomCartV2CartServiceUrl({
705
- protoPath: "/v2/carts/{cartId}/remove-discount",
705
+ protoPath: "/v2/carts/{cartId}/add-discount",
706
706
  data: payload,
707
707
  host
708
708
  }),
@@ -742,17 +742,17 @@ function removeDiscount(payload) {
742
742
  };
743
743
  return metadata;
744
744
  }
745
- return __removeDiscount;
745
+ return __addDiscount;
746
746
  }
747
- function addGiftCard(payload) {
748
- function __addGiftCard({ host }) {
747
+ function removeDiscount(payload) {
748
+ function __removeDiscount({ host }) {
749
749
  const metadata = {
750
750
  entityFqdn: "wix.ecom.v2.cart",
751
751
  method: "POST",
752
- methodFqn: "wix.ecom.cart.v2.CartService.AddGiftCard",
752
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
753
753
  packageName: PACKAGE_NAME,
754
754
  url: resolveWixEcomCartV2CartServiceUrl({
755
- protoPath: "/v2/carts/{cartId}/add-gift-card",
755
+ protoPath: "/v2/carts/{cartId}/remove-discount",
756
756
  data: payload,
757
757
  host
758
758
  }),
@@ -792,17 +792,17 @@ function addGiftCard(payload) {
792
792
  };
793
793
  return metadata;
794
794
  }
795
- return __addGiftCard;
795
+ return __removeDiscount;
796
796
  }
797
- function removeGiftCard(payload) {
798
- function __removeGiftCard({ host }) {
797
+ function addGiftCard(payload) {
798
+ function __addGiftCard({ host }) {
799
799
  const metadata = {
800
800
  entityFqdn: "wix.ecom.v2.cart",
801
801
  method: "POST",
802
- methodFqn: "wix.ecom.cart.v2.CartService.RemoveGiftCard",
802
+ methodFqn: "wix.ecom.cart.v2.CartService.AddGiftCard",
803
803
  packageName: PACKAGE_NAME,
804
804
  url: resolveWixEcomCartV2CartServiceUrl({
805
- protoPath: "/v2/carts/{cartId}/remove-gift-card",
805
+ protoPath: "/v2/carts/{cartId}/add-gift-card",
806
806
  data: payload,
807
807
  host
808
808
  }),
@@ -842,17 +842,17 @@ function removeGiftCard(payload) {
842
842
  };
843
843
  return metadata;
844
844
  }
845
- return __removeGiftCard;
845
+ return __addGiftCard;
846
846
  }
847
- function updateLineItems(payload) {
848
- function __updateLineItems({ host }) {
847
+ function removeGiftCard(payload) {
848
+ function __removeGiftCard({ host }) {
849
849
  const metadata = {
850
850
  entityFqdn: "wix.ecom.v2.cart",
851
851
  method: "POST",
852
- methodFqn: "wix.ecom.cart.v2.CartService.UpdateLineItems",
852
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveGiftCard",
853
853
  packageName: PACKAGE_NAME,
854
854
  url: resolveWixEcomCartV2CartServiceUrl({
855
- protoPath: "/v2/carts/{cartId}/update-line-items",
855
+ protoPath: "/v2/carts/{cartId}/remove-gift-card",
856
856
  data: payload,
857
857
  host
858
858
  }),
@@ -892,7 +892,7 @@ function updateLineItems(payload) {
892
892
  };
893
893
  return metadata;
894
894
  }
895
- return __updateLineItems;
895
+ return __removeGiftCard;
896
896
  }
897
897
  function markCartAsCompleted(payload) {
898
898
  function __markCartAsCompleted({ host }) {
@@ -1096,9 +1096,9 @@ function getCheckoutUrl2() {
1096
1096
  __originalResponseType: null
1097
1097
  };
1098
1098
  }
1099
- function completeCheckout2() {
1099
+ function placeOrder2() {
1100
1100
  const payload = { cartId: ":cartId" };
1101
- const getRequestOptions = completeCheckout(payload);
1101
+ const getRequestOptions = placeOrder(payload);
1102
1102
  const getUrl = (context) => {
1103
1103
  const { url } = getRequestOptions(context);
1104
1104
  return url;
@@ -1106,7 +1106,7 @@ function completeCheckout2() {
1106
1106
  return {
1107
1107
  getUrl,
1108
1108
  httpMethod: "POST",
1109
- path: "/v2/carts/{cartId}/complete-checkout",
1109
+ path: "/v2/carts/{cartId}/place-order",
1110
1110
  pathParams: { cartId: "cartId" },
1111
1111
  __requestType: null,
1112
1112
  __originalRequestType: null,
@@ -1150,9 +1150,9 @@ function removeLineItems2() {
1150
1150
  __originalResponseType: null
1151
1151
  };
1152
1152
  }
1153
- function addDiscount2() {
1153
+ function updateLineItems2() {
1154
1154
  const payload = { cartId: ":cartId" };
1155
- const getRequestOptions = addDiscount(payload);
1155
+ const getRequestOptions = updateLineItems(payload);
1156
1156
  const getUrl = (context) => {
1157
1157
  const { url } = getRequestOptions(context);
1158
1158
  return url;
@@ -1160,7 +1160,7 @@ function addDiscount2() {
1160
1160
  return {
1161
1161
  getUrl,
1162
1162
  httpMethod: "POST",
1163
- path: "/v2/carts/{cartId}/add-discount",
1163
+ path: "/v2/carts/{cartId}/update-line-items",
1164
1164
  pathParams: { cartId: "cartId" },
1165
1165
  __requestType: null,
1166
1166
  __originalRequestType: null,
@@ -1168,9 +1168,9 @@ function addDiscount2() {
1168
1168
  __originalResponseType: null
1169
1169
  };
1170
1170
  }
1171
- function removeDiscount2() {
1171
+ function addDiscount2() {
1172
1172
  const payload = { cartId: ":cartId" };
1173
- const getRequestOptions = removeDiscount(payload);
1173
+ const getRequestOptions = addDiscount(payload);
1174
1174
  const getUrl = (context) => {
1175
1175
  const { url } = getRequestOptions(context);
1176
1176
  return url;
@@ -1178,7 +1178,7 @@ function removeDiscount2() {
1178
1178
  return {
1179
1179
  getUrl,
1180
1180
  httpMethod: "POST",
1181
- path: "/v2/carts/{cartId}/remove-discount",
1181
+ path: "/v2/carts/{cartId}/add-discount",
1182
1182
  pathParams: { cartId: "cartId" },
1183
1183
  __requestType: null,
1184
1184
  __originalRequestType: null,
@@ -1186,9 +1186,9 @@ function removeDiscount2() {
1186
1186
  __originalResponseType: null
1187
1187
  };
1188
1188
  }
1189
- function addGiftCard2() {
1189
+ function removeDiscount2() {
1190
1190
  const payload = { cartId: ":cartId" };
1191
- const getRequestOptions = addGiftCard(payload);
1191
+ const getRequestOptions = removeDiscount(payload);
1192
1192
  const getUrl = (context) => {
1193
1193
  const { url } = getRequestOptions(context);
1194
1194
  return url;
@@ -1196,7 +1196,7 @@ function addGiftCard2() {
1196
1196
  return {
1197
1197
  getUrl,
1198
1198
  httpMethod: "POST",
1199
- path: "/v2/carts/{cartId}/add-gift-card",
1199
+ path: "/v2/carts/{cartId}/remove-discount",
1200
1200
  pathParams: { cartId: "cartId" },
1201
1201
  __requestType: null,
1202
1202
  __originalRequestType: null,
@@ -1204,9 +1204,9 @@ function addGiftCard2() {
1204
1204
  __originalResponseType: null
1205
1205
  };
1206
1206
  }
1207
- function removeGiftCard2() {
1207
+ function addGiftCard2() {
1208
1208
  const payload = { cartId: ":cartId" };
1209
- const getRequestOptions = removeGiftCard(payload);
1209
+ const getRequestOptions = addGiftCard(payload);
1210
1210
  const getUrl = (context) => {
1211
1211
  const { url } = getRequestOptions(context);
1212
1212
  return url;
@@ -1214,7 +1214,7 @@ function removeGiftCard2() {
1214
1214
  return {
1215
1215
  getUrl,
1216
1216
  httpMethod: "POST",
1217
- path: "/v2/carts/{cartId}/remove-gift-card",
1217
+ path: "/v2/carts/{cartId}/add-gift-card",
1218
1218
  pathParams: { cartId: "cartId" },
1219
1219
  __requestType: null,
1220
1220
  __originalRequestType: null,
@@ -1222,9 +1222,9 @@ function removeGiftCard2() {
1222
1222
  __originalResponseType: null
1223
1223
  };
1224
1224
  }
1225
- function updateLineItems2() {
1225
+ function removeGiftCard2() {
1226
1226
  const payload = { cartId: ":cartId" };
1227
- const getRequestOptions = updateLineItems(payload);
1227
+ const getRequestOptions = removeGiftCard(payload);
1228
1228
  const getUrl = (context) => {
1229
1229
  const { url } = getRequestOptions(context);
1230
1230
  return url;
@@ -1232,7 +1232,7 @@ function updateLineItems2() {
1232
1232
  return {
1233
1233
  getUrl,
1234
1234
  httpMethod: "POST",
1235
- path: "/v2/carts/{cartId}/update-line-items",
1235
+ path: "/v2/carts/{cartId}/remove-gift-card",
1236
1236
  pathParams: { cartId: "cartId" },
1237
1237
  __requestType: null,
1238
1238
  __originalRequestType: null,
@@ -1282,13 +1282,13 @@ function handleAsyncCheckoutCompletion2() {
1282
1282
  addGiftCard,
1283
1283
  addLineItems,
1284
1284
  calculateCart,
1285
- completeCheckout,
1286
1285
  createCart,
1287
1286
  deleteCart,
1288
1287
  getCart,
1289
1288
  getCheckoutUrl,
1290
1289
  handleAsyncCheckoutCompletion,
1291
1290
  markCartAsCompleted,
1291
+ placeOrder,
1292
1292
  refreshCart,
1293
1293
  removeDiscount,
1294
1294
  removeGiftCard,