@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
|
@@ -931,6 +931,56 @@ interface PriceSummary {
|
|
|
931
931
|
/** Total price of additional fees before tax. */
|
|
932
932
|
totalAdditionalFees?: Price;
|
|
933
933
|
}
|
|
934
|
+
interface PlatformFeeSummary {
|
|
935
|
+
/** Total sum of all platform fees. */
|
|
936
|
+
total?: Price;
|
|
937
|
+
/** Total amount of platform fees with `PASS_ON` charge type. */
|
|
938
|
+
totalPassOn?: Price;
|
|
939
|
+
/** Total amount of platform fees with `ABSORBED` charge type. */
|
|
940
|
+
totalAbsorbed?: Price;
|
|
941
|
+
/**
|
|
942
|
+
* Specific information about each platform fee.
|
|
943
|
+
* @maxSize 300
|
|
944
|
+
*/
|
|
945
|
+
fees?: PlatformFee[];
|
|
946
|
+
}
|
|
947
|
+
interface PlatformFee {
|
|
948
|
+
/** Platform fee name. */
|
|
949
|
+
name?: TranslatableString;
|
|
950
|
+
/** Platform fee amount. */
|
|
951
|
+
amount?: Price;
|
|
952
|
+
/**
|
|
953
|
+
* ID of the line item the platform fee applies to.
|
|
954
|
+
* @format GUID
|
|
955
|
+
*/
|
|
956
|
+
lineItemId?: string;
|
|
957
|
+
/** Platform fee charge type. */
|
|
958
|
+
chargeType?: ChargeTypeWithLiterals;
|
|
959
|
+
/**
|
|
960
|
+
* Percentage rate charged as platform fee.
|
|
961
|
+
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
962
|
+
* @format DECIMAL_VALUE
|
|
963
|
+
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
964
|
+
*/
|
|
965
|
+
percentageRate?: string;
|
|
966
|
+
}
|
|
967
|
+
declare enum ChargeType {
|
|
968
|
+
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
969
|
+
/**
|
|
970
|
+
* Platform fee passed on to buyer.
|
|
971
|
+
*
|
|
972
|
+
* This type increases the order total, and is visible to the buyer and merchant as an additional fee.
|
|
973
|
+
*/
|
|
974
|
+
PASS_ON = "PASS_ON",
|
|
975
|
+
/**
|
|
976
|
+
* Platform fee absorbed by merchant.
|
|
977
|
+
*
|
|
978
|
+
* This type does not increase the order total, and is only visible to the merchant.
|
|
979
|
+
*/
|
|
980
|
+
ABSORBED = "ABSORBED"
|
|
981
|
+
}
|
|
982
|
+
/** @enumType */
|
|
983
|
+
type ChargeTypeWithLiterals = ChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
934
984
|
/** Billing Info and shipping details */
|
|
935
985
|
interface AddressWithContact {
|
|
936
986
|
/** Address. */
|
|
@@ -1503,6 +1553,21 @@ interface AdditionalFee {
|
|
|
1503
1553
|
*/
|
|
1504
1554
|
lineItemIds?: string[];
|
|
1505
1555
|
}
|
|
1556
|
+
declare enum AdditionalFeeSource {
|
|
1557
|
+
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
1558
|
+
/** The additional fee was added by an additional fee service plugin. */
|
|
1559
|
+
SERVICE_PLUGIN = "SERVICE_PLUGIN",
|
|
1560
|
+
/** The additional fee was added to the item by a catalog or custom line item. */
|
|
1561
|
+
ITEM = "ITEM",
|
|
1562
|
+
/** The additional fee was added manually on request. */
|
|
1563
|
+
MANUAL = "MANUAL",
|
|
1564
|
+
/** The additional fee was added by the shipping provider. */
|
|
1565
|
+
SHIPPING = "SHIPPING",
|
|
1566
|
+
/** The additional fee was added by the Wix eCommerce platform. */
|
|
1567
|
+
PLATFORM = "PLATFORM"
|
|
1568
|
+
}
|
|
1569
|
+
/** @enumType */
|
|
1570
|
+
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM';
|
|
1506
1571
|
interface Location {
|
|
1507
1572
|
/**
|
|
1508
1573
|
* Location ID.
|
|
@@ -1947,6 +2012,7 @@ declare function onSubscriptionContractDeleted(handler: (event: SubscriptionCont
|
|
|
1947
2012
|
interface SubscriptionContractUpdatedEnvelope {
|
|
1948
2013
|
entity: SubscriptionContract;
|
|
1949
2014
|
metadata: EventMetadata;
|
|
2015
|
+
/** @hidden */
|
|
1950
2016
|
modifiedFields: Record<string, any>;
|
|
1951
2017
|
}
|
|
1952
2018
|
/** @permissionScope Manage Stores - all permissions
|
|
@@ -2134,4 +2200,4 @@ type SubscriptionContractQuery = {
|
|
|
2134
2200
|
}[];
|
|
2135
2201
|
};
|
|
2136
2202
|
|
|
2137
|
-
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 };
|
|
2203
|
+
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 };
|
|
@@ -285,6 +285,12 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
|
285
285
|
WeightUnit2["LB"] = "LB";
|
|
286
286
|
return WeightUnit2;
|
|
287
287
|
})(WeightUnit || {});
|
|
288
|
+
var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
289
|
+
ChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
|
|
290
|
+
ChargeType2["PASS_ON"] = "PASS_ON";
|
|
291
|
+
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
292
|
+
return ChargeType2;
|
|
293
|
+
})(ChargeType || {});
|
|
288
294
|
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
289
295
|
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
290
296
|
VatType2["CPF"] = "CPF";
|
|
@@ -329,6 +335,15 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
329
335
|
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
330
336
|
return ChannelType2;
|
|
331
337
|
})(ChannelType || {});
|
|
338
|
+
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
339
|
+
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
340
|
+
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
341
|
+
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
342
|
+
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
343
|
+
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
344
|
+
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
345
|
+
return AdditionalFeeSource2;
|
|
346
|
+
})(AdditionalFeeSource || {});
|
|
332
347
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
333
348
|
SortOrder2["ASC"] = "ASC";
|
|
334
349
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -500,8 +515,10 @@ async function typedQuerySubscriptionContracts(query) {
|
|
|
500
515
|
}
|
|
501
516
|
}
|
|
502
517
|
export {
|
|
518
|
+
AdditionalFeeSource,
|
|
503
519
|
AdjustmentType,
|
|
504
520
|
ChannelType,
|
|
521
|
+
ChargeType,
|
|
505
522
|
DescriptionLineType,
|
|
506
523
|
DiscountReason,
|
|
507
524
|
DiscountType,
|