@wix/auto_sdk_ecom_current-cart-v-2 1.0.25 → 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.
- package/build/cjs/index.d.ts +64 -9
- package/build/cjs/index.js +107 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +99 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +64 -10
- package/build/cjs/meta.js +69 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +64 -9
- package/build/es/index.mjs +106 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +98 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +64 -10
- package/build/es/meta.mjs +68 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -4
- package/build/internal/cjs/index.js +107 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +76 -10
- package/build/internal/cjs/index.typings.js +99 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +64 -10
- package/build/internal/cjs/meta.js +69 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -4
- package/build/internal/es/index.mjs +106 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +76 -10
- package/build/internal/es/index.typings.mjs +98 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +64 -10
- package/build/internal/es/meta.mjs +68 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateCurrentCartRequest as CreateCurrentCartRequest$1, CreateCurrentCartResponse as CreateCurrentCartResponse$1, GetCurrentCartRequest as GetCurrentCartRequest$1, GetCurrentCartResponse as GetCurrentCartResponse$1, UpdateCurrentCartRequest as UpdateCurrentCartRequest$1, UpdateCurrentCartResponse as UpdateCurrentCartResponse$1, DeleteCurrentCartRequest as DeleteCurrentCartRequest$1, DeleteCurrentCartResponse as DeleteCurrentCartResponse$1, RefreshCurrentCartRequest as RefreshCurrentCartRequest$1, RefreshCurrentCartResponse as RefreshCurrentCartResponse$1, CalculateCurrentCartRequest as CalculateCurrentCartRequest$1, CalculateCurrentCartResponse as CalculateCurrentCartResponse$1, AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequest$1, AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponse$1, RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequest$1, RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponse$1, UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequest$1, UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponse$1, AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequest$1, AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponse$1, RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequest$1, RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponse$1, AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequest$1, AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponse$1, RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequest$1, RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponse$1 } from './index.typings.mjs';
|
|
1
|
+
import { CreateCurrentCartRequest as CreateCurrentCartRequest$1, CreateCurrentCartResponse as CreateCurrentCartResponse$1, GetCurrentCartRequest as GetCurrentCartRequest$1, GetCurrentCartResponse as GetCurrentCartResponse$1, UpdateCurrentCartRequest as UpdateCurrentCartRequest$1, UpdateCurrentCartResponse as UpdateCurrentCartResponse$1, DeleteCurrentCartRequest as DeleteCurrentCartRequest$1, DeleteCurrentCartResponse as DeleteCurrentCartResponse$1, RefreshCurrentCartRequest as RefreshCurrentCartRequest$1, RefreshCurrentCartResponse as RefreshCurrentCartResponse$1, CalculateCurrentCartRequest as CalculateCurrentCartRequest$1, CalculateCurrentCartResponse as CalculateCurrentCartResponse$1, AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequest$1, AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponse$1, RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequest$1, RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponse$1, UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequest$1, UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponse$1, AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequest$1, AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponse$1, RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequest$1, RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponse$1, SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequest$1, SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponse$1, AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequest$1, AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponse$1, RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequest$1, RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Cart {
|
|
@@ -1211,7 +1211,10 @@ type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
|
|
|
1211
1211
|
interface DeliveryInfo {
|
|
1212
1212
|
/** The delivery address. */
|
|
1213
1213
|
address?: Address;
|
|
1214
|
-
/**
|
|
1214
|
+
/**
|
|
1215
|
+
* The selected delivery method by the customer.
|
|
1216
|
+
* @readonly
|
|
1217
|
+
*/
|
|
1215
1218
|
method?: DeliveryMethod;
|
|
1216
1219
|
/**
|
|
1217
1220
|
* The unit of weight measurement when shipping items (e.g., KG, LB).
|
|
@@ -1282,7 +1285,7 @@ interface DeliveryMethod {
|
|
|
1282
1285
|
/**
|
|
1283
1286
|
* Unique code that acts as an ID for a shipping rate.
|
|
1284
1287
|
* For example, `"usps_std_overnight"`.
|
|
1285
|
-
* @maxLength
|
|
1288
|
+
* @maxLength 100
|
|
1286
1289
|
*/
|
|
1287
1290
|
code?: string;
|
|
1288
1291
|
/**
|
|
@@ -1293,13 +1296,9 @@ interface DeliveryMethod {
|
|
|
1293
1296
|
/**
|
|
1294
1297
|
* Delivery rate title.
|
|
1295
1298
|
* For example, `"USPS Standard Overnight Delivery"`, `"Standard"`, or `"First-Class Package International"`.
|
|
1296
|
-
* @readonly
|
|
1297
1299
|
*/
|
|
1298
1300
|
title?: TranslatableString;
|
|
1299
|
-
/**
|
|
1300
|
-
* Whether the delivery method is a pickup option.
|
|
1301
|
-
* @readonly
|
|
1302
|
-
*/
|
|
1301
|
+
/** Whether the delivery method is a pickup option. */
|
|
1303
1302
|
pickup?: boolean;
|
|
1304
1303
|
}
|
|
1305
1304
|
declare enum WeightUnit {
|
|
@@ -1318,6 +1317,11 @@ interface TaxInfo {
|
|
|
1318
1317
|
* @readonly
|
|
1319
1318
|
*/
|
|
1320
1319
|
pricesIncludeTax?: boolean;
|
|
1320
|
+
/**
|
|
1321
|
+
* Tax exempt group ID to use for tax exemptions.
|
|
1322
|
+
* @format GUID
|
|
1323
|
+
*/
|
|
1324
|
+
taxExemptGroupId?: string | null;
|
|
1321
1325
|
}
|
|
1322
1326
|
interface PaymentInfo {
|
|
1323
1327
|
/**
|
|
@@ -1511,6 +1515,11 @@ interface CartSummary {
|
|
|
1511
1515
|
* @format GUID
|
|
1512
1516
|
*/
|
|
1513
1517
|
cartId?: string;
|
|
1518
|
+
/**
|
|
1519
|
+
* A unique identifier for this specific cart calculation.
|
|
1520
|
+
* @format GUID
|
|
1521
|
+
*/
|
|
1522
|
+
calculationId?: string;
|
|
1514
1523
|
/**
|
|
1515
1524
|
* Summarized details for each line item in the cart.
|
|
1516
1525
|
* @maxSize 300
|
|
@@ -2043,6 +2052,8 @@ interface CreateCurrentCartRequest {
|
|
|
2043
2052
|
* @maxLength 50
|
|
2044
2053
|
*/
|
|
2045
2054
|
couponCodes?: string[];
|
|
2055
|
+
/** Delivery method to set. */
|
|
2056
|
+
deliveryMethod?: DeliveryMethodInput;
|
|
2046
2057
|
/**
|
|
2047
2058
|
* Gift cards to add.
|
|
2048
2059
|
* Currently only one is support.
|
|
@@ -2214,6 +2225,18 @@ interface CustomItemPaymentConfig {
|
|
|
2214
2225
|
*/
|
|
2215
2226
|
paymentOption?: PaymentOptionTypeWithLiterals;
|
|
2216
2227
|
}
|
|
2228
|
+
interface DeliveryMethodInput {
|
|
2229
|
+
/**
|
|
2230
|
+
* Delivery method code.
|
|
2231
|
+
* @maxLength 100
|
|
2232
|
+
*/
|
|
2233
|
+
code?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* Carrier app id.
|
|
2236
|
+
* @format GUID
|
|
2237
|
+
*/
|
|
2238
|
+
appId?: string | null;
|
|
2239
|
+
}
|
|
2217
2240
|
interface CreateCurrentCartResponse {
|
|
2218
2241
|
/** The created Cart. */
|
|
2219
2242
|
cart?: Cart;
|
|
@@ -2393,6 +2416,14 @@ interface RemoveCouponFromCurrentCartResponse {
|
|
|
2393
2416
|
/** Updated Cart. */
|
|
2394
2417
|
cart?: Cart;
|
|
2395
2418
|
}
|
|
2419
|
+
interface SetDeliveryMethodForCurrentCartRequest {
|
|
2420
|
+
/** Delivery method. */
|
|
2421
|
+
deliveryMethod: DeliveryMethodInput;
|
|
2422
|
+
}
|
|
2423
|
+
interface SetDeliveryMethodForCurrentCartResponse {
|
|
2424
|
+
/** Updated Cart. */
|
|
2425
|
+
cart?: Cart;
|
|
2426
|
+
}
|
|
2396
2427
|
interface AddGiftCardToCurrentCartRequest {
|
|
2397
2428
|
/**
|
|
2398
2429
|
* Gift card code.
|
|
@@ -2417,6 +2448,12 @@ interface RemoveGiftCardFromCurrentCartResponse {
|
|
|
2417
2448
|
/** Updated Cart. */
|
|
2418
2449
|
cart?: Cart;
|
|
2419
2450
|
}
|
|
2451
|
+
interface UnmarkAsCurrentCartRequest {
|
|
2452
|
+
}
|
|
2453
|
+
interface UnmarkAsCurrentCartResponse {
|
|
2454
|
+
/** Cart that was unmarked as current cart, if such existed. */
|
|
2455
|
+
cart?: Cart;
|
|
2456
|
+
}
|
|
2420
2457
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
2421
2458
|
createdEvent?: EntityCreatedEvent;
|
|
2422
2459
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -2578,6 +2615,8 @@ interface CreateCartRequest {
|
|
|
2578
2615
|
* @maxLength 50
|
|
2579
2616
|
*/
|
|
2580
2617
|
couponCodes?: string[];
|
|
2618
|
+
/** Delivery method to set. */
|
|
2619
|
+
deliveryMethod?: DeliveryMethodInput;
|
|
2581
2620
|
/**
|
|
2582
2621
|
* Gift cards to add.
|
|
2583
2622
|
* Currently only one is support.
|
|
@@ -2838,6 +2877,19 @@ interface RemoveCouponResponse {
|
|
|
2838
2877
|
/** Updated Cart. */
|
|
2839
2878
|
cart?: Cart;
|
|
2840
2879
|
}
|
|
2880
|
+
interface SetDeliveryMethodRequest {
|
|
2881
|
+
/**
|
|
2882
|
+
* Cart ID.
|
|
2883
|
+
* @format GUID
|
|
2884
|
+
*/
|
|
2885
|
+
cartId?: string;
|
|
2886
|
+
/** Delivery method. */
|
|
2887
|
+
deliveryMethod?: DeliveryMethodInput;
|
|
2888
|
+
}
|
|
2889
|
+
interface SetDeliveryMethodResponse {
|
|
2890
|
+
/** Updated Cart. */
|
|
2891
|
+
cart?: Cart;
|
|
2892
|
+
}
|
|
2841
2893
|
interface AddGiftCardRequest {
|
|
2842
2894
|
/**
|
|
2843
2895
|
* Cart ID.
|
|
@@ -2848,7 +2900,8 @@ interface AddGiftCardRequest {
|
|
|
2848
2900
|
* Gift card code.
|
|
2849
2901
|
*
|
|
2850
2902
|
* Currently only one is supported.
|
|
2851
|
-
* @
|
|
2903
|
+
* @minLength 8
|
|
2904
|
+
* @maxLength 20
|
|
2852
2905
|
*/
|
|
2853
2906
|
giftCardCode?: string;
|
|
2854
2907
|
}
|
|
@@ -2928,7 +2981,8 @@ declare function removeLineItemsFromCurrentCart(): __PublicMethodMetaInfo<'POST'
|
|
|
2928
2981
|
declare function updateLineItemsInCurrentCart(): __PublicMethodMetaInfo<'POST', {}, UpdateLineItemsInCurrentCartRequest$1, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse$1, UpdateLineItemsInCurrentCartResponse>;
|
|
2929
2982
|
declare function addCouponToCurrentCart(): __PublicMethodMetaInfo<'POST', {}, AddCouponToCurrentCartRequest$1, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse$1, AddCouponToCurrentCartResponse>;
|
|
2930
2983
|
declare function removeCouponFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, RemoveCouponFromCurrentCartRequest$1, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse$1, RemoveCouponFromCurrentCartResponse>;
|
|
2984
|
+
declare function setDeliveryMethodForCurrentCart(): __PublicMethodMetaInfo<'POST', {}, SetDeliveryMethodForCurrentCartRequest$1, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse$1, SetDeliveryMethodForCurrentCartResponse>;
|
|
2931
2985
|
declare function addGiftCardToCurrentCart(): __PublicMethodMetaInfo<'POST', {}, AddGiftCardToCurrentCartRequest$1, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse$1, AddGiftCardToCurrentCartResponse>;
|
|
2932
2986
|
declare function removeGiftCardFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, RemoveGiftCardFromCurrentCartRequest$1, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse$1, RemoveGiftCardFromCurrentCartResponse>;
|
|
2933
2987
|
|
|
2934
|
-
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, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };
|
|
2988
|
+
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, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };
|
|
@@ -695,6 +695,55 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
695
695
|
}
|
|
696
696
|
return __removeCouponFromCurrentCart;
|
|
697
697
|
}
|
|
698
|
+
function setDeliveryMethodForCurrentCart(payload) {
|
|
699
|
+
function __setDeliveryMethodForCurrentCart({ host }) {
|
|
700
|
+
const metadata = {
|
|
701
|
+
entityFqdn: "wix.ecom.v2.cart",
|
|
702
|
+
method: "POST",
|
|
703
|
+
methodFqn: "wix.ecom.cart.v2.CurrentCartService.SetDeliveryMethodForCurrentCart",
|
|
704
|
+
packageName: PACKAGE_NAME,
|
|
705
|
+
migrationOptions: {
|
|
706
|
+
optInTransformResponse: true
|
|
707
|
+
},
|
|
708
|
+
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
709
|
+
protoPath: "/v2/carts/current/set-delivery-method",
|
|
710
|
+
data: payload,
|
|
711
|
+
host
|
|
712
|
+
}),
|
|
713
|
+
data: payload,
|
|
714
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
715
|
+
{
|
|
716
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
717
|
+
paths: [
|
|
718
|
+
{ path: "cart.createdDate" },
|
|
719
|
+
{ path: "cart.updatedDate" },
|
|
720
|
+
{
|
|
721
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
730
|
+
paths: [
|
|
731
|
+
{
|
|
732
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
733
|
+
},
|
|
734
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
735
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
736
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
737
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
738
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" }
|
|
739
|
+
]
|
|
740
|
+
}
|
|
741
|
+
])
|
|
742
|
+
};
|
|
743
|
+
return metadata;
|
|
744
|
+
}
|
|
745
|
+
return __setDeliveryMethodForCurrentCart;
|
|
746
|
+
}
|
|
698
747
|
function addGiftCardToCurrentCart(payload) {
|
|
699
748
|
function __addGiftCardToCurrentCart({ host }) {
|
|
700
749
|
const metadata = {
|
|
@@ -1152,6 +1201,24 @@ function removeCouponFromCurrentCart2() {
|
|
|
1152
1201
|
__originalResponseType: null
|
|
1153
1202
|
};
|
|
1154
1203
|
}
|
|
1204
|
+
function setDeliveryMethodForCurrentCart2() {
|
|
1205
|
+
const payload = {};
|
|
1206
|
+
const getRequestOptions = setDeliveryMethodForCurrentCart(payload);
|
|
1207
|
+
const getUrl = (context) => {
|
|
1208
|
+
const { url } = getRequestOptions(context);
|
|
1209
|
+
return url;
|
|
1210
|
+
};
|
|
1211
|
+
return {
|
|
1212
|
+
getUrl,
|
|
1213
|
+
httpMethod: "POST",
|
|
1214
|
+
path: "/v2/carts/current/set-delivery-method",
|
|
1215
|
+
pathParams: {},
|
|
1216
|
+
__requestType: null,
|
|
1217
|
+
__originalRequestType: null,
|
|
1218
|
+
__responseType: null,
|
|
1219
|
+
__originalResponseType: null
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1155
1222
|
function addGiftCardToCurrentCart2() {
|
|
1156
1223
|
const payload = {};
|
|
1157
1224
|
const getRequestOptions = addGiftCardToCurrentCart(payload);
|
|
@@ -1219,6 +1286,7 @@ export {
|
|
|
1219
1286
|
removeCouponFromCurrentCart2 as removeCouponFromCurrentCart,
|
|
1220
1287
|
removeGiftCardFromCurrentCart2 as removeGiftCardFromCurrentCart,
|
|
1221
1288
|
removeLineItemsFromCurrentCart2 as removeLineItemsFromCurrentCart,
|
|
1289
|
+
setDeliveryMethodForCurrentCart2 as setDeliveryMethodForCurrentCart,
|
|
1222
1290
|
updateCurrentCart2 as updateCurrentCart,
|
|
1223
1291
|
updateLineItemsInCurrentCart2 as updateLineItemsInCurrentCart
|
|
1224
1292
|
};
|