@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
@@ -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 };
@@ -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,