@wix/auto_sdk_ecom_catalog 1.0.67 → 1.0.68

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.
@@ -558,7 +558,7 @@ interface SubscriptionSettings {
558
558
  * @min 1
559
559
  */
560
560
  billingCycles?: number | null;
561
- /** Whether to allow the customer to cancel the subscription.. */
561
+ /** Whether to allow the customer to cancel the subscription. */
562
562
  enableCustomerCancellation?: boolean;
563
563
  /**
564
564
  * Period until first cycle starts. If applied payNow will be 0
@@ -580,6 +580,15 @@ interface SubscriptionSettings {
580
580
  * @internal
581
581
  */
582
582
  productPeriodAlignment?: ProductPeriodAlignment;
583
+ /**
584
+ * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
585
+ * are charged the item's `price`.
586
+ *
587
+ * When `billingCycles` is set, every entry must end on or before the last billing cycle.
588
+ * @internal
589
+ * @maxSize 1
590
+ */
591
+ cyclePriceOverrides?: CyclePriceOverride[];
583
592
  }
584
593
  /** Frequency unit of recurring payment */
585
594
  declare enum SubscriptionFrequency {
@@ -613,6 +622,27 @@ declare enum ProductPeriodAlignment {
613
622
  /** Billing period is independent of the product/service/subscription access period. */
614
623
  NOT_ALIGNED_WITH_BILLING_PERIOD = "NOT_ALIGNED_WITH_BILLING_PERIOD"
615
624
  }
625
+ interface CyclePriceOverride {
626
+ /**
627
+ * __Required.__ First billing cycle the price applies to. The first paid cycle of the
628
+ * subscription is `1`. A free trial period, if any, is cycle `0`.
629
+ * @min 1
630
+ * @max 1
631
+ */
632
+ cycleFrom?: number;
633
+ /**
634
+ * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
635
+ * @min 1
636
+ * @max 1
637
+ */
638
+ numberOfCycles?: number | null;
639
+ /**
640
+ * __Required.__ Unit price for the cycles this entry covers, in the item's currency.
641
+ * Can be higher than, lower than, or equal to the item's `price`.
642
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
643
+ */
644
+ price?: string;
645
+ }
616
646
  interface Title {
617
647
  /**
618
648
  * 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).
@@ -1173,4 +1203,4 @@ declare const provideHandlers: ServicePluginDefinition<{
1173
1203
  getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
1174
1204
  }>;
1175
1205
 
1176
- export { type BasicItem as $, PaymentOptionType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, type ServiceProperties as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type PriceDescription as H, type Item as I, type TaxableAddress as J, type TaxableAddressTaxableAddressDataOneOf as K, TaxableAddressType as L, type Policy as M, type AdditionalFee as N, type TaxDetails as O, type ProductName as P, type ModifierGroup as Q, type TranslatableString as R, type Scope as S, type Title as T, type ItemModifier as U, type PlatformFee as V, WeightUnit as W, ChargeType as X, type QueryCatalogItemsRequest as Y, type Paging as Z, type QueryCatalogItemsResponse as _, type CatalogReference as a, type NumericPropertyRange as a0, type PagingMetadata as a1, type CatalogSPIConfig as a2, type AllItemsDiscountConfig as a3, type SpecificItemsDiscountConfig as a4, PurchaseType as a5, type Context as a6, IdentityType as a7, type IdentificationData as a8, type IdentificationDataIdOneOf as a9, type GetCatalogItemsEnvelope as aa, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type Description as x, type SecuredMedia as y, FileType as z };
1206
+ export { type QueryCatalogItemsResponse as $, FileType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, PaymentOptionType as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type ServiceProperties as H, type Item as I, type PriceDescription as J, type TaxableAddress as K, type TaxableAddressTaxableAddressDataOneOf as L, TaxableAddressType as M, type Policy as N, type AdditionalFee as O, type ProductName as P, type TaxDetails as Q, type ModifierGroup as R, type Scope as S, type Title as T, type TranslatableString as U, type ItemModifier as V, WeightUnit as W, type PlatformFee as X, ChargeType as Y, type QueryCatalogItemsRequest as Z, type Paging as _, type CatalogReference as a, type BasicItem as a0, type NumericPropertyRange as a1, type PagingMetadata as a2, type CatalogSPIConfig as a3, type AllItemsDiscountConfig as a4, type SpecificItemsDiscountConfig as a5, PurchaseType as a6, type Context as a7, IdentityType as a8, type IdentificationData as a9, type IdentificationDataIdOneOf as aa, type GetCatalogItemsEnvelope as ab, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type CyclePriceOverride as x, type Description as y, type SecuredMedia as z };
@@ -1,5 +1,5 @@
1
- import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-D8ylbQJc.mjs';
2
- export { N as AdditionalFee, a3 as AllItemsDiscountConfig, $ as BasicItem, v as BillingSettings, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a2 as CatalogSPIConfig, X as ChargeType, l as Color, a6 as Context, x as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, z as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, a8 as IdentificationData, a9 as IdentificationDataIdOneOf, a7 as IdentityType, I as Item, d as ItemData, U as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, Q as ModifierGroup, a0 as NumericPropertyRange, Z as Paging, a1 as PagingMetadata, A as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, V as PlatformFee, M as Policy, H as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a5 as PurchaseType, Y as QueryCatalogItemsRequest, _ as QueryCatalogItemsResponse, S as Scope, y as SecuredMedia, E as ServiceProperties, a4 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, O as TaxDetails, J as TaxableAddress, K as TaxableAddressTaxableAddressDataOneOf, L as TaxableAddressType, T as Title, R as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-D8ylbQJc.mjs';
1
+ import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-16gPVX_w.mjs';
2
+ export { O as AdditionalFee, a4 as AllItemsDiscountConfig, a0 as BasicItem, v as BillingSettings, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a3 as CatalogSPIConfig, Y as ChargeType, l as Color, a7 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, a9 as IdentificationData, aa as IdentificationDataIdOneOf, a8 as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a1 as NumericPropertyRange, _ as Paging, a2 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a6 as PurchaseType, Z as QueryCatalogItemsRequest, $ as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a5 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-16gPVX_w.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 { aa as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-D8ylbQJc.mjs';
2
- export { N as AdditionalFee, a3 as AllItemsDiscountConfig, $ as BasicItem, v as BillingSettings, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a2 as CatalogSPIConfig, X as ChargeType, l as Color, a6 as Context, x as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, z as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, a8 as IdentificationData, a9 as IdentificationDataIdOneOf, a7 as IdentityType, I as Item, d as ItemData, U as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, Q as ModifierGroup, a0 as NumericPropertyRange, Z as Paging, a1 as PagingMetadata, A as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, V as PlatformFee, M as Policy, H as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a5 as PurchaseType, Y as QueryCatalogItemsRequest, _ as QueryCatalogItemsResponse, S as Scope, y as SecuredMedia, E as ServiceProperties, a4 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, O as TaxDetails, J as TaxableAddress, K as TaxableAddressTaxableAddressDataOneOf, L as TaxableAddressType, T as Title, R as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-D8ylbQJc.mjs';
1
+ import { ab as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-16gPVX_w.mjs';
2
+ export { O as AdditionalFee, a4 as AllItemsDiscountConfig, a0 as BasicItem, v as BillingSettings, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a3 as CatalogSPIConfig, Y as ChargeType, l as Color, a7 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, a9 as IdentificationData, aa as IdentificationDataIdOneOf, a8 as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a1 as NumericPropertyRange, _ as Paging, a2 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a6 as PurchaseType, Z as QueryCatalogItemsRequest, $ as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a5 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-16gPVX_w.mjs';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /**
@@ -558,7 +558,7 @@ interface SubscriptionSettings {
558
558
  * @min 1
559
559
  */
560
560
  billingCycles?: number | null;
561
- /** Whether to allow the customer to cancel the subscription.. */
561
+ /** Whether to allow the customer to cancel the subscription. */
562
562
  enableCustomerCancellation?: boolean;
563
563
  /**
564
564
  * Period until first cycle starts. If applied payNow will be 0
@@ -580,6 +580,15 @@ interface SubscriptionSettings {
580
580
  * @internal
581
581
  */
582
582
  productPeriodAlignment?: ProductPeriodAlignment;
583
+ /**
584
+ * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
585
+ * are charged the item's `price`.
586
+ *
587
+ * When `billingCycles` is set, every entry must end on or before the last billing cycle.
588
+ * @internal
589
+ * @maxSize 1
590
+ */
591
+ cyclePriceOverrides?: CyclePriceOverride[];
583
592
  }
584
593
  /** Frequency unit of recurring payment */
585
594
  declare enum SubscriptionFrequency {
@@ -613,6 +622,27 @@ declare enum ProductPeriodAlignment {
613
622
  /** Billing period is independent of the product/service/subscription access period. */
614
623
  NOT_ALIGNED_WITH_BILLING_PERIOD = "NOT_ALIGNED_WITH_BILLING_PERIOD"
615
624
  }
625
+ interface CyclePriceOverride {
626
+ /**
627
+ * __Required.__ First billing cycle the price applies to. The first paid cycle of the
628
+ * subscription is `1`. A free trial period, if any, is cycle `0`.
629
+ * @min 1
630
+ * @max 1
631
+ */
632
+ cycleFrom?: number;
633
+ /**
634
+ * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
635
+ * @min 1
636
+ * @max 1
637
+ */
638
+ numberOfCycles?: number | null;
639
+ /**
640
+ * __Required.__ Unit price for the cycles this entry covers, in the item's currency.
641
+ * Can be higher than, lower than, or equal to the item's `price`.
642
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
643
+ */
644
+ price?: string;
645
+ }
616
646
  interface Title {
617
647
  /**
618
648
  * 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).
@@ -1173,4 +1203,4 @@ declare const provideHandlers: ServicePluginDefinition<{
1173
1203
  getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
1174
1204
  }>;
1175
1205
 
1176
- export { type BasicItem as $, PaymentOptionType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, type ServiceProperties as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type PriceDescription as H, type Item as I, type TaxableAddress as J, type TaxableAddressTaxableAddressDataOneOf as K, TaxableAddressType as L, type Policy as M, type AdditionalFee as N, type TaxDetails as O, type ProductName as P, type ModifierGroup as Q, type TranslatableString as R, type Scope as S, type Title as T, type ItemModifier as U, type PlatformFee as V, WeightUnit as W, ChargeType as X, type QueryCatalogItemsRequest as Y, type Paging as Z, type QueryCatalogItemsResponse as _, type CatalogReference as a, type NumericPropertyRange as a0, type PagingMetadata as a1, type CatalogSPIConfig as a2, type AllItemsDiscountConfig as a3, type SpecificItemsDiscountConfig as a4, PurchaseType as a5, type Context as a6, IdentityType as a7, type IdentificationData as a8, type IdentificationDataIdOneOf as a9, type GetCatalogItemsEnvelope as aa, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type Description as x, type SecuredMedia as y, FileType as z };
1206
+ export { type QueryCatalogItemsResponse as $, FileType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, PaymentOptionType as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type ServiceProperties as H, type Item as I, type PriceDescription as J, type TaxableAddress as K, type TaxableAddressTaxableAddressDataOneOf as L, TaxableAddressType as M, type Policy as N, type AdditionalFee as O, type ProductName as P, type TaxDetails as Q, type ModifierGroup as R, type Scope as S, type Title as T, type TranslatableString as U, type ItemModifier as V, WeightUnit as W, type PlatformFee as X, ChargeType as Y, type QueryCatalogItemsRequest as Z, type Paging as _, type CatalogReference as a, type BasicItem as a0, type NumericPropertyRange as a1, type PagingMetadata as a2, type CatalogSPIConfig as a3, type AllItemsDiscountConfig as a4, type SpecificItemsDiscountConfig as a5, PurchaseType as a6, type Context as a7, IdentityType as a8, type IdentificationData as a9, type IdentificationDataIdOneOf as aa, type GetCatalogItemsEnvelope as ab, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type CyclePriceOverride as x, type Description as y, type SecuredMedia as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_catalog",
3
- "version": "1.0.67",
3
+ "version": "1.0.68",
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.catalog_provider"
45
45
  }
46
46
  },
47
- "falconPackageHash": "3d1f51ad85a3304975e9e5c690f31009d0e0356bc9d793008b68a4d3"
47
+ "falconPackageHash": "7ea13269892534d0b407c6192d1043b4c138dff7e8b65b1fd2fb58f1"
48
48
  }