@wix/ecom 1.0.845 → 1.0.847

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.
@@ -723,7 +723,7 @@ declare class InvalidSelectionWixError extends Error {
723
723
  /** @hidden */
724
724
  spiErrorData: object;
725
725
  data: MembershipInvalidSelectionErrors;
726
- constructor(data: MembershipInvalidSelectionErrors);
726
+ constructor(data?: MembershipInvalidSelectionErrors);
727
727
  /** @hidden */
728
728
  static readonly __type = "wix_spi_error";
729
729
  }
@@ -766,7 +766,7 @@ declare class MembershipCannotBeUsedWixError extends Error {
766
766
  /** @hidden */
767
767
  spiErrorData: object;
768
768
  data: MembershipCannotBeChargedError;
769
- constructor(data: MembershipCannotBeChargedError);
769
+ constructor(data?: MembershipCannotBeChargedError);
770
770
  /** @hidden */
771
771
  static readonly __type = "wix_spi_error";
772
772
  }
@@ -789,7 +789,7 @@ declare class MembershipAlreadyChargedWixError extends Error {
789
789
  /** @hidden */
790
790
  spiErrorData: object;
791
791
  data: MembershipAlreadyChargedError;
792
- constructor(data: MembershipAlreadyChargedError);
792
+ constructor(data?: MembershipAlreadyChargedError);
793
793
  /** @hidden */
794
794
  static readonly __type = "wix_spi_error";
795
795
  }
@@ -1089,7 +1089,7 @@ declare class AlgorithmNotSupportedWixError extends Error {
1089
1089
  /** @hidden */
1090
1090
  spiErrorData: object;
1091
1091
  data: RecommendationAlgorithmNotSupported;
1092
- constructor(data: RecommendationAlgorithmNotSupported);
1092
+ constructor(data?: RecommendationAlgorithmNotSupported);
1093
1093
  /** @hidden */
1094
1094
  static readonly __type = "wix_spi_error";
1095
1095
  }
@@ -1109,7 +1109,7 @@ declare class ItemAppIdNotSupportedWixError extends Error {
1109
1109
  /** @hidden */
1110
1110
  spiErrorData: object;
1111
1111
  data: ItemAppIdNotSupportedError;
1112
- constructor(data: ItemAppIdNotSupportedError);
1112
+ constructor(data?: ItemAppIdNotSupportedError);
1113
1113
  /** @hidden */
1114
1114
  static readonly __type = "wix_spi_error";
1115
1115
  }
@@ -1621,7 +1621,7 @@ declare class MissingPostalCodeWixError extends Error {
1621
1621
  /** @hidden */
1622
1622
  spiErrorData: object;
1623
1623
  data: MissingPostalCodeError;
1624
- constructor(data: MissingPostalCodeError);
1624
+ constructor(data?: MissingPostalCodeError);
1625
1625
  /** @hidden */
1626
1626
  static readonly __type = "wix_spi_error";
1627
1627
  }
@@ -1650,7 +1650,7 @@ declare class InvalidPostalCodeWixError extends Error {
1650
1650
  /** @hidden */
1651
1651
  spiErrorData: object;
1652
1652
  data: InvalidPostalCodeError;
1653
- constructor(data: InvalidPostalCodeError);
1653
+ constructor(data?: InvalidPostalCodeError);
1654
1654
  /** @hidden */
1655
1655
  static readonly __type = "wix_spi_error";
1656
1656
  }
@@ -1678,7 +1678,7 @@ declare class InvalidAddressWixError extends Error {
1678
1678
  /** @hidden */
1679
1679
  spiErrorData: object;
1680
1680
  data: InvalidAddressError;
1681
- constructor(data: InvalidAddressError);
1681
+ constructor(data?: InvalidAddressError);
1682
1682
  /** @hidden */
1683
1683
  static readonly __type = "wix_spi_error";
1684
1684
  }
@@ -1706,7 +1706,7 @@ declare class GenericShippingRatesWixError extends Error {
1706
1706
  /** @hidden */
1707
1707
  spiErrorData: object;
1708
1708
  data: GenericShippingRatesError;
1709
- constructor(data: GenericShippingRatesError);
1709
+ constructor(data?: GenericShippingRatesError);
1710
1710
  /** @hidden */
1711
1711
  static readonly __type = "wix_spi_error";
1712
1712
  }
@@ -3051,6 +3051,16 @@ declare enum DescriptionLineType {
3051
3051
  PLAIN_TEXT = "PLAIN_TEXT",
3052
3052
  COLOR = "COLOR"
3053
3053
  }
