@wix/auto_sdk_ecom_subscription-contracts 1.0.78 → 1.0.80
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 +19 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +67 -1
- package/build/cjs/index.typings.js +19 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +66 -1
- package/build/cjs/meta.js +19 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +17 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +67 -1
- package/build/es/index.typings.mjs +17 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +66 -1
- package/build/es/meta.mjs +17 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +19 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +77 -1
- package/build/internal/cjs/index.typings.js +19 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +66 -1
- package/build/internal/cjs/meta.js +19 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +17 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +77 -1
- package/build/internal/es/index.typings.mjs +17 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +66 -1
- package/build/internal/es/meta.mjs +17 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -84,6 +84,11 @@ interface SubscriptionContract {
|
|
|
84
84
|
* @readonly
|
|
85
85
|
*/
|
|
86
86
|
priceSummary?: PriceSummary;
|
|
87
|
+
/**
|
|
88
|
+
* Summary of all platform fees added to the order.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
platformFeeSummary?: PlatformFeeSummary;
|
|
87
92
|
/** Billing address and contact details. */
|
|
88
93
|
billingInfo?: AddressWithContact;
|
|
89
94
|
/** Shipping info and selected shipping option details. */
|
|
@@ -1003,6 +1008,56 @@ interface PriceSummary {
|
|
|
1003
1008
|
/** Total price of additional fees before tax. */
|
|
1004
1009
|
totalAdditionalFees?: Price;
|
|
1005
1010
|
}
|
|
1011
|
+
interface PlatformFeeSummary {
|
|
1012
|
+
/** Total sum of all platform fees. */
|
|
1013
|
+
total?: Price;
|
|
1014
|
+
/** Total amount of platform fees with `PASS_ON` charge type. */
|
|
1015
|
+
totalPassOn?: Price;
|
|
1016
|
+
/** Total amount of platform fees with `ABSORBED` charge type. */
|
|
1017
|
+
totalAbsorbed?: Price;
|
|
1018
|
+
/**
|
|
1019
|
+
* Specific information about each platform fee.
|
|
1020
|
+
* @maxSize 300
|
|
1021
|
+
*/
|
|
1022
|
+
fees?: PlatformFee[];
|
|
1023
|
+
}
|
|
1024
|
+
interface PlatformFee {
|
|
1025
|
+
/** Platform fee name. */
|
|
1026
|
+
name?: TranslatableString;
|
|
1027
|
+
/** Platform fee amount. */
|
|
1028
|
+
amount?: Price;
|
|
1029
|
+
/**
|
|
1030
|
+
* ID of the line item the platform fee applies to.
|
|
1031
|
+
* @format GUID
|
|
1032
|
+
*/
|
|
1033
|
+
lineItemId?: string;
|
|
1034
|
+
/** Platform fee charge type. */
|
|
1035
|
+
chargeType?: ChargeTypeWithLiterals;
|
|
1036
|
+
/**
|
|
1037
|
+
* Percentage rate charged as platform fee.
|
|
1038
|
+
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
1039
|
+
* @format DECIMAL_VALUE
|
|
1040
|
+
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
1041
|
+
*/
|
|
1042
|
+
percentageRate?: string;
|
|
1043
|
+
}
|
|
1044
|
+
declare enum ChargeType {
|
|
1045
|
+
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
1046
|
+
/**
|
|
1047
|
+
* Platform fee passed on to buyer.
|
|
1048
|
+
*
|
|
1049
|
+
* This type increases the order total, and is visible to the buyer and merchant as an additional fee.
|
|
1050
|
+
*/
|
|
1051
|
+
PASS_ON = "PASS_ON",
|
|
1052
|
+
/**
|
|
1053
|
+
* Platform fee absorbed by merchant.
|
|
1054
|
+
*
|
|
1055
|
+
* This type does not increase the order total, and is only visible to the merchant.
|
|
1056
|
+
*/
|
|
1057
|
+
ABSORBED = "ABSORBED"
|
|
1058
|
+
}
|
|
1059
|
+
/** @enumType */
|
|
1060
|
+
type ChargeTypeWithLiterals = ChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
1006
1061
|
/** Billing Info and shipping details */
|
|
1007
1062
|
interface AddressWithContact {
|
|
1008
1063
|
/** Address. */
|
|
@@ -1608,7 +1663,27 @@ interface AdditionalFee {
|
|
|
1608
1663
|
* @max 999
|
|
1609
1664
|
*/
|
|
1610
1665
|
subscriptionCycles?: number | null;
|
|
1666
|
+
/**
|
|
1667
|
+
* Specifies the entity that added the additional fee.
|
|
1668
|
+
* @internal
|
|
1669
|
+
*/
|
|
1670
|
+
source?: AdditionalFeeSourceWithLiterals;
|
|
1671
|
+
}
|
|
1672
|
+
declare enum AdditionalFeeSource {
|
|
1673
|
+
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
1674
|
+
/** The additional fee was added by an additional fee service plugin. */
|
|
1675
|
+
SERVICE_PLUGIN = "SERVICE_PLUGIN",
|
|
1676
|
+
/** The additional fee was added to the item by a catalog or custom line item. */
|
|
1677
|
+
ITEM = "ITEM",
|
|
1678
|
+
/** The additional fee was added manually on request. */
|
|
1679
|
+
MANUAL = "MANUAL",
|
|
1680
|
+
/** The additional fee was added by the shipping provider. */
|
|
1681
|
+
SHIPPING = "SHIPPING",
|
|
1682
|
+
/** The additional fee was added by the Wix eCommerce platform. */
|
|
1683
|
+
PLATFORM = "PLATFORM"
|
|
1611
1684
|
}
|
|
1685
|
+
/** @enumType */
|
|
1686
|
+
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM';
|
|
1612
1687
|
interface Location {
|
|
1613
1688
|
/**
|
|
1614
1689
|
* Location ID.
|
|
@@ -2053,6 +2128,7 @@ declare function onSubscriptionContractDeleted(handler: (event: SubscriptionCont
|
|
|
2053
2128
|
interface SubscriptionContractUpdatedEnvelope {
|
|
2054
2129
|
entity: SubscriptionContract;
|
|
2055
2130
|
metadata: EventMetadata;
|
|
2131
|
+
/** @hidden */
|
|
2056
2132
|
modifiedFields: Record<string, any>;
|
|
2057
2133
|
}
|
|
2058
2134
|
/** @permissionScope Manage Stores - all permissions
|
|
@@ -2240,4 +2316,4 @@ type SubscriptionContractQuery = {
|
|
|
2240
2316
|
}[];
|
|
2241
2317
|
};
|
|
2242
2318
|
|
|
2243
|
-
export { type ActionEvent, type AdditionalFee, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, type Color, type CommonQueryWithEntityContext, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemDiscount, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type MaskedSubscriptionContract, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type Price, type PriceDescription, type PriceSummary, type ProductName, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type SubscriptionContract, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TranslatableString, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts };
|
|
2319
|
+
export { type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommonQueryWithEntityContext, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemDiscount, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type MaskedSubscriptionContract, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type SubscriptionContract, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TranslatableString, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts };
|
|
@@ -20,8 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.typings.ts
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
|
+
AdditionalFeeSource: () => AdditionalFeeSource,
|
|
23
24
|
AdjustmentType: () => AdjustmentType,
|
|
24
25
|
ChannelType: () => ChannelType,
|
|
26
|
+
ChargeType: () => ChargeType,
|
|
25
27
|
DescriptionLineType: () => DescriptionLineType,
|
|
26
28
|
DiscountReason: () => DiscountReason,
|
|
27
29
|
DiscountType: () => DiscountType,
|
|
@@ -326,6 +328,12 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
|
326
328
|
WeightUnit2["LB"] = "LB";
|
|
327
329
|
return WeightUnit2;
|
|
328
330
|
})(WeightUnit || {});
|
|
331
|
+
var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
332
|
+
ChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
|
|
333
|
+
ChargeType2["PASS_ON"] = "PASS_ON";
|
|
334
|
+
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
335
|
+
return ChargeType2;
|
|
336
|
+
})(ChargeType || {});
|
|
329
337
|
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
330
338
|
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
331
339
|
VatType2["CPF"] = "CPF";
|
|
@@ -370,6 +378,15 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
370
378
|
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
371
379
|
return ChannelType2;
|
|
372
380
|
})(ChannelType || {});
|
|
381
|
+
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
382
|
+
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
383
|
+
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
384
|
+
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
385
|
+
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
386
|
+
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
387
|
+
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
388
|
+
return AdditionalFeeSource2;
|
|
389
|
+
})(AdditionalFeeSource || {});
|
|
373
390
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
374
391
|
SortOrder2["ASC"] = "ASC";
|
|
375
392
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -542,8 +559,10 @@ async function typedQuerySubscriptionContracts(query) {
|
|
|
542
559
|
}
|
|
543
560
|
// Annotate the CommonJS export names for ESM import in node:
|
|
544
561
|
0 && (module.exports = {
|
|
562
|
+
AdditionalFeeSource,
|
|
545
563
|
AdjustmentType,
|
|
546
564
|
ChannelType,
|
|
565
|
+
ChargeType,
|
|
547
566
|
DescriptionLineType,
|
|
548
567
|
DiscountReason,
|
|
549
568
|
DiscountType,
|