@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.
- package/build/cjs/index.d.ts +31 -10
- package/build/cjs/index.js +227 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +431 -187
- package/build/cjs/index.typings.js +77 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +365 -164
- package/build/cjs/meta.js +77 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +31 -10
- package/build/es/index.mjs +221 -17
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +431 -187
- package/build/es/index.typings.mjs +72 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +365 -164
- package/build/es/meta.mjs +72 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +31 -10
- package/build/internal/cjs/index.typings.d.ts +459 -189
- package/build/internal/cjs/meta.d.ts +393 -166
- package/build/internal/es/index.d.mts +31 -10
- package/build/internal/es/index.typings.d.mts +459 -189
- package/build/internal/es/meta.d.mts +393 -166
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -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.mjs';
|
|
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,
|
|
2
|
+
import { SubscriptionContract, GetSubscriptionContractApplicationErrors, SubscriptionContractCommittedEnvelope, SubscriptionContractCreatedEnvelope, SubscriptionContractDeletedEnvelope, SubscriptionContractUpdatedEnvelope, SubscriptionContractsQueryBuilder, SubscriptionContractQuery, typedQuerySubscriptionContracts } from './index.typings.mjs';
|
|
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.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getSubscriptionContract$1(httpClient: HttpClient): GetSubscriptionContractSignature;
|
|
6
6
|
interface GetSubscriptionContractSignature {
|
|
7
7
|
/**
|
|
8
|
-
* Retrieves a
|
|
9
|
-
*
|
|
10
|
-
*
|
|
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` | `
|
|
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 };
|
package/build/es/index.mjs
CHANGED
|
@@ -32,9 +32,18 @@ var TRANSFORM_PATHS_0 = [
|
|
|
32
32
|
},
|
|
33
33
|
{ path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
|
|
34
34
|
{ path: "subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
35
|
+
{
|
|
36
|
+
path: "subscriptionContract.lineItems.crossBorderAdjustment.baseRateCapturedDate"
|
|
37
|
+
},
|
|
35
38
|
{ path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
36
39
|
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
37
40
|
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
41
|
+
{
|
|
42
|
+
path: "subscriptionContract.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
path: "subscriptionContract.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
|
|
46
|
+
},
|
|
38
47
|
{ path: "subscriptionContract.activities.createdDate" }
|
|
39
48
|
];
|
|
40
49
|
var TRANSFORM_PATHS_1 = [
|
|
@@ -69,11 +78,20 @@ var TRANSFORM_PATHS_2 = [
|
|
|
69
78
|
},
|
|
70
79
|
{ path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
|
|
71
80
|
{ path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
|
|
81
|
+
{
|
|
82
|
+
path: "subscriptionContracts.lineItems.crossBorderAdjustment.baseRateCapturedDate"
|
|
83
|
+
},
|
|
72
84
|
{ path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
|
|
73
85
|
{
|
|
74
86
|
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
75
87
|
},
|
|
76
88
|
{ path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
89
|
+
{
|
|
90
|
+
path: "subscriptionContracts.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
path: "subscriptionContracts.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
|
|
94
|
+
},
|
|
77
95
|
{ path: "subscriptionContracts.activities.createdDate" }
|
|
78
96
|
];
|
|
79
97
|
var TRANSFORM_PATHS_3 = [
|
|
@@ -347,6 +365,23 @@ var MeasurementUnit = /* @__PURE__ */ ((MeasurementUnit2) => {
|
|
|
347
365
|
MeasurementUnit2["SQFT"] = "SQFT";
|
|
348
366
|
return MeasurementUnit2;
|
|
349
367
|
})(MeasurementUnit || {});
|
|
368
|
+
var RepriceStatus = /* @__PURE__ */ ((RepriceStatus2) => {
|
|
369
|
+
RepriceStatus2["APPLIED"] = "APPLIED";
|
|
370
|
+
RepriceStatus2["KEPT"] = "KEPT";
|
|
371
|
+
RepriceStatus2["STRIP_ONLY"] = "STRIP_ONLY";
|
|
372
|
+
RepriceStatus2["SAME_REGION"] = "SAME_REGION";
|
|
373
|
+
RepriceStatus2["SAME_COUNTRY"] = "SAME_COUNTRY";
|
|
374
|
+
RepriceStatus2["NO_DESTINATION_REGION"] = "NO_DESTINATION_REGION";
|
|
375
|
+
RepriceStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
376
|
+
RepriceStatus2["NOT_APPLICABLE_MODIFIERS"] = "NOT_APPLICABLE_MODIFIERS";
|
|
377
|
+
RepriceStatus2["CONVERTED_CURRENCY_SUBSCRIPTION"] = "CONVERTED_CURRENCY_SUBSCRIPTION";
|
|
378
|
+
return RepriceStatus2;
|
|
379
|
+
})(RepriceStatus || {});
|
|
380
|
+
var BaseRateSource = /* @__PURE__ */ ((BaseRateSource2) => {
|
|
381
|
+
BaseRateSource2["MANUAL_SPI"] = "MANUAL_SPI";
|
|
382
|
+
BaseRateSource2["AVALARA_PROBE"] = "AVALARA_PROBE";
|
|
383
|
+
return BaseRateSource2;
|
|
384
|
+
})(BaseRateSource || {});
|
|
350
385
|
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
351
386
|
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
352
387
|
WeightUnit2["KG"] = "KG";
|
|
@@ -369,6 +404,25 @@ var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
|
|
|
369
404
|
PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
|
|
370
405
|
return PickupMethod2;
|
|
371
406
|
})(PickupMethod || {});
|
|
407
|
+
var CrossBorderNotApplicableReason = /* @__PURE__ */ ((CrossBorderNotApplicableReason2) => {
|
|
408
|
+
CrossBorderNotApplicableReason2["FEATURE_DISABLED"] = "FEATURE_DISABLED";
|
|
409
|
+
CrossBorderNotApplicableReason2["NOT_OPTED_IN"] = "NOT_OPTED_IN";
|
|
410
|
+
CrossBorderNotApplicableReason2["TAX_INCLUSIVE_PRICING_OFF"] = "TAX_INCLUSIVE_PRICING_OFF";
|
|
411
|
+
CrossBorderNotApplicableReason2["BASE_TAX_REGION_NOT_FOUND"] = "BASE_TAX_REGION_NOT_FOUND";
|
|
412
|
+
CrossBorderNotApplicableReason2["BASE_REGION_HAS_NO_MANUAL_MAPPING"] = "BASE_REGION_HAS_NO_MANUAL_MAPPING";
|
|
413
|
+
CrossBorderNotApplicableReason2["EMBEDDED_RATE_MISSING"] = "EMBEDDED_RATE_MISSING";
|
|
414
|
+
CrossBorderNotApplicableReason2["CROSS_BORDER_REPRICING_FAILED"] = "CROSS_BORDER_REPRICING_FAILED";
|
|
415
|
+
CrossBorderNotApplicableReason2["SHIPPING_REPRICING_FAILED"] = "SHIPPING_REPRICING_FAILED";
|
|
416
|
+
CrossBorderNotApplicableReason2["FEES_REPRICING_FAILED"] = "FEES_REPRICING_FAILED";
|
|
417
|
+
CrossBorderNotApplicableReason2["SETTINGS_UNAVAILABLE"] = "SETTINGS_UNAVAILABLE";
|
|
418
|
+
return CrossBorderNotApplicableReason2;
|
|
419
|
+
})(CrossBorderNotApplicableReason || {});
|
|
420
|
+
var CrossBorderRepricingMode = /* @__PURE__ */ ((CrossBorderRepricingMode2) => {
|
|
421
|
+
CrossBorderRepricingMode2["DISABLED"] = "DISABLED";
|
|
422
|
+
CrossBorderRepricingMode2["STRIP_ONLY"] = "STRIP_ONLY";
|
|
423
|
+
CrossBorderRepricingMode2["FULL"] = "FULL";
|
|
424
|
+
return CrossBorderRepricingMode2;
|
|
425
|
+
})(CrossBorderRepricingMode || {});
|
|
372
426
|
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
373
427
|
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
374
428
|
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
@@ -421,10 +475,23 @@ var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2
|
|
|
421
475
|
return SpecificItemsCouponBehavior2;
|
|
422
476
|
})(SpecificItemsCouponBehavior || {});
|
|
423
477
|
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
478
|
+
LineItemQuantityChangeType2["UNKNOWN_LINE_ITEM_QUANTITY_CHANGE_TYPE"] = "UNKNOWN_LINE_ITEM_QUANTITY_CHANGE_TYPE";
|
|
424
479
|
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
425
480
|
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
426
481
|
return LineItemQuantityChangeType2;
|
|
427
482
|
})(LineItemQuantityChangeType || {});
|
|
483
|
+
var ContractChangeType = /* @__PURE__ */ ((ContractChangeType2) => {
|
|
484
|
+
ContractChangeType2["UNKNOWN_CONTRACT_CHANGE_TYPE"] = "UNKNOWN_CONTRACT_CHANGE_TYPE";
|
|
485
|
+
ContractChangeType2["LINE_ITEM_CHANGED"] = "LINE_ITEM_CHANGED";
|
|
486
|
+
ContractChangeType2["LINE_ITEM_ADDED"] = "LINE_ITEM_ADDED";
|
|
487
|
+
ContractChangeType2["LINE_ITEM_REMOVED"] = "LINE_ITEM_REMOVED";
|
|
488
|
+
ContractChangeType2["DISCOUNT_ADDED"] = "DISCOUNT_ADDED";
|
|
489
|
+
ContractChangeType2["DISCOUNT_REMOVED"] = "DISCOUNT_REMOVED";
|
|
490
|
+
ContractChangeType2["ADDITIONAL_FEE_ADDED"] = "ADDITIONAL_FEE_ADDED";
|
|
491
|
+
ContractChangeType2["ADDITIONAL_FEE_REMOVED"] = "ADDITIONAL_FEE_REMOVED";
|
|
492
|
+
ContractChangeType2["TOTAL_PRICE_CHANGED"] = "TOTAL_PRICE_CHANGED";
|
|
493
|
+
return ContractChangeType2;
|
|
494
|
+
})(ContractChangeType || {});
|
|
428
495
|
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
429
496
|
ActivityType2["UNKNOWN_ACTIVITY_TYPE"] = "UNKNOWN_ACTIVITY_TYPE";
|
|
430
497
|
ActivityType2["CHANGES_APPLIED"] = "CHANGES_APPLIED";
|
|
@@ -594,6 +661,86 @@ var utils = {
|
|
|
594
661
|
|
|
595
662
|
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.ts
|
|
596
663
|
var TRANSFORM_PATHS_03 = [
|
|
664
|
+
{ path: "data.commitDate" },
|
|
665
|
+
{ path: "data.subscriptionContract.createdDate" },
|
|
666
|
+
{ path: "data.subscriptionContract.updatedDate" },
|
|
667
|
+
{ path: "data.subscriptionContract.subscriptionSettings.startDate" },
|
|
668
|
+
{ path: "data.subscriptionContract.lineItems.digitalFile.expirationDate" },
|
|
669
|
+
{
|
|
670
|
+
path: "data.subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
path: "data.subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
674
|
+
},
|
|
675
|
+
{ path: "data.subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
676
|
+
{
|
|
677
|
+
path: "data.subscriptionContract.lineItems.crossBorderAdjustment.baseRateCapturedDate"
|
|
678
|
+
},
|
|
679
|
+
{ path: "data.subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
680
|
+
{
|
|
681
|
+
path: "data.subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
path: "data.subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
path: "data.subscriptionContract.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
path: "data.subscriptionContract.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
|
|
691
|
+
},
|
|
692
|
+
{ path: "data.subscriptionContract.activities.createdDate" },
|
|
693
|
+
{
|
|
694
|
+
path: "data.changes.lineItems.changed.digitalFileBeforeChange.digitalFile.expirationDate"
|
|
695
|
+
},
|
|
696
|
+
{ path: "data.changes.lineItems.lineItem.digitalFile.expirationDate" },
|
|
697
|
+
{
|
|
698
|
+
path: "data.changes.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
699
|
+
},
|
|
700
|
+
{ path: "data.changes.lineItems.lineItem.serviceProperties.scheduledDate" },
|
|
701
|
+
{ path: "data.changes.lineItems.lineItem.serviceProperties.endDate" },
|
|
702
|
+
{
|
|
703
|
+
path: "data.changes.lineItems.lineItem.crossBorderAdjustment.baseRateCapturedDate"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
path: "data.changes.additionalFees.changed.crossBorderAdjustment.baseRateCapturedDate"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
path: "data.changes.additionalFees.added.crossBorderAdjustment.baseRateCapturedDate"
|
|
710
|
+
},
|
|
711
|
+
{ path: "data.changes.shippingInfo.logistics.deliverByDate" },
|
|
712
|
+
{ path: "data.changes.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
713
|
+
{ path: "data.changes.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
714
|
+
{
|
|
715
|
+
path: "data.changes.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
716
|
+
},
|
|
717
|
+
{ path: "metadata.eventTime" }
|
|
718
|
+
];
|
|
719
|
+
var TRANSFORM_PATHS_13 = [
|
|
720
|
+
{ path: "data.subscriptionContract.lineItems.image" },
|
|
721
|
+
{ path: "data.changes.lineItems.changed.imageBeforeChange.image" },
|
|
722
|
+
{ path: "data.changes.lineItems.lineItem.image" }
|
|
723
|
+
];
|
|
724
|
+
var TRANSFORM_PATHS_23 = [
|
|
725
|
+
{ path: "data.subscriptionContract.lineItems.physicalProperties.weight" },
|
|
726
|
+
{
|
|
727
|
+
path: "data.changes.lineItems.changed.physicalPropertiesBeforeChange.physicalProperties.weight"
|
|
728
|
+
},
|
|
729
|
+
{ path: "data.changes.lineItems.lineItem.physicalProperties.weight" }
|
|
730
|
+
];
|
|
731
|
+
var TRANSFORM_PATHS_33 = [
|
|
732
|
+
{ path: "data.subscriptionContract.billingInfo.address" },
|
|
733
|
+
{
|
|
734
|
+
path: "data.subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
path: "data.subscriptionContract.shippingInfo.logistics.pickupDetails.address"
|
|
738
|
+
},
|
|
739
|
+
{ path: "data.subscriptionContract.recipientInfo.address" },
|
|
740
|
+
{ path: "data.changes.shippingInfo.logistics.shippingDestination.address" },
|
|
741
|
+
{ path: "data.changes.shippingInfo.logistics.pickupDetails.address" }
|
|
742
|
+
];
|
|
743
|
+
var TRANSFORM_PATHS_4 = [
|
|
597
744
|
{ path: "entity.createdDate" },
|
|
598
745
|
{ path: "entity.updatedDate" },
|
|
599
746
|
{ path: "entity.subscriptionSettings.startDate" },
|
|
@@ -601,23 +748,28 @@ var TRANSFORM_PATHS_03 = [
|
|
|
601
748
|
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
602
749
|
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
603
750
|
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
751
|
+
{ path: "entity.lineItems.crossBorderAdjustment.baseRateCapturedDate" },
|
|
604
752
|
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
605
753
|
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
606
754
|
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
755
|
+
{
|
|
756
|
+
path: "entity.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
757
|
+
},
|
|
758
|
+
{ path: "entity.additionalFees.crossBorderAdjustment.baseRateCapturedDate" },
|
|
607
759
|
{ path: "entity.activities.createdDate" },
|
|
608
760
|
{ path: "metadata.eventTime" }
|
|
609
761
|
];
|
|
610
|
-
var
|
|
611
|
-
var
|
|
762
|
+
var TRANSFORM_PATHS_5 = [{ path: "entity.lineItems.image" }];
|
|
763
|
+
var TRANSFORM_PATHS_6 = [
|
|
612
764
|
{ path: "entity.lineItems.physicalProperties.weight" }
|
|
613
765
|
];
|
|
614
|
-
var
|
|
766
|
+
var TRANSFORM_PATHS_7 = [
|
|
615
767
|
{ path: "entity.billingInfo.address" },
|
|
616
768
|
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
617
769
|
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
618
770
|
{ path: "entity.recipientInfo.address" }
|
|
619
771
|
];
|
|
620
|
-
var
|
|
772
|
+
var TRANSFORM_PATHS_8 = [
|
|
621
773
|
{ path: "undefined.createdDate" },
|
|
622
774
|
{ path: "undefined.updatedDate" },
|
|
623
775
|
{ path: "undefined.subscriptionSettings.startDate" },
|
|
@@ -627,23 +779,30 @@ var TRANSFORM_PATHS_4 = [
|
|
|
627
779
|
},
|
|
628
780
|
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
629
781
|
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
782
|
+
{ path: "undefined.lineItems.crossBorderAdjustment.baseRateCapturedDate" },
|
|
630
783
|
{ path: "undefined.shippingInfo.logistics.deliverByDate" },
|
|
631
784
|
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
632
785
|
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
786
|
+
{
|
|
787
|
+
path: "undefined.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
path: "undefined.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
|
|
791
|
+
},
|
|
633
792
|
{ path: "undefined.activities.createdDate" },
|
|
634
793
|
{ path: "metadata.eventTime" }
|
|
635
794
|
];
|
|
636
|
-
var
|
|
637
|
-
var
|
|
795
|
+
var TRANSFORM_PATHS_9 = [{ path: "undefined.lineItems.image" }];
|
|
796
|
+
var TRANSFORM_PATHS_10 = [
|
|
638
797
|
{ path: "undefined.lineItems.physicalProperties.weight" }
|
|
639
798
|
];
|
|
640
|
-
var
|
|
799
|
+
var TRANSFORM_PATHS_11 = [
|
|
641
800
|
{ path: "undefined.billingInfo.address" },
|
|
642
801
|
{ path: "undefined.shippingInfo.logistics.shippingDestination.address" },
|
|
643
802
|
{ path: "undefined.shippingInfo.logistics.pickupDetails.address" },
|
|
644
803
|
{ path: "undefined.recipientInfo.address" }
|
|
645
804
|
];
|
|
646
|
-
var
|
|
805
|
+
var TRANSFORM_PATHS_122 = [
|
|
647
806
|
{ path: "entity.createdDate" },
|
|
648
807
|
{ path: "entity.updatedDate" },
|
|
649
808
|
{ path: "entity.subscriptionSettings.startDate" },
|
|
@@ -651,9 +810,14 @@ var TRANSFORM_PATHS_8 = [
|
|
|
651
810
|
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
652
811
|
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
653
812
|
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
813
|
+
{ path: "entity.lineItems.crossBorderAdjustment.baseRateCapturedDate" },
|
|
654
814
|
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
655
815
|
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
656
816
|
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
817
|
+
{
|
|
818
|
+
path: "entity.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
819
|
+
},
|
|
820
|
+
{ path: "entity.additionalFees.crossBorderAdjustment.baseRateCapturedDate" },
|
|
657
821
|
{ path: "entity.activities.createdDate" },
|
|
658
822
|
{ path: "metadata.eventTime" },
|
|
659
823
|
{ path: "modifiedFields.createdDate" },
|
|
@@ -665,20 +829,29 @@ var TRANSFORM_PATHS_8 = [
|
|
|
665
829
|
},
|
|
666
830
|
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
667
831
|
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
832
|
+
{
|
|
833
|
+
path: "modifiedFields.lineItems.crossBorderAdjustment.baseRateCapturedDate"
|
|
834
|
+
},
|
|
668
835
|
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
669
836
|
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
670
837
|
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
838
|
+
{
|
|
839
|
+
path: "modifiedFields.shippingInfo.cost.crossBorderAdjustment.baseRateCapturedDate"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
path: "modifiedFields.additionalFees.crossBorderAdjustment.baseRateCapturedDate"
|
|
843
|
+
},
|
|
671
844
|
{ path: "modifiedFields.activities.createdDate" }
|
|
672
845
|
];
|
|
673
|
-
var
|
|
846
|
+
var TRANSFORM_PATHS_132 = [
|
|
674
847
|
{ path: "entity.lineItems.image" },
|
|
675
848
|
{ path: "modifiedFields.lineItems.image" }
|
|
676
849
|
];
|
|
677
|
-
var
|
|
850
|
+
var TRANSFORM_PATHS_14 = [
|
|
678
851
|
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
679
852
|
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
680
853
|
];
|
|
681
|
-
var
|
|
854
|
+
var TRANSFORM_PATHS_15 = [
|
|
682
855
|
{ path: "entity.billingInfo.address" },
|
|
683
856
|
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
684
857
|
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
@@ -708,8 +881,8 @@ function typedQuerySubscriptionContracts2(httpClient) {
|
|
|
708
881
|
{ httpClient }
|
|
709
882
|
);
|
|
710
883
|
}
|
|
711
|
-
var
|
|
712
|
-
"wix.ecom.subscription_contracts.v1.
|
|
884
|
+
var onSubscriptionContractCommitted = /* @__PURE__ */ EventDefinition(
|
|
885
|
+
"wix.ecom.subscription_contracts.v1.subscription_contract_committed",
|
|
713
886
|
true,
|
|
714
887
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
715
888
|
transformPaths3(event, [
|
|
@@ -732,8 +905,8 @@ var onSubscriptionContractCreated = /* @__PURE__ */ EventDefinition(
|
|
|
732
905
|
])
|
|
733
906
|
)
|
|
734
907
|
)();
|
|
735
|
-
var
|
|
736
|
-
"wix.ecom.subscription_contracts.v1.
|
|
908
|
+
var onSubscriptionContractCreated = /* @__PURE__ */ EventDefinition(
|
|
909
|
+
"wix.ecom.subscription_contracts.v1.subscription_contract_created",
|
|
737
910
|
true,
|
|
738
911
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
739
912
|
transformPaths3(event, [
|
|
@@ -756,8 +929,8 @@ var onSubscriptionContractDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
756
929
|
])
|
|
757
930
|
)
|
|
758
931
|
)();
|
|
759
|
-
var
|
|
760
|
-
"wix.ecom.subscription_contracts.v1.
|
|
932
|
+
var onSubscriptionContractDeleted = /* @__PURE__ */ EventDefinition(
|
|
933
|
+
"wix.ecom.subscription_contracts.v1.subscription_contract_deleted",
|
|
761
934
|
true,
|
|
762
935
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
763
936
|
transformPaths3(event, [
|
|
@@ -780,6 +953,30 @@ var onSubscriptionContractUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
780
953
|
])
|
|
781
954
|
)
|
|
782
955
|
)();
|
|
956
|
+
var onSubscriptionContractUpdated = /* @__PURE__ */ EventDefinition(
|
|
957
|
+
"wix.ecom.subscription_contracts.v1.subscription_contract_updated",
|
|
958
|
+
true,
|
|
959
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
960
|
+
transformPaths3(event, [
|
|
961
|
+
{
|
|
962
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
963
|
+
paths: TRANSFORM_PATHS_122
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
967
|
+
paths: TRANSFORM_PATHS_132
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
971
|
+
paths: TRANSFORM_PATHS_14
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
transformFn: transformRESTAddressToSDKAddress2,
|
|
975
|
+
paths: TRANSFORM_PATHS_15
|
|
976
|
+
}
|
|
977
|
+
])
|
|
978
|
+
)
|
|
979
|
+
)();
|
|
783
980
|
|
|
784
981
|
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.ts
|
|
785
982
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -798,6 +995,7 @@ function customQuerySubscriptionContracts(httpClient) {
|
|
|
798
995
|
}
|
|
799
996
|
var getSubscriptionContract4 = /* @__PURE__ */ createRESTModule(getSubscriptionContract3);
|
|
800
997
|
var querySubscriptionContracts4 = /* @__PURE__ */ createRESTModule(customQuerySubscriptionContracts);
|
|
998
|
+
var onSubscriptionContractCommitted2 = /* @__PURE__ */ createEventModule(onSubscriptionContractCommitted);
|
|
801
999
|
var onSubscriptionContractCreated2 = /* @__PURE__ */ createEventModule(
|
|
802
1000
|
onSubscriptionContractCreated
|
|
803
1001
|
);
|
|
@@ -812,9 +1010,13 @@ export {
|
|
|
812
1010
|
ActivityType,
|
|
813
1011
|
AdditionalFeeSource,
|
|
814
1012
|
AdjustmentType,
|
|
1013
|
+
BaseRateSource,
|
|
815
1014
|
ChangeType,
|
|
816
1015
|
ChannelType,
|
|
817
1016
|
ChargeType,
|
|
1017
|
+
ContractChangeType,
|
|
1018
|
+
CrossBorderNotApplicableReason,
|
|
1019
|
+
CrossBorderRepricingMode,
|
|
818
1020
|
DescriptionLineType,
|
|
819
1021
|
DimensionsUnit,
|
|
820
1022
|
DiscountReason,
|
|
@@ -826,6 +1028,7 @@ export {
|
|
|
826
1028
|
PaymentOptionType,
|
|
827
1029
|
PickupMethod,
|
|
828
1030
|
ProductPeriodAlignment,
|
|
1031
|
+
RepriceStatus,
|
|
829
1032
|
SortOrder,
|
|
830
1033
|
SpecificItemsCouponBehavior,
|
|
831
1034
|
SubscriptionFrequency,
|
|
@@ -836,6 +1039,7 @@ export {
|
|
|
836
1039
|
WebhookIdentityType,
|
|
837
1040
|
WeightUnit,
|
|
838
1041
|
getSubscriptionContract4 as getSubscriptionContract,
|
|
1042
|
+
onSubscriptionContractCommitted2 as onSubscriptionContractCommitted,
|
|
839
1043
|
onSubscriptionContractCreated2 as onSubscriptionContractCreated,
|
|
840
1044
|
onSubscriptionContractDeleted2 as onSubscriptionContractDeleted,
|
|
841
1045
|
onSubscriptionContractUpdated2 as onSubscriptionContractUpdated,
|