@wix/auto_sdk_ecom_cart-v-2 1.0.26 → 1.0.27

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 +62 -8
  2. package/build/cjs/index.js +109 -0
  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 +100 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +64 -9
  8. package/build/cjs/meta.js +69 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +62 -8
  11. package/build/es/index.mjs +108 -0
  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 +99 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +64 -9
  17. package/build/es/meta.mjs +68 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +16 -4
  20. package/build/internal/cjs/index.js +109 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +76 -9
  23. package/build/internal/cjs/index.typings.js +100 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +64 -9
  26. package/build/internal/cjs/meta.js +69 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +16 -4
  29. package/build/internal/es/index.mjs +108 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +76 -9
  32. package/build/internal/es/index.typings.mjs +99 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +64 -9
  35. package/build/internal/es/meta.mjs +68 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddCouponRequest as AddCouponRequest$1, AddCouponResponse as AddCouponResponse$1, RemoveCouponRequest as RemoveCouponRequest$1, RemoveCouponResponse as RemoveCouponResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.js';
1
+ import { CreateCartRequest as CreateCartRequest$1, CreateCartResponse as CreateCartResponse$1, GetCartRequest as GetCartRequest$1, GetCartResponse as GetCartResponse$1, UpdateCartRequest as UpdateCartRequest$1, UpdateCartResponse as UpdateCartResponse$1, DeleteCartRequest as DeleteCartRequest$1, DeleteCartResponse as DeleteCartResponse$1, RefreshCartRequest as RefreshCartRequest$1, RefreshCartResponse as RefreshCartResponse$1, CalculateCartRequest as CalculateCartRequest$1, CalculateCartResponse as CalculateCartResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, PlaceOrderRequest as PlaceOrderRequest$1, PlaceOrderResponse as PlaceOrderResponse$1, AddLineItemsRequest as AddLineItemsRequest$1, AddLineItemsResponse as AddLineItemsResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, UpdateLineItemsRequest as UpdateLineItemsRequest$1, UpdateLineItemsResponse as UpdateLineItemsResponse$1, AddCouponRequest as AddCouponRequest$1, AddCouponResponse as AddCouponResponse$1, RemoveCouponRequest as RemoveCouponRequest$1, RemoveCouponResponse as RemoveCouponResponse$1, SetDeliveryMethodRequest as SetDeliveryMethodRequest$1, SetDeliveryMethodResponse as SetDeliveryMethodResponse$1, AddGiftCardRequest as AddGiftCardRequest$1, AddGiftCardResponse as AddGiftCardResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, MarkCartAsCompletedRequest as MarkCartAsCompletedRequest$1, MarkCartAsCompletedResponse as MarkCartAsCompletedResponse$1, HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.js';
2
2
 
3
3
  interface Cart {
4
4
  /**
@@ -1210,7 +1210,10 @@ type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
1210
1210
  interface DeliveryInfo {
1211
1211
  /** The delivery address. */
1212
1212
  address?: Address;
1213
- /** The selected delivery method by the customer. */
1213
+ /**
1214
+ * The selected delivery method by the customer.
1215
+ * @readonly
1216
+ */
1214
1217
  method?: DeliveryMethod;
1215
1218
  /**
1216
1219
  * The unit of weight measurement when shipping items (e.g., KG, LB).
@@ -1281,7 +1284,7 @@ interface DeliveryMethod {
1281
1284
  /**
1282
1285
  * Unique code that acts as an ID for a shipping rate.
1283
1286
  * For example, `"usps_std_overnight"`.
1284
- * @maxLength 250
1287
+ * @maxLength 100
1285
1288
  */
1286
1289
  code?: string;
1287
1290
  /**
@@ -1292,13 +1295,9 @@ interface DeliveryMethod {
1292
1295
  /**
1293
1296
  * Delivery rate title.
1294
1297
  * For example, `"USPS Standard Overnight Delivery"`, `"Standard"`, or `"First-Class Package International"`.
1295
- * @readonly
1296
1298
  */
1297
1299
  title?: TranslatableString;
1298
- /**
1299
- * Whether the delivery method is a pickup option.
1300
- * @readonly
1301
- */
1300
+ /** Whether the delivery method is a pickup option. */
1302
1301
  pickup?: boolean;
1303
1302
  }
1304
1303
  declare enum WeightUnit {
@@ -1317,6 +1316,11 @@ interface TaxInfo {
1317
1316
  * @readonly
1318
1317
  */
1319
1318
  pricesIncludeTax?: boolean;
1319
+ /**
1320
+ * Tax exempt group ID to use for tax exemptions.
1321
+ * @format GUID
1322
+ */
1323
+ taxExemptGroupId?: string | null;
1320
1324
  }
1321
1325
  interface PaymentInfo {
1322
1326
  /**
@@ -1510,6 +1514,11 @@ interface CartSummary {
1510
1514
  * @format GUID
1511
1515
  */
1512
1516
  cartId?: string;
1517
+ /**
1518
+ * A unique identifier for this specific cart calculation.
1519
+ * @format GUID
1520
+ */
1521
+ calculationId?: string;
1513
1522
  /**
1514
1523
  * Summarized details for each line item in the cart.
1515
1524
  * @maxSize 300
@@ -2042,6 +2051,8 @@ interface CreateCurrentCartRequest {
2042
2051
  * @maxLength 50
2043
2052
  */
2044
2053
  couponCodes?: string[];
2054
+ /** Delivery method to set. */
2055
+ deliveryMethod?: DeliveryMethodInput;
2045
2056
  /**
2046
2057
  * Gift cards to add.
2047
2058
  * Currently only one is support.
@@ -2213,6 +2224,18 @@ interface CustomItemPaymentConfig {
2213
2224
  */
2214
2225
  paymentOption?: PaymentOptionTypeWithLiterals;
2215
2226
  }
2227
+ interface DeliveryMethodInput {
2228
+ /**
2229
+ * Delivery method code.
2230
+ * @maxLength 100
2231
+ */
2232
+ code?: string;
2233
+ /**
2234
+ * Carrier app id.
2235
+ * @format GUID
2236
+ */
2237
+ appId?: string | null;
2238
+ }
2216
2239
  interface CreateCurrentCartResponse {
2217
2240
  /** The created Cart. */
2218
2241
  cart?: Cart;
@@ -2392,6 +2415,14 @@ interface RemoveCouponFromCurrentCartResponse {
2392
2415
  /** Updated Cart. */
2393
2416
  cart?: Cart;
2394
2417
  }
2418
+ interface SetDeliveryMethodForCurrentCartRequest {
2419
+ /** Delivery method. */
2420
+ deliveryMethod?: DeliveryMethodInput;
2421
+ }
2422
+ interface SetDeliveryMethodForCurrentCartResponse {
2423
+ /** Updated Cart. */
2424
+ cart?: Cart;
2425
+ }
2395
2426
  interface AddGiftCardToCurrentCartRequest {
2396
2427
  /**
2397
2428
  * Gift card code.
@@ -2416,6 +2447,12 @@ interface RemoveGiftCardFromCurrentCartResponse {
2416
2447
  /** Updated Cart. */
2417
2448
  cart?: Cart;
2418
2449
  }
2450
+ interface UnmarkAsCurrentCartRequest {
2451
+ }
2452
+ interface UnmarkAsCurrentCartResponse {
2453
+ /** Cart that was unmarked as current cart, if such existed. */
2454
+ cart?: Cart;
2455
+ }
2419
2456
  interface DomainEvent extends DomainEventBodyOneOf {
2420
2457
  createdEvent?: EntityCreatedEvent;
2421
2458
  updatedEvent?: EntityUpdatedEvent;
@@ -2577,6 +2614,8 @@ interface CreateCartRequest {
2577
2614
  * @maxLength 50
2578
2615
  */
2579
2616
  couponCodes?: string[];
2617
+ /** Delivery method to set. */
2618
+ deliveryMethod?: DeliveryMethodInput;
2580
2619
  /**
2581
2620
  * Gift cards to add.
2582
2621
  * Currently only one is support.
@@ -2837,6 +2876,19 @@ interface RemoveCouponResponse {
2837
2876
  /** Updated Cart. */
2838
2877
  cart?: Cart;
2839
2878
  }
2879
+ interface SetDeliveryMethodRequest {
2880
+ /**
2881
+ * Cart ID.
2882
+ * @format GUID
2883
+ */
2884
+ cartId: string;
2885
+ /** Delivery method. */
2886
+ deliveryMethod: DeliveryMethodInput;
2887
+ }
2888
+ interface SetDeliveryMethodResponse {
2889
+ /** Updated Cart. */
2890
+ cart?: Cart;
2891
+ }
2840
2892
  interface AddGiftCardRequest {
2841
2893
  /**
2842
2894
  * Cart ID.
@@ -2954,6 +3006,9 @@ declare function addCoupon(): __PublicMethodMetaInfo<'POST', {
2954
3006
  declare function removeCoupon(): __PublicMethodMetaInfo<'POST', {
2955
3007
  cartId: string;
2956
3008
  }, RemoveCouponRequest$1, RemoveCouponRequest, RemoveCouponResponse$1, RemoveCouponResponse>;
3009
+ declare function setDeliveryMethod(): __PublicMethodMetaInfo<'POST', {
3010
+ cartId: string;
3011
+ }, SetDeliveryMethodRequest$1, SetDeliveryMethodRequest, SetDeliveryMethodResponse$1, SetDeliveryMethodResponse>;
2957
3012
  declare function addGiftCard(): __PublicMethodMetaInfo<'POST', {
2958
3013
  cartId: string;
2959
3014
  }, AddGiftCardRequest$1, AddGiftCardRequest, AddGiftCardResponse$1, AddGiftCardResponse>;
@@ -2965,4 +3020,4 @@ declare function markCartAsCompleted(): __PublicMethodMetaInfo<'POST', {
2965
3020
  }, MarkCartAsCompletedRequest$1, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse$1, MarkCartAsCompletedResponse>;
2966
3021
  declare function handleAsyncCheckoutCompletion(): __PublicMethodMetaInfo<'POST', {}, HandleAsyncCheckoutCompletionRequest$1, HandleAsyncCheckoutCompletionRequest, RawHttpResponse$1, RawHttpResponse>;
2967
3022
 
2968
- export { type ActionEvent as ActionEventOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type ApplicationError as ApplicationErrorOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, type Color as ColorOriginal, type ConvertedMoney as ConvertedMoneyOriginal, type Coupon as CouponOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCard as GiftCardOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, ItemTypeItemType as ItemTypeItemTypeOriginal, type ItemTypeItemTypeWithLiterals as ItemTypeItemTypeWithLiteralsOriginal, type ItemType as ItemTypeOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItem as LineItemOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type Membership as MembershipOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type ServiceProperties as ServicePropertiesOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2LineItem as V2LineItemOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, updateCart, updateLineItems };
3023
+ export { type ActionEvent as ActionEventOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type ApplicationError as ApplicationErrorOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, type Color as ColorOriginal, type ConvertedMoney as ConvertedMoneyOriginal, type Coupon as CouponOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryMethodInput as DeliveryMethodInputOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCard as GiftCardOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, ItemTypeItemType as ItemTypeItemTypeOriginal, type ItemTypeItemTypeWithLiterals as ItemTypeItemTypeWithLiteralsOriginal, type ItemType as ItemTypeOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItem as LineItemOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type Membership as MembershipOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type ServiceProperties as ServicePropertiesOriginal, type SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal, type SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal, type SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal, type SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal, type UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2LineItem as V2LineItemOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateLineItems };
package/build/cjs/meta.js CHANGED
@@ -54,6 +54,7 @@ __export(meta_exports, {
54
54
  removeCoupon: () => removeCoupon2,
55
55
  removeGiftCard: () => removeGiftCard2,
56
56
  removeLineItems: () => removeLineItems2,
57
+ setDeliveryMethod: () => setDeliveryMethod2,
57
58
  updateCart: () => updateCart2,
58
59
  updateLineItems: () => updateLineItems2
59
60
  });
@@ -799,6 +800,55 @@ function removeCoupon(payload) {
799
800
  }
800
801
  return __removeCoupon;
801
802
  }
803
+ function setDeliveryMethod(payload) {
804
+ function __setDeliveryMethod({ host }) {
805
+ const metadata = {
806
+ entityFqdn: "wix.ecom.v2.cart",
807
+ method: "POST",
808
+ methodFqn: "wix.ecom.cart.v2.CartService.SetDeliveryMethod",
809
+ packageName: PACKAGE_NAME,
810
+ migrationOptions: {
811
+ optInTransformResponse: true
812
+ },
813
+ url: resolveWixEcomCartV2CartServiceUrl({
814
+ protoPath: "/v2/carts/{cartId}/set-delivery-method",
815
+ data: payload,
816
+ host
817
+ }),
818
+ data: payload,
819
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
820
+ {
821
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
822
+ paths: [
823
+ { path: "cart.createdDate" },
824
+ { path: "cart.updatedDate" },
825
+ {
826
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
827
+ },
828
+ {
829
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
830
+ }
831
+ ]
832
+ },
833
+ {
834
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
835
+ paths: [
836
+ {
837
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
838
+ },
839
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
840
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
841
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
842
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
843
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
844
+ ]
845
+ }
846
+ ])
847
+ };
848
+ return metadata;
849
+ }
850
+ return __setDeliveryMethod;
851
+ }
802
852
  function addGiftCard(payload) {
803
853
  function __addGiftCard({ host }) {
804
854
  const metadata = {
@@ -1368,6 +1418,24 @@ function removeCoupon2() {
1368
1418
  __originalResponseType: null
1369
1419
  };
1370
1420
  }
1421
+ function setDeliveryMethod2() {
1422
+ const payload = { cartId: ":cartId" };
1423
+ const getRequestOptions = setDeliveryMethod(payload);
1424
+ const getUrl = (context) => {
1425
+ const { url } = getRequestOptions(context);
1426
+ return url;
1427
+ };
1428
+ return {
1429
+ getUrl,
1430
+ httpMethod: "POST",
1431
+ path: "/v2/carts/{cartId}/set-delivery-method",
1432
+ pathParams: { cartId: "cartId" },
1433
+ __requestType: null,
1434
+ __originalRequestType: null,
1435
+ __responseType: null,
1436
+ __originalResponseType: null
1437
+ };
1438
+ }
1371
1439
  function addGiftCard2() {
1372
1440
  const payload = { cartId: ":cartId" };
1373
1441
  const getRequestOptions = addGiftCard(payload);
@@ -1476,6 +1544,7 @@ function handleAsyncCheckoutCompletion2() {
1476
1544
  removeCoupon,
1477
1545
  removeGiftCard,
1478
1546
  removeLineItems,
1547
+ setDeliveryMethod,
1479
1548
  updateCart,
1480
1549
  updateLineItems
1481
1550
  });