@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
package/build/es/meta.mjs CHANGED
@@ -1033,6 +1033,59 @@ function handleAsyncCheckoutCompletion(payload) {
1033
1033
  }
1034
1034
  return __handleAsyncCheckoutCompletion;
1035
1035
  }
1036
+ function updateFormSubmissions(payload) {
1037
+ function __updateFormSubmissions({ host }) {
1038
+ const metadata = {
1039
+ entityFqdn: "wix.ecom.v2.cart",
1040
+ method: "POST",
1041
+ methodFqn: "wix.ecom.cart.v2.CartService.UpdateFormSubmissions",
1042
+ packageName: PACKAGE_NAME,
1043
+ migrationOptions: {
1044
+ optInTransformResponse: true
1045
+ },
1046
+ url: resolveWixEcomCartV2CartServiceUrl({
1047
+ protoPath: "/v2/carts/{cartId}/update-forms-submission",
1048
+ data: payload,
1049
+ host
1050
+ }),
1051
+ data: payload,
1052
+ transformResponse: (payload2) => transformPaths(payload2, [
1053
+ {
1054
+ transformFn: transformRESTTimestampToSDKTimestamp,
1055
+ paths: [
1056
+ { path: "cart.createdDate" },
1057
+ { path: "cart.updatedDate" },
1058
+ {
1059
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
1060
+ },
1061
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
1062
+ {
1063
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
1064
+ },
1065
+ {
1066
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
1067
+ }
1068
+ ]
1069
+ },
1070
+ {
1071
+ transformFn: transformRESTFloatToSDKFloat,
1072
+ paths: [
1073
+ {
1074
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
1075
+ },
1076
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
1077
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
1078
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
1079
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1080
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1081
+ ]
1082
+ }
1083
+ ])
1084
+ };
1085
+ return metadata;
1086
+ }
1087
+ return __updateFormSubmissions;
1088
+ }
1036
1089
 
1037
1090
  // src/ecom-v2-cart-cart-v-2.types.ts
1038
1091
  var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
@@ -1177,6 +1230,26 @@ var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
1177
1230
  SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
1178
1231
  return SuggestedFix2;
1179
1232
  })(SuggestedFix || {});
1233
+ var InvalidCouponReason = /* @__PURE__ */ ((InvalidCouponReason2) => {
1234
+ InvalidCouponReason2["UNKNOWN_INVALID_COUPON_REASON"] = "UNKNOWN_INVALID_COUPON_REASON";
1235
+ InvalidCouponReason2["EXPIRED"] = "EXPIRED";
1236
+ InvalidCouponReason2["DISABLED"] = "DISABLED";
1237
+ InvalidCouponReason2["INACTIVE"] = "INACTIVE";
1238
+ InvalidCouponReason2["MAX_USAGE_EXCEEDED"] = "MAX_USAGE_EXCEEDED";
1239
+ InvalidCouponReason2["MAX_USAGE_PER_CUSTOMER_EXCEEDED"] = "MAX_USAGE_PER_CUSTOMER_EXCEEDED";
1240
+ InvalidCouponReason2["NOT_APPLICABLE_TO_SUBSCRIPTIONS"] = "NOT_APPLICABLE_TO_SUBSCRIPTIONS";
1241
+ InvalidCouponReason2["NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS"] = "NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS";
1242
+ InvalidCouponReason2["MIN_LINE_ITEM_QUANTITY_NOT_REACHED"] = "MIN_LINE_ITEM_QUANTITY_NOT_REACHED";
1243
+ InvalidCouponReason2["MIN_SUBTOTAL_NOT_REACHED"] = "MIN_SUBTOTAL_NOT_REACHED";
1244
+ return InvalidCouponReason2;
1245
+ })(InvalidCouponReason || {});
1246
+ var InvalidGiftCardReason = /* @__PURE__ */ ((InvalidGiftCardReason2) => {
1247
+ InvalidGiftCardReason2["UNKNOWN_INVALID_GIFT_CARD_REASON"] = "UNKNOWN_INVALID_GIFT_CARD_REASON";
1248
+ InvalidGiftCardReason2["EXPIRED"] = "EXPIRED";
1249
+ InvalidGiftCardReason2["DISABLED"] = "DISABLED";
1250
+ InvalidGiftCardReason2["EMPTY_BALANCE"] = "EMPTY_BALANCE";
1251
+ return InvalidGiftCardReason2;
1252
+ })(InvalidGiftCardReason || {});
1180
1253
  var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
