@wix/auto_sdk_ecom_subscription-contracts 1.0.118 → 1.0.120
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 +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +50 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +49 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +98 -0
- package/build/cjs/schemas.js +152 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +50 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +49 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +98 -0
- package/build/es/schemas.mjs +152 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +20 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +49 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +98 -0
- package/build/internal/cjs/schemas.js +152 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +20 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +49 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +98 -0
- package/build/internal/es/schemas.mjs +152 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -363,6 +363,20 @@ interface OrderLineItem {
|
|
|
363
363
|
* Default: `false`
|
|
364
364
|
*/
|
|
365
365
|
priceUndetermined?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Whether the line item quantity is fixed and cannot be changed.
|
|
368
|
+
*
|
|
369
|
+
* Default: `false`
|
|
370
|
+
*/
|
|
371
|
+
fixedQuantity?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Decimal-quantity metadata. Set when the line represents a
|
|
374
|
+
* non-integer purchase (e.g. 2.75 m² of fake grass).
|
|
375
|
+
*
|
|
376
|
+
* When set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.
|
|
377
|
+
* The decimal value lives in `decimalQuantity.value`.
|
|
378
|
+
*/
|
|
379
|
+
decimalQuantity?: DecimalQuantity;
|
|
366
380
|
/**
|
|
367
381
|
* Custom extended fields for the line item object.
|
|
368
382
|
*
|
|
@@ -1002,12 +1016,11 @@ type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING
|
|
|
1002
1016
|
* than from `lineItem.quantity`.
|
|
1003
1017
|
*/
|
|
1004
1018
|
interface DecimalQuantity extends DecimalQuantityUnitOneOf {
|
|
1005
|
-
/**
|
|
1019
|
+
/** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
|
|
1006
1020
|
measurementUnit?: MeasurementUnitWithLiterals;
|
|
1007
1021
|
/**
|
|
1008
1022
|
* Free-form unit name for standard units not in the
|
|
1009
1023
|
* `measurementUnit` enum (e.g. "hour", "minute", "session").
|
|
1010
|
-
* @internal
|
|
1011
1024
|
* @minLength 1
|
|
1012
1025
|
* @maxLength 50
|
|
1013
1026
|
*/
|
|
@@ -1019,25 +1032,22 @@ interface DecimalQuantity extends DecimalQuantityUnitOneOf {
|
|
|
1019
1032
|
* rounding, no conversion to an integer.
|
|
1020
1033
|
*
|
|
1021
1034
|
* Examples: "2.75", "1.5", "0.75".
|
|
1022
|
-
* @internal
|
|
1023
1035
|
* @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
|
|
1024
1036
|
*/
|
|
1025
1037
|
value?: string;
|
|
1026
1038
|
/**
|
|
1027
|
-
* Human-readable
|
|
1028
|
-
*
|
|
1029
|
-
* @internal
|
|
1039
|
+
* Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".
|
|
1040
|
+
* Always set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.
|
|
1030
1041
|
*/
|
|
1031
1042
|
description?: TranslatableString;
|
|
1032
1043
|
}
|
|
1033
1044
|
/** @oneof */
|
|
1034
1045
|
interface DecimalQuantityUnitOneOf {
|
|
1035
|
-
/**
|
|
1046
|
+
/** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
|
|
1036
1047
|
measurementUnit?: MeasurementUnitWithLiterals;
|
|
1037
1048
|
/**
|
|
1038
1049
|
* Free-form unit name for standard units not in the
|
|
1039
1050
|
* `measurementUnit` enum (e.g. "hour", "minute", "session").
|
|
1040
|
-
* @internal
|
|
1041
1051
|
* @minLength 1
|
|
1042
1052
|
* @maxLength 50
|
|
1043
1053
|
*/
|
|
@@ -1931,10 +1941,7 @@ interface AdditionalFee {
|
|
|
1931
1941
|
subscriptionCycles?: number | null;
|
|
1932
1942
|
/** Specifies the entity that added the additional fee. */
|
|
1933
1943
|
source?: AdditionalFeeSourceWithLiterals;
|
|
1934
|
-
/**
|
|
1935
|
-
* Address type tax was calculated against for this fee.
|
|
1936
|
-
* @internal
|
|
1937
|
-
*/
|
|
1944
|
+
/** Address type tax was calculated against for this fee. */
|
|
1938
1945
|
taxableAddress?: TaxableAddress;
|
|
1939
1946
|
}
|
|
1940
1947
|
declare enum AdditionalFeeSource {
|
|
@@ -2847,7 +2854,7 @@ declare function onSubscriptionContractUpdated(handler: (event: SubscriptionCont
|
|
|
2847
2854
|
* @returns The requested SubscriptionContract.
|
|
2848
2855
|
* @fqn wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract
|
|
2849
2856
|
*/
|
|
2850
|
-
declare function getSubscriptionContract(subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source` | `activities` | `activities.${number}.changesApplied.draftSubscriptionContractId` | `activities.${number}._id` | `activities.${number}.author.userId` | `activities.${number}.author.appId` | `activities.${number}.activityType`, 6>>;
|
|
2857
|
+
declare function getSubscriptionContract(subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `lineItems.${number}.fixedQuantity` | `lineItems.${number}.decimalQuantity.measurementUnit` | `lineItems.${number}.decimalQuantity.otherUnit` | `lineItems.${number}.decimalQuantity.value` | `lineItems.${number}.decimalQuantity.description.original` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source` | `activities` | `activities.${number}.changesApplied.draftSubscriptionContractId` | `activities.${number}._id` | `activities.${number}.author.userId` | `activities.${number}.author.appId` | `activities.${number}.activityType`, 6>>;
|
|
2851
2858
|
/**
|
|
2852
2859
|
* Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].
|
|
2853
2860
|
*
|