@wix/auto_sdk_ecom_subscription-contracts 1.0.27 → 1.0.29
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/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +15 -17
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +24 -34
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +15 -17
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +24 -34
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +15 -17
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +21 -46
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +15 -17
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +21 -46
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -146,6 +146,8 @@ export interface V1SubscriptionSettings {
|
|
|
146
146
|
billingCycles?: number | null;
|
|
147
147
|
/** Whether to allow the customer to cancel the subscription. */
|
|
148
148
|
enableCustomerCancellation?: boolean;
|
|
149
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
150
|
+
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
149
151
|
}
|
|
150
152
|
export declare enum SubscriptionFrequency {
|
|
151
153
|
UNDEFINED = "UNDEFINED",
|
|
@@ -672,6 +674,10 @@ export interface SubscriptionSettings {
|
|
|
672
674
|
* @min 1
|
|
673
675
|
*/
|
|
674
676
|
billingCycles?: number | null;
|
|
677
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
678
|
+
enableCustomerCancellation?: boolean;
|
|
679
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
680
|
+
freeTrialPeriod?: FreeTrialPeriod;
|
|
675
681
|
}
|
|
676
682
|
/** Frequency unit of recurring payment */
|
|
677
683
|
export declare enum V2SubscriptionFrequency {
|
|
@@ -1591,25 +1597,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1591
1597
|
updatedEvent?: EntityUpdatedEvent;
|
|
1592
1598
|
deletedEvent?: EntityDeletedEvent;
|
|
1593
1599
|
actionEvent?: ActionEvent;
|
|
1594
|
-
/**
|
|
1595
|
-
* Unique event ID.
|
|
1596
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1597
|
-
*/
|
|
1600
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1598
1601
|
id?: string;
|
|
1599
1602
|
/**
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1603
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1604
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1602
1605
|
*/
|
|
1603
1606
|
entityFqdn?: string;
|
|
1604
1607
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1608
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1609
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1608
1610
|
*/
|
|
1609
1611
|
slug?: string;
|
|
1610
1612
|
/** ID of the entity associated with the event. */
|
|
1611
1613
|
entityId?: string;
|
|
1612
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1614
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1613
1615
|
eventTime?: Date | null;
|
|
1614
1616
|
/**
|
|
1615
1617
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1619,12 +1621,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1619
1621
|
/** If present, indicates the action that triggered the event. */
|
|
1620
1622
|
originatedFrom?: string | null;
|
|
1621
1623
|
/**
|
|
1622
|
-
* A sequence number
|
|
1623
|
-
*
|
|
1624
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1625
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1626
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1627
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1624
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1625
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1628
1626
|
*/
|
|
1629
1627
|
entityEventSequence?: string | null;
|
|
1630
1628
|
}
|
|
@@ -1652,7 +1650,7 @@ export interface EntityUpdatedEvent {
|
|
|
1652
1650
|
currentEntityAsJson?: string;
|
|
1653
1651
|
}
|
|
1654
1652
|
export interface EntityDeletedEvent {
|
|
1655
|
-
/** Entity that was deleted */
|
|
1653
|
+
/** Entity that was deleted. */
|
|
1656
1654
|
deletedEntityAsJson?: string | null;
|
|
1657
1655
|
}
|
|
1658
1656
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":";;;AA0JA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAyQD,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,yBAAyB;IACzB,oDAA6B,CAAA;IAC7B,uBAAuB;IACvB,gDAAyB,CAAA;IACzB,kBAAkB;IAClB,sCAAe,CAAA;AACjB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAgED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAED,uDAAuD;AACvD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAyC,CAAA;AAC3C,CA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AAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -147,6 +147,8 @@ export interface V1SubscriptionSettings {
|
|
|
147
147
|
billingCycles?: number | null;
|
|
148
148
|
/** Whether to allow the customer to cancel the subscription. */
|
|
149
149
|
enableCustomerCancellation?: boolean;
|
|
150
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
151
|
+
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
150
152
|
}
|
|
151
153
|
export declare enum SubscriptionFrequency {
|
|
152
154
|
UNDEFINED = "UNDEFINED",
|
|
@@ -650,6 +652,10 @@ export interface SubscriptionSettings {
|
|
|
650
652
|
* @min 1
|
|
651
653
|
*/
|
|
652
654
|
billingCycles?: number | null;
|
|
655
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
656
|
+
enableCustomerCancellation?: boolean;
|
|
657
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
658
|
+
freeTrialPeriod?: FreeTrialPeriod;
|
|
653
659
|
}
|
|
654
660
|
/** Frequency unit of recurring payment */
|
|
655
661
|
export declare enum V2SubscriptionFrequency {
|
|
@@ -1569,25 +1575,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1569
1575
|
updatedEvent?: EntityUpdatedEvent;
|
|
1570
1576
|
deletedEvent?: EntityDeletedEvent;
|
|
1571
1577
|
actionEvent?: ActionEvent;
|
|
1572
|
-
/**
|
|
1573
|
-
* Unique event ID.
|
|
1574
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1575
|
-
*/
|
|
1578
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1576
1579
|
_id?: string;
|
|
1577
1580
|
/**
|
|
1578
|
-
*
|
|
1579
|
-
*
|
|
1581
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1582
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1580
1583
|
*/
|
|
1581
1584
|
entityFqdn?: string;
|
|
1582
1585
|
/**
|
|
1583
|
-
*
|
|
1584
|
-
*
|
|
1585
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1586
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1587
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1586
1588
|
*/
|
|
1587
1589
|
slug?: string;
|
|
1588
1590
|
/** ID of the entity associated with the event. */
|
|
1589
1591
|
entityId?: string;
|
|
1590
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1592
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1591
1593
|
eventTime?: Date | null;
|
|
1592
1594
|
/**
|
|
1593
1595
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1597,12 +1599,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1597
1599
|
/** If present, indicates the action that triggered the event. */
|
|
1598
1600
|
originatedFrom?: string | null;
|
|
1599
1601
|
/**
|
|
1600
|
-
* A sequence number
|
|
1601
|
-
*
|
|
1602
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1603
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1604
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1605
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1602
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1603
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1606
1604
|
*/
|
|
1607
1605
|
entityEventSequence?: string | null;
|
|
1608
1606
|
}
|
|
@@ -1628,7 +1626,7 @@ export interface EntityUpdatedEvent {
|
|
|
1628
1626
|
currentEntity?: string;
|
|
1629
1627
|
}
|
|
1630
1628
|
export interface EntityDeletedEvent {
|
|
1631
|
-
/** Entity that was deleted */
|
|
1629
|
+
/** Entity that was deleted. */
|
|
1632
1630
|
deletedEntity?: string | null;
|
|
1633
1631
|
}
|
|
1634
1632
|
export interface ActionEvent {
|
|
@@ -1721,25 +1719,21 @@ export interface BaseEventMetadata {
|
|
|
1721
1719
|
identity?: IdentificationData;
|
|
1722
1720
|
}
|
|
1723
1721
|
export interface EventMetadata extends BaseEventMetadata {
|
|
1724
|
-
/**
|
|
1725
|
-
* Unique event ID.
|
|
1726
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1727
|
-
*/
|
|
1722
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1728
1723
|
_id?: string;
|
|
1729
1724
|
/**
|
|
1730
|
-
*
|
|
1731
|
-
*
|
|
1725
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1726
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1732
1727
|
*/
|
|
1733
1728
|
entityFqdn?: string;
|
|
1734
1729
|
/**
|
|
1735
|
-
*
|
|
1736
|
-
*
|
|
1737
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1730
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1731
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1738
1732
|
*/
|
|
1739
1733
|
slug?: string;
|
|
1740
1734
|
/** ID of the entity associated with the event. */
|
|
1741
1735
|
entityId?: string;
|
|
1742
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1736
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1743
1737
|
eventTime?: Date | null;
|
|
1744
1738
|
/**
|
|
1745
1739
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1749,12 +1743,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1749
1743
|
/** If present, indicates the action that triggered the event. */
|
|
1750
1744
|
originatedFrom?: string | null;
|
|
1751
1745
|
/**
|
|
1752
|
-
* A sequence number
|
|
1753
|
-
*
|
|
1754
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1755
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1756
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1757
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1746
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1747
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1758
1748
|
*/
|
|
1759
1749
|
entityEventSequence?: string | null;
|
|
1760
1750
|
}
|
|
@@ -1814,7 +1804,7 @@ export interface SubscriptionContractUpdatedEnvelope {
|
|
|
1814
1804
|
* @documentationMaturity preview
|
|
1815
1805
|
*/
|
|
1816
1806
|
export declare function onSubscriptionContractUpdated(handler: (event: SubscriptionContractUpdatedEnvelope) => void | Promise<void>): void;
|
|
1817
|
-
type SubscriptionContractNonNullablePaths = `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `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}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1807
|
+
type SubscriptionContractNonNullablePaths = `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}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.interval` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1818
1808
|
/**
|
|
1819
1809
|
* Retrieves a SubscriptionContract.
|
|
1820
1810
|
* @param subscriptionContractId - ID of the SubscriptionContract to retrieve.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,oLAAsK;AACtK,aAAa;AACb,sEAA4F;AAC5F,kEAAsF;AACtF,sFAAkF;
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":";;;;;;;;;;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E;yBAC3E;wBACD,EAAE,IAAI,EAAE,6CAA6C,EAAE;qBACxD;iBACF;aACF,CAAC,CACH,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,qBAAqB;gBAC7C,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AAjFD,gEAiFC"}
|
|
@@ -146,6 +146,8 @@ export interface V1SubscriptionSettings {
|
|
|
146
146
|
billingCycles?: number | null;
|
|
147
147
|
/** Whether to allow the customer to cancel the subscription. */
|
|
148
148
|
enableCustomerCancellation?: boolean;
|
|
149
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
150
|
+
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
149
151
|
}
|
|
150
152
|
export declare enum SubscriptionFrequency {
|
|
151
153
|
UNDEFINED = "UNDEFINED",
|
|
@@ -672,6 +674,10 @@ export interface SubscriptionSettings {
|
|
|
672
674
|
* @min 1
|
|
673
675
|
*/
|
|
674
676
|
billingCycles?: number | null;
|
|
677
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
678
|
+
enableCustomerCancellation?: boolean;
|
|
679
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
680
|
+
freeTrialPeriod?: FreeTrialPeriod;
|
|
675
681
|
}
|
|
676
682
|
/** Frequency unit of recurring payment */
|
|
677
683
|
export declare enum V2SubscriptionFrequency {
|
|
@@ -1591,25 +1597,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1591
1597
|
updatedEvent?: EntityUpdatedEvent;
|
|
1592
1598
|
deletedEvent?: EntityDeletedEvent;
|
|
1593
1599
|
actionEvent?: ActionEvent;
|
|
1594
|
-
/**
|
|
1595
|
-
* Unique event ID.
|
|
1596
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1597
|
-
*/
|
|
1600
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1598
1601
|
id?: string;
|
|
1599
1602
|
/**
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1603
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1604
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1602
1605
|
*/
|
|
1603
1606
|
entityFqdn?: string;
|
|
1604
1607
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1608
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1609
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1608
1610
|
*/
|
|
1609
1611
|
slug?: string;
|
|
1610
1612
|
/** ID of the entity associated with the event. */
|
|
1611
1613
|
entityId?: string;
|
|
1612
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1614
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1613
1615
|
eventTime?: Date | null;
|
|
1614
1616
|
/**
|
|
1615
1617
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1619,12 +1621,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1619
1621
|
/** If present, indicates the action that triggered the event. */
|
|
1620
1622
|
originatedFrom?: string | null;
|
|
1621
1623
|
/**
|
|
1622
|
-
* A sequence number
|
|
1623
|
-
*
|
|
1624
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1625
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1626
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1627
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1624
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1625
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1628
1626
|
*/
|
|
1629
1627
|
entityEventSequence?: string | null;
|
|
1630
1628
|
}
|
|
@@ -1652,7 +1650,7 @@ export interface EntityUpdatedEvent {
|
|
|
1652
1650
|
currentEntityAsJson?: string;
|
|
1653
1651
|
}
|
|
1654
1652
|
export interface EntityDeletedEvent {
|
|
1655
|
-
/** Entity that was deleted */
|
|
1653
|
+
/** Entity that was deleted. */
|
|
1656
1654
|
deletedEntityAsJson?: string | null;
|
|
1657
1655
|
}
|
|
1658
1656
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":"AA0JA,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC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AAoB;IACpB,0BAAW,CAAA;IACX,oFAAoF;IACpF,0BAAW,CAAA;IACX,yGAAyG;IACzG,4BAAa,CAAA;IACb,6GAA6G;IAC7G,gCAAiB,CAAA;IACjB,4BAA4B;IAC5B,gDAAiC,CAAA;IACjC,kFAAkF;IAClF,8CAA+B,CAAA;IAC/B,mRAAmR;IACnR,4CAA6B,CAAA;IAC7B,+BAA+B;IAC/B,0DAA2C,CAAA;IAC3C,0BAA0B;IAC1B,4BAAa,CAAA;IACb,oIAAoI;IACpI,wCAAyB,CAAA;IACzB,8BAA8B;IAC9B,oCAAqB,CAAA;IACrB,gGAAgG;IAChG,oCAAqB,CAAA;IACrB,kHAAkH;IAClH,4BAAa,CAAA;IACb,sHAAsH;IACtH,gCAAiB,CAAA;IACjB,6IAA6I;IAC7I,sCAAuB,CAAA;AACzB,CAAC,EAjCW,WAAW,KAAX,WAAW,QAiCtB;AAwKD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA+LD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -147,6 +147,8 @@ export interface V1SubscriptionSettings {
|
|
|
147
147
|
billingCycles?: number | null;
|
|
148
148
|
/** Whether to allow the customer to cancel the subscription. */
|
|
149
149
|
enableCustomerCancellation?: boolean;
|
|
150
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
151
|
+
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
150
152
|
}
|
|
151
153
|
export declare enum SubscriptionFrequency {
|
|
152
154
|
UNDEFINED = "UNDEFINED",
|
|
@@ -650,6 +652,10 @@ export interface SubscriptionSettings {
|
|
|
650
652
|
* @min 1
|
|
651
653
|
*/
|
|
652
654
|
billingCycles?: number | null;
|
|
655
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
656
|
+
enableCustomerCancellation?: boolean;
|
|
657
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
658
|
+
freeTrialPeriod?: FreeTrialPeriod;
|
|
653
659
|
}
|
|
654
660
|
/** Frequency unit of recurring payment */
|
|
655
661
|
export declare enum V2SubscriptionFrequency {
|
|
@@ -1569,25 +1575,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1569
1575
|
updatedEvent?: EntityUpdatedEvent;
|
|
1570
1576
|
deletedEvent?: EntityDeletedEvent;
|
|
1571
1577
|
actionEvent?: ActionEvent;
|
|
1572
|
-
/**
|
|
1573
|
-
* Unique event ID.
|
|
1574
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1575
|
-
*/
|
|
1578
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1576
1579
|
_id?: string;
|
|
1577
1580
|
/**
|
|
1578
|
-
*
|
|
1579
|
-
*
|
|
1581
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1582
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1580
1583
|
*/
|
|
1581
1584
|
entityFqdn?: string;
|
|
1582
1585
|
/**
|
|
1583
|
-
*
|
|
1584
|
-
*
|
|
1585
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1586
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1587
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1586
1588
|
*/
|
|
1587
1589
|
slug?: string;
|
|
1588
1590
|
/** ID of the entity associated with the event. */
|
|
1589
1591
|
entityId?: string;
|
|
1590
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1592
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1591
1593
|
eventTime?: Date | null;
|
|
1592
1594
|
/**
|
|
1593
1595
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1597,12 +1599,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1597
1599
|
/** If present, indicates the action that triggered the event. */
|
|
1598
1600
|
originatedFrom?: string | null;
|
|
1599
1601
|
/**
|
|
1600
|
-
* A sequence number
|
|
1601
|
-
*
|
|
1602
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1603
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1604
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1605
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1602
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1603
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1606
1604
|
*/
|
|
1607
1605
|
entityEventSequence?: string | null;
|
|
1608
1606
|
}
|
|
@@ -1628,7 +1626,7 @@ export interface EntityUpdatedEvent {
|
|
|
1628
1626
|
currentEntity?: string;
|
|
1629
1627
|
}
|
|
1630
1628
|
export interface EntityDeletedEvent {
|
|
1631
|
-
/** Entity that was deleted */
|
|
1629
|
+
/** Entity that was deleted. */
|
|
1632
1630
|
deletedEntity?: string | null;
|
|
1633
1631
|
}
|
|
1634
1632
|
export interface ActionEvent {
|
|
@@ -1721,25 +1719,21 @@ export interface BaseEventMetadata {
|
|
|
1721
1719
|
identity?: IdentificationData;
|
|
1722
1720
|
}
|
|
1723
1721
|
export interface EventMetadata extends BaseEventMetadata {
|
|
1724
|
-
/**
|
|
1725
|
-
* Unique event ID.
|
|
1726
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1727
|
-
*/
|
|
1722
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1728
1723
|
_id?: string;
|
|
1729
1724
|
/**
|
|
1730
|
-
*
|
|
1731
|
-
*
|
|
1725
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1726
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1732
1727
|
*/
|
|
1733
1728
|
entityFqdn?: string;
|
|
1734
1729
|
/**
|
|
1735
|
-
*
|
|
1736
|
-
*
|
|
1737
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1730
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1731
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1738
1732
|
*/
|
|
1739
1733
|
slug?: string;
|
|
1740
1734
|
/** ID of the entity associated with the event. */
|
|
1741
1735
|
entityId?: string;
|
|
1742
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1736
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1743
1737
|
eventTime?: Date | null;
|
|
1744
1738
|
/**
|
|
1745
1739
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1749,12 +1743,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1749
1743
|
/** If present, indicates the action that triggered the event. */
|
|
1750
1744
|
originatedFrom?: string | null;
|
|
1751
1745
|
/**
|
|
1752
|
-
* A sequence number
|
|
1753
|
-
*
|
|
1754
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1755
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1756
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1757
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1746
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1747
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1758
1748
|
*/
|
|
1759
1749
|
entityEventSequence?: string | null;
|
|
1760
1750
|
}
|
|
@@ -1814,7 +1804,7 @@ export interface SubscriptionContractUpdatedEnvelope {
|
|
|
1814
1804
|
* @documentationMaturity preview
|
|
1815
1805
|
*/
|
|
1816
1806
|
export declare function onSubscriptionContractUpdated(handler: (event: SubscriptionContractUpdatedEnvelope) => void | Promise<void>): void;
|
|
1817
|
-
type SubscriptionContractNonNullablePaths = `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `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}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1807
|
+
type SubscriptionContractNonNullablePaths = `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}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.interval` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1818
1808
|
/**
|
|
1819
1809
|
* Retrieves a SubscriptionContract.
|
|
1820
1810
|
* @param subscriptionContractId - ID of the SubscriptionContract to retrieve.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,4DAA4D,MAAM,uFAAuF,CAAC;AACtK,aAAa;AACb,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OA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AE,uCAAuC,EAAE,CAAC;iBAC3D;gBACD;oBACE,WAAW,EAAE,gCAAgC;oBAC7C,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,2CAA2C,EAAE;wBACrD;4BACE,IAAI,EAAE,0EAA0E;yBACjF;wBACD;4BACE,IAAI,EAAE,oEAAoE;yBAC3E;wBACD,EAAE,IAAI,EAAE,6CAA6C,EAAE;qBACxD;iBACF;aACF,CAAC,CACH,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,qBAAqB;gBAC7C,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -146,6 +146,8 @@ export interface V1SubscriptionSettings {
|
|
|
146
146
|
billingCycles?: number | null;
|
|
147
147
|
/** Whether to allow the customer to cancel the subscription. */
|
|
148
148
|
enableCustomerCancellation?: boolean;
|
|
149
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
150
|
+
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
149
151
|
}
|
|
150
152
|
export declare enum SubscriptionFrequency {
|
|
151
153
|
UNDEFINED = "UNDEFINED",
|
|
@@ -672,6 +674,10 @@ export interface SubscriptionSettings {
|
|
|
672
674
|
* @min 1
|
|
673
675
|
*/
|
|
674
676
|
billingCycles?: number | null;
|
|
677
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
678
|
+
enableCustomerCancellation?: boolean;
|
|
679
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
680
|
+
freeTrialPeriod?: FreeTrialPeriod;
|
|
675
681
|
}
|
|
676
682
|
/** Frequency unit of recurring payment */
|
|
677
683
|
export declare enum V2SubscriptionFrequency {
|
|
@@ -1591,25 +1597,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1591
1597
|
updatedEvent?: EntityUpdatedEvent;
|
|
1592
1598
|
deletedEvent?: EntityDeletedEvent;
|
|
1593
1599
|
actionEvent?: ActionEvent;
|
|
1594
|
-
/**
|
|
1595
|
-
* Unique event ID.
|
|
1596
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1597
|
-
*/
|
|
1600
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1598
1601
|
id?: string;
|
|
1599
1602
|
/**
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1603
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1604
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1602
1605
|
*/
|
|
1603
1606
|
entityFqdn?: string;
|
|
1604
1607
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1608
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1609
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1608
1610
|
*/
|
|
1609
1611
|
slug?: string;
|
|
1610
1612
|
/** ID of the entity associated with the event. */
|
|
1611
1613
|
entityId?: string;
|
|
1612
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1614
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1613
1615
|
eventTime?: Date | null;
|
|
1614
1616
|
/**
|
|
1615
1617
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1619,12 +1621,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1619
1621
|
/** If present, indicates the action that triggered the event. */
|
|
1620
1622
|
originatedFrom?: string | null;
|
|
1621
1623
|
/**
|
|
1622
|
-
* A sequence number
|
|
1623
|
-
*
|
|
1624
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1625
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1626
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1627
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1624
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1625
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1628
1626
|
*/
|
|
1629
1627
|
entityEventSequence?: string | null;
|
|
1630
1628
|
}
|
|
@@ -1652,7 +1650,7 @@ export interface EntityUpdatedEvent {
|
|
|
1652
1650
|
currentEntityAsJson?: string;
|
|
1653
1651
|
}
|
|
1654
1652
|
export interface EntityDeletedEvent {
|
|
1655
|
-
/** Entity that was deleted */
|
|
1653
|
+
/** Entity that was deleted. */
|
|
1656
1654
|
deletedEntityAsJson?: string | null;
|
|
1657
1655
|
}
|
|
1658
1656
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":";;;AA0JA,IAA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9D,0CAA2B,CAAA;IAC3B,oBAAoB;IACpB,0BAAW,CAAA;IACX,oFAAoF;IACpF,0BAAW,CAAA;IACX,yGAAyG;IACzG,4BAAa,CAAA;IACb,6GAA6G;IAC7G,gCAAiB,CAAA;IACjB,4BAA4B;IAC5B,gDAAiC,CAAA;IACjC,kFAAkF;IAClF,8CAA+B,CAAA;IAC/B,mRAAmR;IACnR,4CAA6B,CAAA;IAC7B,+BAA+B;IAC/B,0DAA2C,CAAA;IAC3C,0BAA0B;IAC1B,4BAAa,CAAA;IACb,oIAAoI;IACpI,wCAAyB,CAAA;IACzB,8BAA8B;IAC9B,oCAAqB,CAAA;IACrB,gGAAgG;IAChG,oCAAqB,CAAA;IACrB,kHAAkH;IAClH,4BAAa,CAAA;IACb,sHAAsH;IACtH,gCAAiB,CAAA;IACjB,6IAA6I;IAC7I,sCAAuB,CAAA;AACzB,CAAC,EAjCW,WAAW,2BAAX,WAAW,QAiCtB;AAwKD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA+LD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -157,10 +157,7 @@ export interface V1SubscriptionSettings {
|
|
|
157
157
|
billingCycles?: number | null;
|
|
158
158
|
/** Whether to allow the customer to cancel the subscription. */
|
|
159
159
|
enableCustomerCancellation?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Period until first cycle starts. If None => no free trial
|
|
162
|
-
* @internal
|
|
163
|
-
*/
|
|
160
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
164
161
|
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
165
162
|
/**
|
|
166
163
|
* The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
|
|
@@ -698,15 +695,9 @@ export interface SubscriptionSettings {
|
|
|
698
695
|
* @min 1
|
|
699
696
|
*/
|
|
700
697
|
billingCycles?: number | null;
|
|
701
|
-
/**
|
|
702
|
-
* Whether to allow the customer to cancel the subscription.
|
|
703
|
-
* @internal
|
|
704
|
-
*/
|
|
698
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
705
699
|
enableCustomerCancellation?: boolean;
|
|
706
|
-
/**
|
|
707
|
-
* Period until first cycle starts. If None => no free trial
|
|
708
|
-
* @internal
|
|
709
|
-
*/
|
|
700
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
710
701
|
freeTrialPeriod?: FreeTrialPeriod;
|
|
711
702
|
/**
|
|
712
703
|
* The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
|
|
@@ -1655,25 +1646,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1655
1646
|
updatedEvent?: EntityUpdatedEvent;
|
|
1656
1647
|
deletedEvent?: EntityDeletedEvent;
|
|
1657
1648
|
actionEvent?: ActionEvent;
|
|
1658
|
-
/**
|
|
1659
|
-
* Unique event ID.
|
|
1660
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1661
|
-
*/
|
|
1649
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1662
1650
|
_id?: string;
|
|
1663
1651
|
/**
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1652
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1653
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1666
1654
|
*/
|
|
1667
1655
|
entityFqdn?: string;
|
|
1668
1656
|
/**
|
|
1669
|
-
*
|
|
1670
|
-
*
|
|
1671
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1657
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1658
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1672
1659
|
*/
|
|
1673
1660
|
slug?: string;
|
|
1674
1661
|
/** ID of the entity associated with the event. */
|
|
1675
1662
|
entityId?: string;
|
|
1676
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1663
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1677
1664
|
eventTime?: Date | null;
|
|
1678
1665
|
/**
|
|
1679
1666
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1683,12 +1670,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1683
1670
|
/** If present, indicates the action that triggered the event. */
|
|
1684
1671
|
originatedFrom?: string | null;
|
|
1685
1672
|
/**
|
|
1686
|
-
* A sequence number
|
|
1687
|
-
*
|
|
1688
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1689
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1690
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1691
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1673
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1674
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1692
1675
|
*/
|
|
1693
1676
|
entityEventSequence?: string | null;
|
|
1694
1677
|
}
|
|
@@ -1714,7 +1697,7 @@ export interface EntityUpdatedEvent {
|
|
|
1714
1697
|
currentEntity?: string;
|
|
1715
1698
|
}
|
|
1716
1699
|
export interface EntityDeletedEvent {
|
|
1717
|
-
/** Entity that was deleted */
|
|
1700
|
+
/** Entity that was deleted. */
|
|
1718
1701
|
deletedEntity?: string | null;
|
|
1719
1702
|
}
|
|
1720
1703
|
export interface ActionEvent {
|
|
@@ -1807,25 +1790,21 @@ export interface BaseEventMetadata {
|
|
|
1807
1790
|
identity?: IdentificationData;
|
|
1808
1791
|
}
|
|
1809
1792
|
export interface EventMetadata extends BaseEventMetadata {
|
|
1810
|
-
/**
|
|
1811
|
-
* Unique event ID.
|
|
1812
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1813
|
-
*/
|
|
1793
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1814
1794
|
_id?: string;
|
|
1815
1795
|
/**
|
|
1816
|
-
*
|
|
1817
|
-
*
|
|
1796
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1797
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1818
1798
|
*/
|
|
1819
1799
|
entityFqdn?: string;
|
|
1820
1800
|
/**
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1823
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1801
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1802
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1824
1803
|
*/
|
|
1825
1804
|
slug?: string;
|
|
1826
1805
|
/** ID of the entity associated with the event. */
|
|
1827
1806
|
entityId?: string;
|
|
1828
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1807
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1829
1808
|
eventTime?: Date | null;
|
|
1830
1809
|
/**
|
|
1831
1810
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1835,12 +1814,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1835
1814
|
/** If present, indicates the action that triggered the event. */
|
|
1836
1815
|
originatedFrom?: string | null;
|
|
1837
1816
|
/**
|
|
1838
|
-
* A sequence number
|
|
1839
|
-
*
|
|
1840
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1841
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1842
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1843
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1817
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1818
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1844
1819
|
*/
|
|
1845
1820
|
entityEventSequence?: string | null;
|
|
1846
1821
|
}
|
|
@@ -1900,7 +1875,7 @@ export interface SubscriptionContractUpdatedEnvelope {
|
|
|
1900
1875
|
* @documentationMaturity preview
|
|
1901
1876
|
*/
|
|
1902
1877
|
export declare function onSubscriptionContractUpdated(handler: (event: SubscriptionContractUpdatedEnvelope) => void | Promise<void>): void;
|
|
1903
|
-
type SubscriptionContractNonNullablePaths = `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `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}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1878
|
+
type SubscriptionContractNonNullablePaths = `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}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.interval` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1904
1879
|
/**
|
|
1905
1880
|
* Retrieves a SubscriptionContract.
|
|
1906
1881
|
* @param subscriptionContractId - ID of the SubscriptionContract to retrieve.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,oLAAsK;AACtK,aAAa;AACb,sEAA4F;AAC5F,kEAAsF;AACtF,sFAAkF;
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,oLAAsK;AACtK,aAAa;AACb,sEAA4F;AAC5F,kEAAsF;AACtF,sFAAkF;AA2KlF,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACv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,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AAjFD,gEAiFC"}
|
|
@@ -146,6 +146,8 @@ export interface V1SubscriptionSettings {
|
|
|
146
146
|
billingCycles?: number | null;
|
|
147
147
|
/** Whether to allow the customer to cancel the subscription. */
|
|
148
148
|
enableCustomerCancellation?: boolean;
|
|
149
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
150
|
+
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
149
151
|
}
|
|
150
152
|
export declare enum SubscriptionFrequency {
|
|
151
153
|
UNDEFINED = "UNDEFINED",
|
|
@@ -672,6 +674,10 @@ export interface SubscriptionSettings {
|
|
|
672
674
|
* @min 1
|
|
673
675
|
*/
|
|
674
676
|
billingCycles?: number | null;
|
|
677
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
678
|
+
enableCustomerCancellation?: boolean;
|
|
679
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
680
|
+
freeTrialPeriod?: FreeTrialPeriod;
|
|
675
681
|
}
|
|
676
682
|
/** Frequency unit of recurring payment */
|
|
677
683
|
export declare enum V2SubscriptionFrequency {
|
|
@@ -1591,25 +1597,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1591
1597
|
updatedEvent?: EntityUpdatedEvent;
|
|
1592
1598
|
deletedEvent?: EntityDeletedEvent;
|
|
1593
1599
|
actionEvent?: ActionEvent;
|
|
1594
|
-
/**
|
|
1595
|
-
* Unique event ID.
|
|
1596
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1597
|
-
*/
|
|
1600
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1598
1601
|
id?: string;
|
|
1599
1602
|
/**
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1603
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1604
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1602
1605
|
*/
|
|
1603
1606
|
entityFqdn?: string;
|
|
1604
1607
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1608
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1609
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1608
1610
|
*/
|
|
1609
1611
|
slug?: string;
|
|
1610
1612
|
/** ID of the entity associated with the event. */
|
|
1611
1613
|
entityId?: string;
|
|
1612
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1614
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1613
1615
|
eventTime?: Date | null;
|
|
1614
1616
|
/**
|
|
1615
1617
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1619,12 +1621,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1619
1621
|
/** If present, indicates the action that triggered the event. */
|
|
1620
1622
|
originatedFrom?: string | null;
|
|
1621
1623
|
/**
|
|
1622
|
-
* A sequence number
|
|
1623
|
-
*
|
|
1624
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1625
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1626
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1627
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1624
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1625
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1628
1626
|
*/
|
|
1629
1627
|
entityEventSequence?: string | null;
|
|
1630
1628
|
}
|
|
@@ -1652,7 +1650,7 @@ export interface EntityUpdatedEvent {
|
|
|
1652
1650
|
currentEntityAsJson?: string;
|
|
1653
1651
|
}
|
|
1654
1652
|
export interface EntityDeletedEvent {
|
|
1655
|
-
/** Entity that was deleted */
|
|
1653
|
+
/** Entity that was deleted. */
|
|
1656
1654
|
deletedEntityAsJson?: string | null;
|
|
1657
1655
|
}
|
|
1658
1656
|
export interface ActionEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts"],"names":[],"mappings":"AA0JA,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC;AAyQD,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,yBAAyB;IACzB,oDAA6B,CAAA;IAC7B,uBAAuB;IACvB,gDAAyB,CAAA;IACzB,kBAAkB;IAClB,sCAAe,CAAA;AACjB,CAAC,EAPW,mBAAmB,KAAnB,mBAA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C/B,mRAAmR;IACnR,4CAA6B,CAAA;IAC7B,+BAA+B;IAC/B,0DAA2C,CAAA;IAC3C,0BAA0B;IAC1B,4BAAa,CAAA;IACb,oIAAoI;IACpI,wCAAyB,CAAA;IACzB,8BAA8B;IAC9B,oCAAqB,CAAA;IACrB,gGAAgG;IAChG,oCAAqB,CAAA;IACrB,kHAAkH;IAClH,4BAAa,CAAA;IACb,sHAAsH;IACtH,gCAAiB,CAAA;IACjB,6IAA6I;IAC7I,sCAAuB,CAAA;AACzB,CAAC,EAjCW,WAAW,KAAX,WAAW,QAiCtB;AAwKD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA+LD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -157,10 +157,7 @@ export interface V1SubscriptionSettings {
|
|
|
157
157
|
billingCycles?: number | null;
|
|
158
158
|
/** Whether to allow the customer to cancel the subscription. */
|
|
159
159
|
enableCustomerCancellation?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Period until first cycle starts. If None => no free trial
|
|
162
|
-
* @internal
|
|
163
|
-
*/
|
|
160
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
164
161
|
freeTrialPeriod?: V1FreeTrialPeriod;
|
|
165
162
|
/**
|
|
166
163
|
* The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
|
|
@@ -698,15 +695,9 @@ export interface SubscriptionSettings {
|
|
|
698
695
|
* @min 1
|
|
699
696
|
*/
|
|
700
697
|
billingCycles?: number | null;
|
|
701
|
-
/**
|
|
702
|
-
* Whether to allow the customer to cancel the subscription.
|
|
703
|
-
* @internal
|
|
704
|
-
*/
|
|
698
|
+
/** Whether to allow the customer to cancel the subscription. */
|
|
705
699
|
enableCustomerCancellation?: boolean;
|
|
706
|
-
/**
|
|
707
|
-
* Period until first cycle starts. If None => no free trial
|
|
708
|
-
* @internal
|
|
709
|
-
*/
|
|
700
|
+
/** Period until first cycle starts. If None => no free trial */
|
|
710
701
|
freeTrialPeriod?: FreeTrialPeriod;
|
|
711
702
|
/**
|
|
712
703
|
* The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
|
|
@@ -1655,25 +1646,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1655
1646
|
updatedEvent?: EntityUpdatedEvent;
|
|
1656
1647
|
deletedEvent?: EntityDeletedEvent;
|
|
1657
1648
|
actionEvent?: ActionEvent;
|
|
1658
|
-
/**
|
|
1659
|
-
* Unique event ID.
|
|
1660
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1661
|
-
*/
|
|
1649
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1662
1650
|
_id?: string;
|
|
1663
1651
|
/**
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1652
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1653
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1666
1654
|
*/
|
|
1667
1655
|
entityFqdn?: string;
|
|
1668
1656
|
/**
|
|
1669
|
-
*
|
|
1670
|
-
*
|
|
1671
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1657
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1658
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1672
1659
|
*/
|
|
1673
1660
|
slug?: string;
|
|
1674
1661
|
/** ID of the entity associated with the event. */
|
|
1675
1662
|
entityId?: string;
|
|
1676
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1663
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1677
1664
|
eventTime?: Date | null;
|
|
1678
1665
|
/**
|
|
1679
1666
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1683,12 +1670,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1683
1670
|
/** If present, indicates the action that triggered the event. */
|
|
1684
1671
|
originatedFrom?: string | null;
|
|
1685
1672
|
/**
|
|
1686
|
-
* A sequence number
|
|
1687
|
-
*
|
|
1688
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1689
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1690
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1691
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1673
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1674
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1692
1675
|
*/
|
|
1693
1676
|
entityEventSequence?: string | null;
|
|
1694
1677
|
}
|
|
@@ -1714,7 +1697,7 @@ export interface EntityUpdatedEvent {
|
|
|
1714
1697
|
currentEntity?: string;
|
|
1715
1698
|
}
|
|
1716
1699
|
export interface EntityDeletedEvent {
|
|
1717
|
-
/** Entity that was deleted */
|
|
1700
|
+
/** Entity that was deleted. */
|
|
1718
1701
|
deletedEntity?: string | null;
|
|
1719
1702
|
}
|
|
1720
1703
|
export interface ActionEvent {
|
|
@@ -1807,25 +1790,21 @@ export interface BaseEventMetadata {
|
|
|
1807
1790
|
identity?: IdentificationData;
|
|
1808
1791
|
}
|
|
1809
1792
|
export interface EventMetadata extends BaseEventMetadata {
|
|
1810
|
-
/**
|
|
1811
|
-
* Unique event ID.
|
|
1812
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1813
|
-
*/
|
|
1793
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1814
1794
|
_id?: string;
|
|
1815
1795
|
/**
|
|
1816
|
-
*
|
|
1817
|
-
*
|
|
1796
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1797
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1818
1798
|
*/
|
|
1819
1799
|
entityFqdn?: string;
|
|
1820
1800
|
/**
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1823
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1801
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1802
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1824
1803
|
*/
|
|
1825
1804
|
slug?: string;
|
|
1826
1805
|
/** ID of the entity associated with the event. */
|
|
1827
1806
|
entityId?: string;
|
|
1828
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
1807
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1829
1808
|
eventTime?: Date | null;
|
|
1830
1809
|
/**
|
|
1831
1810
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1835,12 +1814,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1835
1814
|
/** If present, indicates the action that triggered the event. */
|
|
1836
1815
|
originatedFrom?: string | null;
|
|
1837
1816
|
/**
|
|
1838
|
-
* A sequence number
|
|
1839
|
-
*
|
|
1840
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1841
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1842
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1843
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1817
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1818
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1844
1819
|
*/
|
|
1845
1820
|
entityEventSequence?: string | null;
|
|
1846
1821
|
}
|
|
@@ -1900,7 +1875,7 @@ export interface SubscriptionContractUpdatedEnvelope {
|
|
|
1900
1875
|
* @documentationMaturity preview
|
|
1901
1876
|
*/
|
|
1902
1877
|
export declare function onSubscriptionContractUpdated(handler: (event: SubscriptionContractUpdatedEnvelope) => void | Promise<void>): void;
|
|
1903
|
-
type SubscriptionContractNonNullablePaths = `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `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}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1878
|
+
type SubscriptionContractNonNullablePaths = `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}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.freeTrialPeriod.interval` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.formattedAmount` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.shippingDestination.address.streetAddress.number` | `shippingInfo.logistics.shippingDestination.address.streetAddress.name` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId._id` | `shippingInfo.logistics.shippingDestination.contactDetails.vatId.type` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `shippingInfo.cost.price.amount` | `shippingInfo.cost.price.formattedAmount` | `shippingInfo.cost.taxDetails.taxRate` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `recipientInfo.address.streetAddress.number` | `recipientInfo.address.streetAddress.name` | `recipientInfo.contactDetails.vatId._id` | `recipientInfo.contactDetails.vatId.type` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}._id`;
|
|
1904
1879
|
/**
|
|
1905
1880
|
* Retrieves a SubscriptionContract.
|
|
1906
1881
|
* @param subscriptionContractId - ID of the SubscriptionContract to retrieve.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,4DAA4D,MAAM,uFAAuF,CAAC;AACtK,aAAa;AACb,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js","sourceRoot":"","sources":["../../../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,M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K,EAAE,CAAC,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC;iBAC3D;gBACD;oBACE,WAAW,EAAE,gCAAgC;oBAC7C,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,2CAA2C,EAAE;wBACrD;4BACE,IAAI,EAAE,0EAA0E;yBACjF;wBACD;4BACE,IAAI,EAAE,oEAAoE;yBAC3E;wBACD,EAAE,IAAI,EAAE,6CAA6C,EAAE;qBACxD;iBACF;aACF,CAAC,CACH,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,qBAAqB;gBAC7C,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_subscription-contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.ecom.subscription_contracts.v1.subscription_contract"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "81a5906bb466f42f4700ab018fd6ea0a788262b452374edc97dbd5c2"
|
|
52
52
|
}
|