1181
1254
  ValidationsConfig2["UNKNOWN_VALIDATIONS_CONFIG"] = "UNKNOWN_VALIDATIONS_CONFIG";
1182
1255
  ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
@@ -1248,8 +1321,15 @@ var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
1248
1321
  AdditionalFeeSource2["ITEM"] = "ITEM";
1249
1322
  AdditionalFeeSource2["MANUAL"] = "MANUAL";
1250
1323
  AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
1324
+ AdditionalFeeSource2["PLATFORM_FEE"] = "PLATFORM_FEE";
1251
1325
  return AdditionalFeeSource2;
1252
1326
  })(AdditionalFeeSource || {});
1327
+ var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
1328
+ PlatformFeeChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
1329
+ PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
1330
+ PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
1331
+ return PlatformFeeChargeType2;
1332
+ })(PlatformFeeChargeType || {});
1253
1333
 
1254
1334
  // src/ecom-v2-cart-cart-v-2.meta.ts
1255
1335
  function createCart2() {
@@ -1576,6 +1656,24 @@ function handleAsyncCheckoutCompletion2() {
1576
1656
  __originalResponseType: null
1577
1657
  };
1578
1658
  }
1659
+ function updateFormSubmissions2() {
1660
+ const payload = { cartId: ":cartId" };
1661
+ const getRequestOptions = updateFormSubmissions(payload);
1662
+ const getUrl = (context) => {
1663
+ const { url } = getRequestOptions(context);
1664
+ return url;
1665
+ };
1666
+ return {
1667
+ getUrl,
1668
+ httpMethod: "POST",
1669
+ path: "/v2/carts/{cartId}/update-forms-submission",
1670
+ pathParams: { cartId: "cartId" },
1671
+ __requestType: null,
1672
+ __originalRequestType: null,
1673
+ __responseType: null,
1674
+ __originalResponseType: null
1675
+ };
1676
+ }
1579
1677
  export {
1580
1678
  AdditionalFeeSource as AdditionalFeeSourceOriginal,
1581
1679
  ChannelType as ChannelTypeOriginal,
@@ -1587,6 +1685,8 @@ export {
1587
1685
  DiscountType as DiscountTypeOriginal,
1588
1686
  FallbackReason as FallbackReasonOriginal,
1589
1687
  FileType as FileTypeOriginal,
1688
+ InvalidCouponReason as InvalidCouponReasonOriginal,
1689
+ InvalidGiftCardReason as InvalidGiftCardReasonOriginal,
1590
1690
  ItemStatus as ItemStatusOriginal,
1591
1691
  ItemTypePreset as ItemTypePresetOriginal,
1592
1692
  JurisdictionType as JurisdictionTypeOriginal,
@@ -1595,6 +1695,7 @@ export {
1595
1695
  NameInOther as NameInOtherOriginal,
1596
1696
  PaymentOptionType as PaymentOptionTypeOriginal,
1597
1697
  PickupMethod as PickupMethodOriginal,
1698
+ PlatformFeeChargeType as PlatformFeeChargeTypeOriginal,
1598
1699
  RateType as RateTypeOriginal,
1599
1700
  RuleType as RuleTypeOriginal,
1600
1701
  Severity as SeverityOriginal,
@@ -1622,6 +1723,7 @@ export {
1622
1723
  removeLineItems2 as removeLineItems,
1623
1724
  setDeliveryMethod2 as setDeliveryMethod,
1624
1725
  updateCart2 as updateCart,
1726
+ updateFormSubmissions2 as updateFormSubmissions,
1625
1727
  updateLineItems2 as updateLineItems
1626
1728
  };
1627
1729
  //# sourceMappingURL=meta.mjs.map