@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +19 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +67 -1
  5. package/build/cjs/index.typings.js +19 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +66 -1
  8. package/build/cjs/meta.js +19 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +17 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +67 -1
  14. package/build/es/index.typings.mjs +17 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +66 -1
  17. package/build/es/meta.mjs +17 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +19 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +77 -1
  23. package/build/internal/cjs/index.typings.js +19 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +66 -1
  26. package/build/internal/cjs/meta.js +19 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +17 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +77 -1
  32. package/build/internal/es/index.typings.mjs +17 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +66 -1
  35. package/build/internal/es/meta.mjs +17 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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 };
@@ -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,