@wix/auto_sdk_ecom_validations 1.0.60 → 1.0.62

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.
@@ -337,7 +337,7 @@ interface SubscriptionSettings {
337
337
  * @min 1
338
338
  */
339
339
  billingCycles?: number | null;
340
- /** Whether to allow the customer to cancel the subscription.. */
340
+ /** Whether to allow the customer to cancel the subscription. */
341
341
  enableCustomerCancellation?: boolean;
342
342
  /**
343
343
  * Period until first cycle starts. If applied payNow will be 0
@@ -359,6 +359,15 @@ interface SubscriptionSettings {
359
359
  * @internal
360
360
  */
361
361
  productPeriodAlignment?: ProductPeriodAlignment;
362
+ /**
363
+ * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
364
+ * are charged the item's `price`.
365
+ *
366
+ * When `billingCycles` is set, every entry must end on or before the last billing cycle.
367
+ * @internal
368
+ * @maxSize 1
369
+ */
370
+ cyclePriceOverrides?: CyclePriceOverride[];
362
371
  }
363
372
  /** Frequency unit of recurring payment */
364
373
  declare enum SubscriptionFrequency {
@@ -392,6 +401,27 @@ declare enum ProductPeriodAlignment {
392
401
  /** Billing period is independent of the product/service/subscription access period. */
393
402
  NOT_ALIGNED_WITH_BILLING_PERIOD = "NOT_ALIGNED_WITH_BILLING_PERIOD"
394
403
  }
404
+ interface CyclePriceOverride {
405
+ /**
406
+ * __Required.__ First billing cycle the price applies to. The first paid cycle of the
407
+ * subscription is `1`. A free trial period, if any, is cycle `0`.
408
+ * @min 1
409
+ * @max 1
410
+ */
411
+ cycleFrom?: number;
412
+ /**
413
+ * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
414
+ * @min 1
415
+ * @max 1
416
+ */
417
+ numberOfCycles?: number | null;
418
+ /**
419
+ * __Required.__ Unit price for the cycles this entry covers, in the item's currency.
420
+ * Can be higher than, lower than, or equal to the item's `price`.
421
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
422
+ */
423
+ price?: string;
424
+ }
395
425
  interface Title {
396
426
  /**
397
427
  * 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).
@@ -1075,4 +1105,4 @@ declare const provideHandlers: ServicePluginDefinition<{
1075
1105
  getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
1076
1106
  }>;
1077
1107
 
1078
- export { type DiscountRule as $, type AddressWithContact as A, type BuyerDetails as B, type CatalogReference as C, type Dimensions as D, type DeliveryAllocation as E, type FreeTrialPeriod as F, type GetValidationViolationsRequest as G, type Carrier as H, type ItemType as I, JurisdictionType as J, type ApplicableLineItems as K, type LineItem as L, type MultiCurrencyPrice as M, type DeliveryTimeSlot as N, type CustomFields as O, type ProductName as P, type CustomField as Q, type Region as R, type SourceInfo as S, type Title as T, type AppliedDiscount as U, type ValidationInfo as V, WeightUnit as W, type AppliedDiscountDiscountSourceOneOf as X, DiscountType as Y, type Coupon as Z, type MerchantDiscount as _, Source as a, type DiscountRuleName as a0, type ExternalReference as a1, type ExtendedFields as a2, type GetValidationViolationsResponse as a3, type Violation as a4, Severity as a5, type Target as a6, type TargetTargetTypeOneOf as a7, NameInOther as a8, NameInLineItem as a9, SuggestedFix as aa, type Other as ab, type TargetLineItem as ac, type ValidationsSPIConfig as ad, type Context as ae, IdentityType as af, type IdentificationData as ag, type IdentificationDataIdOneOf as ah, type GetValidationViolationsEnvelope as ai, type PhysicalProperties as b, DimensionsUnit as c, type ItemTypeItemTypeDataOneOf as d, ItemTypePreset as e, type SubscriptionOptionInfo as f, type SubscriptionSettings as g, SubscriptionFrequency as h, type BillingSettings as i, ProductPeriodAlignment as j, type Description as k, type LineItemPricesData as l, type ItemTaxFullDetails as m, type TaxBreakdown as n, type GiftCard as o, provideHandlers as p, type PriceSummary as q, type Address as r, type StreetAddress as s, type AddressLocation as t, type FullAddressContactDetails as u, type VatId as v, VatType as w, type ShippingInfo as x, type SelectedCarrierServiceOption as y, type SelectedCarrierServiceOptionPrices as z };
1108
+ export { type MerchantDiscount as $, type AddressWithContact as A, type BuyerDetails as B, type CatalogReference as C, type Dimensions as D, type SelectedCarrierServiceOptionPrices as E, type FreeTrialPeriod as F, type GetValidationViolationsRequest as G, type DeliveryAllocation as H, type ItemType as I, JurisdictionType as J, type Carrier as K, type LineItem as L, type MultiCurrencyPrice as M, type ApplicableLineItems as N, type DeliveryTimeSlot as O, type ProductName as P, type CustomFields as Q, type Region as R, type SourceInfo as S, type Title as T, type CustomField as U, type ValidationInfo as V, WeightUnit as W, type AppliedDiscount as X, type AppliedDiscountDiscountSourceOneOf as Y, DiscountType as Z, type Coupon as _, Source as a, type DiscountRule as a0, type DiscountRuleName as a1, type ExternalReference as a2, type ExtendedFields as a3, type GetValidationViolationsResponse as a4, type Violation as a5, Severity as a6, type Target as a7, type TargetTargetTypeOneOf as a8, NameInOther as a9, NameInLineItem as aa, SuggestedFix as ab, type Other as ac, type TargetLineItem as ad, type ValidationsSPIConfig as ae, type Context as af, IdentityType as ag, type IdentificationData as ah, type IdentificationDataIdOneOf as ai, type GetValidationViolationsEnvelope as aj, type PhysicalProperties as b, DimensionsUnit as c, type ItemTypeItemTypeDataOneOf as d, ItemTypePreset as e, type SubscriptionOptionInfo as f, type SubscriptionSettings as g, SubscriptionFrequency as h, type BillingSettings as i, ProductPeriodAlignment as j, type CyclePriceOverride as k, type Description as l, type LineItemPricesData as m, type ItemTaxFullDetails as n, type TaxBreakdown as o, provideHandlers as p, type GiftCard as q, type PriceSummary as r, type Address as s, type StreetAddress as t, type AddressLocation as u, type FullAddressContactDetails as v, type VatId as w, VatType as x, type ShippingInfo as y, type SelectedCarrierServiceOption as z };
@@ -1,5 +1,5 @@
1
- import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-validations-provider.public-DG07ctt6.mjs';
2
- export { r as Address, t as AddressLocation, A as AddressWithContact, K as ApplicableLineItems, U as AppliedDiscount, X as AppliedDiscountDiscountSourceOneOf, i as BillingSettings, B as BuyerDetails, H as Carrier, C as CatalogReference, ae as Context, Z as Coupon, Q as CustomField, O as CustomFields, E as DeliveryAllocation, N as DeliveryTimeSlot, k as Description, D as Dimensions, c as DimensionsUnit, $ as DiscountRule, a0 as DiscountRuleName, Y as DiscountType, a2 as ExtendedFields, a1 as ExternalReference, F as FreeTrialPeriod, u as FullAddressContactDetails, G as GetValidationViolationsRequest, a3 as GetValidationViolationsResponse, o as GiftCard, ag as IdentificationData, ah as IdentificationDataIdOneOf, af as IdentityType, m as ItemTaxFullDetails, I as ItemType, d as ItemTypeItemTypeDataOneOf, e as ItemTypePreset, J as JurisdictionType, L as LineItem, l as LineItemPricesData, _ as MerchantDiscount, M as MultiCurrencyPrice, a9 as NameInLineItem, a8 as NameInOther, ab as Other, b as PhysicalProperties, q as PriceSummary, P as ProductName, j as ProductPeriodAlignment, R as Region, y as SelectedCarrierServiceOption, z as SelectedCarrierServiceOptionPrices, a5 as Severity, x as ShippingInfo, a as Source, S as SourceInfo, s as StreetAddress, h as SubscriptionFrequency, f as SubscriptionOptionInfo, g as SubscriptionSettings, aa as SuggestedFix, a6 as Target, ac as TargetLineItem, a7 as TargetTargetTypeOneOf, n as TaxBreakdown, T as Title, V as ValidationInfo, ad as ValidationsSPIConfig, v as VatId, w as VatType, a4 as Violation, W as WeightUnit } from './interfaces-ecommerce-v1-validations-provider.public-DG07ctt6.mjs';
1
+ import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-validations-provider.public-D9fxNOpt.mjs';
2
+ export { s as Address, u as AddressLocation, A as AddressWithContact, N as ApplicableLineItems, X as AppliedDiscount, Y as AppliedDiscountDiscountSourceOneOf, i as BillingSettings, B as BuyerDetails, K as Carrier, C as CatalogReference, af as Context, _ as Coupon, U as CustomField, Q as CustomFields, k as CyclePriceOverride, H as DeliveryAllocation, O as DeliveryTimeSlot, l as Description, D as Dimensions, c as DimensionsUnit, a0 as DiscountRule, a1 as DiscountRuleName, Z as DiscountType, a3 as ExtendedFields, a2 as ExternalReference, F as FreeTrialPeriod, v as FullAddressContactDetails, G as GetValidationViolationsRequest, a4 as GetValidationViolationsResponse, q as GiftCard, ah as IdentificationData, ai as IdentificationDataIdOneOf, ag as IdentityType, n as ItemTaxFullDetails, I as ItemType, d as ItemTypeItemTypeDataOneOf, e as ItemTypePreset, J as JurisdictionType, L as LineItem, m as LineItemPricesData, $ as MerchantDiscount, M as MultiCurrencyPrice, aa as NameInLineItem, a9 as NameInOther, ac as Other, b as PhysicalProperties, r as PriceSummary, P as ProductName, j as ProductPeriodAlignment, R as Region, z as SelectedCarrierServiceOption, E as SelectedCarrierServiceOptionPrices, a6 as Severity, y as ShippingInfo, a as Source, S as SourceInfo, t as StreetAddress, h as SubscriptionFrequency, f as SubscriptionOptionInfo, g as SubscriptionSettings, ab as SuggestedFix, a7 as Target, ad as TargetLineItem, a8 as TargetTargetTypeOneOf, o as TaxBreakdown, T as Title, V as ValidationInfo, ae as ValidationsSPIConfig, w as VatId, x as VatType, a5 as Violation, W as WeightUnit } from './interfaces-ecommerce-v1-validations-provider.public-D9fxNOpt.mjs';
3
3
  import { BuildServicePluginDefinition } from '@wix/sdk-types';
4
4
 
5
5
  declare const provideHandlers: BuildServicePluginDefinition<typeof provideHandlers$1> & typeof provideHandlers$1;
@@ -1,5 +1,5 @@
1
- import { ai as GetValidationViolationsEnvelope, a3 as GetValidationViolationsResponse } from './interfaces-ecommerce-v1-validations-provider.public-DG07ctt6.mjs';
2
- export { r as Address, t as AddressLocation, A as AddressWithContact, K as ApplicableLineItems, U as AppliedDiscount, X as AppliedDiscountDiscountSourceOneOf, i as BillingSettings, B as BuyerDetails, H as Carrier, C as CatalogReference, ae as Context, Z as Coupon, Q as CustomField, O as CustomFields, E as DeliveryAllocation, N as DeliveryTimeSlot, k as Description, D as Dimensions, c as DimensionsUnit, $ as DiscountRule, a0 as DiscountRuleName, Y as DiscountType, a2 as ExtendedFields, a1 as ExternalReference, F as FreeTrialPeriod, u as FullAddressContactDetails, G as GetValidationViolationsRequest, o as GiftCard, ag as IdentificationData, ah as IdentificationDataIdOneOf, af as IdentityType, m as ItemTaxFullDetails, I as ItemType, d as ItemTypeItemTypeDataOneOf, e as ItemTypePreset, J as JurisdictionType, L as LineItem, l as LineItemPricesData, _ as MerchantDiscount, M as MultiCurrencyPrice, a9 as NameInLineItem, a8 as NameInOther, ab as Other, b as PhysicalProperties, q as PriceSummary, P as ProductName, j as ProductPeriodAlignment, R as Region, y as SelectedCarrierServiceOption, z as SelectedCarrierServiceOptionPrices, a5 as Severity, x as ShippingInfo, a as Source, S as SourceInfo, s as StreetAddress, h as SubscriptionFrequency, f as SubscriptionOptionInfo, g as SubscriptionSettings, aa as SuggestedFix, a6 as Target, ac as TargetLineItem, a7 as TargetTargetTypeOneOf, n as TaxBreakdown, T as Title, V as ValidationInfo, ad as ValidationsSPIConfig, v as VatId, w as VatType, a4 as Violation, W as WeightUnit } from './interfaces-ecommerce-v1-validations-provider.public-DG07ctt6.mjs';
1
+ import { aj as GetValidationViolationsEnvelope, a4 as GetValidationViolationsResponse } from './interfaces-ecommerce-v1-validations-provider.public-D9fxNOpt.mjs';
2
+ export { s as Address, u as AddressLocation, A as AddressWithContact, N as ApplicableLineItems, X as AppliedDiscount, Y as AppliedDiscountDiscountSourceOneOf, i as BillingSettings, B as BuyerDetails, K as Carrier, C as CatalogReference, af as Context, _ as Coupon, U as CustomField, Q as CustomFields, k as CyclePriceOverride, H as DeliveryAllocation, O as DeliveryTimeSlot, l as Description, D as Dimensions, c as DimensionsUnit, a0 as DiscountRule, a1 as DiscountRuleName, Z as DiscountType, a3 as ExtendedFields, a2 as ExternalReference, F as FreeTrialPeriod, v as FullAddressContactDetails, G as GetValidationViolationsRequest, q as GiftCard, ah as IdentificationData, ai as IdentificationDataIdOneOf, ag as IdentityType, n as ItemTaxFullDetails, I as ItemType, d as ItemTypeItemTypeDataOneOf, e as ItemTypePreset, J as JurisdictionType, L as LineItem, m as LineItemPricesData, $ as MerchantDiscount, M as MultiCurrencyPrice, aa as NameInLineItem, a9 as NameInOther, ac as Other, b as PhysicalProperties, r as PriceSummary, P as ProductName, j as ProductPeriodAlignment, R as Region, z as SelectedCarrierServiceOption, E as SelectedCarrierServiceOptionPrices, a6 as Severity, y as ShippingInfo, a as Source, S as SourceInfo, t as StreetAddress, h as SubscriptionFrequency, f as SubscriptionOptionInfo, g as SubscriptionSettings, ab as SuggestedFix, a7 as Target, ad as TargetLineItem, a8 as TargetTargetTypeOneOf, o as TaxBreakdown, T as Title, V as ValidationInfo, ae as ValidationsSPIConfig, w as VatId, x as VatType, a5 as Violation, W as WeightUnit } from './interfaces-ecommerce-v1-validations-provider.public-D9fxNOpt.mjs';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /**
@@ -337,7 +337,7 @@ interface SubscriptionSettings {
337
337
  * @min 1
338
338
  */
339
339
  billingCycles?: number | null;
340
- /** Whether to allow the customer to cancel the subscription.. */
340
+ /** Whether to allow the customer to cancel the subscription. */
341
341
  enableCustomerCancellation?: boolean;
342
342
  /**
343
343
  * Period until first cycle starts. If applied payNow will be 0
@@ -359,6 +359,15 @@ interface SubscriptionSettings {
359
359
  * @internal
360
360
  */
361
361
  productPeriodAlignment?: ProductPeriodAlignment;
362
+ /**
363
+ * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
364
+ * are charged the item's `price`.
365
+ *
366
+ * When `billingCycles` is set, every entry must end on or before the last billing cycle.
367
+ * @internal
368
+ * @maxSize 1
369
+ */
370
+ cyclePriceOverrides?: CyclePriceOverride[];
362
371
  }
363
372
  /** Frequency unit of recurring payment */
364
373
  declare enum SubscriptionFrequency {
@@ -392,6 +401,27 @@ declare enum ProductPeriodAlignment {
392
401
  /** Billing period is independent of the product/service/subscription access period. */
393
402
  NOT_ALIGNED_WITH_BILLING_PERIOD = "NOT_ALIGNED_WITH_BILLING_PERIOD"
394
403
  }
404
+ interface CyclePriceOverride {
405
+ /**
406
+ * __Required.__ First billing cycle the price applies to. The first paid cycle of the
407
+ * subscription is `1`. A free trial period, if any, is cycle `0`.
408
+ * @min 1
409
+ * @max 1
410
+ */
411
+ cycleFrom?: number;
412
+ /**
413
+ * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
414
+ * @min 1
415
+ * @max 1
416
+ */
417
+ numberOfCycles?: number | null;
418
+ /**
419
+ * __Required.__ Unit price for the cycles this entry covers, in the item's currency.
420
+ * Can be higher than, lower than, or equal to the item's `price`.
421
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
422
+ */
423
+ price?: string;
424
+ }
395
425
  interface Title {
396
426
  /**
397
427
  * 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).
@@ -1075,4 +1105,4 @@ declare const provideHandlers: ServicePluginDefinition<{
1075
1105
  getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
1076
1106
  }>;
1077
1107
 
1078
- export { type DiscountRule as $, type AddressWithContact as A, type BuyerDetails as B, type CatalogReference as C, type Dimensions as D, type DeliveryAllocation as E, type FreeTrialPeriod as F, type GetValidationViolationsRequest as G, type Carrier as H, type ItemType as I, JurisdictionType as J, type ApplicableLineItems as K, type LineItem as L, type MultiCurrencyPrice as M, type DeliveryTimeSlot as N, type CustomFields as O, type ProductName as P, type CustomField as Q, type Region as R, type SourceInfo as S, type Title as T, type AppliedDiscount as U, type ValidationInfo as V, WeightUnit as W, type AppliedDiscountDiscountSourceOneOf as X, DiscountType as Y, type Coupon as Z, type MerchantDiscount as _, Source as a, type DiscountRuleName as a0, type ExternalReference as a1, type ExtendedFields as a2, type GetValidationViolationsResponse as a3, type Violation as a4, Severity as a5, type Target as a6, type TargetTargetTypeOneOf as a7, NameInOther as a8, NameInLineItem as a9, SuggestedFix as aa, type Other as ab, type TargetLineItem as ac, type ValidationsSPIConfig as ad, type Context as ae, IdentityType as af, type IdentificationData as ag, type IdentificationDataIdOneOf as ah, type GetValidationViolationsEnvelope as ai, type PhysicalProperties as b, DimensionsUnit as c, type ItemTypeItemTypeDataOneOf as d, ItemTypePreset as e, type SubscriptionOptionInfo as f, type SubscriptionSettings as g, SubscriptionFrequency as h, type BillingSettings as i, ProductPeriodAlignment as j, type Description as k, type LineItemPricesData as l, type ItemTaxFullDetails as m, type TaxBreakdown as n, type GiftCard as o, provideHandlers as p, type PriceSummary as q, type Address as r, type StreetAddress as s, type AddressLocation as t, type FullAddressContactDetails as u, type VatId as v, VatType as w, type ShippingInfo as x, type SelectedCarrierServiceOption as y, type SelectedCarrierServiceOptionPrices as z };
1108
+ export { type MerchantDiscount as $, type AddressWithContact as A, type BuyerDetails as B, type CatalogReference as C, type Dimensions as D, type SelectedCarrierServiceOptionPrices as E, type FreeTrialPeriod as F, type GetValidationViolationsRequest as G, type DeliveryAllocation as H, type ItemType as I, JurisdictionType as J, type Carrier as K, type LineItem as L, type MultiCurrencyPrice as M, type ApplicableLineItems as N, type DeliveryTimeSlot as O, type ProductName as P, type CustomFields as Q, type Region as R, type SourceInfo as S, type Title as T, type CustomField as U, type ValidationInfo as V, WeightUnit as W, type AppliedDiscount as X, type AppliedDiscountDiscountSourceOneOf as Y, DiscountType as Z, type Coupon as _, Source as a, type DiscountRule as a0, type DiscountRuleName as a1, type ExternalReference as a2, type ExtendedFields as a3, type GetValidationViolationsResponse as a4, type Violation as a5, Severity as a6, type Target as a7, type TargetTargetTypeOneOf as a8, NameInOther as a9, NameInLineItem as aa, SuggestedFix as ab, type Other as ac, type TargetLineItem as ad, type ValidationsSPIConfig as ae, type Context as af, IdentityType as ag, type IdentificationData as ah, type IdentificationDataIdOneOf as ai, type GetValidationViolationsEnvelope as aj, type PhysicalProperties as b, DimensionsUnit as c, type ItemTypeItemTypeDataOneOf as d, ItemTypePreset as e, type SubscriptionOptionInfo as f, type SubscriptionSettings as g, SubscriptionFrequency as h, type BillingSettings as i, ProductPeriodAlignment as j, type CyclePriceOverride as k, type Description as l, type LineItemPricesData as m, type ItemTaxFullDetails as n, type TaxBreakdown as o, provideHandlers as p, type GiftCard as q, type PriceSummary as r, type Address as s, type StreetAddress as t, type AddressLocation as u, type FullAddressContactDetails as v, type VatId as w, VatType as x, type ShippingInfo as y, type SelectedCarrierServiceOption as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_validations",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -44,5 +44,5 @@
44
44
  "fqdn": "wix.interfaces.ecommerce.v1.validations_provider"
45
45
  }
46
46
  },
47
- "falconPackageHash": "bee0dc35ca7907b89c2db3e66b59c0afad538fc84ebbced3ca9d439e"
47
+ "falconPackageHash": "8d1ae964e2ffffa0c729af9c4aead53d2214ca2c9072d185eb36765f"
48
48
  }