@wix/ecom 1.0.820 → 1.0.822

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.
@@ -6971,10 +6971,15 @@ interface ItemTypeNonNullableFields$b {
6971
6971
  preset: ItemTypeItemType$d;
6972
6972
  custom: string;
6973
6973
  }
6974
+ interface FreeTrialPeriodNonNullableFields$7 {
6975
+ frequency: SubscriptionFrequency$d;
6976
+ interval: number;
6977
+ }
6974
6978
  interface SubscriptionSettingsNonNullableFields$b {
6975
6979
  frequency: SubscriptionFrequency$d;
6976
6980
  autoRenewal: boolean;
6977
6981
  enableCustomerCancellation: boolean;
6982
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$7;
6978
6983
  }
6979
6984
  interface TitleNonNullableFields$7 {
6980
6985
  original: string;
@@ -8924,10 +8929,15 @@ interface ItemTypeNonNullableFields$a {
8924
8929
  preset: ItemTypeItemType$c;
8925
8930
  custom: string;
8926
8931
  }
8932
+ interface FreeTrialPeriodNonNullableFields$6 {
8933
+ frequency: SubscriptionFrequency$c;
8934
+ interval: number;
8935
+ }
8927
8936
  interface SubscriptionSettingsNonNullableFields$a {
8928
8937
  frequency: SubscriptionFrequency$c;
8929
8938
  autoRenewal: boolean;
8930
8939
  enableCustomerCancellation: boolean;
8940
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$6;
8931
8941
  }
8932
8942
  interface TitleNonNullableFields$6 {
8933
8943
  original: string;
@@ -10956,10 +10966,15 @@ interface ItemTypeNonNullableFields$9 {
10956
10966
  preset: ItemTypeItemType$b;
10957
10967
  custom: string;
10958
10968
  }
10969
+ interface FreeTrialPeriodNonNullableFields$5 {
10970
+ frequency: SubscriptionFrequency$b;
10971
+ interval: number;
10972
+ }
10959
10973
  interface SubscriptionSettingsNonNullableFields$9 {
10960
10974
  frequency: SubscriptionFrequency$b;
10961
10975
  autoRenewal: boolean;
10962
10976
  enableCustomerCancellation: boolean;
10977
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$5;
10963
10978
  }
10964
10979
  interface TitleNonNullableFields$5 {
10965
10980
  original: string;
@@ -12869,10 +12884,15 @@ interface ItemTypeNonNullableFields$8 {
12869
12884
  preset: ItemTypeItemType$a;
12870
12885
  custom: string;
12871
12886
  }
12887
+ interface FreeTrialPeriodNonNullableFields$4 {
12888
+ frequency: SubscriptionFrequency$a;
12889
+ interval: number;
12890
+ }
12872
12891
  interface SubscriptionSettingsNonNullableFields$8 {
12873
12892
  frequency: SubscriptionFrequency$a;
12874
12893
  autoRenewal: boolean;
12875
12894
  enableCustomerCancellation: boolean;
12895
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$4;
12876
12896
  }
12877
12897
  interface TitleNonNullableFields$4 {
12878
12898
  original: string;
@@ -13867,6 +13887,18 @@ interface SubscriptionSettings$7 {
13867
13887
  autoRenewal?: boolean;
13868
13888
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
13869
13889
  billingCycles?: number | null;
13890
+ /**
13891
+ * Period until first cycle starts. If applied payNow will be 0
13892
+ * If None => no free trial
13893
+ */
13894
+ freeTrialPeriod?: FreeTrialPeriod$1;
13895
+ /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
13896
+ startDate?: Date | null;
13897
+ /**
13898
+ * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
13899
+ * Default None => will behave like true
13900
+ */
13901
+ generateOrderEachBillingCycle?: boolean | null;
13870
13902
  }
13871
13903
  /** Frequency unit of recurring payment */
13872
13904
  declare enum SubscriptionFrequency$9 {
@@ -13876,6 +13908,12 @@ declare enum SubscriptionFrequency$9 {
13876
13908
  MONTH = "MONTH",
13877
13909
  YEAR = "YEAR"
13878
13910
  }
13911
+ interface FreeTrialPeriod$1 {
13912
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
13913
+ frequency?: SubscriptionFrequency$9;
13914
+ /** interval of period */
13915
+ interval?: number;
13916
+ }
13879
13917
  interface Title$1 {
13880
13918
  /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
13881
13919
  original?: string;
@@ -15154,10 +15192,15 @@ interface ItemTypeNonNullableFields$7 {
15154
15192
  preset: ItemTypeItemType$9;
15155
15193
  custom: string;
15156
15194
  }
15195
+ interface FreeTrialPeriodNonNullableFields$3 {
15196
+ frequency: SubscriptionFrequency$9;
15197
+ interval: number;
15198
+ }
15157
15199
  interface SubscriptionSettingsNonNullableFields$7 {
15158
15200
  frequency: SubscriptionFrequency$9;
15159
15201
  autoRenewal: boolean;
15160
15202
  enableCustomerCancellation: boolean;
15203
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$3;
15161
15204
  }
15162
15205
  interface TitleNonNullableFields$3 {
15163
15206
  original: string;
@@ -16095,6 +16138,18 @@ interface SubscriptionSettings$6 {
16095
16138
  autoRenewal?: boolean;
16096
16139
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
16097
16140
  billingCycles?: number | null;
16141
+ /**
16142
+ * Period until first cycle starts. If applied payNow will be 0
16143
+ * If None => no free trial
16144
+ */
16145
+ freeTrialPeriod?: FreeTrialPeriod;
16146
+ /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
16147
+ startDate?: Date | null;
16148
+ /**
16149
+ * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
16150
+ * Default None => will behave like true
16151
+ */
16152
+ generateOrderEachBillingCycle?: boolean | null;
16098
16153
  }
16099
16154
  /** Frequency unit of recurring payment */
16100
16155
  declare enum SubscriptionFrequency$8 {
@@ -16104,6 +16159,12 @@ declare enum SubscriptionFrequency$8 {
16104
16159
  MONTH = "MONTH",
16105
16160
  YEAR = "YEAR"
16106
16161
  }
16162
+ interface FreeTrialPeriod {
16163
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
16164
+ frequency?: SubscriptionFrequency$8;
16165
+ /** interval of period */
16166
+ interval?: number;
16167
+ }
16107
16168
  interface Title {
16108
16169
  /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
16109
16170
  original?: string;
@@ -17333,10 +17394,15 @@ interface ItemTypeNonNullableFields$6 {
17333
17394
  preset: ItemTypeItemType$8;
17334
17395
  custom: string;
17335
17396
  }
17397
+ interface FreeTrialPeriodNonNullableFields$2 {
17398
+ frequency: SubscriptionFrequency$8;
17399
+ interval: number;
17400
+ }
17336
17401
  interface SubscriptionSettingsNonNullableFields$6 {
17337
17402
  frequency: SubscriptionFrequency$8;
17338
17403
  autoRenewal: boolean;
17339
17404
  enableCustomerCancellation: boolean;
17405
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$2;
17340
17406
  }
17341
17407
  interface TitleNonNullableFields$2 {
17342
17408
  original: string;
@@ -18878,10 +18944,15 @@ interface ItemTypeNonNullableFields$5 {
18878
18944
  preset: ItemTypeItemType$7;
18879
18945
  custom: string;
18880
18946
  }
18947
+ interface FreeTrialPeriodNonNullableFields$1 {
18948
+ frequency: SubscriptionFrequency$7;
18949
+ interval: number;
18950
+ }
18881
18951
  interface SubscriptionSettingsNonNullableFields$5 {
18882
18952
  frequency: SubscriptionFrequency$7;
18883
18953
  autoRenewal: boolean;
18884
18954
  enableCustomerCancellation: boolean;
18955
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields$1;
18885
18956
  }
18886
18957
  interface TitleNonNullableFields$1 {
18887
18958
  original: string;
@@ -19551,10 +19622,15 @@ interface ItemTypeNonNullableFields$4 {
19551
19622
  preset: ItemTypeItemType$6;
19552
19623
  custom: string;
19553
19624
  }
19625
+ interface FreeTrialPeriodNonNullableFields {
19626
+ frequency: SubscriptionFrequency$6;
19627
+ interval: number;
19628
+ }
19554
19629
  interface SubscriptionSettingsNonNullableFields$4 {
19555
19630
  frequency: SubscriptionFrequency$6;
19556
19631
  autoRenewal: boolean;
19557
19632
  enableCustomerCancellation: boolean;
19633
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields;
19558
19634
  }
19559
19635
  interface TitleNonNullableFields {
19560
19636
  original: string;
@@ -21754,6 +21830,13 @@ interface OrderTaxInfo$3 {
21754
21830
  totalTax?: Price$9;
21755
21831
  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
21756
21832
  taxBreakdown?: OrderTaxBreakdown$3[];
21833
+ /**
21834
+ * Whether the draft order is exempt from tax calculations.
21835
+ *
21836
+ * Default: `true`
21837
+ * @readonly
21838
+ */
21839
+ taxExempt?: boolean | null;
21757
21840
  }
21758
21841
  /**
21759
21842
  * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
@@ -24334,6 +24417,13 @@ interface OrderTaxInfo$2 {
24334
24417
  totalTax?: Price$8;
24335
24418
  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
24336
24419
  taxBreakdown?: OrderTaxBreakdown$2[];
24420
+ /**
24421
+ * Whether the draft order is exempt from tax calculations.
24422
+ *
24423
+ * Default: `true`
24424
+ * @readonly
24425
+ */
24426
+ taxExempt?: boolean | null;
24337
24427
  }
24338
24428
  /**
24339
24429
  * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
@@ -28393,6 +28483,13 @@ interface OrderTaxInfo$1 {
28393
28483
  totalTax?: Price$7;
28394
28484
  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
28395
28485
  taxBreakdown?: OrderTaxBreakdown$1[];
28486
+ /**
28487
+ * Whether the draft order is exempt from tax calculations.
28488
+ *
28489
+ * Default: `true`
28490
+ * @readonly
28491
+ */
28492
+ taxExempt?: boolean | null;
28396
28493
  }
28397
28494
  /**
28398
28495
  * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
@@ -30658,6 +30755,13 @@ interface OrderTaxInfo {
30658
30755
  totalTax?: Price$6;
30659
30756
  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
30660
30757
  taxBreakdown?: OrderTaxBreakdown[];
30758
+ /**
30759
+ * Whether the draft order is exempt from tax calculations.
30760
+ *
30761
+ * Default: `true`
30762
+ * @readonly
30763
+ */
30764
+ taxExempt?: boolean | null;
30661
30765
  }
30662
30766
  /**
30663
30767
  * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
@@ -3467,6 +3467,13 @@ interface OrderTaxInfo {
3467
3467
  totalTax?: Price;
3468
3468
  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
3469
3469
  taxBreakdown?: OrderTaxBreakdown[];
3470
+ /**
3471
+ * Whether the draft order is exempt from tax calculations.
3472
+ *
3473
+ * Default: `true`
3474
+ * @readonly
3475
+ */
3476
+ taxExempt?: boolean | null;
3470
3477
  }
3471
3478
  /**
3472
3479
  * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
@@ -4602,6 +4609,24 @@ interface V1SubscriptionSettings {
4602
4609
  autoRenewal?: boolean;
4603
4610
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
4604
4611
  billingCycles?: number | null;
4612
+ /**
4613
+ * Period until first cycle starts. If applied payNow will be 0
4614
+ * If None => no free trial
4615
+ */
4616
+ freeTrialPeriod?: FreeTrialPeriod$1;
4617
+ /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
4618
+ startDate?: Date | null;
4619
+ /**
4620
+ * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
4621
+ * Default None => will behave like true
4622
+ */
4623
+ generateOrderEachBillingCycle?: boolean | null;
4624
+ }
4625
+ interface FreeTrialPeriod$1 {
4626
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
4627
+ frequency?: SubscriptionFrequency$1;
4628
+ /** interval of period */
4629
+ interval?: number;
4605
4630
  }
4606
4631
  interface Title$1 {
4607
4632
  /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
@@ -5704,7 +5729,7 @@ type context$1_V1SubscriptionSettings = V1SubscriptionSettings;
5704
5729
  type context$1_V1TaxSummary = V1TaxSummary;
5705
5730
  type context$1_ValidationError = ValidationError;
5706
5731
  declare namespace context$1 {
5707
- 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, 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_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 };
5732
+ 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_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 };
5708
5733
  }
5709
5734
 
5710
5735
  interface GetValidationViolationsRequest {
@@ -5927,6 +5952,18 @@ interface SubscriptionSettings {
5927
5952
  autoRenewal?: boolean;
5928
5953
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
5929
5954
  billingCycles?: number | null;
5955
+ /**
5956
+ * Period until first cycle starts. If applied payNow will be 0
5957
+ * If None => no free trial
5958
+ */
5959
+ freeTrialPeriod?: FreeTrialPeriod;
5960
+ /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
5961
+ startDate?: Date | null;
5962
+ /**
5963
+ * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
5964
+ * Default None => will behave like true
5965
+ */
5966
+ generateOrderEachBillingCycle?: boolean | null;
5930
5967
  }
5931
5968
  /** Frequency unit of recurring payment */
5932
5969
  declare enum SubscriptionFrequency {
@@ -5936,6 +5973,12 @@ declare enum SubscriptionFrequency {
5936
5973
  MONTH = "MONTH",
5937
5974
  YEAR = "YEAR"
5938
5975
  }
5976
+ interface FreeTrialPeriod {
5977
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
5978
+ frequency?: SubscriptionFrequency;
5979
+ /** interval of period */
5980
+ interval?: number;
5981
+ }
5939
5982
  interface Title {
5940
5983
  /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
5941
5984
  original?: string;
@@ -6398,6 +6441,7 @@ type context_DiscountType = DiscountType;
6398
6441
  declare const context_DiscountType: typeof DiscountType;
6399
6442
  type context_ExtendedFields = ExtendedFields;
6400
6443
  type context_ExternalReference = ExternalReference;
6444
+ type context_FreeTrialPeriod = FreeTrialPeriod;
6401
6445
  type context_FullAddressContactDetails = FullAddressContactDetails;
6402
6446
  type context_GetValidationViolationsRequest = GetValidationViolationsRequest;
6403
6447
  type context_GetValidationViolationsResponse = GetValidationViolationsResponse;
@@ -6458,7 +6502,7 @@ declare const context_WeightUnit: typeof WeightUnit;
6458
6502
  type context__publicProvideHandlersType = _publicProvideHandlersType;
6459
6503
  declare const context_provideHandlers: typeof provideHandlers;
6460
6504
  declare namespace context {
6461
- 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_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 };
6505
+ 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 };
6462
6506
  }
6463
6507
 
6464
6508
  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 };
@@ -3467,6 +3467,13 @@ interface OrderTaxInfo {
3467
3467
  totalTax?: Price;
3468
3468
  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
3469
3469
  taxBreakdown?: OrderTaxBreakdown[];
3470
+ /**
3471
+ * Whether the draft order is exempt from tax calculations.
3472
+ *
3473
+ * Default: `true`
3474
+ * @readonly
3475
+ */
3476
+ taxExempt?: boolean | null;
3470
3477
  }
3471
3478
  /**
3472
3479
  * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
@@ -4602,6 +4609,24 @@ interface V1SubscriptionSettings {
4602
4609
  autoRenewal?: boolean;
4603
4610
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
4604
4611
  billingCycles?: number | null;
4612
+ /**
4613
+ * Period until first cycle starts. If applied payNow will be 0
4614
+ * If None => no free trial
4615
+ */
4616
+ freeTrialPeriod?: FreeTrialPeriod$1;
4617
+ /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
4618
+ startDate?: Date | null;
4619
+ /**
4620
+ * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
4621
+ * Default None => will behave like true
4622
+ */
4623
+ generateOrderEachBillingCycle?: boolean | null;
4624
+ }
4625
+ interface FreeTrialPeriod$1 {
4626
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
4627
+ frequency?: SubscriptionFrequency$1;
4628
+ /** interval of period */
4629
+ interval?: number;
4605
4630
  }
4606
4631
  interface Title$1 {
4607
4632
  /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
@@ -5704,7 +5729,7 @@ type index_d$1_V1SubscriptionSettings = V1SubscriptionSettings;
5704
5729
  type index_d$1_V1TaxSummary = V1TaxSummary;
5705
5730
  type index_d$1_ValidationError = ValidationError;
5706
5731
  declare namespace index_d$1 {
5707
- export { type index_d$1_Activity as Activity, type index_d$1_ActivityContentOneOf as ActivityContentOneOf, index_d$1_ActivityType as ActivityType, type index_d$1_AdditionalFee as AdditionalFee, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type index_d$1_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type index_d$1_ApiAddressWithContact as ApiAddressWithContact, type index_d$1_ApplicationError as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, index_d$1_AppliedDiscountDiscountType as AppliedDiscountDiscountType, index_d$1_AttributionSource as AttributionSource, type index_d$1_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type index_d$1_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type index_d$1_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type index_d$1_AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetails, type index_d$1_Balance as Balance, type index_d$1_BalanceSummary as BalanceSummary, type index_d$1_BuyerInfo as BuyerInfo, type index_d$1_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type index_d$1_CalculationErrors as CalculationErrors, type index_d$1_CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOf, type index_d$1_CarrierError as CarrierError, type index_d$1_CarrierErrors as CarrierErrors, type index_d$1_CarrierServiceOption as CarrierServiceOption, type index_d$1_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$1 as CatalogReference, type index_d$1_ChannelInfo as ChannelInfo, index_d$1_ChannelType as ChannelType, index_d$1_ChargeType as ChargeType, type index_d$1_Checkout as Checkout, type index_d$1_Color as Color, type Context$1 as Context, type index_d$1_ConversionInfo as ConversionInfo, type Coupon$1 as Coupon, type index_d$1_CreatedBy as CreatedBy, type index_d$1_CreatedByIdOneOf as CreatedByIdOneOf, type index_d$1_CreditCardDetails as CreditCardDetails, type index_d$1_CustomActivity as CustomActivity, type index_d$1_CustomContentReference as CustomContentReference, type CustomField$1 as CustomField, type index_d$1_CustomSettings as CustomSettings, type index_d$1_DeliveryLogistics as DeliveryLogistics, type index_d$1_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type index_d$1_DeliveryTimeSlot as DeliveryTimeSlot, type Description$1 as Description, type index_d$1_DescriptionLine as DescriptionLine, type index_d$1_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type index_d$1_DescriptionLineName as DescriptionLineName, index_d$1_DescriptionLineType as DescriptionLineType, type index_d$1_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type index_d$1_Details as Details, type index_d$1_DetailsKindOneOf as DetailsKindOneOf, type index_d$1_DigitalFile as DigitalFile, index_d$1_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type index_d$1_DraftOrderChangesApplied as DraftOrderChangesApplied, type ExtendedFields$1 as ExtendedFields, type ExternalReference$1 as ExternalReference, index_d$1_FallbackReason as FallbackReason, type index_d$1_FieldViolation as FieldViolation, index_d$1_FileType as FileType, index_d$1_FulfillmentStatus as FulfillmentStatus, type index_d$1_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type FullAddressContactDetails$1 as FullAddressContactDetails, type index_d$1_GetPaymentSettingsForCheckoutRequest as GetPaymentSettingsForCheckoutRequest, type index_d$1_GetPaymentSettingsForCheckoutResponse as GetPaymentSettingsForCheckoutResponse, type index_d$1_GetPaymentSettingsRequest as GetPaymentSettingsRequest, type index_d$1_GetPaymentSettingsResponse as GetPaymentSettingsResponse, type GiftCard$1 as GiftCard, type index_d$1_GiftCardPaymentRefund as GiftCardPaymentRefund, type index_d$1_Group as Group, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type index_d$1_InvalidMembership as InvalidMembership, type index_d$1_ItemAvailabilityInfo as ItemAvailabilityInfo, index_d$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 index_d$1_LineItemAmount as LineItemAmount, type index_d$1_LineItemChanges as LineItemChanges, type index_d$1_LineItemDiscount as LineItemDiscount, type index_d$1_LineItemExchangeData as LineItemExchangeData, type index_d$1_LineItemPriceChange as LineItemPriceChange, type index_d$1_LineItemQuantityChange as LineItemQuantityChange, index_d$1_LineItemQuantityChangeType as LineItemQuantityChangeType, type index_d$1_LineItemTaxBreakdown as LineItemTaxBreakdown, type index_d$1_LineItemTaxInfo as LineItemTaxInfo, type index_d$1_LocationAndQuantity as LocationAndQuantity, type index_d$1_ManagedAdditionalFee as ManagedAdditionalFee, type index_d$1_ManagedDiscount as ManagedDiscount, type index_d$1_ManagedLineItem as ManagedLineItem, index_d$1_ManualCalculationReason as ManualCalculationReason, type index_d$1_Membership as Membership, type index_d$1_MembershipName as MembershipName, type index_d$1_MembershipOptions as MembershipOptions, type index_d$1_MembershipPaymentCredits as MembershipPaymentCredits, type index_d$1_MembershipPaymentRefund as MembershipPaymentRefund, type index_d$1_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type index_d$1_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type MultiCurrencyPrice$1 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type index_d$1_NewExchangeOrderCreated as NewExchangeOrderCreated, type index_d$1_Order as Order, type index_d$1_OrderChange as OrderChange, type index_d$1_OrderChangeValueOneOf as OrderChangeValueOneOf, type index_d$1_OrderCreatedFromExchange as OrderCreatedFromExchange, type index_d$1_OrderLineItem as OrderLineItem, type index_d$1_OrderRefunded as OrderRefunded, index_d$1_OrderStatus as OrderStatus, type index_d$1_OrderTaxBreakdown as OrderTaxBreakdown, type index_d$1_OrderTaxInfo as OrderTaxInfo, type Other$1 as Other, type index_d$1_OtherCharge as OtherCharge, type index_d$1_PaymentCanceled as PaymentCanceled, type index_d$1_PaymentCanceledPaymentDetailsOneOf as PaymentCanceledPaymentDetailsOneOf, type index_d$1_PaymentDeclined as PaymentDeclined, type index_d$1_PaymentDeclinedPaymentDetailsOneOf as PaymentDeclinedPaymentDetailsOneOf, type index_d$1_PaymentOption as PaymentOption, index_d$1_PaymentOptionType as PaymentOptionType, type index_d$1_PaymentPending as PaymentPending, type index_d$1_PaymentPendingPaymentDetailsOneOf as PaymentPendingPaymentDetailsOneOf, type index_d$1_PaymentRefundFailed as PaymentRefundFailed, type index_d$1_PaymentRefunded as PaymentRefunded, type index_d$1_PaymentSettings as PaymentSettings, type index_d$1_PaymentSettingsSPIConfig as PaymentSettingsSPIConfig, index_d$1_PaymentStatus as PaymentStatus, type PhysicalProperties$1 as PhysicalProperties, type index_d$1_PickupAddress as PickupAddress, type index_d$1_PickupDetails as PickupDetails, index_d$1_PickupDetailsPickupMethod as PickupDetailsPickupMethod, index_d$1_PickupMethod as PickupMethod, type index_d$1_PlainTextValue as PlainTextValue, type index_d$1_Price as Price, type index_d$1_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, index_d$1_RateType as RateType, type index_d$1_RefundInitiated as RefundInitiated, type index_d$1_RefundedAsStoreCredit as RefundedAsStoreCredit, type index_d$1_RefundedPayment as RefundedPayment, type index_d$1_RefundedPaymentKindOneOf as RefundedPaymentKindOneOf, type index_d$1_RegularPayment as RegularPayment, type index_d$1_RegularPaymentPaymentMethodDetailsOneOf as RegularPaymentPaymentMethodDetailsOneOf, type index_d$1_RegularPaymentRefund as RegularPaymentRefund, index_d$1_RuleType as RuleType, type index_d$1_SavedPaymentMethod as SavedPaymentMethod, type index_d$1_Scope as Scope, type index_d$1_SecuredMedia as SecuredMedia, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type index_d$1_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type index_d$1_SelectedMembership as SelectedMembership, type index_d$1_SelectedMemberships as SelectedMemberships, type index_d$1_ServiceProperties as ServiceProperties, Severity$1 as Severity, type ShippingInfo$1 as ShippingInfo, type index_d$1_ShippingInformation as ShippingInformation, type index_d$1_ShippingInformationChange as ShippingInformationChange, type index_d$1_ShippingOption as ShippingOption, type index_d$1_ShippingPrice as ShippingPrice, type index_d$1_ShippingRegion as ShippingRegion, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$1 as SubscriptionFrequency, type index_d$1_SubscriptionInfo as SubscriptionInfo, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, SuggestedFix$1 as SuggestedFix, type index_d$1_SystemError as SystemError, type index_d$1_TagList as TagList, type index_d$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 index_d$1_TaxCalculationDetails as TaxCalculationDetails, type index_d$1_TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOf, type index_d$1_TaxRateBreakdown as TaxRateBreakdown, type index_d$1_TaxSummary as TaxSummary, type index_d$1_TaxableAddress as TaxableAddress, type index_d$1_TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOf, index_d$1_TaxableAddressType as TaxableAddressType, type Title$1 as Title, type index_d$1_TotalPriceChange as TotalPriceChange, type index_d$1_TranslatedValue as TranslatedValue, type index_d$1_V1AdditionalFee as V1AdditionalFee, type index_d$1_V1AppliedDiscount as V1AppliedDiscount, type index_d$1_V1AppliedDiscountDiscountSourceOneOf as V1AppliedDiscountDiscountSourceOneOf, type index_d$1_V1BuyerInfo as V1BuyerInfo, type index_d$1_V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOf, type index_d$1_V1Coupon as V1Coupon, type index_d$1_V1CreatedBy as V1CreatedBy, type index_d$1_V1CreatedByStringOneOf as V1CreatedByStringOneOf, type index_d$1_V1DeliveryLogistics as V1DeliveryLogistics, type index_d$1_V1DeliveryTimeSlot as V1DeliveryTimeSlot, type index_d$1_V1DiscountRule as V1DiscountRule, type index_d$1_V1DiscountRuleName as V1DiscountRuleName, type index_d$1_V1ItemTaxFullDetails as V1ItemTaxFullDetails, index_d$1_V1JurisdictionType as V1JurisdictionType, type index_d$1_V1LineItemDiscount as V1LineItemDiscount, type index_d$1_V1MerchantDiscount as V1MerchantDiscount, index_d$1_V1PaymentOption as V1PaymentOption, type index_d$1_V1PickupDetails as V1PickupDetails, type index_d$1_V1PriceSummary as V1PriceSummary, type index_d$1_V1ShippingInformation as V1ShippingInformation, type index_d$1_V1ShippingPrice as V1ShippingPrice, type index_d$1_V1ShippingRegion as V1ShippingRegion, type index_d$1_V1SubscriptionSettings as V1SubscriptionSettings, type index_d$1_V1TaxSummary as V1TaxSummary, type index_d$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 };
5732
+ export { type index_d$1_Activity as Activity, type index_d$1_ActivityContentOneOf as ActivityContentOneOf, index_d$1_ActivityType as ActivityType, type index_d$1_AdditionalFee as AdditionalFee, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressWithContact$1 as AddressWithContact, type index_d$1_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type index_d$1_ApiAddressWithContact as ApiAddressWithContact, type index_d$1_ApplicationError as ApplicationError, type AppliedDiscount$1 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$1 as AppliedDiscountDiscountSourceOneOf, index_d$1_AppliedDiscountDiscountType as AppliedDiscountDiscountType, index_d$1_AttributionSource as AttributionSource, type index_d$1_AuthorizedPaymentCaptured as AuthorizedPaymentCaptured, type index_d$1_AuthorizedPaymentCreated as AuthorizedPaymentCreated, type index_d$1_AuthorizedPaymentVoided as AuthorizedPaymentVoided, type index_d$1_AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetails, type index_d$1_Balance as Balance, type index_d$1_BalanceSummary as BalanceSummary, type index_d$1_BuyerInfo as BuyerInfo, type index_d$1_BuyerInfoIdOneOf as BuyerInfoIdOneOf, type index_d$1_CalculationErrors as CalculationErrors, type index_d$1_CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOf, type index_d$1_CarrierError as CarrierError, type index_d$1_CarrierErrors as CarrierErrors, type index_d$1_CarrierServiceOption as CarrierServiceOption, type index_d$1_CatalogOverrideFields as CatalogOverrideFields, type CatalogReference$1 as CatalogReference, type index_d$1_ChannelInfo as ChannelInfo, index_d$1_ChannelType as ChannelType, index_d$1_ChargeType as ChargeType, type index_d$1_Checkout as Checkout, type index_d$1_Color as Color, type Context$1 as Context, type index_d$1_ConversionInfo as ConversionInfo, type Coupon$1 as Coupon, type index_d$1_CreatedBy as CreatedBy, type index_d$1_CreatedByIdOneOf as CreatedByIdOneOf, type index_d$1_CreditCardDetails as CreditCardDetails, type index_d$1_CustomActivity as CustomActivity, type index_d$1_CustomContentReference as CustomContentReference, type CustomField$1 as CustomField, type index_d$1_CustomSettings as CustomSettings, type index_d$1_DeliveryLogistics as DeliveryLogistics, type index_d$1_DeliveryLogisticsAddressOneOf as DeliveryLogisticsAddressOneOf, type index_d$1_DeliveryTimeSlot as DeliveryTimeSlot, type Description$1 as Description, type index_d$1_DescriptionLine as DescriptionLine, type index_d$1_DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOf, type index_d$1_DescriptionLineName as DescriptionLineName, index_d$1_DescriptionLineType as DescriptionLineType, type index_d$1_DescriptionLineValueOneOf as DescriptionLineValueOneOf, type index_d$1_Details as Details, type index_d$1_DetailsKindOneOf as DetailsKindOneOf, type index_d$1_DigitalFile as DigitalFile, index_d$1_DiscountReason as DiscountReason, type DiscountRule$1 as DiscountRule, type DiscountRuleName$1 as DiscountRuleName, DiscountType$1 as DiscountType, type index_d$1_DraftOrderChangesApplied as DraftOrderChangesApplied, type ExtendedFields$1 as ExtendedFields, type ExternalReference$1 as ExternalReference, index_d$1_FallbackReason as FallbackReason, type index_d$1_FieldViolation as FieldViolation, index_d$1_FileType as FileType, type FreeTrialPeriod$1 as FreeTrialPeriod, index_d$1_FulfillmentStatus as FulfillmentStatus, type index_d$1_FulfillmentStatusesAggregate as FulfillmentStatusesAggregate, type FullAddressContactDetails$1 as FullAddressContactDetails, type index_d$1_GetPaymentSettingsForCheckoutRequest as GetPaymentSettingsForCheckoutRequest, type index_d$1_GetPaymentSettingsForCheckoutResponse as GetPaymentSettingsForCheckoutResponse, type index_d$1_GetPaymentSettingsRequest as GetPaymentSettingsRequest, type index_d$1_GetPaymentSettingsResponse as GetPaymentSettingsResponse, type GiftCard$1 as GiftCard, type index_d$1_GiftCardPaymentRefund as GiftCardPaymentRefund, type index_d$1_Group as Group, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type index_d$1_InvalidMembership as InvalidMembership, type index_d$1_ItemAvailabilityInfo as ItemAvailabilityInfo, index_d$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 index_d$1_LineItemAmount as LineItemAmount, type index_d$1_LineItemChanges as LineItemChanges, type index_d$1_LineItemDiscount as LineItemDiscount, type index_d$1_LineItemExchangeData as LineItemExchangeData, type index_d$1_LineItemPriceChange as LineItemPriceChange, type index_d$1_LineItemQuantityChange as LineItemQuantityChange, index_d$1_LineItemQuantityChangeType as LineItemQuantityChangeType, type index_d$1_LineItemTaxBreakdown as LineItemTaxBreakdown, type index_d$1_LineItemTaxInfo as LineItemTaxInfo, type index_d$1_LocationAndQuantity as LocationAndQuantity, type index_d$1_ManagedAdditionalFee as ManagedAdditionalFee, type index_d$1_ManagedDiscount as ManagedDiscount, type index_d$1_ManagedLineItem as ManagedLineItem, index_d$1_ManualCalculationReason as ManualCalculationReason, type index_d$1_Membership as Membership, type index_d$1_MembershipName as MembershipName, type index_d$1_MembershipOptions as MembershipOptions, type index_d$1_MembershipPaymentCredits as MembershipPaymentCredits, type index_d$1_MembershipPaymentRefund as MembershipPaymentRefund, type index_d$1_MerchantComment as MerchantComment, type MerchantDiscount$1 as MerchantDiscount, type index_d$1_MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOf, type MultiCurrencyPrice$1 as MultiCurrencyPrice, NameInLineItem$1 as NameInLineItem, NameInOther$1 as NameInOther, type index_d$1_NewExchangeOrderCreated as NewExchangeOrderCreated, type index_d$1_Order as Order, type index_d$1_OrderChange as OrderChange, type index_d$1_OrderChangeValueOneOf as OrderChangeValueOneOf, type index_d$1_OrderCreatedFromExchange as OrderCreatedFromExchange, type index_d$1_OrderLineItem as OrderLineItem, type index_d$1_OrderRefunded as OrderRefunded, index_d$1_OrderStatus as OrderStatus, type index_d$1_OrderTaxBreakdown as OrderTaxBreakdown, type index_d$1_OrderTaxInfo as OrderTaxInfo, type Other$1 as Other, type index_d$1_OtherCharge as OtherCharge, type index_d$1_PaymentCanceled as PaymentCanceled, type index_d$1_PaymentCanceledPaymentDetailsOneOf as PaymentCanceledPaymentDetailsOneOf, type index_d$1_PaymentDeclined as PaymentDeclined, type index_d$1_PaymentDeclinedPaymentDetailsOneOf as PaymentDeclinedPaymentDetailsOneOf, type index_d$1_PaymentOption as PaymentOption, index_d$1_PaymentOptionType as PaymentOptionType, type index_d$1_PaymentPending as PaymentPending, type index_d$1_PaymentPendingPaymentDetailsOneOf as PaymentPendingPaymentDetailsOneOf, type index_d$1_PaymentRefundFailed as PaymentRefundFailed, type index_d$1_PaymentRefunded as PaymentRefunded, type index_d$1_PaymentSettings as PaymentSettings, type index_d$1_PaymentSettingsSPIConfig as PaymentSettingsSPIConfig, index_d$1_PaymentStatus as PaymentStatus, type PhysicalProperties$1 as PhysicalProperties, type index_d$1_PickupAddress as PickupAddress, type index_d$1_PickupDetails as PickupDetails, index_d$1_PickupDetailsPickupMethod as PickupDetailsPickupMethod, index_d$1_PickupMethod as PickupMethod, type index_d$1_PlainTextValue as PlainTextValue, type index_d$1_Price as Price, type index_d$1_PriceDescription as PriceDescription, type PriceSummary$1 as PriceSummary, type ProductName$1 as ProductName, index_d$1_RateType as RateType, type index_d$1_RefundInitiated as RefundInitiated, type index_d$1_RefundedAsStoreCredit as RefundedAsStoreCredit, type index_d$1_RefundedPayment as RefundedPayment, type index_d$1_RefundedPaymentKindOneOf as RefundedPaymentKindOneOf, type index_d$1_RegularPayment as RegularPayment, type index_d$1_RegularPaymentPaymentMethodDetailsOneOf as RegularPaymentPaymentMethodDetailsOneOf, type index_d$1_RegularPaymentRefund as RegularPaymentRefund, index_d$1_RuleType as RuleType, type index_d$1_SavedPaymentMethod as SavedPaymentMethod, type index_d$1_Scope as Scope, type index_d$1_SecuredMedia as SecuredMedia, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type index_d$1_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type index_d$1_SelectedMembership as SelectedMembership, type index_d$1_SelectedMemberships as SelectedMemberships, type index_d$1_ServiceProperties as ServiceProperties, Severity$1 as Severity, type ShippingInfo$1 as ShippingInfo, type index_d$1_ShippingInformation as ShippingInformation, type index_d$1_ShippingInformationChange as ShippingInformationChange, type index_d$1_ShippingOption as ShippingOption, type index_d$1_ShippingPrice as ShippingPrice, type index_d$1_ShippingRegion as ShippingRegion, type StreetAddress$1 as StreetAddress, SubscriptionFrequency$1 as SubscriptionFrequency, type index_d$1_SubscriptionInfo as SubscriptionInfo, type SubscriptionOptionInfo$1 as SubscriptionOptionInfo, type SubscriptionSettings$1 as SubscriptionSettings, SuggestedFix$1 as SuggestedFix, type index_d$1_SystemError as SystemError, type index_d$1_TagList as TagList, type index_d$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 index_d$1_TaxCalculationDetails as TaxCalculationDetails, type index_d$1_TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOf, type index_d$1_TaxRateBreakdown as TaxRateBreakdown, type index_d$1_TaxSummary as TaxSummary, type index_d$1_TaxableAddress as TaxableAddress, type index_d$1_TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOf, index_d$1_TaxableAddressType as TaxableAddressType, type Title$1 as Title, type index_d$1_TotalPriceChange as TotalPriceChange, type index_d$1_TranslatedValue as TranslatedValue, type index_d$1_V1AdditionalFee as V1AdditionalFee, type index_d$1_V1AppliedDiscount as V1AppliedDiscount, type index_d$1_V1AppliedDiscountDiscountSourceOneOf as V1AppliedDiscountDiscountSourceOneOf, type index_d$1_V1BuyerInfo as V1BuyerInfo, type index_d$1_V1BuyerInfoIdOneOf as V1BuyerInfoIdOneOf, type index_d$1_V1Coupon as V1Coupon, type index_d$1_V1CreatedBy as V1CreatedBy, type index_d$1_V1CreatedByStringOneOf as V1CreatedByStringOneOf, type index_d$1_V1DeliveryLogistics as V1DeliveryLogistics, type index_d$1_V1DeliveryTimeSlot as V1DeliveryTimeSlot, type index_d$1_V1DiscountRule as V1DiscountRule, type index_d$1_V1DiscountRuleName as V1DiscountRuleName, type index_d$1_V1ItemTaxFullDetails as V1ItemTaxFullDetails, index_d$1_V1JurisdictionType as V1JurisdictionType, type index_d$1_V1LineItemDiscount as V1LineItemDiscount, type index_d$1_V1MerchantDiscount as V1MerchantDiscount, index_d$1_V1PaymentOption as V1PaymentOption, type index_d$1_V1PickupDetails as V1PickupDetails, type index_d$1_V1PriceSummary as V1PriceSummary, type index_d$1_V1ShippingInformation as V1ShippingInformation, type index_d$1_V1ShippingPrice as V1ShippingPrice, type index_d$1_V1ShippingRegion as V1ShippingRegion, type index_d$1_V1SubscriptionSettings as V1SubscriptionSettings, type index_d$1_V1TaxSummary as V1TaxSummary, type index_d$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 };
5708
5733
  }
5709
5734
 
5710
5735
  interface GetValidationViolationsRequest {
@@ -5927,6 +5952,18 @@ interface SubscriptionSettings {
5927
5952
  autoRenewal?: boolean;
5928
5953
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
5929
5954
  billingCycles?: number | null;
5955
+ /**
5956
+ * Period until first cycle starts. If applied payNow will be 0
5957
+ * If None => no free trial
5958
+ */
5959
+ freeTrialPeriod?: FreeTrialPeriod;
5960
+ /** The date the subscription will start. The subscription will be charged either now or according to freeTrialDays. */
5961
+ startDate?: Date | null;
5962
+ /**
5963
+ * Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
5964
+ * Default None => will behave like true
5965
+ */
5966
+ generateOrderEachBillingCycle?: boolean | null;
5930
5967
  }
5931
5968
  /** Frequency unit of recurring payment */
5932
5969
  declare enum SubscriptionFrequency {
@@ -5936,6 +5973,12 @@ declare enum SubscriptionFrequency {
5936
5973
  MONTH = "MONTH",
5937
5974
  YEAR = "YEAR"
5938
5975
  }
5976
+ interface FreeTrialPeriod {
5977
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
5978
+ frequency?: SubscriptionFrequency;
5979
+ /** interval of period */
5980
+ interval?: number;
5981
+ }
5939
5982
  interface Title {
5940
5983
  /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
5941
5984
  original?: string;
@@ -6398,6 +6441,7 @@ type index_d_DiscountType = DiscountType;
6398
6441
  declare const index_d_DiscountType: typeof DiscountType;
6399
6442
  type index_d_ExtendedFields = ExtendedFields;
6400
6443
  type index_d_ExternalReference = ExternalReference;
6444
+ type index_d_FreeTrialPeriod = FreeTrialPeriod;
6401
6445
  type index_d_FullAddressContactDetails = FullAddressContactDetails;
6402
6446
  type index_d_GetValidationViolationsRequest = GetValidationViolationsRequest;
6403
6447
  type index_d_GetValidationViolationsResponse = GetValidationViolationsResponse;
@@ -6458,7 +6502,7 @@ declare const index_d_WeightUnit: typeof WeightUnit;
6458
6502
  type index_d__publicProvideHandlersType = _publicProvideHandlersType;
6459
6503
  declare const index_d_provideHandlers: typeof provideHandlers;
6460
6504
  declare namespace index_d {
6461
- export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressWithContact as AddressWithContact, type index_d_AppliedDiscount as AppliedDiscount, type index_d_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type index_d_BuyerDetails as BuyerDetails, type index_d_CatalogReference as CatalogReference, index_d_CheckoutStage as CheckoutStage, type index_d_Context as Context, type index_d_Coupon as Coupon, type index_d_CustomField as CustomField, type index_d_CustomFields as CustomFields, type index_d_Description as Description, type index_d_DiscountRule as DiscountRule, type index_d_DiscountRuleName as DiscountRuleName, index_d_DiscountType as DiscountType, type index_d_ExtendedFields as ExtendedFields, type index_d_ExternalReference as ExternalReference, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_GetValidationViolationsRequest as GetValidationViolationsRequest, type index_d_GetValidationViolationsResponse as GetValidationViolationsResponse, type index_d_GiftCard as GiftCard, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_ItemTaxFullDetails as ItemTaxFullDetails, type index_d_ItemType as ItemType, index_d_ItemTypeItemType as ItemTypeItemType, type index_d_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, index_d_JurisdictionType as JurisdictionType, type index_d_LineItem as LineItem, type index_d_LineItemPricesData as LineItemPricesData, type index_d_MerchantDiscount as MerchantDiscount, type index_d_MultiCurrencyPrice as MultiCurrencyPrice, index_d_NameInLineItem as NameInLineItem, index_d_NameInOther as NameInOther, type index_d_Other as Other, type index_d_PhysicalProperties as PhysicalProperties, type index_d_PriceSummary as PriceSummary, type index_d_ProductName as ProductName, type index_d_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type index_d_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, index_d_Severity as Severity, type index_d_ShippingInfo as ShippingInfo, index_d_Source as Source, type index_d_SourceInfo as SourceInfo, type index_d_Stage as Stage, type index_d_StageStagesOneOf as StageStagesOneOf, type index_d_StreetAddress as StreetAddress, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionOptionInfo as SubscriptionOptionInfo, type index_d_SubscriptionSettings as SubscriptionSettings, index_d_SuggestedFix as SuggestedFix, type index_d_Target as Target, type index_d_TargetLineItem as TargetLineItem, type index_d_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type index_d_TaxBreakdown as TaxBreakdown, type index_d_Title as Title, type index_d_ValidationInfo as ValidationInfo, type index_d_ValidationsSPIConfig as ValidationsSPIConfig, type index_d_VatId as VatId, index_d_VatType as VatType, type index_d_Violation as Violation, index_d_WeightUnit as WeightUnit, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
6505
+ export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressWithContact as AddressWithContact, type index_d_AppliedDiscount as AppliedDiscount, type index_d_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type index_d_BuyerDetails as BuyerDetails, type index_d_CatalogReference as CatalogReference, index_d_CheckoutStage as CheckoutStage, type index_d_Context as Context, type index_d_Coupon as Coupon, type index_d_CustomField as CustomField, type index_d_CustomFields as CustomFields, type index_d_Description as Description, type index_d_DiscountRule as DiscountRule, type index_d_DiscountRuleName as DiscountRuleName, index_d_DiscountType as DiscountType, type index_d_ExtendedFields as ExtendedFields, type index_d_ExternalReference as ExternalReference, type index_d_FreeTrialPeriod as FreeTrialPeriod, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_GetValidationViolationsRequest as GetValidationViolationsRequest, type index_d_GetValidationViolationsResponse as GetValidationViolationsResponse, type index_d_GiftCard as GiftCard, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_ItemTaxFullDetails as ItemTaxFullDetails, type index_d_ItemType as ItemType, index_d_ItemTypeItemType as ItemTypeItemType, type index_d_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, index_d_JurisdictionType as JurisdictionType, type index_d_LineItem as LineItem, type index_d_LineItemPricesData as LineItemPricesData, type index_d_MerchantDiscount as MerchantDiscount, type index_d_MultiCurrencyPrice as MultiCurrencyPrice, index_d_NameInLineItem as NameInLineItem, index_d_NameInOther as NameInOther, type index_d_Other as Other, type index_d_PhysicalProperties as PhysicalProperties, type index_d_PriceSummary as PriceSummary, type index_d_ProductName as ProductName, type index_d_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type index_d_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, index_d_Severity as Severity, type index_d_ShippingInfo as ShippingInfo, index_d_Source as Source, type index_d_SourceInfo as SourceInfo, type index_d_Stage as Stage, type index_d_StageStagesOneOf as StageStagesOneOf, type index_d_StreetAddress as StreetAddress, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionOptionInfo as SubscriptionOptionInfo, type index_d_SubscriptionSettings as SubscriptionSettings, index_d_SuggestedFix as SuggestedFix, type index_d_Target as Target, type index_d_TargetLineItem as TargetLineItem, type index_d_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type index_d_TaxBreakdown as TaxBreakdown, type index_d_Title as Title, type index_d_ValidationInfo as ValidationInfo, type index_d_ValidationsSPIConfig as ValidationsSPIConfig, type index_d_VatId as VatId, index_d_VatType as VatType, type index_d_Violation as Violation, index_d_WeightUnit as WeightUnit, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
6462
6506
  }
6463
6507
 
6464
6508
  export { index_d$4 as additionalFees, index_d$3 as customTriggers, index_d$2 as discounts, index_d$8 as giftVouchersProvider, index_d$7 as memberships, index_d$1 as paymentSettings, index_d$6 as recommendationsProvider, index_d$5 as shippingRates, index_d as validations };