@wix/auto_sdk_ecom_current-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.
- package/build/cjs/index.d.ts +62 -8
- 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 +62 -9
- package/build/cjs/meta.js +69 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +62 -8
- 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 +62 -9
- 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 +74 -9
- 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 +62 -9
- 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 +74 -9
- 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 +62 -9
- package/build/internal/es/meta.mjs +68 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -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.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.mjs';
|
|
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
|
-
/**
|
|
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
|
|
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.
|
|
@@ -2928,7 +2980,8 @@ declare function removeLineItemsFromCurrentCart(): __PublicMethodMetaInfo<'POST'
|
|
|
2928
2980
|
declare function updateLineItemsInCurrentCart(): __PublicMethodMetaInfo<'POST', {}, UpdateLineItemsInCurrentCartRequest$1, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse$1, UpdateLineItemsInCurrentCartResponse>;
|
|
2929
2981
|
declare function addCouponToCurrentCart(): __PublicMethodMetaInfo<'POST', {}, AddCouponToCurrentCartRequest$1, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse$1, AddCouponToCurrentCartResponse>;
|
|
2930
2982
|
declare function removeCouponFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, RemoveCouponFromCurrentCartRequest$1, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse$1, RemoveCouponFromCurrentCartResponse>;
|
|
2983
|
+
declare function setDeliveryMethodForCurrentCart(): __PublicMethodMetaInfo<'POST', {}, SetDeliveryMethodForCurrentCartRequest$1, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse$1, SetDeliveryMethodForCurrentCartResponse>;
|
|
2931
2984
|
declare function addGiftCardToCurrentCart(): __PublicMethodMetaInfo<'POST', {}, AddGiftCardToCurrentCartRequest$1, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse$1, AddGiftCardToCurrentCartResponse>;
|
|
2932
2985
|
declare function removeGiftCardFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, RemoveGiftCardFromCurrentCartRequest$1, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse$1, RemoveGiftCardFromCurrentCartResponse>;
|
|
2933
2986
|
|
|
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 };
|
|
2987
|
+
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 };
|
package/build/es/meta.mjs
CHANGED
|
@@ -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
|
};
|