3054
+ interface FocalPoint {
3055
+ /** X-coordinate of the focal point. */
3056
+ x?: number;
3057
+ /** Y-coordinate of the focal point. */
3058
+ y?: number;
3059
+ /** crop by height */
3060
+ height?: number | null;
3061
+ /** crop by width */
3062
+ width?: number | null;
3063
+ }
3054
3064
  interface PhysicalProperties$1 {
3055
3065
  /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
3056
3066
  weight?: number | null;
@@ -4152,6 +4162,18 @@ interface TagList {
4152
4162
  /** List of tag IDs */
4153
4163
  tagIds?: string[];
4154
4164
  }
4165
+ interface Location {
4166
+ /**
4167
+ * Location ID.
4168
+ * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
4169
+ */
4170
+ _id?: string;
4171
+ /**
4172
+ * Location name.
4173
+ * @readonly
4174
+ */
4175
+ name?: string;
4176
+ }
4155
4177
  interface GetPaymentSettingsResponse {
4156
4178
  /** Retrieved payment settings. */
4157
4179
  paymentSettings?: PaymentSettings;
@@ -4619,18 +4641,6 @@ interface V1SubscriptionSettings {
4619
4641
  autoRenewal?: boolean;
4620
4642
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
4621
4643
  billingCycles?: number | null;
4622
- /**
4623
- * Period until first cycle starts. If applied payNow will be 0
4624
- * If None => no free trial
4625
- */
4626
- freeTrialPeriod?: FreeTrialPeriod$1;
4627
- /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
4628
- startDate?: Date | null;
4629
- /**
4630
- * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
4631
- * Default None => will behave like true
4632
- */
4633
- generateOrderEachBillingCycle?: boolean | null;
4634
4644
  }
4635
4645
  interface FreeTrialPeriod$1 {
4636
4646
  /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
@@ -4715,7 +4725,7 @@ interface PaymentOption {
4715
4725
  }
4716
4726
  interface Policy {
4717
4727
  /** Policy title - should be translated */
4718
- title?: string;
4728
+ title?: string | null;
4719
4729
  /** Policy content - should be translated */
4720
4730
  content?: string;
4721
4731
  }
@@ -4868,6 +4878,30 @@ interface OtherCharge {
4868
4878
  /** Price of added cost. */
4869
4879
  price?: MultiCurrencyPrice$1;
4870
4880
  }
4881
+ interface DeliveryAllocation$1 {
4882
+ /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
4883
+ deliveryCarrier?: Carrier$1;
4884
+ /** The delivery region that are relevant for this delivery solution. */
4885
+ deliveryRegion?: Region$1;
4886
+ /** Populated if the delivery solution is a partially supplied by this carrier. */
4887
+ applicableLineItems?: ApplicableLineItems$1;
4888
+ }
4889
+ interface Carrier$1 {
4890
+ /** The carrier app id */
4891
+ appId?: string | null;
4892
+ /** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
4893
+ code?: string;
4894
+ }
4895
+ interface Region$1 {
4896
+ /** The delivery region id. */
4897
+ _id?: string | null;
4898
+ /** The delivery region name. */
4899
+ name?: string | null;
4900
+ }
4901
+ interface ApplicableLineItems$1 {
4902
+ /** Line items that the delivery solution is for. */
4903
+ lineItemIds?: string[];
4904
+ }
4871
4905
  interface BuyerInfo extends BuyerInfoIdOneOf {
4872
4906
  /**
4873
4907
  * Visitor ID (if site visitor is **not** a member).
@@ -5610,6 +5644,7 @@ declare const context$1_FallbackReason: typeof FallbackReason;
5610
5644
  type context$1_FieldViolation = FieldViolation;
5611
5645
  type context$1_FileType = FileType;
5612
5646
  declare const context$1_FileType: typeof FileType;
5647
+ type context$1_FocalPoint = FocalPoint;
5613
5648
  type context$1_FulfillmentStatus = FulfillmentStatus;
5614
5649
  declare const context$1_FulfillmentStatus: typeof FulfillmentStatus;
5615
5650
  type context$1_FulfillmentStatusesAggregate = FulfillmentStatusesAggregate;
@@ -5633,6 +5668,7 @@ type context$1_LineItemQuantityChangeType = LineItemQuantityChangeType;
5633
5668
  declare const context$1_LineItemQuantityChangeType: typeof LineItemQuantityChangeType;
5634
5669
  type context$1_LineItemTaxBreakdown = LineItemTaxBreakdown;
5635
5670
  type context$1_LineItemTaxInfo = LineItemTaxInfo;
5671
+ type context$1_Location = Location;
5636
5672
  type context$1_LocationAndQuantity = LocationAndQuantity;
5637
5673
  type context$1_ManagedAdditionalFee = ManagedAdditionalFee;
5638
5674
  type context$1_ManagedDiscount = ManagedDiscount;
@@ -5748,7 +5784,7 @@ type context$1_V1SubscriptionSettings = V1SubscriptionSettings;
5748
5784
  type context$1_V1TaxSummary = V1TaxSummary;
5749
5785
  type context$1_ValidationError = ValidationError;
5750
5786
  declare namespace context$1 {
5751
- export { type context$1_Activity as Activity, type context$1_ActivityContentOneOf as ActivityContentOneOf, context$1_ActivityType as ActivityType, type context$1_AdditionalFee as AdditionalFee, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type context$1_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type context$1_ApiAddressWithContact as ApiAddressWithContact, type context$1_ApplicationError as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, context$1_AppliedDiscountDiscountType as AppliedDiscountDiscountType, context$1_AttributionSource as AttributionSource, type context$1_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type context$1_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type context$1_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type context$1_AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetails, type context$1_Balance as Balance, type context$1_BalanceSummary as BalanceSummary, type context$1_BuyerInfo as BuyerInfo, type context$1_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type context$1_CalculationErrors as CalculationErrors, type context$1_CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOf, type context$1_CarrierError as CarrierError, type context$1_CarrierErrors as CarrierErrors, type context$1_CarrierServiceOption as CarrierServiceOption, type context$1_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$1 as CatalogReference, type context$1_ChannelInfo as ChannelInfo, context$1_ChannelType as ChannelType, context$1_ChargeType as ChargeType, type context$1_Checkout as Checkout, type context$1_Color as Color, type Context$1 as Context, type context$1_ConversionInfo as ConversionInfo, type Coupon$1 as Coupon, type context$1_CreatedBy as CreatedBy, type context$1_CreatedByIdOneOf as CreatedByIdOneOf, type context$1_CreditCardDetails as CreditCardDetails, type context$1_CustomActivity as CustomActivity, type context$1_CustomContentReference as CustomContentReference, type CustomField$1 as CustomField, type context$1_CustomSettings as CustomSettings, type context$1_DeliveryLogistics as DeliveryLogistics, type context$1_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type context$1_DeliveryTimeSlot as DeliveryTimeSlot, type Description$1 as Description, type context$1_DescriptionLine as DescriptionLine, type context$1_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type context$1_DescriptionLineName as DescriptionLineName, context$1_DescriptionLineType as DescriptionLineType, type context$1_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type context$1_Details as Details, type context$1_DetailsKindOneOf as DetailsKindOneOf, type context$1_DigitalFile as DigitalFile, context$1_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type context$1_DraftOrderChangesApplied as DraftOrderChangesApplied, type ExtendedFields$1 as ExtendedFields, type ExternalReference$1 as ExternalReference, context$1_FallbackReason as FallbackReason, type context$1_FieldViolation as FieldViolation, context$1_FileType as FileType, type FreeTrialPeriod$1 as FreeTrialPeriod, context$1_FulfillmentStatus as FulfillmentStatus, type context$1_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type FullAddressContactDetails$1 as FullAddressContactDetails, type context$1_GetPaymentSettingsForCheckoutRequest as GetPaymentSettingsForCheckoutRequest, type context$1_GetPaymentSettingsForCheckoutResponse as GetPaymentSettingsForCheckoutResponse, type context$1_GetPaymentSettingsRequest as GetPaymentSettingsRequest, type context$1_GetPaymentSettingsResponse as GetPaymentSettingsResponse, type GiftCard$1 as GiftCard, type context$1_GiftCardPaymentRefund as GiftCardPaymentRefund, type context$1_Group as Group, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type context$1_InvalidMembership as InvalidMembership, type context$1_ItemAvailabilityInfo as ItemAvailabilityInfo, context$1_ItemAvailabilityStatus as ItemAvailabilityStatus, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, JurisdictionType$1 as JurisdictionType, type LineItem$1 as LineItem, type context$1_LineItemAmount as LineItemAmount, type context$1_LineItemChanges as LineItemChanges, type context$1_LineItemDiscount as LineItemDiscount, type context$1_LineItemExchangeData as LineItemExchangeData, type context$1_LineItemPriceChange as LineItemPriceChange, type context$1_LineItemQuantityChange as LineItemQuantityChange, context$1_LineItemQuantityChangeType as LineItemQuantityChangeType, type context$1_LineItemTaxBreakdown as LineItemTaxBreakdown, type context$1_LineItemTaxInfo as LineItemTaxInfo, type context$1_LocationAndQuantity as LocationAndQuantity, type context$1_ManagedAdditionalFee as ManagedAdditionalFee, type context$1_ManagedDiscount as ManagedDiscount, type context$1_ManagedLineItem as ManagedLineItem, context$1_ManualCalculationReason as ManualCalculationReason, type context$1_Membership as Membership, type context$1_MembershipName as MembershipName, type context$1_MembershipOptions as MembershipOptions, type context$1_MembershipPaymentCredits as MembershipPaymentCredits, type context$1_MembershipPaymentRefund as MembershipPaymentRefund, type context$1_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type context$1_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type MultiCurrencyPrice$1 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type context$1_NewExchangeOrderCreated as NewExchangeOrderCreated, type context$1_Order as Order, type context$1_OrderChange as OrderChange, type context$1_OrderChangeValueOneOf as OrderChangeValueOneOf, type context$1_OrderCreatedFromExchange as OrderCreatedFromExchange, type context$1_OrderLineItem as OrderLineItem, type context$1_OrderRefunded as OrderRefunded, context$1_OrderStatus as OrderStatus, type context$1_OrderTaxBreakdown as OrderTaxBreakdown, type context$1_OrderTaxInfo as OrderTaxInfo, type Other$1 as Other, type context$1_OtherCharge as OtherCharge, type context$1_PaymentCanceled as PaymentCanceled, type context$1_PaymentCanceledPaymentDetailsOneOf as PaymentCanceledPaymentDetailsOneOf, type context$1_PaymentDeclined as PaymentDeclined, type context$1_PaymentDeclinedPaymentDetailsOneOf as PaymentDeclinedPaymentDetailsOneOf, type context$1_PaymentOption as PaymentOption, context$1_PaymentOptionType as PaymentOptionType, type context$1_PaymentPending as PaymentPending, type context$1_PaymentPendingPaymentDetailsOneOf as PaymentPendingPaymentDetailsOneOf, type context$1_PaymentRefundFailed as PaymentRefundFailed, type context$1_PaymentRefunded as PaymentRefunded, type context$1_PaymentSettings as PaymentSettings, type context$1_PaymentSettingsSPIConfig as PaymentSettingsSPIConfig, context$1_PaymentStatus as PaymentStatus, type PhysicalProperties$1 as PhysicalProperties, type context$1_PickupAddress as PickupAddress, type context$1_PickupDetails as PickupDetails, context$1_PickupDetailsPickupMethod as PickupDetailsPickupMethod, context$1_PickupMethod as PickupMethod, type context$1_PlainTextValue as PlainTextValue, type context$1_Policy as Policy, type context$1_Price as Price, type context$1_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, context$1_RateType as RateType, type context$1_RefundInitiated as RefundInitiated, type context$1_RefundedAsStoreCredit as RefundedAsStoreCredit, type context$1_RefundedPayment as RefundedPayment, type context$1_RefundedPaymentKindOneOf as RefundedPaymentKindOneOf, type context$1_RegularPayment as RegularPayment, type context$1_RegularPaymentPaymentMethodDetailsOneOf as RegularPaymentPaymentMethodDetailsOneOf, type context$1_RegularPaymentRefund as RegularPaymentRefund, context$1_RuleType as RuleType, type context$1_SavedPaymentMethod as SavedPaymentMethod, type context$1_Scope as Scope, type context$1_SecuredMedia as SecuredMedia, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type context$1_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type context$1_SelectedMembership as SelectedMembership, type context$1_SelectedMemberships as SelectedMemberships, type context$1_ServiceProperties as ServiceProperties, Severity$1 as Severity, type ShippingInfo$1 as ShippingInfo, type context$1_ShippingInformation as ShippingInformation, type context$1_ShippingInformationChange as ShippingInformationChange, type context$1_ShippingOption as ShippingOption, type context$1_ShippingPrice as ShippingPrice, type context$1_ShippingRegion as ShippingRegion, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$1 as SubscriptionFrequency, type context$1_SubscriptionInfo as SubscriptionInfo, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, SuggestedFix$1 as SuggestedFix, type context$1_SystemError as SystemError, type context$1_TagList as TagList, type context$1_Tags as Tags, type Target$1 as Target, type TargetLineItem$1 as TargetLineItem, type TargetTargetTypeOneOf$1 as TargetTargetTypeOneOf, type TaxBreakdown$1 as TaxBreakdown, type context$1_TaxCalculationDetails as TaxCalculationDetails, type context$1_TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOf, type context$1_TaxRateBreakdown as TaxRateBreakdown, type context$1_TaxSummary as TaxSummary, type context$1_TaxableAddress as TaxableAddress, type context$1_TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOf, context$1_TaxableAddressType as TaxableAddressType, type Title$1 as Title, type context$1_TotalPriceChange as TotalPriceChange, type context$1_TranslatedValue as TranslatedValue, type context$1_V1AdditionalFee as V1AdditionalFee, type context$1_V1AppliedDiscount as V1AppliedDiscount, type context$1_V1AppliedDiscountDiscountSourceOneOf as V1AppliedDiscountDiscountSourceOneOf, type context$1_V1BuyerInfo as V1BuyerInfo, type context$1_V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOf, type context$1_V1Coupon as V1Coupon, type context$1_V1CreatedBy as V1CreatedBy, type context$1_V1CreatedByStringOneOf as V1CreatedByStringOneOf, type context$1_V1DeliveryLogistics as V1DeliveryLogistics, type context$1_V1DeliveryTimeSlot as V1DeliveryTimeSlot, type context$1_V1DiscountRule as V1DiscountRule, type context$1_V1DiscountRuleName as V1DiscountRuleName, type context$1_V1ItemTaxFullDetails as V1ItemTaxFullDetails, context$1_V1JurisdictionType as V1JurisdictionType, type context$1_V1LineItemDiscount as V1LineItemDiscount, type context$1_V1MerchantDiscount as V1MerchantDiscount, context$1_V1PaymentOption as V1PaymentOption, type context$1_V1PickupDetails as V1PickupDetails, type context$1_V1PriceSummary as V1PriceSummary, type context$1_V1ShippingInformation as V1ShippingInformation, type context$1_V1ShippingPrice as V1ShippingPrice, type context$1_V1ShippingRegion as V1ShippingRegion, type context$1_V1SubscriptionSettings as V1SubscriptionSettings, type context$1_V1TaxSummary as V1TaxSummary, type context$1_ValidationError as ValidationError, type VatId$1 as VatId, VatType$1 as VatType, type Violation$1 as Violation, WeightUnit$1 as WeightUnit, type _publicProvideHandlersType$1 as _publicProvideHandlersType, provideHandlers$2 as provideHandlers, provideHandlers$3 as publicProvideHandlers };
5787
+ export { type context$1_Activity as Activity, type context$1_ActivityContentOneOf as ActivityContentOneOf, context$1_ActivityType as ActivityType, type context$1_AdditionalFee as AdditionalFee, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type context$1_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type context$1_ApiAddressWithContact as ApiAddressWithContact, type ApplicableLineItems$1 as ApplicableLineItems, type context$1_ApplicationError as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, context$1_AppliedDiscountDiscountType as AppliedDiscountDiscountType, context$1_AttributionSource as AttributionSource, type context$1_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type context$1_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type context$1_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type context$1_AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetails, type context$1_Balance as Balance, type context$1_BalanceSummary as BalanceSummary, type context$1_BuyerInfo as BuyerInfo, type context$1_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type context$1_CalculationErrors as CalculationErrors, type context$1_CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOf, type Carrier$1 as Carrier, type context$1_CarrierError as CarrierError, type context$1_CarrierErrors as CarrierErrors, type context$1_CarrierServiceOption as CarrierServiceOption, type context$1_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$1 as CatalogReference, type context$1_ChannelInfo as ChannelInfo, context$1_ChannelType as ChannelType, context$1_ChargeType as ChargeType, type context$1_Checkout as Checkout, type context$1_Color as Color, type Context$1 as Context, type context$1_ConversionInfo as ConversionInfo, type Coupon$1 as Coupon, type context$1_CreatedBy as CreatedBy, type context$1_CreatedByIdOneOf as CreatedByIdOneOf, type context$1_CreditCardDetails as CreditCardDetails, type context$1_CustomActivity as CustomActivity, type context$1_CustomContentReference as CustomContentReference, type CustomField$1 as CustomField, type context$1_CustomSettings as CustomSettings, type DeliveryAllocation$1 as DeliveryAllocation, type context$1_DeliveryLogistics as DeliveryLogistics, type context$1_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type context$1_DeliveryTimeSlot as DeliveryTimeSlot, type Description$1 as Description, type context$1_DescriptionLine as DescriptionLine, type context$1_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type context$1_DescriptionLineName as DescriptionLineName, context$1_DescriptionLineType as DescriptionLineType, type context$1_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type context$1_Details as Details, type context$1_DetailsKindOneOf as DetailsKindOneOf, type context$1_DigitalFile as DigitalFile, context$1_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type context$1_DraftOrderChangesApplied as DraftOrderChangesApplied, type ExtendedFields$1 as ExtendedFields, type ExternalReference$1 as ExternalReference, context$1_FallbackReason as FallbackReason, type context$1_FieldViolation as FieldViolation, context$1_FileType as FileType, type context$1_FocalPoint as FocalPoint, type FreeTrialPeriod$1 as FreeTrialPeriod, context$1_FulfillmentStatus as FulfillmentStatus, type context$1_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type FullAddressContactDetails$1 as FullAddressContactDetails, type context$1_GetPaymentSettingsForCheckoutRequest as GetPaymentSettingsForCheckoutRequest, type context$1_GetPaymentSettingsForCheckoutResponse as GetPaymentSettingsForCheckoutResponse, type context$1_GetPaymentSettingsRequest as GetPaymentSettingsRequest, type context$1_GetPaymentSettingsResponse as GetPaymentSettingsResponse, type GiftCard$1 as GiftCard, type context$1_GiftCardPaymentRefund as GiftCardPaymentRefund, type context$1_Group as Group, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type context$1_InvalidMembership as InvalidMembership, type context$1_ItemAvailabilityInfo as ItemAvailabilityInfo, context$1_ItemAvailabilityStatus as ItemAvailabilityStatus, type ItemTaxFullDetails$1 as ItemTaxFullDetails, type ItemType$1 as ItemType, ItemTypeItemType$1 as ItemTypeItemType, type ItemTypeItemTypeDataOneOf$1 as ItemTypeItemTypeDataOneOf, JurisdictionType$1 as JurisdictionType, type LineItem$1 as LineItem, type context$1_LineItemAmount as LineItemAmount, type context$1_LineItemChanges as LineItemChanges, type context$1_LineItemDiscount as LineItemDiscount, type context$1_LineItemExchangeData as LineItemExchangeData, type context$1_LineItemPriceChange as LineItemPriceChange, type context$1_LineItemQuantityChange as LineItemQuantityChange, context$1_LineItemQuantityChangeType as LineItemQuantityChangeType, type context$1_LineItemTaxBreakdown as LineItemTaxBreakdown, type context$1_LineItemTaxInfo as LineItemTaxInfo, type context$1_Location as Location, type context$1_LocationAndQuantity as LocationAndQuantity, type context$1_ManagedAdditionalFee as ManagedAdditionalFee, type context$1_ManagedDiscount as ManagedDiscount, type context$1_ManagedLineItem as ManagedLineItem, context$1_ManualCalculationReason as ManualCalculationReason, type context$1_Membership as Membership, type context$1_MembershipName as MembershipName, type context$1_MembershipOptions as MembershipOptions, type context$1_MembershipPaymentCredits as MembershipPaymentCredits, type context$1_MembershipPaymentRefund as MembershipPaymentRefund, type context$1_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type context$1_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type MultiCurrencyPrice$1 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type context$1_NewExchangeOrderCreated as NewExchangeOrderCreated, type context$1_Order as Order, type context$1_OrderChange as OrderChange, type context$1_OrderChangeValueOneOf as OrderChangeValueOneOf, type context$1_OrderCreatedFromExchange as OrderCreatedFromExchange, type context$1_OrderLineItem as OrderLineItem, type context$1_OrderRefunded as OrderRefunded, context$1_OrderStatus as OrderStatus, type context$1_OrderTaxBreakdown as OrderTaxBreakdown, type context$1_OrderTaxInfo as OrderTaxInfo, type Other$1 as Other, type context$1_OtherCharge as OtherCharge, type context$1_PaymentCanceled as PaymentCanceled, type context$1_PaymentCanceledPaymentDetailsOneOf as PaymentCanceledPaymentDetailsOneOf, type context$1_PaymentDeclined as PaymentDeclined, type context$1_PaymentDeclinedPaymentDetailsOneOf as PaymentDeclinedPaymentDetailsOneOf, type context$1_PaymentOption as PaymentOption, context$1_PaymentOptionType as PaymentOptionType, type context$1_PaymentPending as PaymentPending, type context$1_PaymentPendingPaymentDetailsOneOf as PaymentPendingPaymentDetailsOneOf, type context$1_PaymentRefundFailed as PaymentRefundFailed, type context$1_PaymentRefunded as PaymentRefunded, type context$1_PaymentSettings as PaymentSettings, type context$1_PaymentSettingsSPIConfig as PaymentSettingsSPIConfig, context$1_PaymentStatus as PaymentStatus, type PhysicalProperties$1 as PhysicalProperties, type context$1_PickupAddress as PickupAddress, type context$1_PickupDetails as PickupDetails, context$1_PickupDetailsPickupMethod as PickupDetailsPickupMethod, context$1_PickupMethod as PickupMethod, type context$1_PlainTextValue as PlainTextValue, type context$1_Policy as Policy, type context$1_Price as Price, type context$1_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, context$1_RateType as RateType, type context$1_RefundInitiated as RefundInitiated, type context$1_RefundedAsStoreCredit as RefundedAsStoreCredit, type context$1_RefundedPayment as RefundedPayment, type context$1_RefundedPaymentKindOneOf as RefundedPaymentKindOneOf, type Region$1 as Region, type context$1_RegularPayment as RegularPayment, type context$1_RegularPaymentPaymentMethodDetailsOneOf as RegularPaymentPaymentMethodDetailsOneOf, type context$1_RegularPaymentRefund as RegularPaymentRefund, context$1_RuleType as RuleType, type context$1_SavedPaymentMethod as SavedPaymentMethod, type context$1_Scope as Scope, type context$1_SecuredMedia as SecuredMedia, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type context$1_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type context$1_SelectedMembership as SelectedMembership, type context$1_SelectedMemberships as SelectedMemberships, type context$1_ServiceProperties as ServiceProperties, Severity$1 as Severity, type ShippingInfo$1 as ShippingInfo, type context$1_ShippingInformation as ShippingInformation, type context$1_ShippingInformationChange as ShippingInformationChange, type context$1_ShippingOption as ShippingOption, type context$1_ShippingPrice as ShippingPrice, type context$1_ShippingRegion as ShippingRegion, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$1 as SubscriptionFrequency, type context$1_SubscriptionInfo as SubscriptionInfo, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, SuggestedFix$1 as SuggestedFix, type context$1_SystemError as SystemError, type context$1_TagList as TagList, type context$1_Tags as Tags, type Target$1 as Target, type TargetLineItem$1 as TargetLineItem, type TargetTargetTypeOneOf$1 as TargetTargetTypeOneOf, type TaxBreakdown$1 as TaxBreakdown, type context$1_TaxCalculationDetails as TaxCalculationDetails, type context$1_TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOf, type context$1_TaxRateBreakdown as TaxRateBreakdown, type context$1_TaxSummary as TaxSummary, type context$1_TaxableAddress as TaxableAddress, type context$1_TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOf, context$1_TaxableAddressType as TaxableAddressType, type Title$1 as Title, type context$1_TotalPriceChange as TotalPriceChange, type context$1_TranslatedValue as TranslatedValue, type context$1_V1AdditionalFee as V1AdditionalFee, type context$1_V1AppliedDiscount as V1AppliedDiscount, type context$1_V1AppliedDiscountDiscountSourceOneOf as V1AppliedDiscountDiscountSourceOneOf, type context$1_V1BuyerInfo as V1BuyerInfo, type context$1_V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOf, type context$1_V1Coupon as V1Coupon, type context$1_V1CreatedBy as V1CreatedBy, type context$1_V1CreatedByStringOneOf as V1CreatedByStringOneOf, type context$1_V1DeliveryLogistics as V1DeliveryLogistics, type context$1_V1DeliveryTimeSlot as V1DeliveryTimeSlot, type context$1_V1DiscountRule as V1DiscountRule, type context$1_V1DiscountRuleName as V1DiscountRuleName, type context$1_V1ItemTaxFullDetails as V1ItemTaxFullDetails, context$1_V1JurisdictionType as V1JurisdictionType, type context$1_V1LineItemDiscount as V1LineItemDiscount, type context$1_V1MerchantDiscount as V1MerchantDiscount, context$1_V1PaymentOption as V1PaymentOption, type context$1_V1PickupDetails as V1PickupDetails, type context$1_V1PriceSummary as V1PriceSummary, type context$1_V1ShippingInformation as V1ShippingInformation, type context$1_V1ShippingPrice as V1ShippingPrice, type context$1_V1ShippingRegion as V1ShippingRegion, type context$1_V1SubscriptionSettings as V1SubscriptionSettings, type context$1_V1TaxSummary as V1TaxSummary, type context$1_ValidationError as ValidationError, type VatId$1 as VatId, VatType$1 as VatType, type Violation$1 as Violation, WeightUnit$1 as WeightUnit, type _publicProvideHandlersType$1 as _publicProvideHandlersType, provideHandlers$2 as provideHandlers, provideHandlers$3 as publicProvideHandlers };
5752
5788
  }
5753
5789
 
5754
5790
  interface GetValidationViolationsRequest {
@@ -5971,18 +6007,6 @@ interface SubscriptionSettings {
5971
6007
  autoRenewal?: boolean;
5972
6008
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
5973
6009
  billingCycles?: number | null;
5974
- /**
5975
- * Period until first cycle starts. If applied payNow will be 0
5976
- * If None => no free trial
5977
- */
5978
- freeTrialPeriod?: FreeTrialPeriod;
5979
- /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
5980
- startDate?: Date | null;
5981
- /**
5982
- * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
5983
- * Default None => will behave like true
5984
- */
5985
- generateOrderEachBillingCycle?: boolean | null;
5986
6010
  }
5987
6011
  /** Frequency unit of recurring payment */
5988
6012
  declare enum SubscriptionFrequency {
@@ -6203,6 +6227,30 @@ interface SelectedCarrierServiceOptionPrices {
6203
6227
  /** Shipping price before discount and before tax. */
6204
6228
  price?: MultiCurrencyPrice;
6205
6229
  }
6230
+ interface DeliveryAllocation {
6231
+ /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
6232
+ deliveryCarrier?: Carrier;
6233
+ /** The delivery region that are relevant for this delivery solution. */
6234
+ deliveryRegion?: Region;
6235
+ /** Populated if the delivery solution is a partially supplied by this carrier. */
6236
+ applicableLineItems?: ApplicableLineItems;
6237
+ }
6238
+ interface Carrier {
6239
+ /** The carrier app id */
6240
+ appId?: string | null;
6241
+ /** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
6242
+ code?: string;
6243
+ }
6244
+ interface Region {
6245
+ /** The delivery region id. */
6246
+ _id?: string | null;
6247
+ /** The delivery region name. */
6248
+ name?: string | null;
6249
+ }
6250
+ interface ApplicableLineItems {
6251
+ /** Line items that the delivery solution is for. */
6252
+ lineItemIds?: string[];
6253
+ }
6206
6254
  interface CustomFields {
6207
6255
  /** List of custom fields */
6208
6256
  fields?: CustomField[];
@@ -6443,9 +6491,11 @@ declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publ
6443
6491
  type context_Address = Address;
6444
6492
  type context_AddressLocation = AddressLocation;
6445
6493
  type context_AddressWithContact = AddressWithContact;
6494
+ type context_ApplicableLineItems = ApplicableLineItems;
6446
6495
  type context_AppliedDiscount = AppliedDiscount;
6447
6496
  type context_AppliedDiscountDiscountSourceOneOf = AppliedDiscountDiscountSourceOneOf;
6448
6497
  type context_BuyerDetails = BuyerDetails;
6498
+ type context_Carrier = Carrier;
6449
6499
  type context_CatalogReference = CatalogReference;
6450
6500
  type context_CheckoutStage = CheckoutStage;
6451
6501
  declare const context_CheckoutStage: typeof CheckoutStage;
@@ -6453,6 +6503,7 @@ type context_Context = Context;
6453
6503
  type context_Coupon = Coupon;
6454
6504
  type context_CustomField = CustomField;
6455
6505
  type context_CustomFields = CustomFields;
6506
+ type context_DeliveryAllocation = DeliveryAllocation;
6456
6507
  type context_Description = Description;
6457
6508
  type context_DiscountRule = DiscountRule;
6458
6509
  type context_DiscountRuleName = DiscountRuleName;
@@ -6488,6 +6539,7 @@ type context_Other = Other;
6488
6539
  type context_PhysicalProperties = PhysicalProperties;
6489
6540
  type context_PriceSummary = PriceSummary;
6490
6541
  type context_ProductName = ProductName;
6542
+ type context_Region = Region;
6491
6543
  type context_SelectedCarrierServiceOption = SelectedCarrierServiceOption;
6492
6544
  type context_SelectedCarrierServiceOptionPrices = SelectedCarrierServiceOptionPrices;
6493
6545
  type context_Severity = Severity;
@@ -6521,7 +6573,7 @@ declare const context_WeightUnit: typeof WeightUnit;
6521
6573
  type context__publicProvideHandlersType = _publicProvideHandlersType;
6522
6574
  declare const context_provideHandlers: typeof provideHandlers;
6523
6575
  declare namespace context {
6524
- export { type context_Address as Address, type context_AddressLocation as AddressLocation, type context_AddressWithContact as AddressWithContact, type context_AppliedDiscount as AppliedDiscount, type context_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type context_BuyerDetails as BuyerDetails, type context_CatalogReference as CatalogReference, context_CheckoutStage as CheckoutStage, type context_Context as Context, type context_Coupon as Coupon, type context_CustomField as CustomField, type context_CustomFields as CustomFields, type context_Description as Description, type context_DiscountRule as DiscountRule, type context_DiscountRuleName as DiscountRuleName, context_DiscountType as DiscountType, type context_ExtendedFields as ExtendedFields, type context_ExternalReference as ExternalReference, type context_FreeTrialPeriod as FreeTrialPeriod, type context_FullAddressContactDetails as FullAddressContactDetails, type context_GetValidationViolationsRequest as GetValidationViolationsRequest, type context_GetValidationViolationsResponse as GetValidationViolationsResponse, type context_GiftCard as GiftCard, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_ItemTaxFullDetails as ItemTaxFullDetails, type context_ItemType as ItemType, context_ItemTypeItemType as ItemTypeItemType, type context_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, context_JurisdictionType as JurisdictionType, type context_LineItem as LineItem, type context_LineItemPricesData as LineItemPricesData, type context_MerchantDiscount as MerchantDiscount, type context_MultiCurrencyPrice as MultiCurrencyPrice, context_NameInLineItem as NameInLineItem, context_NameInOther as NameInOther, type context_Other as Other, type context_PhysicalProperties as PhysicalProperties, type context_PriceSummary as PriceSummary, type context_ProductName as ProductName, type context_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type context_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, context_Severity as Severity, type context_ShippingInfo as ShippingInfo, context_Source as Source, type context_SourceInfo as SourceInfo, type context_Stage as Stage, type context_StageStagesOneOf as StageStagesOneOf, type context_StreetAddress as StreetAddress, context_SubscriptionFrequency as SubscriptionFrequency, type context_SubscriptionOptionInfo as SubscriptionOptionInfo, type context_SubscriptionSettings as SubscriptionSettings, context_SuggestedFix as SuggestedFix, type context_Target as Target, type context_TargetLineItem as TargetLineItem, type context_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type context_TaxBreakdown as TaxBreakdown, type context_Title as Title, type context_ValidationInfo as ValidationInfo, type context_ValidationsSPIConfig as ValidationsSPIConfig, type context_VatId as VatId, context_VatType as VatType, type context_Violation as Violation, context_WeightUnit as WeightUnit, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
6576
+ export { type context_Address as Address, type context_AddressLocation as AddressLocation, type context_AddressWithContact as AddressWithContact, type context_ApplicableLineItems as ApplicableLineItems, type context_AppliedDiscount as AppliedDiscount, type context_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type context_BuyerDetails as BuyerDetails, type context_Carrier as Carrier, type context_CatalogReference as CatalogReference, context_CheckoutStage as CheckoutStage, type context_Context as Context, type context_Coupon as Coupon, type context_CustomField as CustomField, type context_CustomFields as CustomFields, type context_DeliveryAllocation as DeliveryAllocation, type context_Description as Description, type context_DiscountRule as DiscountRule, type context_DiscountRuleName as DiscountRuleName, context_DiscountType as DiscountType, type context_ExtendedFields as ExtendedFields, type context_ExternalReference as ExternalReference, type context_FreeTrialPeriod as FreeTrialPeriod, type context_FullAddressContactDetails as FullAddressContactDetails, type context_GetValidationViolationsRequest as GetValidationViolationsRequest, type context_GetValidationViolationsResponse as GetValidationViolationsResponse, type context_GiftCard as GiftCard, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_ItemTaxFullDetails as ItemTaxFullDetails, type context_ItemType as ItemType, context_ItemTypeItemType as ItemTypeItemType, type context_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, context_JurisdictionType as JurisdictionType, type context_LineItem as LineItem, type context_LineItemPricesData as LineItemPricesData, type context_MerchantDiscount as MerchantDiscount, type context_MultiCurrencyPrice as MultiCurrencyPrice, context_NameInLineItem as NameInLineItem, context_NameInOther as NameInOther, type context_Other as Other, type context_PhysicalProperties as PhysicalProperties, type context_PriceSummary as PriceSummary, type context_ProductName as ProductName, type context_Region as Region, type context_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type context_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, context_Severity as Severity, type context_ShippingInfo as ShippingInfo, context_Source as Source, type context_SourceInfo as SourceInfo, type context_Stage as Stage, type context_StageStagesOneOf as StageStagesOneOf, type context_StreetAddress as StreetAddress, context_SubscriptionFrequency as SubscriptionFrequency, type context_SubscriptionOptionInfo as SubscriptionOptionInfo, type context_SubscriptionSettings as SubscriptionSettings, context_SuggestedFix as SuggestedFix, type context_Target as Target, type context_TargetLineItem as TargetLineItem, type context_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type context_TaxBreakdown as TaxBreakdown, type context_Title as Title, type context_ValidationInfo as ValidationInfo, type context_ValidationsSPIConfig as ValidationsSPIConfig, type context_VatId as VatId, context_VatType as VatType, type context_Violation as Violation, context_WeightUnit as WeightUnit, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
6525
6577
  }
6526
6578
 
6527
6579
  export { context$4 as additionalFees, context$3 as customTriggers, context$2 as discounts, context$8 as giftVouchersProvider, context$7 as memberships, context$1 as paymentSettings, context$6 as recommendationsProvider, context$5 as shippingRates, context as validations };