@wix/auto_sdk_ecom_subscription-contracts 1.0.144 → 1.0.146

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.
@@ -1,16 +1,24 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { SubscriptionContract, SubscriptionContractCreatedEnvelope, SubscriptionContractDeletedEnvelope, SubscriptionContractUpdatedEnvelope, SubscriptionContractsQueryBuilder, SubscriptionContractQuery, typedQuerySubscriptionContracts } from './index.typings.js';
3
- export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionInitiator, ActionInitiatorWithLiterals, ActivityAuthor, ActivityAuthorValueOneOf, ActivityType, ActivityTypeWithLiterals, AdditionalFee, AdditionalFeeDelta, AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AdjustmentType, AdjustmentTypeWithLiterals, ApplicationError, AppliedDiscount, AppliedDiscountDelta, AppliedDiscountDeltaDeltaDetailsOneOf, AppliedDiscountDiscountSourceOneOf, BaseEventMetadata, BillingAdjustment, BillingAdjustmentPriceSummary, BillingSettings, BulkActionMetadata, BulkCreateSubscriptionContractsRequest, BulkCreateSubscriptionContractsResponse, BulkSubscriptionContractResult, BulkUpdateSubscriptionContractsRequest, BulkUpdateSubscriptionContractsResponse, BuyerInfo, BuyerInfoIdOneOf, CatalogReference, CatalogReferenceOptionsBeforeChange, ChangeType, ChangeTypeWithLiterals, ChangesAppliedActivity, ChangesAppliedActivityTargetOneOf, ChannelInfo, ChannelType, ChannelTypeWithLiterals, ChargeType, ChargeTypeWithLiterals, Color, CommitSubscriptionContractChangesRequest, CommitSubscriptionContractChangesResponse, CommonQueryWithEntityContext, ContractChange, ContractChangeValueOneOf, ContractTarget, Coupon, CreateSubscriptionContractRequest, CreateSubscriptionContractResponse, CurrencyConversionDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CyclePriceOverride, DecimalQuantity, DecimalQuantityUnitOneOf, DeliveryLogistics, DeliveryLogisticsAddressOneOf, DeliveryProfileIdBeforeChange, DeliveryTimeSlot, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, DescriptionLinesBeforeChange, DigitalFile, DigitalFileBeforeChange, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountReason, DiscountReasonWithLiterals, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, FocalPoint, FreeTrialPeriod, FulfillerIdBeforeChange, FullAddressContactDetails, GetSubscriptionContractRequest, GetSubscriptionContractResponse, IdentificationData, IdentificationDataIdOneOf, ImageBeforeChange, InventoryAppIdBeforeChange, ItemChangedDetails, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeBeforeChange, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItemChanges, LineItemCyclePriceOverrides, LineItemDelta, LineItemDeltaDeltaDetailsOneOf, LineItemDiscount, LineItemQuantityChange, LineItemQuantityChangeType, LineItemQuantityChangeTypeWithLiterals, LineItemTaxBreakdown, LineItemTaxInfo, Location, LocationAndQuantity, ManagedAdditionalFee, ManagedDiscount, ManagedLineItem, MaskedSubscriptionContract, MeasurementUnit, MeasurementUnitWithLiterals, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, MessageEnvelope, ModifierGroup, ModifierGroupsBeforeChange, OrderLineItem, OrderTaxBreakdown, OrderTaxInfo, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PhysicalPropertiesBeforeChange, PickupAddress, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeSummary, Price, PriceDescription, PriceDescriptionBeforeChange, PriceSummary, PriceUndeterminedBeforeChange, ProductName, ProductNameBeforeChange, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuerySubscriptionContractsRequest, QuerySubscriptionContractsResponse, RestockLocation, RestoreInfo, RootCatalogItemIdBeforeChange, ServiceProperties, ShippingGroupIdBeforeChange, ShippingInformation, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, SpecificItemsCouponBehavior, SpecificItemsCouponBehaviorWithLiterals, StreetAddress, SubscriptionCommitSettings, SubscriptionContractActivity, SubscriptionContractActivityContentOneOf, SubscriptionContractActivityTargetOneOf, SubscriptionContractCanceled, SubscriptionContractChangesCommitted, SubscriptionContractChargeUpcoming, SubscriptionContractDiffs, SubscriptionContractExpired, SubscriptionContractQuerySpec, SubscriptionContractSettings, SubscriptionContractsQueryResult, SubscriptionDescription, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionInfo, SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, SubscriptionSettingsProductPeriodAlignmentWithLiterals, SubscriptionTitle, TaxInfoBeforeChange, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, TotalPriceChange, TranslatableString, TranslatedValue, UpdateSubscriptionContractRequest, UpdateSubscriptionContractResponse, V1BillingSettings, V1CyclePriceOverride, V1FreeTrialPeriod, V1SubscriptionDescription, V1SubscriptionSettings, V1SubscriptionTitle, V2SubscriptionFrequency, V2SubscriptionFrequencyWithLiterals, VatId, VatType, VatTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js';
2
+ import { SubscriptionContract, GetSubscriptionContractApplicationErrors, SubscriptionContractCommittedEnvelope, SubscriptionContractCreatedEnvelope, SubscriptionContractDeletedEnvelope, SubscriptionContractUpdatedEnvelope, SubscriptionContractsQueryBuilder, SubscriptionContractQuery, typedQuerySubscriptionContracts } from './index.typings.js';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionInitiator, ActionInitiatorWithLiterals, ActivityAuthor, ActivityAuthorValueOneOf, ActivityType, ActivityTypeWithLiterals, AdditionalFee, AdditionalFeeDelta, AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeSummary, Address, AddressLocation, AddressWithContact, AdjustmentType, AdjustmentTypeWithLiterals, ApplicationError, AppliedDiscount, AppliedDiscountDelta, AppliedDiscountDeltaDeltaDetailsOneOf, AppliedDiscountDiscountSourceOneOf, BaseEventMetadata, BaseRateSource, BaseRateSourceWithLiterals, BillingAdjustment, BillingAdjustmentPriceSummary, BillingSettings, BulkActionMetadata, BulkCreateSubscriptionContractsRequest, BulkCreateSubscriptionContractsResponse, BulkSubscriptionContractResult, BulkUpdateSubscriptionContractsRequest, BulkUpdateSubscriptionContractsResponse, BuyerInfo, BuyerInfoIdOneOf, CatalogReference, CatalogReferenceOptionsBeforeChange, ChangeType, ChangeTypeWithLiterals, ChangesAppliedActivity, ChangesAppliedActivityTargetOneOf, ChannelInfo, ChannelType, ChannelTypeWithLiterals, ChargeType, ChargeTypeWithLiterals, Color, CommitSubscriptionContractChangesRequest, CommitSubscriptionContractChangesResponse, CommonQueryWithEntityContext, ContractChange, ContractChangeChangeDetailsOneOf, ContractChangeType, ContractChangeTypeWithLiterals, ContractTarget, Coupon, CreateSubscriptionContractRequest, CreateSubscriptionContractResponse, CrossBorderCalculation, CrossBorderNotApplicableReason, CrossBorderNotApplicableReasonWithLiterals, CrossBorderPriceAdjustment, CrossBorderRepricingMode, CrossBorderRepricingModeWithLiterals, CurrencyConversionDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CyclePriceOverride, DecimalQuantity, DecimalQuantityUnitOneOf, DeliveryLogistics, DeliveryLogisticsAddressOneOf, DeliveryProfileIdBeforeChange, DeliveryTimeSlot, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, DescriptionLinesBeforeChange, DigitalFile, DigitalFileBeforeChange, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountReason, DiscountReasonWithLiterals, DiscountRule, DiscountRuleName, DiscountSummary, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, FocalPoint, FreeTrialPeriod, FulfillerIdBeforeChange, FullAddressContactDetails, GetSubscriptionContractRequest, GetSubscriptionContractResponse, IdentificationData, IdentificationDataIdOneOf, ImageBeforeChange, InventoryAppIdBeforeChange, ItemChangedDetails, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeBeforeChange, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItemChanges, LineItemCyclePriceOverrides, LineItemDelta, LineItemDeltaDeltaDetailsOneOf, LineItemDiscount, LineItemQuantityChange, LineItemQuantityChangeType, LineItemQuantityChangeTypeWithLiterals, LineItemSummary, LineItemTaxBreakdown, LineItemTaxInfo, Location, LocationAndQuantity, MaskedSubscriptionContract, MeasurementUnit, MeasurementUnitWithLiterals, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, MessageEnvelope, ModifierGroup, ModifierGroupsBeforeChange, OrderLineItem, OrderTaxBreakdown, OrderTaxInfo, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PhysicalPropertiesBeforeChange, PickupAddress, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeSummary, Price, PriceDescription, PriceDescriptionBeforeChange, PriceSummary, PriceUndeterminedBeforeChange, ProductName, ProductNameBeforeChange, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuerySubscriptionContractsRequest, QuerySubscriptionContractsResponse, RepriceStatus, RepriceStatusWithLiterals, RestockLocation, RestoreInfo, RootCatalogItemIdBeforeChange, ServiceProperties, ShippingGroupIdBeforeChange, ShippingInformation, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, SpecificItemsCouponBehavior, SpecificItemsCouponBehaviorWithLiterals, StreetAddress, SubscriptionCommitSettings, SubscriptionContractActivity, SubscriptionContractActivityContentOneOf, SubscriptionContractActivityTargetOneOf, SubscriptionContractCanceled, SubscriptionContractChangesCommitted, SubscriptionContractChargeUpcoming, SubscriptionContractDiffs, SubscriptionContractExpired, SubscriptionContractQuerySpec, SubscriptionContractSettings, SubscriptionContractsQueryResult, SubscriptionDescription, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionInfo, SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, SubscriptionSettingsProductPeriodAlignmentWithLiterals, SubscriptionTitle, TaxInfoBeforeChange, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, TotalPriceChange, TranslatableString, TranslatedValue, UpdateSubscriptionContractRequest, UpdateSubscriptionContractResponse, V1BillingSettings, V1CyclePriceOverride, V1FreeTrialPeriod, V1SubscriptionDescription, V1SubscriptionSettings, V1SubscriptionTitle, V2SubscriptionFrequency, V2SubscriptionFrequencyWithLiterals, VatId, VatType, VatTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js';
4
4
 
