@wix/auto_sdk_ecom_subscription-contracts 1.0.79 → 1.0.81

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 +95 -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 +95 -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 +95 -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 +95 -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 +115 -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 +95 -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 +115 -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 +95 -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. */
@@ -1373,6 +1423,35 @@ interface LineItemDiscount {
1373
1423
  /** Total discount for this line item. */
1374
1424
  totalDiscount?: Price;
1375
1425
  }
1426
+ interface ItemCombination {
1427
+ /**
1428
+ * The number of times this exact combination of items (with the specified quantities) was applied together in the order.
1429
+ * @min 1
1430
+ * @max 100000
1431
+ */
1432
+ count?: number;
1433
+ /**
1434
+ * Line items that participated together in this combination.
1435
+ * @minSize 1
1436
+ * @maxSize 100
1437
+ */
1438
+ lineItems?: ItemCombinationLineItem[];
1439
+ }
1440
+ interface ItemCombinationLineItem {
1441
+ /**
1442
+ * The unique ID of the line item to which this discount applies.
1443
+ * @format GUID
1444
+ */
1445
+ lineItemId?: string;
1446
+ /** Total discount amount for all units (quantity) of this line item in this combination. */
1447
+ discountAmount?: Price;
1448
+ /**
1449
+ * Number of units from this line item that participated in a single combination.
1450
+ * @min 1
1451
+ * @max 100000
1452
+ */
1453
+ quantity?: number;
1454
+ }
1376
1455
  interface ChannelInfo {
1377
1456
  /** Sales channel that submitted the order. */
1378
1457
  type?: ChannelTypeWithLiterals;
@@ -1503,6 +1582,21 @@ interface AdditionalFee {
1503
1582
  */
1504
1583
  lineItemIds?: string[];
1505
1584
  }
1585
+ declare enum AdditionalFeeSource {
1586
+ UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
1587
+ /** The additional fee was added by an additional fee service plugin. */
1588
+ SERVICE_PLUGIN = "SERVICE_PLUGIN",
1589
+ /** The additional fee was added to the item by a catalog or custom line item. */
1590
+ ITEM = "ITEM",
1591
+ /** The additional fee was added manually on request. */
1592
+ MANUAL = "MANUAL",
1593
+ /** The additional fee was added by the shipping provider. */
1594
+ SHIPPING = "SHIPPING",
1595
+ /** The additional fee was added by the Wix eCommerce platform. */
1596
+ PLATFORM = "PLATFORM"
1597
+ }
1598
+ /** @enumType */
1599
+ type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM';
1506
1600
  interface Location {
1507
1601
  /**
1508
1602
  * Location ID.
@@ -2135,4 +2229,4 @@ type SubscriptionContractQuery = {
2135
2229
  }[];
2136
2230
  };
2137
2231
 
2138
- 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 };
2232
+ 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 ItemCombination, type ItemCombinationLineItem, 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,