@wix/auto_sdk_ecom_cart-v-2 1.0.49 → 1.0.51

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 +53 -21
  2. package/build/cjs/index.js +147 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +978 -79
  5. package/build/cjs/index.typings.js +138 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +915 -62
  8. package/build/cjs/meta.js +106 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +53 -21
  11. package/build/es/index.mjs +143 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +978 -79
  14. package/build/es/index.typings.mjs +134 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +915 -62
  17. package/build/es/meta.mjs +102 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +53 -21
  20. package/build/internal/cjs/index.js +147 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +978 -79
  23. package/build/internal/cjs/index.typings.js +138 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +915 -62
  26. package/build/internal/cjs/meta.js +106 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +53 -21
  29. package/build/internal/es/index.mjs +143 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +978 -79
  32. package/build/internal/es/index.typings.mjs +134 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +915 -62
  35. package/build/internal/es/meta.mjs +102 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -30,6 +30,8 @@ __export(meta_exports, {
30
30
  DiscountTypeOriginal: () => DiscountType,
31
31
  FallbackReasonOriginal: () => FallbackReason,
32
32
  FileTypeOriginal: () => FileType,
33
+ InvalidCouponReasonOriginal: () => InvalidCouponReason,
34
+ InvalidGiftCardReasonOriginal: () => InvalidGiftCardReason,
33
35
  ItemStatusOriginal: () => ItemStatus,
34
36
  ItemTypePresetOriginal: () => ItemTypePreset,
35
37
  JurisdictionTypeOriginal: () => JurisdictionType,
@@ -38,6 +40,7 @@ __export(meta_exports, {
38
40
  NameInOtherOriginal: () => NameInOther,
39
41
  PaymentOptionTypeOriginal: () => PaymentOptionType,
40
42
  PickupMethodOriginal: () => PickupMethod,
43
+ PlatformFeeChargeTypeOriginal: () => PlatformFeeChargeType,
41
44
  RateTypeOriginal: () => RateType,
42
45
  RuleTypeOriginal: () => RuleType,
43
46
  SeverityOriginal: () => Severity,
@@ -65,6 +68,7 @@ __export(meta_exports, {
65
68
  removeLineItems: () => removeLineItems2,
66
69
  setDeliveryMethod: () => setDeliveryMethod2,
67
70
  updateCart: () => updateCart2,
71
+ updateFormSubmissions: () => updateFormSubmissions2,
68
72
  updateLineItems: () => updateLineItems2
69
73
  });
70
74
  module.exports = __toCommonJS(meta_exports);
@@ -1104,6 +1108,59 @@ function handleAsyncCheckoutCompletion(payload) {
1104
1108
  }
1105
1109
  return __handleAsyncCheckoutCompletion;
1106
1110
  }
1111
+ function updateFormSubmissions(payload) {
1112
+ function __updateFormSubmissions({ host }) {
1113
+ const metadata = {
1114
+ entityFqdn: "wix.ecom.v2.cart",
1115
+ method: "POST",
1116
+ methodFqn: "wix.ecom.cart.v2.CartService.UpdateFormSubmissions",
1117
+ packageName: PACKAGE_NAME,
1118
+ migrationOptions: {
1119
+ optInTransformResponse: true
1120
+ },
1121
+ url: resolveWixEcomCartV2CartServiceUrl({
1122
+ protoPath: "/v2/carts/{cartId}/update-forms-submission",
1123
+ data: payload,
1124
+ host
1125
+ }),
1126
+ data: payload,
1127
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1128
+ {
1129
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1130
+ paths: [
1131
+ { path: "cart.createdDate" },
1132
+ { path: "cart.updatedDate" },
1133
+ {
1134
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
1135
+ },
1136
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
1137
+ {
1138
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
1139
+ },
1140
+ {
1141
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1147
+ paths: [
1148
+ {
1149
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
1150
+ },
1151
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
1152
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
1153
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
1154
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1155
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1156
+ ]
1157
+ }
1158
+ ])
1159
+ };
1160
+ return metadata;
1161
+ }
1162
+ return __updateFormSubmissions;
1163
+ }
1107
1164
 
1108
1165
  // src/ecom-v2-cart-cart-v-2.types.ts
1109
1166
  var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
@@ -1248,6 +1305,26 @@ var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
1248
1305
  SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
1249
1306
  return SuggestedFix2;
1250
1307
  })(SuggestedFix || {});
1308
+ var InvalidCouponReason = /* @__PURE__ */ ((InvalidCouponReason2) => {
1309
+ InvalidCouponReason2["UNKNOWN_INVALID_COUPON_REASON"] = "UNKNOWN_INVALID_COUPON_REASON";
1310
+ InvalidCouponReason2["EXPIRED"] = "EXPIRED";
1311
+ InvalidCouponReason2["DISABLED"] = "DISABLED";
1312
+ InvalidCouponReason2["INACTIVE"] = "INACTIVE";
1313
+ InvalidCouponReason2["MAX_USAGE_EXCEEDED"] = "MAX_USAGE_EXCEEDED";
1314
+ InvalidCouponReason2["MAX_USAGE_PER_CUSTOMER_EXCEEDED"] = "MAX_USAGE_PER_CUSTOMER_EXCEEDED";
1315
+ InvalidCouponReason2["NOT_APPLICABLE_TO_SUBSCRIPTIONS"] = "NOT_APPLICABLE_TO_SUBSCRIPTIONS";
1316
+ InvalidCouponReason2["NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS"] = "NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS";
1317
+ InvalidCouponReason2["MIN_LINE_ITEM_QUANTITY_NOT_REACHED"] = "MIN_LINE_ITEM_QUANTITY_NOT_REACHED";
1318
+ InvalidCouponReason2["MIN_SUBTOTAL_NOT_REACHED"] = "MIN_SUBTOTAL_NOT_REACHED";
1319
+ return InvalidCouponReason2;
1320
+ })(InvalidCouponReason || {});
1321
+ var InvalidGiftCardReason = /* @__PURE__ */ ((InvalidGiftCardReason2) => {
1322
+ InvalidGiftCardReason2["UNKNOWN_INVALID_GIFT_CARD_REASON"] = "UNKNOWN_INVALID_GIFT_CARD_REASON";
1323
+ InvalidGiftCardReason2["EXPIRED"] = "EXPIRED";
1324
+ InvalidGiftCardReason2["DISABLED"] = "DISABLED";
1325
+ InvalidGiftCardReason2["EMPTY_BALANCE"] = "EMPTY_BALANCE";
1326
+ return InvalidGiftCardReason2;
1327
+ })(InvalidGiftCardReason || {});
1251
1328
  var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
1252
1329
  ValidationsConfig2["UNKNOWN_VALIDATIONS_CONFIG"] = "UNKNOWN_VALIDATIONS_CONFIG";
1253
1330
  ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
@@ -1319,8 +1396,15 @@ var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
1319
1396
  AdditionalFeeSource2["ITEM"] = "ITEM";
1320
1397
  AdditionalFeeSource2["MANUAL"] = "MANUAL";
1321
1398
  AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
1399
+ AdditionalFeeSource2["PLATFORM_FEE"] = "PLATFORM_FEE";
1322
1400
  return AdditionalFeeSource2;
1323
1401
  })(AdditionalFeeSource || {});