5
5
  declare function getSubscriptionContract$1(httpClient: HttpClient): GetSubscriptionContractSignature;
6
6
  interface GetSubscriptionContractSignature {
7
7
  /**
8
- * Retrieves a SubscriptionContract.
9
- * @param - ID of the SubscriptionContract to retrieve.
10
- * @returns The requested SubscriptionContract.
8
+ * Retrieves a subscription contract.
9
+ *
10
+ *
11
+ * To retrieve the subscription contract an order was created from, specify the order's `lineItems.subscriptionInfo.id` as `subscriptionContractId`. You can retrieve the order with [Get Order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/get-order).
12
+ *
13
+ * To retrieve the orders created from a subscription contract, call [Search Orders](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/search-orders) with a filter on `lineItems.subscriptionInfo.id`.
14
+ * @param - ID of the subscription contract to retrieve.
15
+ * @returns Retrieved subscription contract.
11
16
  */
12
- (subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `lineItems.${number}.fixedQuantity` | `lineItems.${number}.decimalQuantity.measurementUnit` | `lineItems.${number}.decimalQuantity.otherUnit` | `lineItems.${number}.decimalQuantity.value` | `lineItems.${number}.decimalQuantity.description.original` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source` | `activities` | `activities.${number}.changesApplied.draftSubscriptionContractId` | `activities.${number}._id` | `activities.${number}.author.userId` | `activities.${number}.author.appId` | `activities.${number}.activityType`, 4>>;
17
+ (subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionDescription.original` | `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `lineItems.${number}.fixedQuantity` | `lineItems.${number}.decimalQuantity.measurementUnit` | `lineItems.${number}.decimalQuantity.otherUnit` | `lineItems.${number}.decimalQuantity.value` | `lineItems.${number}.decimalQuantity.description.original` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `subscriptionTitle.original` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source`, 4> & {
18
+ __applicationErrorsType?: GetSubscriptionContractApplicationErrors;
19
+ }>;
13
20
  }
21
+ declare const onSubscriptionContractCommitted$1: EventDefinition<SubscriptionContractCommittedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_committed">;
14
22
  declare const onSubscriptionContractCreated$1: EventDefinition<SubscriptionContractCreatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_created">;
15
23
  declare const onSubscriptionContractDeleted$1: EventDefinition<SubscriptionContractDeletedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_deleted">;
16
24
  declare const onSubscriptionContractUpdated$1: EventDefinition<SubscriptionContractUpdatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_updated">;
@@ -21,11 +29,24 @@ declare function customQuerySubscriptionContracts(httpClient: HttpClient): {
21
29
  };
22
30
  declare const getSubscriptionContract: MaybeContext<BuildRESTFunction<typeof getSubscriptionContract$1> & typeof getSubscriptionContract$1>;
23
31
  declare const querySubscriptionContracts: MaybeContext<BuildRESTFunction<typeof customQuerySubscriptionContracts> & typeof customQuerySubscriptionContracts>;
24
- /** */
32
+ /**
33
+ * Triggered when changes from a draft subscription contract are committed to a subscription contract.
34
+ * The event holds the updated contract and every change that was applied.
35
+ */
36
+ declare const onSubscriptionContractCommitted: BuildEventDefinition<typeof onSubscriptionContractCommitted$1> & typeof onSubscriptionContractCommitted$1;
37
+ /**
38
+ * Triggered when a subscription contract is created. A subscription contract is created when a buyer checks out with a subscription item.
39
+ */
25
40
  declare const onSubscriptionContractCreated: BuildEventDefinition<typeof onSubscriptionContractCreated$1> & typeof onSubscriptionContractCreated$1;
26
- /** */
41
+ /**
42
+ * Triggered when a subscription contract is deleted. A subscription contract is deleted when the buyer's personal data is erased. It isn't deleted when the subscription ends.
43
+ */
27
44
  declare const onSubscriptionContractDeleted: BuildEventDefinition<typeof onSubscriptionContractDeleted$1> & typeof onSubscriptionContractDeleted$1;
28
- /** */
45
+ /**
46
+ * Triggered when a subscription contract is updated.
47
+ * Fires when changes from a draft subscription contract are committed, and when the contract's `priceSummary` is set to the billed totals at the start of the first billing cycle.
48
+ * Also fires right after a subscription contract is created, while billing for the subscription is set up. These updates can leave every documented field unchanged.
49
+ */
29
50
  declare const onSubscriptionContractUpdated: BuildEventDefinition<typeof onSubscriptionContractUpdated$1> & typeof onSubscriptionContractUpdated$1;
30
51
 
31
- export { SubscriptionContract, SubscriptionContractCreatedEnvelope, SubscriptionContractDeletedEnvelope, SubscriptionContractQuery, SubscriptionContractUpdatedEnvelope, SubscriptionContractsQueryBuilder, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts };
52
+ export { GetSubscriptionContractApplicationErrors, SubscriptionContract, SubscriptionContractCommittedEnvelope, SubscriptionContractCreatedEnvelope, SubscriptionContractDeletedEnvelope, SubscriptionContractQuery, SubscriptionContractUpdatedEnvelope, SubscriptionContractsQueryBuilder, getSubscriptionContract, onSubscriptionContractCommitted, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts };
@@ -24,9 +24,13 @@ __export(index_exports, {
24
24
  ActivityType: () => ActivityType,
25
25
  AdditionalFeeSource: () => AdditionalFeeSource,
26
26
  AdjustmentType: () => AdjustmentType,
27
+ BaseRateSource: () => BaseRateSource,
27
28
  ChangeType: () => ChangeType,
28
29
  ChannelType: () => ChannelType,
29
30
  ChargeType: () => ChargeType,
31
+ ContractChangeType: () => ContractChangeType,
32
+ CrossBorderNotApplicableReason: () => CrossBorderNotApplicableReason,
33
+ CrossBorderRepricingMode: () => CrossBorderRepricingMode,
30
34
  DescriptionLineType: () => DescriptionLineType,
31
35
  DimensionsUnit: () => DimensionsUnit,
32
36
  DiscountReason: () => DiscountReason,
@@ -38,6 +42,7 @@ __export(index_exports, {
38
42
  PaymentOptionType: () => PaymentOptionType,
39
43
  PickupMethod: () => PickupMethod,
40
44
  ProductPeriodAlignment: () => ProductPeriodAlignment,
45
+ RepriceStatus: () => RepriceStatus,
41
46
  SortOrder: () => SortOrder,
42
47
  SpecificItemsCouponBehavior: () => SpecificItemsCouponBehavior,
43
48
  SubscriptionFrequency: () => SubscriptionFrequency,
@@ -48,6 +53,7 @@ __export(index_exports, {
48
53
  WebhookIdentityType: () => WebhookIdentityType,
49
54
  WeightUnit: () => WeightUnit,
50
55
  getSubscriptionContract: () => getSubscriptionContract4,
56
+ onSubscriptionContractCommitted: () => onSubscriptionContractCommitted2,
51
57
  onSubscriptionContractCreated: () => onSubscriptionContractCreated2,
52
58
  onSubscriptionContractDeleted: () => onSubscriptionContractDeleted2,
53
59
  onSubscriptionContractUpdated: () => onSubscriptionContractUpdated2,
@@ -87,9 +93,18 @@ var TRANSFORM_PATHS_0 = [
87
93
  },
88
94
  { path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
89
95
  { path: "subscriptionContract.lineItems.serviceProperties.endDate" },
96
+ {
97
+ path: "subscriptionContract.lineItems.crossBorderAdjustment.baseRateCapturedDate"
98
+ },
90
99
  { path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
91
100
  { path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
92
101
  { path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
102
+ {
103
+ path: "subscriptionContract.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
104
+ },
105
+ {
106
+ path: "subscriptionContract.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
107
+ },
93
108
  { path: "subscriptionContract.activities.createdDate" }
94
109
  ];
95
110
  var TRANSFORM_PATHS_1 = [
@@ -124,11 +139,20 @@ var TRANSFORM_PATHS_2 = [
124
139
  },
125
140
  { path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
126
141
  { path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
142
+ {
143
+ path: "subscriptionContracts.lineItems.crossBorderAdjustment.baseRateCapturedDate"
144
+ },
127
145
  { path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
128
146
  {
129
147
  path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
130
148
  },
131
149
  { path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
150
+ {
151
+ path: "subscriptionContracts.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
152
+ },
153
+ {
154
+ path: "subscriptionContracts.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
155
+ },
132
156
  { path: "subscriptionContracts.activities.createdDate" }
133
157
  ];
134
158
  var TRANSFORM_PATHS_3 = [
@@ -402,6 +426,23 @@ var MeasurementUnit = /* @__PURE__ */ ((MeasurementUnit2) => {
402
426
  MeasurementUnit2["SQFT"] = "SQFT";
403
427
  return MeasurementUnit2;
404
428
  })(MeasurementUnit || {});
429
+ var RepriceStatus = /* @__PURE__ */ ((RepriceStatus2) => {
430
+ RepriceStatus2["APPLIED"] = "APPLIED";
431
+ RepriceStatus2["KEPT"] = "KEPT";
432
+ RepriceStatus2["STRIP_ONLY"] = "STRIP_ONLY";
433
+ RepriceStatus2["SAME_REGION"] = "SAME_REGION";
434
+ RepriceStatus2["SAME_COUNTRY"] = "SAME_COUNTRY";
435
+ RepriceStatus2["NO_DESTINATION_REGION"] = "NO_DESTINATION_REGION";
436
+ RepriceStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
437
+ RepriceStatus2["NOT_APPLICABLE_MODIFIERS"] = "NOT_APPLICABLE_MODIFIERS";
438
+ RepriceStatus2["CONVERTED_CURRENCY_SUBSCRIPTION"] = "CONVERTED_CURRENCY_SUBSCRIPTION";
439
+ return RepriceStatus2;
440
+ })(RepriceStatus || {});
441
+ var BaseRateSource = /* @__PURE__ */ ((BaseRateSource2) => {
442
+ BaseRateSource2["MANUAL_SPI"] = "MANUAL_SPI";
443
+ BaseRateSource2["AVALARA_PROBE"] = "AVALARA_PROBE";
444
+ return BaseRateSource2;
445
+ })(BaseRateSource || {});
405
446
  var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
406
447
  WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
407
448
  WeightUnit2["KG"] = "KG";
@@ -424,6 +465,25 @@ var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
424
465
  PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
425
466
  return PickupMethod2;
426
467
  })(PickupMethod || {});
468
+ var CrossBorderNotApplicableReason = /* @__PURE__ */ ((CrossBorderNotApplicableReason2) => {
469
+ CrossBorderNotApplicableReason2["FEATURE_DISABLED"] = "FEATURE_DISABLED";
470
+ CrossBorderNotApplicableReason2["NOT_OPTED_IN"] = "NOT_OPTED_IN";
471
+ CrossBorderNotApplicableReason2["TAX_INCLUSIVE_PRICING_OFF"] = "TAX_INCLUSIVE_PRICING_OFF";
472
+ CrossBorderNotApplicableReason2["BASE_TAX_REGION_NOT_FOUND"] = "BASE_TAX_REGION_NOT_FOUND";
473
+ CrossBorderNotApplicableReason2["BASE_REGION_HAS_NO_MANUAL_MAPPING"] = "BASE_REGION_HAS_NO_MANUAL_MAPPING";
474
+ CrossBorderNotApplicableReason2["EMBEDDED_RATE_MISSING"] = "EMBEDDED_RATE_MISSING";
475
+ CrossBorderNotApplicableReason2["CROSS_BORDER_REPRICING_FAILED"] = "CROSS_BORDER_REPRICING_FAILED";
476
+ CrossBorderNotApplicableReason2["SHIPPING_REPRICING_FAILED"] = "SHIPPING_REPRICING_FAILED";
477
+ CrossBorderNotApplicableReason2["FEES_REPRICING_FAILED"] = "FEES_REPRICING_FAILED";
478
+ CrossBorderNotApplicableReason2["SETTINGS_UNAVAILABLE"] = "SETTINGS_UNAVAILABLE";
479
+ return CrossBorderNotApplicableReason2;
480
+ })(CrossBorderNotApplicableReason || {});
481
+ var CrossBorderRepricingMode = /* @__PURE__ */ ((CrossBorderRepricingMode2) => {
482
+ CrossBorderRepricingMode2["DISABLED"] = "DISABLED";
483
+ CrossBorderRepricingMode2["STRIP_ONLY"] = "STRIP_ONLY";
484
+ CrossBorderRepricingMode2["FULL"] = "FULL";
485
+ return CrossBorderRepricingMode2;
486
+ })(CrossBorderRepricingMode || {});
427
487
  var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
428
488
  DiscountType2["GLOBAL"] = "GLOBAL";
429
489
  DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
@@ -476,10 +536,23 @@ var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2
476
536
  return SpecificItemsCouponBehavior2;
477
537
  })(SpecificItemsCouponBehavior || {});
478
538
  var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
539
+ LineItemQuantityChangeType2["UNKNOWN_LINE_ITEM_QUANTITY_CHANGE_TYPE"] = "UNKNOWN_LINE_ITEM_QUANTITY_CHANGE_TYPE";
479
540
  LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
480
541
  LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
481
542
  return LineItemQuantityChangeType2;
482
543
  })(LineItemQuantityChangeType || {});
544
+ var ContractChangeType = /* @__PURE__ */ ((ContractChangeType2) => {
545
+ ContractChangeType2["UNKNOWN_CONTRACT_CHANGE_TYPE"] = "UNKNOWN_CONTRACT_CHANGE_TYPE";
546
+ ContractChangeType2["LINE_ITEM_CHANGED"] = "LINE_ITEM_CHANGED";
547
+ ContractChangeType2["LINE_ITEM_ADDED"] = "LINE_ITEM_ADDED";
548
+ ContractChangeType2["LINE_ITEM_REMOVED"] = "LINE_ITEM_REMOVED";
549
+ ContractChangeType2["DISCOUNT_ADDED"] = "DISCOUNT_ADDED";
550
+ ContractChangeType2["DISCOUNT_REMOVED"] = "DISCOUNT_REMOVED";
551
+ ContractChangeType2["ADDITIONAL_FEE_ADDED"] = "ADDITIONAL_FEE_ADDED";
552
+ ContractChangeType2["ADDITIONAL_FEE_REMOVED"] = "ADDITIONAL_FEE_REMOVED";
553
+ ContractChangeType2["TOTAL_PRICE_CHANGED"] = "TOTAL_PRICE_CHANGED";
554
+ return ContractChangeType2;
555
+ })(ContractChangeType || {});
483
556
  var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
484
557
  ActivityType2["UNKNOWN_ACTIVITY_TYPE"] = "UNKNOWN_ACTIVITY_TYPE";
485
558
  ActivityType2["CHANGES_APPLIED"] = "CHANGES_APPLIED";
@@ -649,6 +722,86 @@ var utils = {
649
722
 
650
723
  // src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.ts
651
724
  var TRANSFORM_PATHS_03 = [
725
+ { path: "data.commitDate" },
726
+ { path: "data.subscriptionContract.createdDate" },
727
+ { path: "data.subscriptionContract.updatedDate" },
728
+ { path: "data.subscriptionContract.subscriptionSettings.startDate" },
729
+ { path: "data.subscriptionContract.lineItems.digitalFile.expirationDate" },
730
+ {
731
+ path: "data.subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
732
+ },
733
+ {
734
+ path: "data.subscriptionContract.lineItems.serviceProperties.scheduledDate"
735
+ },
736
+ { path: "data.subscriptionContract.lineItems.serviceProperties.endDate" },
737
+ {
738
+ path: "data.subscriptionContract.lineItems.crossBorderAdjustment.baseRateCapturedDate"
739
+ },
740
+ { path: "data.subscriptionContract.shippingInfo.logistics.deliverByDate" },
741
+ {
742
+ path: "data.subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
743
+ },
744
+ {
745
+ path: "data.subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
746
+ },
747
+ {
748
+ path: "data.subscriptionContract.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
749
+ },
750
+ {
751
+ path: "data.subscriptionContract.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
752
+ },
753
+ { path: "data.subscriptionContract.activities.createdDate" },
754
+ {
755
+ path: "data.changes.lineItems.changed.digitalFileBeforeChange.digitalFile.expirationDate"
756
+ },
757
+ { path: "data.changes.lineItems.lineItem.digitalFile.expirationDate" },
758
+ {
759
+ path: "data.changes.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
760
+ },
761
+ { path: "data.changes.lineItems.lineItem.serviceProperties.scheduledDate" },
762
+ { path: "data.changes.lineItems.lineItem.serviceProperties.endDate" },
763
+ {
764
+ path: "data.changes.lineItems.lineItem.crossBorderAdjustment.baseRateCapturedDate"
765
+ },
766
+ {
767
+ path: "data.changes.additionalFees.changed.crossBorderAdjustment.baseRateCapturedDate"
768
+ },
769
+ {
770
+ path: "data.changes.additionalFees.added.crossBorderAdjustment.baseRateCapturedDate"
771
+ },
772
+ { path: "data.changes.shippingInfo.logistics.deliverByDate" },
773
+ { path: "data.changes.shippingInfo.logistics.deliveryTimeSlot.from" },
774
+ { path: "data.changes.shippingInfo.logistics.deliveryTimeSlot.to" },
775
+ {
776
+ path: "data.changes.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
777
+ },
778
+ { path: "metadata.eventTime" }
779
+ ];
780
+ var TRANSFORM_PATHS_13 = [
781
+ { path: "data.subscriptionContract.lineItems.image" },
782
+ { path: "data.changes.lineItems.changed.imageBeforeChange.image" },
783
+ { path: "data.changes.lineItems.lineItem.image" }
784
+ ];
785
+ var TRANSFORM_PATHS_23 = [
786
+ { path: "data.subscriptionContract.lineItems.physicalProperties.weight" },
787
+ {
788
+ path: "data.changes.lineItems.changed.physicalPropertiesBeforeChange.physicalProperties.weight"
789
+ },
790
+ { path: "data.changes.lineItems.lineItem.physicalProperties.weight" }
791
+ ];
792
+ var TRANSFORM_PATHS_33 = [
793
+ { path: "data.subscriptionContract.billingInfo.address" },
794
+ {
795
+ path: "data.subscriptionContract.shippingInfo.logistics.shippingDestination.address"
796
+ },
797
+ {
798
+ path: "data.subscriptionContract.shippingInfo.logistics.pickupDetails.address"
799
+ },
800
+ { path: "data.subscriptionContract.recipientInfo.address" },
801
+ { path: "data.changes.shippingInfo.logistics.shippingDestination.address" },
802
+ { path: "data.changes.shippingInfo.logistics.pickupDetails.address" }
803
+ ];
804
+ var TRANSFORM_PATHS_4 = [
652
805
  { path: "entity.createdDate" },
653
806
  { path: "entity.updatedDate" },
654
807
  { path: "entity.subscriptionSettings.startDate" },
@@ -656,23 +809,28 @@ var TRANSFORM_PATHS_03 = [
656
809
  { path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
657
810
  { path: "entity.lineItems.serviceProperties.scheduledDate" },
658
811
  { path: "entity.lineItems.serviceProperties.endDate" },
812
+ { path: "entity.lineItems.crossBorderAdjustment.baseRateCapturedDate" },
659
813
  { path: "entity.shippingInfo.logistics.deliverByDate" },
660
814
  { path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
661
815
  { path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
816
+ {
817
+ path: "entity.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
818
+ },
819
+ { path: "entity.additionalFees.crossBorderAdjustment.baseRateCapturedDate" },
662
820
  { path: "entity.activities.createdDate" },
663
821
  { path: "metadata.eventTime" }
664
822
  ];
665
- var TRANSFORM_PATHS_13 = [{ path: "entity.lineItems.image" }];
666
- var TRANSFORM_PATHS_23 = [
823
+ var TRANSFORM_PATHS_5 = [{ path: "entity.lineItems.image" }];
824
+ var TRANSFORM_PATHS_6 = [
667
825
  { path: "entity.lineItems.physicalProperties.weight" }
668
826
  ];
669
- var TRANSFORM_PATHS_33 = [
827
+ var TRANSFORM_PATHS_7 = [
670
828
  { path: "entity.billingInfo.address" },
671
829
  { path: "entity.shippingInfo.logistics.shippingDestination.address" },
672
830
  { path: "entity.shippingInfo.logistics.pickupDetails.address" },
673
831
  { path: "entity.recipientInfo.address" }
674
832
  ];
675
- var TRANSFORM_PATHS_4 = [
833
+ var TRANSFORM_PATHS_8 = [
676
834
  { path: "undefined.createdDate" },
677
835
  { path: "undefined.updatedDate" },
678
836
  { path: "undefined.subscriptionSettings.startDate" },
@@ -682,23 +840,30 @@ var TRANSFORM_PATHS_4 = [
682
840
  },
683
841
  { path: "undefined.lineItems.serviceProperties.scheduledDate" },
684
842
  { path: "undefined.lineItems.serviceProperties.endDate" },
843
+ { path: "undefined.lineItems.crossBorderAdjustment.baseRateCapturedDate" },
685
844
  { path: "undefined.shippingInfo.logistics.deliverByDate" },
686
845
  { path: "undefined.shippingInfo.logistics.deliveryTimeSlot.from" },
687
846
  { path: "undefined.shippingInfo.logistics.deliveryTimeSlot.to" },
847
+ {
848
+ path: "undefined.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
849
+ },
850
+ {
851
+ path: "undefined.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
852
+ },
688
853
  { path: "undefined.activities.createdDate" },
689
854
  { path: "metadata.eventTime" }
690
855
  ];
691
- var TRANSFORM_PATHS_5 = [{ path: "undefined.lineItems.image" }];
692
- var TRANSFORM_PATHS_6 = [
856
+ var TRANSFORM_PATHS_9 = [{ path: "undefined.lineItems.image" }];
857
+ var TRANSFORM_PATHS_10 = [
693
858
  { path: "undefined.lineItems.physicalProperties.weight" }
694
859
  ];
695
- var TRANSFORM_PATHS_7 = [
860
+ var TRANSFORM_PATHS_11 = [
696
861
  { path: "undefined.billingInfo.address" },
697
862
  { path: "undefined.shippingInfo.logistics.shippingDestination.address" },
698
863
  { path: "undefined.shippingInfo.logistics.pickupDetails.address" },
699
864
  { path: "undefined.recipientInfo.address" }
700
865
  ];
701
- var TRANSFORM_PATHS_8 = [
866
+ var TRANSFORM_PATHS_122 = [
702
867
  { path: "entity.createdDate" },
703
868
  { path: "entity.updatedDate" },
704
869
  { path: "entity.subscriptionSettings.startDate" },
@@ -706,9 +871,14 @@ var TRANSFORM_PATHS_8 = [
706
871
  { path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
707
872
  { path: "entity.lineItems.serviceProperties.scheduledDate" },
708
873
  { path: "entity.lineItems.serviceProperties.endDate" },
874
+ { path: "entity.lineItems.crossBorderAdjustment.baseRateCapturedDate" },
709
875
  { path: "entity.shippingInfo.logistics.deliverByDate" },
710
876
  { path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
711
877
  { path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
878
+ {
879
+ path: "entity.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
880
+ },
881
+ { path: "entity.additionalFees.crossBorderAdjustment.baseRateCapturedDate" },
712
882
  { path: "entity.activities.createdDate" },
713
883
  { path: "metadata.eventTime" },
714
884
  { path: "modifiedFields.createdDate" },
@@ -720,20 +890,29 @@ var TRANSFORM_PATHS_8 = [
720
890
  },
721
891
  { path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
722
892
  { path: "modifiedFields.lineItems.serviceProperties.endDate" },
893
+ {
894
+ path: "modifiedFields.lineItems.crossBorderAdjustment.baseRateCapturedDate"
895
+ },
723
896
  { path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
724
897
  { path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from" },
725
898
  { path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to" },
899
+ {
900
+ path: "modifiedFields.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
901
+ },
902
+ {
903
+ path: "modifiedFields.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
904
+ },
726
905
  { path: "modifiedFields.activities.createdDate" }
727
906
  ];
728
- var TRANSFORM_PATHS_9 = [
907
+ var TRANSFORM_PATHS_132 = [
729
908
  { path: "entity.lineItems.image" },
730
909
  { path: "modifiedFields.lineItems.image" }
731
910
  ];
732
- var TRANSFORM_PATHS_10 = [
911
+ var TRANSFORM_PATHS_14 = [
733
912
  { path: "entity.lineItems.physicalProperties.weight" },
734
913
  { path: "modifiedFields.lineItems.physicalProperties.weight" }
735
914
  ];
736
- var TRANSFORM_PATHS_11 = [
915
+ var TRANSFORM_PATHS_15 = [
737
916
  { path: "entity.billingInfo.address" },
738
917
  { path: "entity.shippingInfo.logistics.shippingDestination.address" },
739
918
  { path: "entity.shippingInfo.logistics.pickupDetails.address" },
@@ -763,8 +942,8 @@ function typedQuerySubscriptionContracts2(httpClient) {
763
942
  { httpClient }
764
943
  );
765
944
  }
766
- var onSubscriptionContractCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
767
- "wix.ecom.subscription_contracts.v1.subscription_contract_created",
945
+ var onSubscriptionContractCommitted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
946
+ "wix.ecom.subscription_contracts.v1.subscription_contract_committed",
768
947
  true,
769
948
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
770
949
  (0, import_transform_paths3.transformPaths)(event, [
@@ -787,8 +966,8 @@ var onSubscriptionContractCreated = /* @__PURE__ */ (0, import_sdk_types.EventDe
787
966
  ])
788
967
  )
789
968
  )();
790
- var onSubscriptionContractDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
791
- "wix.ecom.subscription_contracts.v1.subscription_contract_deleted",
969
+ var onSubscriptionContractCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
970
+ "wix.ecom.subscription_contracts.v1.subscription_contract_created",
792
971
  true,
793
972
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
794
973
  (0, import_transform_paths3.transformPaths)(event, [
@@ -811,8 +990,8 @@ var onSubscriptionContractDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDe
811
990
  ])
812
991
  )
813
992
  )();
814
- var onSubscriptionContractUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
815
- "wix.ecom.subscription_contracts.v1.subscription_contract_updated",
993
+ var onSubscriptionContractDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
994
+ "wix.ecom.subscription_contracts.v1.subscription_contract_deleted",
816
995
  true,
817
996
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
818
997
  (0, import_transform_paths3.transformPaths)(event, [
@@ -835,6 +1014,30 @@ var onSubscriptionContractUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDe
835
1014
  ])
836
1015
  )
837
1016
  )();
1017
+ var onSubscriptionContractUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1018
+ "wix.ecom.subscription_contracts.v1.subscription_contract_updated",
1019
+ true,
1020
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1021
+ (0, import_transform_paths3.transformPaths)(event, [
1022
+ {
1023
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1024
+ paths: TRANSFORM_PATHS_122
1025
+ },
1026
+ {
1027
+ transformFn: import_image2.transformRESTImageToSDKImage,
1028
+ paths: TRANSFORM_PATHS_132
1029
+ },
1030
+ {
1031
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1032
+ paths: TRANSFORM_PATHS_14
1033
+ },
1034
+ {
1035
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1036
+ paths: TRANSFORM_PATHS_15
1037
+ }
1038
+ ])
1039
+ )
1040
+ )();
838
1041
 
839
1042
  // src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.ts
840
1043
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
@@ -853,6 +1056,7 @@ function customQuerySubscriptionContracts(httpClient) {
853
1056
  }
854
1057
  var getSubscriptionContract4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSubscriptionContract3);
855
1058
  var querySubscriptionContracts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySubscriptionContracts);
1059
+ var onSubscriptionContractCommitted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onSubscriptionContractCommitted);
856
1060
  var onSubscriptionContractCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
857
1061
  onSubscriptionContractCreated
858
1062
  );
@@ -868,9 +1072,13 @@ var onSubscriptionContractUpdated2 = /* @__PURE__ */ (0, import_event_definition
868
1072
  ActivityType,
869
1073
  AdditionalFeeSource,
870
1074
  AdjustmentType,
1075
+ BaseRateSource,
871
1076
  ChangeType,
872
1077
  ChannelType,
873
1078
  ChargeType,
1079
+ ContractChangeType,
1080
+ CrossBorderNotApplicableReason,
1081
+ CrossBorderRepricingMode,
874
1082
  DescriptionLineType,
875
1083
  DimensionsUnit,
876
1084
  DiscountReason,
@@ -882,6 +1090,7 @@ var onSubscriptionContractUpdated2 = /* @__PURE__ */ (0, import_event_definition
882
1090
  PaymentOptionType,
883
1091
  PickupMethod,
884
1092
  ProductPeriodAlignment,
1093
+ RepriceStatus,
885
1094
  SortOrder,
886
1095
  SpecificItemsCouponBehavior,
887
1096
  SubscriptionFrequency,
@@ -892,6 +1101,7 @@ var onSubscriptionContractUpdated2 = /* @__PURE__ */ (0, import_event_definition
892
1101
  WebhookIdentityType,
893
1102
  WeightUnit,
894
1103
  getSubscriptionContract,
1104
+ onSubscriptionContractCommitted,
895
1105
  onSubscriptionContractCreated,
896
1106
  onSubscriptionContractDeleted,
897
1107
  onSubscriptionContractUpdated,