@wix/auto_sdk_ecom_validations 1.0.61 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +1 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/{interfaces-ecommerce-v1-validations-provider.public-DqSMj0EX.d.ts → interfaces-ecommerce-v1-validations-provider.public-COvWdzXg.d.ts} +23 -2
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +1 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/{interfaces-ecommerce-v1-validations-provider.public-DqSMj0EX.d.mts → interfaces-ecommerce-v1-validations-provider.public-COvWdzXg.d.mts} +23 -2
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/{interfaces-ecommerce-v1-validations-provider.public-DG07ctt6.d.ts → interfaces-ecommerce-v1-validations-provider.public-78T_RAFT.d.ts} +37 -3
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/{interfaces-ecommerce-v1-validations-provider.public-DG07ctt6.d.mts → interfaces-ecommerce-v1-validations-provider.public-78T_RAFT.d.mts} +37 -3
- package/package.json +2 -2
|
@@ -308,7 +308,11 @@ declare enum ItemTypePreset {
|
|
|
308
308
|
PHYSICAL = "PHYSICAL",
|
|
309
309
|
DIGITAL = "DIGITAL",
|
|
310
310
|
GIFT_CARD = "GIFT_CARD",
|
|
311
|
-
SERVICE = "SERVICE"
|
|
311
|
+
SERVICE = "SERVICE",
|
|
312
|
+
/** @documentationMaturity preview
|
|
313
|
+
* @internal
|
|
314
|
+
*/
|
|
315
|
+
BUNDLE = "BUNDLE"
|
|
312
316
|
}
|
|
313
317
|
interface SubscriptionOptionInfo {
|
|
314
318
|
/** Subscription option settings. */
|
|
@@ -337,7 +341,7 @@ interface SubscriptionSettings {
|
|
|
337
341
|
* @min 1
|
|
338
342
|
*/
|
|
339
343
|
billingCycles?: number | null;
|
|
340
|
-
/** Whether to allow the customer to cancel the subscription
|
|
344
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
341
345
|
enableCustomerCancellation?: boolean;
|
|
342
346
|
/**
|
|
343
347
|
* Period until first cycle starts. If applied payNow will be 0
|
|
@@ -359,6 +363,15 @@ interface SubscriptionSettings {
|
|
|
359
363
|
* @internal
|
|
360
364
|
*/
|
|
361
365
|
productPeriodAlignment?: ProductPeriodAlignment;
|
|
366
|
+
/**
|
|
367
|
+
* Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
|
|
368
|
+
* are charged the item's `price`.
|
|
369
|
+
*
|
|
370
|
+
* When `billingCycles` is set, every entry must end on or before the last billing cycle.
|
|
371
|
+
* @internal
|
|
372
|
+
* @maxSize 1
|
|
373
|
+
*/
|
|
374
|
+
cyclePriceOverrides?: CyclePriceOverride[];
|
|
362
375
|
}
|
|
363
376
|
/** Frequency unit of recurring payment */
|
|
364
377
|
declare enum SubscriptionFrequency {
|
|
@@ -392,6 +405,27 @@ declare enum ProductPeriodAlignment {
|
|
|
392
405
|
/** Billing period is independent of the product/service/subscription access period. */
|
|
393
406
|
NOT_ALIGNED_WITH_BILLING_PERIOD = "NOT_ALIGNED_WITH_BILLING_PERIOD"
|
|
394
407
|
}
|
|
408
|
+
interface CyclePriceOverride {
|
|
409
|
+
/**
|
|
410
|
+
* __Required.__ First billing cycle the price applies to. The first paid cycle of the
|
|
411
|
+
* subscription is `1`. A free trial period, if any, is cycle `0`.
|
|
412
|
+
* @min 1
|
|
413
|
+
* @max 1
|
|
414
|
+
*/
|
|
415
|
+
cycleFrom?: number;
|
|
416
|
+
/**
|
|
417
|
+
* __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
|
|
418
|
+
* @min 1
|
|
419
|
+
* @max 1
|
|
420
|
+
*/
|
|
421
|
+
numberOfCycles?: number | null;
|
|
422
|
+
/**
|
|
423
|
+
* __Required.__ Unit price for the cycles this entry covers, in the item's currency.
|
|
424
|
+
* Can be higher than, lower than, or equal to the item's `price`.
|
|
425
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
|
|
426
|
+
*/
|
|
427
|
+
price?: string;
|
|
428
|
+
}
|
|
395
429
|
interface Title {
|
|
396
430
|
/**
|
|
397
431
|
* 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 +1109,4 @@ declare const provideHandlers: ServicePluginDefinition<{
|
|
|
1075
1109
|
getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
|
|
1076
1110
|
}>;
|
|
1077
1111
|
|
|
1078
|
-
export { type
|
|
1112
|
+
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-
|
|
2
|
-
export {
|
|
1
|
+
import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-validations-provider.public-78T_RAFT.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-78T_RAFT.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 {
|
|
2
|
-
export {
|
|
1
|
+
import { aj as GetValidationViolationsEnvelope, a4 as GetValidationViolationsResponse } from './interfaces-ecommerce-v1-validations-provider.public-78T_RAFT.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-78T_RAFT.mjs';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -308,7 +308,11 @@ declare enum ItemTypePreset {
|
|
|
308
308
|
PHYSICAL = "PHYSICAL",
|
|
309
309
|
DIGITAL = "DIGITAL",
|
|
310
310
|
GIFT_CARD = "GIFT_CARD",
|
|
311
|
-
SERVICE = "SERVICE"
|
|
311
|
+
SERVICE = "SERVICE",
|
|
312
|
+
/** @documentationMaturity preview
|
|
313
|
+
* @internal
|
|
314
|
+
*/
|
|
315
|
+
BUNDLE = "BUNDLE"
|
|
312
316
|
}
|
|
313
317
|
interface SubscriptionOptionInfo {
|
|
314
318
|
/** Subscription option settings. */
|
|
@@ -337,7 +341,7 @@ interface SubscriptionSettings {
|
|
|
337
341
|
* @min 1
|
|
338
342
|
*/
|
|
339
343
|
billingCycles?: number | null;
|
|
340
|
-
/** Whether to allow the customer to cancel the subscription
|
|
344
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
341
345
|
enableCustomerCancellation?: boolean;
|
|
342
346
|
/**
|
|
343
347
|
* Period until first cycle starts. If applied payNow will be 0
|
|
@@ -359,6 +363,15 @@ interface SubscriptionSettings {
|
|
|
359
363
|
* @internal
|
|
360
364
|
*/
|
|
361
365
|
productPeriodAlignment?: ProductPeriodAlignment;
|
|
366
|
+
/**
|
|
367
|
+
* Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
|
|
368
|
+
* are charged the item's `price`.
|
|
369
|
+
*
|
|
370
|
+
* When `billingCycles` is set, every entry must end on or before the last billing cycle.
|
|
371
|
+
* @internal
|
|
372
|
+
* @maxSize 1
|
|
373
|
+
*/
|
|
374
|
+
cyclePriceOverrides?: CyclePriceOverride[];
|
|
362
375
|
}
|
|
363
376
|
/** Frequency unit of recurring payment */
|
|
364
377
|
declare enum SubscriptionFrequency {
|
|
@@ -392,6 +405,27 @@ declare enum ProductPeriodAlignment {
|
|
|
392
405
|
/** Billing period is independent of the product/service/subscription access period. */
|
|
393
406
|
NOT_ALIGNED_WITH_BILLING_PERIOD = "NOT_ALIGNED_WITH_BILLING_PERIOD"
|
|
394
407
|
}
|
|
408
|
+
interface CyclePriceOverride {
|
|
409
|
+
/**
|
|
410
|
+
* __Required.__ First billing cycle the price applies to. The first paid cycle of the
|
|
411
|
+
* subscription is `1`. A free trial period, if any, is cycle `0`.
|
|
412
|
+
* @min 1
|
|
413
|
+
* @max 1
|
|
414
|
+
*/
|
|
415
|
+
cycleFrom?: number;
|
|
416
|
+
/**
|
|
417
|
+
* __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
|
|
418
|
+
* @min 1
|
|
419
|
+
* @max 1
|
|
420
|
+
*/
|
|
421
|
+
numberOfCycles?: number | null;
|
|
422
|
+
/**
|
|
423
|
+
* __Required.__ Unit price for the cycles this entry covers, in the item's currency.
|
|
424
|
+
* Can be higher than, lower than, or equal to the item's `price`.
|
|
425
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
|
|
426
|
+
*/
|
|
427
|
+
price?: string;
|
|
428
|
+
}
|
|
395
429
|
interface Title {
|
|
396
430
|
/**
|
|
397
431
|
* 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 +1109,4 @@ declare const provideHandlers: ServicePluginDefinition<{
|
|
|
1075
1109
|
getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
|
|
1076
1110
|
}>;
|
|
1077
1111
|
|
|
1078
|
-
export { type
|
|
1112
|
+
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.
|
|
3
|
+
"version": "1.0.63",
|
|
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": "
|
|
47
|
+
"falconPackageHash": "203e237295f1957068e8f1be5fd40146ae734c50acf60788680caf79"
|
|
48
48
|
}
|