1402
+ var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
1403
+ PlatformFeeChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
1404
+ PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
1405
+ PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
1406
+ return PlatformFeeChargeType2;
1407
+ })(PlatformFeeChargeType || {});
1324
1408
 
1325
1409
  // src/ecom-v2-cart-cart-v-2.meta.ts
1326
1410
  function createCart2() {
@@ -1647,6 +1731,24 @@ function handleAsyncCheckoutCompletion2() {
1647
1731
  __originalResponseType: null
1648
1732
  };
1649
1733
  }
1734
+ function updateFormSubmissions2() {
1735
+ const payload = { cartId: ":cartId" };
1736
+ const getRequestOptions = updateFormSubmissions(payload);
1737
+ const getUrl = (context) => {
1738
+ const { url } = getRequestOptions(context);
1739
+ return url;
1740
+ };
1741
+ return {
1742
+ getUrl,
1743
+ httpMethod: "POST",
1744
+ path: "/v2/carts/{cartId}/update-forms-submission",
1745
+ pathParams: { cartId: "cartId" },
1746
+ __requestType: null,
1747
+ __originalRequestType: null,
1748
+ __responseType: null,
1749
+ __originalResponseType: null
1750
+ };
1751
+ }
1650
1752
  // Annotate the CommonJS export names for ESM import in node:
1651
1753
  0 && (module.exports = {
1652
1754
  AdditionalFeeSourceOriginal,
@@ -1659,6 +1761,8 @@ function handleAsyncCheckoutCompletion2() {
1659
1761
  DiscountTypeOriginal,
1660
1762
  FallbackReasonOriginal,
1661
1763
  FileTypeOriginal,
1764
+ InvalidCouponReasonOriginal,
1765
+ InvalidGiftCardReasonOriginal,
1662
1766
  ItemStatusOriginal,
1663
1767
  ItemTypePresetOriginal,
1664
1768
  JurisdictionTypeOriginal,
@@ -1667,6 +1771,7 @@ function handleAsyncCheckoutCompletion2() {
1667
1771
  NameInOtherOriginal,
1668
1772
  PaymentOptionTypeOriginal,
1669
1773
  PickupMethodOriginal,
1774
+ PlatformFeeChargeTypeOriginal,
1670
1775
  RateTypeOriginal,
1671
1776
  RuleTypeOriginal,
1672
1777
  SeverityOriginal,
@@ -1694,6 +1799,7 @@ function handleAsyncCheckoutCompletion2() {
1694
1799
  removeLineItems,
1695
1800
  setDeliveryMethod,
1696
1801
  updateCart,
1802
+ updateFormSubmissions,
1697
1803
  updateLineItems
1698
1804
  });
1699
1805
  //# sourceMappingURL=meta.js.map