@wix/auto_sdk_subscription_subscriptions 1.0.15 → 1.0.17
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 +1 -1
- package/build/cjs/index.js +96 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +18 -1
- package/build/cjs/index.typings.js +96 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1966 -348
- package/build/cjs/meta.js +447 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +96 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +18 -1
- package/build/es/index.typings.mjs +96 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1966 -348
- package/build/es/meta.mjs +410 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +96 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +18 -1
- package/build/internal/cjs/index.typings.js +96 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1966 -348
- package/build/internal/cjs/meta.js +447 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +96 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +18 -1
- package/build/internal/es/index.typings.mjs +96 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1966 -348
- package/build/internal/es/meta.mjs +410 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -732,6 +732,15 @@ interface FreeTrialData {
|
|
|
732
732
|
*/
|
|
733
733
|
endDate?: Date | null;
|
|
734
734
|
}
|
|
735
|
+
interface UpdateBillingDateData {
|
|
736
|
+
/**
|
|
737
|
+
* Date until the subscription is paid for.
|
|
738
|
+
* Different from `nextBillingDate` only when the next billing date is updated without immediately issuing a new invoice.
|
|
739
|
+
*/
|
|
740
|
+
paidUntil?: Date | null;
|
|
741
|
+
/** Information about how to adjust the item's payment due to the update of the billing date */
|
|
742
|
+
proration?: Proration;
|
|
743
|
+
}
|
|
735
744
|
interface Proration extends ProrationTypeOneOf {
|
|
736
745
|
/**
|
|
737
746
|
* BASS automatically calculates the proration amount based on the number
|
|
@@ -1642,6 +1651,171 @@ interface InitiatePaymentMethodSetupResponse {
|
|
|
1642
1651
|
/** @format GUID */
|
|
1643
1652
|
paymentOrderId?: string;
|
|
1644
1653
|
}
|
|
1654
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1655
|
+
createdEvent?: EntityCreatedEvent;
|
|
1656
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1657
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1658
|
+
actionEvent?: ActionEvent;
|
|
1659
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1660
|
+
id?: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1663
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1664
|
+
*/
|
|
1665
|
+
entityFqdn?: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1668
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1669
|
+
*/
|
|
1670
|
+
slug?: string;
|
|
1671
|
+
/** ID of the entity associated with the event. */
|
|
1672
|
+
entityId?: string;
|
|
1673
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1674
|
+
eventTime?: Date | null;
|
|
1675
|
+
/**
|
|
1676
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1677
|
+
* (for example, GDPR).
|
|
1678
|
+
*/
|
|
1679
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1680
|
+
/** If present, indicates the action that triggered the event. */
|
|
1681
|
+
originatedFrom?: string | null;
|
|
1682
|
+
/**
|
|
1683
|
+
* 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.
|
|
1684
|
+
* 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.
|
|
1685
|
+
*/
|
|
1686
|
+
entityEventSequence?: string | null;
|
|
1687
|
+
}
|
|
1688
|
+
/** @oneof */
|
|
1689
|
+
interface DomainEventBodyOneOf {
|
|
1690
|
+
createdEvent?: EntityCreatedEvent;
|
|
1691
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1692
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1693
|
+
actionEvent?: ActionEvent;
|
|
1694
|
+
}
|
|
1695
|
+
interface EntityCreatedEvent {
|
|
1696
|
+
entityAsJson?: string;
|
|
1697
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1698
|
+
restoreInfo?: RestoreInfo;
|
|
1699
|
+
}
|
|
1700
|
+
interface RestoreInfo {
|
|
1701
|
+
deletedDate?: Date | null;
|
|
1702
|
+
}
|
|
1703
|
+
interface EntityUpdatedEvent {
|
|
1704
|
+
/**
|
|
1705
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1706
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1707
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1708
|
+
*/
|
|
1709
|
+
currentEntityAsJson?: string;
|
|
1710
|
+
}
|
|
1711
|
+
interface EntityDeletedEvent {
|
|
1712
|
+
/** Entity that was deleted. */
|
|
1713
|
+
deletedEntityAsJson?: string | null;
|
|
1714
|
+
}
|
|
1715
|
+
interface ActionEvent {
|
|
1716
|
+
bodyAsJson?: string;
|
|
1717
|
+
}
|
|
1718
|
+
interface MessageEnvelope {
|
|
1719
|
+
/**
|
|
1720
|
+
* App instance ID.
|
|
1721
|
+
* @format GUID
|
|
1722
|
+
*/
|
|
1723
|
+
instanceId?: string | null;
|
|
1724
|
+
/**
|
|
1725
|
+
* Event type.
|
|
1726
|
+
* @maxLength 150
|
|
1727
|
+
*/
|
|
1728
|
+
eventType?: string;
|
|
1729
|
+
/** The identification type and identity data. */
|
|
1730
|
+
identity?: IdentificationData;
|
|
1731
|
+
/** Stringify payload. */
|
|
1732
|
+
data?: string;
|
|
1733
|
+
}
|
|
1734
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1735
|
+
/**
|
|
1736
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1737
|
+
* @format GUID
|
|
1738
|
+
*/
|
|
1739
|
+
anonymousVisitorId?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* ID of a site visitor that has logged in to the site.
|
|
1742
|
+
* @format GUID
|
|
1743
|
+
*/
|
|
1744
|
+
memberId?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1747
|
+
* @format GUID
|
|
1748
|
+
*/
|
|
1749
|
+
wixUserId?: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* ID of an app.
|
|
1752
|
+
* @format GUID
|
|
1753
|
+
*/
|
|
1754
|
+
appId?: string;
|
|
1755
|
+
/** @readonly */
|
|
1756
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1757
|
+
}
|
|
1758
|
+
/** @oneof */
|
|
1759
|
+
interface IdentificationDataIdOneOf {
|
|
1760
|
+
/**
|
|
1761
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1762
|
+
* @format GUID
|
|
1763
|
+
*/
|
|
1764
|
+
anonymousVisitorId?: string;
|
|
1765
|
+
/**
|
|
1766
|
+
* ID of a site visitor that has logged in to the site.
|
|
1767
|
+
* @format GUID
|
|
1768
|
+
*/
|
|
1769
|
+
memberId?: string;
|
|
1770
|
+
/**
|
|
1771
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1772
|
+
* @format GUID
|
|
1773
|
+
*/
|
|
1774
|
+
wixUserId?: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* ID of an app.
|
|
1777
|
+
* @format GUID
|
|
1778
|
+
*/
|
|
1779
|
+
appId?: string;
|
|
1780
|
+
}
|
|
1781
|
+
declare enum WebhookIdentityType {
|
|
1782
|
+
UNKNOWN = "UNKNOWN",
|
|
1783
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1784
|
+
MEMBER = "MEMBER",
|
|
1785
|
+
WIX_USER = "WIX_USER",
|
|
1786
|
+
APP = "APP"
|
|
1787
|
+
}
|
|
1788
|
+
/** @enumType */
|
|
1789
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1790
|
+
interface CreateSubscriptionInStateRequest extends CreateSubscriptionInStateRequestModeOneOf {
|
|
1791
|
+
activeSubscription?: CreateSubscriptionRequest;
|
|
1792
|
+
}
|
|
1793
|
+
/** @oneof */
|
|
1794
|
+
interface CreateSubscriptionInStateRequestModeOneOf {
|
|
1795
|
+
activeSubscription?: CreateSubscriptionRequest;
|
|
1796
|
+
}
|
|
1797
|
+
interface CreateSubscriptionRequest {
|
|
1798
|
+
subscription?: Subscription;
|
|
1799
|
+
/** Optional settings for the payments. Should be empty for free subscriptions. */
|
|
1800
|
+
paymentSettings?: PaymentSettings;
|
|
1801
|
+
/**
|
|
1802
|
+
* Optional unique identifier for this request in order to prevent subscription duplications
|
|
1803
|
+
* @format GUID
|
|
1804
|
+
*/
|
|
1805
|
+
idempotencyKey?: string | null;
|
|
1806
|
+
/** Optional origin override for setting identity of subscription creator instead of extracting from context */
|
|
1807
|
+
originOverride?: OriginOverride;
|
|
1808
|
+
}
|
|
1809
|
+
interface OriginOverride {
|
|
1810
|
+
/** @format GUID */
|
|
1811
|
+
appId?: string;
|
|
1812
|
+
/** @format GUID */
|
|
1813
|
+
instanceId?: string;
|
|
1814
|
+
}
|
|
1815
|
+
interface CreateSubscriptionInStateResponse {
|
|
1816
|
+
/** @format GUID */
|
|
1817
|
+
subscriptionId?: string;
|
|
1818
|
+
}
|
|
1645
1819
|
interface PayCycleRequest {
|
|
1646
1820
|
/** @format GUID */
|
|
1647
1821
|
subscriptionId: string;
|
|
@@ -1664,461 +1838,1811 @@ interface PayCycleResponse {
|
|
|
1664
1838
|
paymentOrderId?: string | null;
|
|
1665
1839
|
subscription?: Subscription;
|
|
1666
1840
|
}
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
CUSTOMER = "CUSTOMER",
|
|
1671
|
-
SYSTEM = "SYSTEM"
|
|
1672
|
-
}
|
|
1673
|
-
/** @enumType */
|
|
1674
|
-
type ActionInitiatorWithLiterals = ActionInitiator | 'UNDEFINED' | 'BUSINESS' | 'CUSTOMER' | 'SYSTEM';
|
|
1675
|
-
interface SubscriptionBillingCycleStarted {
|
|
1676
|
-
subscription?: Subscription;
|
|
1677
|
-
/**
|
|
1678
|
-
* Wix Pay transaction id, optional. Exists if event was triggered by a payment.
|
|
1679
|
-
* @format GUID
|
|
1680
|
-
*/
|
|
1681
|
-
paymentTransactionId?: string | null;
|
|
1682
|
-
}
|
|
1683
|
-
/**
|
|
1684
|
-
* Sent each time a subscription status has been set to Active
|
|
1685
|
-
* Active shows that a subscription is live and operational.
|
|
1686
|
-
* For example:
|
|
1687
|
-
* * For subscription with free trial, free trial start date is also the activation date.
|
|
1688
|
-
* * For a subscription with future start date, the start date is also the activation date.
|
|
1689
|
-
* * When a subscription is resumed from a pause status, the resume date is also the activation date.
|
|
1690
|
-
*/
|
|
1691
|
-
interface SubscriptionActivated {
|
|
1692
|
-
subscription?: Subscription;
|
|
1841
|
+
interface GetFullSubscriptionDataRequest {
|
|
1842
|
+
/** @format GUID */
|
|
1843
|
+
id?: string;
|
|
1693
1844
|
}
|
|
1694
|
-
|
|
1695
|
-
* Sent each time a subscription status has been set to Ended
|
|
1696
|
-
* Ended shows that a subscription reached its end date and ended its life cycle as a result of the agreement.
|
|
1697
|
-
* This is different from a Canceled subscription which ends the subscription before a designated end date.
|
|
1698
|
-
* Therefore, Ended and Canceled are mutually exclusive.
|
|
1699
|
-
*/
|
|
1700
|
-
interface SubscriptionEnded {
|
|
1845
|
+
interface GetFullSubscriptionDataResponse {
|
|
1701
1846
|
subscription?: Subscription;
|
|
1847
|
+
internalSubscriptionData?: InternalSubscriptionData;
|
|
1702
1848
|
}
|
|
1703
|
-
interface
|
|
1704
|
-
subscription?: Subscription;
|
|
1705
|
-
actionDetails?: ActionDetails;
|
|
1849
|
+
interface InternalSubscriptionData {
|
|
1706
1850
|
/** @format GUID */
|
|
1707
|
-
|
|
1851
|
+
originInstanceId?: string;
|
|
1852
|
+
source?: string | null;
|
|
1853
|
+
billingType?: string;
|
|
1854
|
+
isOneTime?: boolean;
|
|
1855
|
+
migrationDetails?: MigrationDetails;
|
|
1856
|
+
pausePaidDuration?: string | null;
|
|
1857
|
+
authorizationPaymentData?: PaymentData;
|
|
1858
|
+
currentCyclePausePeriods?: PausePeriod[];
|
|
1859
|
+
}
|
|
1860
|
+
interface MigrationDetails {
|
|
1861
|
+
/** system (application) where the Subscription has been created */
|
|
1862
|
+
originSystem?: string;
|
|
1863
|
+
/** date when the Subscription started to be managed in BASS */
|
|
1864
|
+
shiftManagementDate?: Date | null;
|
|
1865
|
+
}
|
|
1866
|
+
interface PausePeriod {
|
|
1867
|
+
startDate?: Date | null;
|
|
1868
|
+
endDate?: Date | null;
|
|
1708
1869
|
}
|
|
1709
|
-
interface
|
|
1710
|
-
|
|
1870
|
+
interface GetSubscriptionAndInternalDataRequest {
|
|
1871
|
+
/** @format GUID */
|
|
1872
|
+
subscriptionId?: string;
|
|
1873
|
+
/** @format GUID */
|
|
1874
|
+
tenantId?: string;
|
|
1711
1875
|
}
|
|
1712
|
-
interface
|
|
1876
|
+
interface GetSubscriptionAndInternalDataResponse {
|
|
1713
1877
|
subscription?: Subscription;
|
|
1878
|
+
internalSubscriptionData?: InternalSubscriptionData;
|
|
1714
1879
|
}
|
|
1715
|
-
interface
|
|
1716
|
-
/**
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
id: string;
|
|
1721
|
-
/** New billing date in `YYYY-MM-DDThh:mm:ss:sssZ` format. */
|
|
1722
|
-
billingDate: Date | null;
|
|
1723
|
-
/**
|
|
1724
|
-
* Information about how BASS adjusts the total of the next invoice. Extending
|
|
1725
|
-
* the current billing cycle results in a higher payment, while shortening it
|
|
1726
|
-
* leads to a lower payment. BASS offers automatic calculation of the proration
|
|
1727
|
-
* amount based on the number of days added to or removed from the current billing
|
|
1728
|
-
* cycle. Alternatively, you can use your own custom method to calculate the
|
|
1729
|
-
* proration amount. The custom proration amount can't exceed the total of the
|
|
1730
|
-
* current billing cycle.
|
|
1731
|
-
*/
|
|
1732
|
-
proration?: Proration;
|
|
1733
|
-
}
|
|
1734
|
-
interface UpdateSubscriptionBillingDateResponse {
|
|
1735
|
-
/** Updated subscription. */
|
|
1736
|
-
subscription?: Subscription;
|
|
1880
|
+
interface SearchSubscriptionRequest {
|
|
1881
|
+
/** @format GUID */
|
|
1882
|
+
id?: string;
|
|
1883
|
+
/** @format GUID */
|
|
1884
|
+
tenantId?: string;
|
|
1737
1885
|
}
|
|
1738
|
-
interface
|
|
1886
|
+
interface SearchSubscriptionResponse {
|
|
1739
1887
|
subscription?: Subscription;
|
|
1740
|
-
billingDate?: Date | null;
|
|
1741
|
-
proration?: Proration;
|
|
1742
|
-
}
|
|
1743
|
-
declare enum UpdateAction {
|
|
1744
|
-
NONE = "NONE",
|
|
1745
|
-
/** Update subscription immediately, please note proration for updates changing price are not yet supported */
|
|
1746
|
-
IMMEDIATELY = "IMMEDIATELY",
|
|
1747
|
-
/** Request updates that will take affect only at the start of the next billing cycle. */
|
|
1748
|
-
NEXT_BILLING_CYCLE = "NEXT_BILLING_CYCLE",
|
|
1749
|
-
/** Reset all pending updates */
|
|
1750
|
-
RESET_PENDING_UPDATES = "RESET_PENDING_UPDATES",
|
|
1751
|
-
/** Request updates that will take affect only at a specific date. */
|
|
1752
|
-
SPECIFIC_DATE = "SPECIFIC_DATE"
|
|
1753
1888
|
}
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
1759
|
-
* format. The use of this field may be restricted in various BASS endpoints.
|
|
1760
|
-
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
1761
|
-
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
1762
|
-
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
1763
|
-
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
1764
|
-
*/
|
|
1765
|
-
specificDate?: Date | null;
|
|
1889
|
+
interface UpdatePausePaidDurationRequest {
|
|
1890
|
+
/** @format GUID */
|
|
1891
|
+
subscriptionId?: string;
|
|
1766
1892
|
/**
|
|
1767
|
-
* When the update becomes effective, as number of billing cycles from now.
|
|
1768
|
-
* The use of this field may be restricted in various BASS endpoints.
|
|
1769
|
-
* For example, in _Pause Subscription_ it's only available in
|
|
1770
|
-
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
1771
|
-
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
1772
1893
|
* @min 1
|
|
1894
|
+
* @max 10000000
|
|
1773
1895
|
*/
|
|
1774
|
-
|
|
1896
|
+
pausePaidDurationSeconds?: string;
|
|
1897
|
+
/** @format GUID */
|
|
1898
|
+
tenantId?: string;
|
|
1775
1899
|
}
|
|
1776
|
-
|
|
1777
|
-
interface ScheduleAdditionalInfoParamOneOf {
|
|
1778
|
-
/**
|
|
1779
|
-
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
1780
|
-
* format. The use of this field may be restricted in various BASS endpoints.
|
|
1781
|
-
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
1782
|
-
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
1783
|
-
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
1784
|
-
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
1785
|
-
*/
|
|
1786
|
-
specificDate?: Date | null;
|
|
1787
|
-
/**
|
|
1788
|
-
* When the update becomes effective, as number of billing cycles from now.
|
|
1789
|
-
* The use of this field may be restricted in various BASS endpoints.
|
|
1790
|
-
* For example, in _Pause Subscription_ it's only available in
|
|
1791
|
-
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
1792
|
-
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
1793
|
-
* @min 1
|
|
1794
|
-
*/
|
|
1795
|
-
numberOfCycles?: number;
|
|
1900
|
+
interface UpdatePausePaidDurationResponse {
|
|
1796
1901
|
}
|
|
1797
|
-
interface
|
|
1902
|
+
interface UpdateStatusRequest {
|
|
1798
1903
|
/** @format GUID */
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
initiator?: ActionInitiatorWithLiterals;
|
|
1804
|
-
/** Optional action reason message */
|
|
1805
|
-
reason?: string | null;
|
|
1904
|
+
subscriptionId?: string;
|
|
1905
|
+
/** @format GUID */
|
|
1906
|
+
tenantId?: string;
|
|
1907
|
+
status?: SubscriptionStatusEnumSubscriptionStatusWithLiterals;
|
|
1806
1908
|
}
|
|
1807
|
-
interface
|
|
1909
|
+
interface UpdateStatusResponse {
|
|
1808
1910
|
subscription?: Subscription;
|
|
1809
1911
|
}
|
|
1810
|
-
interface
|
|
1912
|
+
interface UpdatePaymentStatusRequest {
|
|
1811
1913
|
/** @format GUID */
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
pauseAtSchedule?: ScheduleAdditionalInfo;
|
|
1817
|
-
/** contains additional scheduling information for certain auto_resume_at either specific date */
|
|
1818
|
-
autoResumeAtSchedule?: ScheduleAdditionalInfo;
|
|
1819
|
-
actionContext: ActionContext;
|
|
1914
|
+
subscriptionId?: string;
|
|
1915
|
+
/** @format GUID */
|
|
1916
|
+
tenantId?: string;
|
|
1917
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
1820
1918
|
}
|
|
1821
|
-
interface
|
|
1919
|
+
interface UpdatePaymentStatusResponse {
|
|
1822
1920
|
subscription?: Subscription;
|
|
1823
1921
|
}
|
|
1824
|
-
interface
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1922
|
+
interface RemoveCancellationInfoRequest {
|
|
1923
|
+
/** @format GUID */
|
|
1924
|
+
subscriptionId?: string;
|
|
1925
|
+
/** @format GUID */
|
|
1926
|
+
tenantId?: string;
|
|
1828
1927
|
}
|
|
1829
|
-
interface
|
|
1928
|
+
interface RemoveCancellationInfoResponse {
|
|
1830
1929
|
subscription?: Subscription;
|
|
1831
|
-
pauseAt?: PauseAtWithLiterals;
|
|
1832
|
-
pausePolicy?: PausePolicyWithLiterals;
|
|
1833
|
-
actionDetails?: ActionDetails;
|
|
1834
1930
|
}
|
|
1835
|
-
interface
|
|
1931
|
+
interface ReviveSubscriptionRequest {
|
|
1932
|
+
/** @format GUID */
|
|
1933
|
+
tenantId?: string;
|
|
1934
|
+
/** @format GUID */
|
|
1935
|
+
subscriptionId?: string;
|
|
1936
|
+
revivePolicy?: RevivePolicyWithLiterals;
|
|
1937
|
+
isTestRun?: boolean;
|
|
1938
|
+
}
|
|
1939
|
+
declare enum RevivePolicy {
|
|
1940
|
+
SIMPLE = "SIMPLE",
|
|
1941
|
+
RESUME = "RESUME"
|
|
1942
|
+
}
|
|
1943
|
+
/** @enumType */
|
|
1944
|
+
type RevivePolicyWithLiterals = RevivePolicy | 'SIMPLE' | 'RESUME';
|
|
1945
|
+
interface ReviveSubscriptionResponse {
|
|
1836
1946
|
subscription?: Subscription;
|
|
1837
|
-
actionDetails?: ActionDetails;
|
|
1838
1947
|
}
|
|
1839
|
-
interface
|
|
1948
|
+
interface ConvertSapiRequest {
|
|
1840
1949
|
/** @format GUID */
|
|
1841
|
-
|
|
1842
|
-
resumeAt?: ResumeAtWithLiterals;
|
|
1843
|
-
/** contains additional scheduling information for certain resume_at options (for example: SPECIFIC_DATE) */
|
|
1844
|
-
resumeAtSchedule?: ScheduleAdditionalInfo;
|
|
1845
|
-
actionContext: ActionContext;
|
|
1950
|
+
subscriptionId?: string;
|
|
1846
1951
|
}
|
|
1847
|
-
interface
|
|
1952
|
+
interface ConvertSapiResponse {
|
|
1848
1953
|
subscription?: Subscription;
|
|
1849
1954
|
}
|
|
1850
|
-
interface
|
|
1955
|
+
interface GetSubscriptionInvoicesRequest {
|
|
1956
|
+
/** @format GUID */
|
|
1957
|
+
id?: string;
|
|
1958
|
+
}
|
|
1959
|
+
interface GetSubscriptionInvoicesResponse {
|
|
1960
|
+
invoices?: SubscriptionInvoice[];
|
|
1961
|
+
}
|
|
1962
|
+
interface SubscriptionInvoice {
|
|
1963
|
+
/** @format GUID */
|
|
1964
|
+
id?: string;
|
|
1965
|
+
subscriptionCycle?: number;
|
|
1966
|
+
createdDate?: Date | null;
|
|
1967
|
+
}
|
|
1968
|
+
interface FinishFreeTrialNowRequest {
|
|
1969
|
+
/** @format GUID */
|
|
1970
|
+
subscriptionId?: string;
|
|
1971
|
+
/** @format GUID */
|
|
1972
|
+
tenantId?: string;
|
|
1973
|
+
}
|
|
1974
|
+
interface FinishFreeTrialNowResponse {
|
|
1851
1975
|
subscription?: Subscription;
|
|
1852
|
-
actionDetails?: ActionDetails;
|
|
1853
1976
|
}
|
|
1854
|
-
interface
|
|
1977
|
+
interface FixSubscriptionTimeCapsuleTasksRequest {
|
|
1978
|
+
/** @format GUID */
|
|
1979
|
+
subscriptionId?: string;
|
|
1980
|
+
/** @format GUID */
|
|
1981
|
+
tenantId?: string;
|
|
1982
|
+
}
|
|
1983
|
+
interface FixSubscriptionTimeCapsuleTasksResponse {
|
|
1984
|
+
}
|
|
1985
|
+
interface SendTimeCapsuleTaskCanceledBIRequest {
|
|
1986
|
+
/** @format GUID */
|
|
1987
|
+
tenantId?: string;
|
|
1988
|
+
/** @format GUID */
|
|
1989
|
+
subscriptionId?: string;
|
|
1990
|
+
/** @minLength 1 */
|
|
1991
|
+
taskType?: string;
|
|
1992
|
+
}
|
|
1993
|
+
interface Empty {
|
|
1994
|
+
}
|
|
1995
|
+
interface ScheduleTimeCapsuleTaskRequest {
|
|
1996
|
+
/** @format GUID */
|
|
1997
|
+
subscriptionId?: string;
|
|
1998
|
+
/** @minLength 1 */
|
|
1999
|
+
taskType?: string;
|
|
2000
|
+
executionTime?: Date | null;
|
|
2001
|
+
/** @format GUID */
|
|
2002
|
+
tenantId?: string;
|
|
2003
|
+
}
|
|
2004
|
+
interface CancelTimeCapsuleTaskRequest {
|
|
2005
|
+
/** @format GUID */
|
|
2006
|
+
tenantId?: string;
|
|
2007
|
+
/** @format GUID */
|
|
2008
|
+
subscriptionId?: string;
|
|
2009
|
+
/** @minLength 1 */
|
|
2010
|
+
taskType?: string;
|
|
2011
|
+
}
|
|
2012
|
+
interface UpdateFullSubscriptionRequest {
|
|
2013
|
+
/** @format GUID */
|
|
2014
|
+
tenantId?: string;
|
|
1855
2015
|
subscription?: Subscription;
|
|
1856
|
-
resumeAt?: ResumeAtWithLiterals;
|
|
1857
|
-
actionDetails?: ActionDetails;
|
|
1858
2016
|
}
|
|
1859
|
-
interface
|
|
2017
|
+
interface UpdateFullSubscriptionResponse {
|
|
1860
2018
|
subscription?: Subscription;
|
|
1861
|
-
actionDetails?: ActionDetails;
|
|
1862
2019
|
}
|
|
1863
|
-
interface
|
|
1864
|
-
/**
|
|
1865
|
-
|
|
1866
|
-
/**
|
|
1867
|
-
|
|
1868
|
-
/**
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
2020
|
+
interface UpdateSubscriptionInvoiceCycleRequest {
|
|
2021
|
+
/** @format GUID */
|
|
2022
|
+
subscriptionId?: string;
|
|
2023
|
+
/** @format GUID */
|
|
2024
|
+
tenantId?: string;
|
|
2025
|
+
/** @format GUID */
|
|
2026
|
+
invoiceId?: string;
|
|
2027
|
+
subscriptionCycle?: number;
|
|
2028
|
+
}
|
|
2029
|
+
interface UpdateSubscriptionInvoiceCycleResponse {
|
|
2030
|
+
subscriptionInvoice?: SubscriptionInvoice;
|
|
2031
|
+
}
|
|
2032
|
+
interface AddPausePeriodRequest {
|
|
2033
|
+
/** @format GUID */
|
|
2034
|
+
tenantId?: string;
|
|
2035
|
+
/** @format GUID */
|
|
2036
|
+
subscriptionId?: string;
|
|
2037
|
+
pauseStartDate?: Date | null;
|
|
2038
|
+
pauseEndDate?: Date | null;
|
|
2039
|
+
}
|
|
2040
|
+
interface AddPausePeriodResponse {
|
|
2041
|
+
subscription?: Subscription;
|
|
2042
|
+
}
|
|
2043
|
+
interface RunTimeCapsuleTaskNowRequest {
|
|
2044
|
+
/** @format GUID */
|
|
2045
|
+
tenantId?: string;
|
|
2046
|
+
/** @format GUID */
|
|
2047
|
+
subscriptionId?: string;
|
|
2048
|
+
/** @minLength 1 */
|
|
2049
|
+
taskType?: string;
|
|
2050
|
+
}
|
|
2051
|
+
interface CreateRecurringInvoiceBORequest {
|
|
2052
|
+
/** @format GUID */
|
|
2053
|
+
subscriptionId?: string;
|
|
2054
|
+
/** @format GUID */
|
|
2055
|
+
tenantId?: string;
|
|
2056
|
+
/** @min 2 */
|
|
2057
|
+
cycleNumber?: number;
|
|
2058
|
+
}
|
|
2059
|
+
interface CreateRecurringInvoiceBOResponse {
|
|
2060
|
+
invoiceId?: string;
|
|
2061
|
+
}
|
|
2062
|
+
interface SetShiftingDataRequest {
|
|
2063
|
+
/** @format GUID */
|
|
2064
|
+
subscriptionId?: string;
|
|
2065
|
+
/** @format GUID */
|
|
2066
|
+
tenantId?: string;
|
|
2067
|
+
isBassManaged?: boolean;
|
|
2068
|
+
shiftManagementDate?: Date | null;
|
|
2069
|
+
}
|
|
2070
|
+
interface SetShiftingDataResponse {
|
|
2071
|
+
subscription?: Subscription;
|
|
2072
|
+
}
|
|
2073
|
+
interface FixSubscriptionInvoicesRequest extends FixSubscriptionInvoicesRequestModeOneOf {
|
|
2074
|
+
attachInvoice?: AttachInvoice;
|
|
2075
|
+
detachInvoice?: DetachInvoice;
|
|
2076
|
+
/** @format GUID */
|
|
2077
|
+
tenantId?: string;
|
|
2078
|
+
/** @format GUID */
|
|
2079
|
+
subscriptionId?: string;
|
|
1872
2080
|
}
|
|
1873
2081
|
/** @oneof */
|
|
1874
|
-
interface
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
1878
|
-
cursor?: CursorPaging;
|
|
2082
|
+
interface FixSubscriptionInvoicesRequestModeOneOf {
|
|
2083
|
+
attachInvoice?: AttachInvoice;
|
|
2084
|
+
detachInvoice?: DetachInvoice;
|
|
1879
2085
|
}
|
|
1880
|
-
interface
|
|
1881
|
-
|
|
2086
|
+
interface AttachInvoice {
|
|
2087
|
+
/** @format GUID */
|
|
2088
|
+
invoiceId?: string;
|
|
1882
2089
|
}
|
|
1883
|
-
interface
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
2090
|
+
interface DetachInvoice {
|
|
2091
|
+
/** @format GUID */
|
|
2092
|
+
invoiceId?: string;
|
|
1887
2093
|
}
|
|
1888
|
-
interface
|
|
1889
|
-
|
|
1890
|
-
total?: number | null;
|
|
2094
|
+
interface FixSubscriptionInvoicesResponse {
|
|
2095
|
+
invoices?: SubscriptionInvoice[];
|
|
1891
2096
|
}
|
|
1892
|
-
interface
|
|
2097
|
+
interface RestoreDraftSubscriptionRequest {
|
|
1893
2098
|
/** @format GUID */
|
|
1894
|
-
|
|
1895
|
-
|
|
2099
|
+
tenantId?: string;
|
|
2100
|
+
/** @format GUID */
|
|
2101
|
+
subscriptionId?: string;
|
|
1896
2102
|
}
|
|
1897
|
-
interface
|
|
2103
|
+
interface RestoreDraftSubscriptionResponse {
|
|
1898
2104
|
subscription?: Subscription;
|
|
1899
2105
|
}
|
|
1900
|
-
interface
|
|
2106
|
+
interface DeleteDraftSubscriptionRequest {
|
|
2107
|
+
/** @format GUID */
|
|
2108
|
+
tenantId?: string;
|
|
2109
|
+
/** @format GUID */
|
|
2110
|
+
subscriptionId?: string;
|
|
2111
|
+
}
|
|
2112
|
+
interface DeleteDraftSubscriptionResponse {
|
|
1901
2113
|
subscription?: Subscription;
|
|
1902
|
-
actionDetails?: ActionDetails;
|
|
1903
2114
|
}
|
|
1904
|
-
interface
|
|
2115
|
+
interface DeleteSubscriptionBORequest {
|
|
1905
2116
|
/** @format GUID */
|
|
1906
|
-
|
|
1907
|
-
|
|
2117
|
+
tenantId?: string;
|
|
2118
|
+
/** @format GUID */
|
|
2119
|
+
subscriptionId?: string;
|
|
1908
2120
|
}
|
|
1909
|
-
interface
|
|
2121
|
+
interface DeleteSubscriptionBOResponse {
|
|
1910
2122
|
subscription?: Subscription;
|
|
1911
2123
|
}
|
|
1912
|
-
interface
|
|
2124
|
+
interface CancelSubscriptionBORequest {
|
|
2125
|
+
/** @format GUID */
|
|
2126
|
+
tenantId?: string;
|
|
2127
|
+
/** @format GUID */
|
|
2128
|
+
subscriptionId?: string;
|
|
2129
|
+
initiator?: ActionInitiatorWithLiterals;
|
|
2130
|
+
reason?: string | null;
|
|
2131
|
+
}
|
|
2132
|
+
declare enum ActionInitiator {
|
|
2133
|
+
UNDEFINED = "UNDEFINED",
|
|
2134
|
+
BUSINESS = "BUSINESS",
|
|
2135
|
+
CUSTOMER = "CUSTOMER",
|
|
2136
|
+
SYSTEM = "SYSTEM"
|
|
2137
|
+
}
|
|
2138
|
+
/** @enumType */
|
|
2139
|
+
type ActionInitiatorWithLiterals = ActionInitiator | 'UNDEFINED' | 'BUSINESS' | 'CUSTOMER' | 'SYSTEM';
|
|
2140
|
+
interface CancelSubscriptionBOResponse {
|
|
2141
|
+
subscription?: Subscription;
|
|
2142
|
+
}
|
|
2143
|
+
interface UpdatePaymentMethodBORequest {
|
|
2144
|
+
/** @format GUID */
|
|
2145
|
+
tenantId?: string;
|
|
2146
|
+
/** @format GUID */
|
|
2147
|
+
subscriptionId?: string;
|
|
2148
|
+
/** @format GUID */
|
|
2149
|
+
paymentMethodId?: string;
|
|
2150
|
+
}
|
|
2151
|
+
interface UpdatePaymentMethodBOResponse {
|
|
2152
|
+
subscription?: Subscription;
|
|
2153
|
+
}
|
|
2154
|
+
interface SendSubscriptionActionEventBORequest extends SendSubscriptionActionEventBORequestEventOneOf {
|
|
2155
|
+
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
2156
|
+
/** @format GUID */
|
|
2157
|
+
tenantId?: string;
|
|
2158
|
+
/** @format GUID */
|
|
2159
|
+
subscriptionId?: string;
|
|
2160
|
+
}
|
|
2161
|
+
/** @oneof */
|
|
2162
|
+
interface SendSubscriptionActionEventBORequestEventOneOf {
|
|
2163
|
+
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
2164
|
+
}
|
|
2165
|
+
interface SubscriptionBillingCycleStarted {
|
|
2166
|
+
subscription?: Subscription;
|
|
2167
|
+
/**
|
|
2168
|
+
* Wix Pay transaction id, optional. Exists if event was triggered by a payment.
|
|
2169
|
+
* @format GUID
|
|
2170
|
+
*/
|
|
2171
|
+
paymentTransactionId?: string | null;
|
|
2172
|
+
}
|
|
2173
|
+
interface SendSubscriptionActionEventResponse {
|
|
2174
|
+
}
|
|
2175
|
+
interface HandleSubscriptionAfterInvoiceMarkedAsPaidRequest {
|
|
2176
|
+
/** @format GUID */
|
|
2177
|
+
tenantId?: string;
|
|
2178
|
+
/** @format GUID */
|
|
2179
|
+
subscriptionId?: string;
|
|
2180
|
+
transactionId?: string;
|
|
2181
|
+
}
|
|
2182
|
+
interface PauseSubscriptionBORequest {
|
|
2183
|
+
/** @format GUID */
|
|
2184
|
+
tenantId?: string;
|
|
2185
|
+
/** @format GUID */
|
|
2186
|
+
subscriptionId?: string;
|
|
2187
|
+
pausePolicy?: PausePolicyWithLiterals;
|
|
2188
|
+
pauseAt?: PauseAtWithLiterals;
|
|
2189
|
+
initiator?: ActionInitiatorWithLiterals;
|
|
2190
|
+
/** @maxLength 500 */
|
|
2191
|
+
reason?: string | null;
|
|
2192
|
+
}
|
|
2193
|
+
interface PauseSubscriptionBOResponse {
|
|
2194
|
+
subscription?: Subscription;
|
|
2195
|
+
}
|
|
2196
|
+
interface FixSubscriptionInvoicesConsistencyRequest {
|
|
2197
|
+
/** @format GUID */
|
|
2198
|
+
tenantId?: string;
|
|
2199
|
+
/** @format GUID */
|
|
2200
|
+
subscriptionId?: string;
|
|
2201
|
+
}
|
|
2202
|
+
interface FixSubscriptionInvoicesConsistencyResponse {
|
|
2203
|
+
}
|
|
2204
|
+
interface SetIsMigratedEvent {
|
|
2205
|
+
/** @format GUID */
|
|
2206
|
+
subscriptionId?: string;
|
|
2207
|
+
}
|
|
2208
|
+
interface SubscriptionDelayedSyncEvent {
|
|
2209
|
+
/** @format GUID */
|
|
2210
|
+
subscriptionId?: string;
|
|
2211
|
+
}
|
|
2212
|
+
interface InvoiceAction extends InvoiceActionActionTypeOneOf {
|
|
2213
|
+
payRecurring?: PayRecurringInvoice;
|
|
2214
|
+
}
|
|
2215
|
+
/** @oneof */
|
|
2216
|
+
interface InvoiceActionActionTypeOneOf {
|
|
2217
|
+
payRecurring?: PayRecurringInvoice;
|
|
2218
|
+
}
|
|
2219
|
+
interface PayRecurringInvoice {
|
|
2220
|
+
/** @format GUID */
|
|
2221
|
+
invoiceId?: string;
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* Sent each time a subscription status has been set to Active
|
|
2225
|
+
* Active shows that a subscription is live and operational.
|
|
2226
|
+
* For example:
|
|
2227
|
+
* * For subscription with free trial, free trial start date is also the activation date.
|
|
2228
|
+
* * For a subscription with future start date, the start date is also the activation date.
|
|
2229
|
+
* * When a subscription is resumed from a pause status, the resume date is also the activation date.
|
|
2230
|
+
*/
|
|
2231
|
+
interface SubscriptionActivated {
|
|
2232
|
+
subscription?: Subscription;
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* Sent each time a subscription status has been set to Ended
|
|
2236
|
+
* Ended shows that a subscription reached its end date and ended its life cycle as a result of the agreement.
|
|
2237
|
+
* This is different from a Canceled subscription which ends the subscription before a designated end date.
|
|
2238
|
+
* Therefore, Ended and Canceled are mutually exclusive.
|
|
2239
|
+
*/
|
|
2240
|
+
interface SubscriptionEnded {
|
|
2241
|
+
subscription?: Subscription;
|
|
2242
|
+
}
|
|
2243
|
+
interface SubscriptionInitialPurchaseCompleted {
|
|
1913
2244
|
subscription?: Subscription;
|
|
1914
2245
|
actionDetails?: ActionDetails;
|
|
2246
|
+
/** @format GUID */
|
|
2247
|
+
paymentTransactionId?: string | null;
|
|
1915
2248
|
}
|
|
1916
|
-
interface
|
|
2249
|
+
interface SubscriptionCycleReadyToPay {
|
|
2250
|
+
subscription?: Subscription;
|
|
2251
|
+
}
|
|
2252
|
+
interface SubscriptionRevived {
|
|
2253
|
+
subscription?: Subscription;
|
|
2254
|
+
}
|
|
2255
|
+
interface CreateSubscriptionResponse {
|
|
2256
|
+
subscription?: Subscription;
|
|
2257
|
+
/**
|
|
2258
|
+
* Payments order that should be paid (or authorize card) in order to activate subscription. Empty for free subscriptions.
|
|
2259
|
+
* @format GUID
|
|
2260
|
+
*/
|
|
2261
|
+
paymentOrderId?: string | null;
|
|
2262
|
+
}
|
|
2263
|
+
interface UpdateSubscriptionRequest {
|
|
2264
|
+
/** Revision is validated if Subscription.revision is set */
|
|
2265
|
+
subscription?: Subscription;
|
|
2266
|
+
/**
|
|
2267
|
+
* Supported field: start_date
|
|
2268
|
+
* Can be updated only if Subscription is in Draft state
|
|
2269
|
+
*/
|
|
2270
|
+
fieldMask?: string[];
|
|
2271
|
+
}
|
|
2272
|
+
interface UpdateSubscriptionResponse {
|
|
2273
|
+
subscription?: Subscription;
|
|
2274
|
+
}
|
|
2275
|
+
interface UpdateSubscriptionStartDateRequest {
|
|
2276
|
+
/**
|
|
2277
|
+
* Subscription ID
|
|
2278
|
+
* @format GUID
|
|
2279
|
+
*/
|
|
2280
|
+
id?: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* Can be updated only if Subscription is in Draft state
|
|
2283
|
+
* By setting start_date in the future, end_date will be recalculated for termed Subscriptions
|
|
2284
|
+
* cycles_to_pay_on_creation will be set to 1 if no free trial is set
|
|
2285
|
+
*/
|
|
2286
|
+
startDate?: Date | null;
|
|
2287
|
+
}
|
|
2288
|
+
interface UpdateSubscriptionStartDateResponse {
|
|
2289
|
+
subscription?: Subscription;
|
|
2290
|
+
}
|
|
2291
|
+
interface BassToSapiPaypalMigrationRequest {
|
|
2292
|
+
/**
|
|
2293
|
+
* Subscription ID
|
|
2294
|
+
* @format GUID
|
|
2295
|
+
*/
|
|
2296
|
+
id?: string;
|
|
2297
|
+
collectionMethod?: CollectionMethodEnumCollectionMethodWithLiterals;
|
|
2298
|
+
}
|
|
2299
|
+
interface BassToSapiPaypalMigrationResponse {
|
|
2300
|
+
subscription?: Subscription;
|
|
2301
|
+
}
|
|
2302
|
+
interface UpdateSubscriptionPoliciesRequest {
|
|
2303
|
+
/**
|
|
2304
|
+
* Subscription ID
|
|
2305
|
+
* @format GUID
|
|
2306
|
+
*/
|
|
2307
|
+
id?: string;
|
|
2308
|
+
cancellableByCustomer?: boolean | null;
|
|
2309
|
+
}
|
|
2310
|
+
interface UpdateSubscriptionPoliciesResponse {
|
|
2311
|
+
/** Updated policies of the subscription */
|
|
2312
|
+
policies?: SubscriptionPolicies;
|
|
2313
|
+
}
|
|
2314
|
+
interface UpdateSubscriptionBillingDateRequest {
|
|
2315
|
+
/**
|
|
2316
|
+
* ID of the subscription to update the billing date for.
|
|
2317
|
+
* @format GUID
|
|
2318
|
+
*/
|
|
2319
|
+
id: string;
|
|
2320
|
+
/** New billing date in `YYYY-MM-DDThh:mm:ss:sssZ` format. */
|
|
2321
|
+
billingDate: Date | null;
|
|
2322
|
+
/**
|
|
2323
|
+
* Information about how BASS adjusts the total of the next invoice. Extending
|
|
2324
|
+
* the current billing cycle results in a higher payment, while shortening it
|
|
2325
|
+
* leads to a lower payment. BASS offers automatic calculation of the proration
|
|
2326
|
+
* amount based on the number of days added to or removed from the current billing
|
|
2327
|
+
* cycle. Alternatively, you can use your own custom method to calculate the
|
|
2328
|
+
* proration amount. The custom proration amount can't exceed the total of the
|
|
2329
|
+
* current billing cycle.
|
|
2330
|
+
*/
|
|
2331
|
+
proration?: Proration;
|
|
2332
|
+
}
|
|
2333
|
+
interface UpdateSubscriptionBillingDateResponse {
|
|
2334
|
+
/** Updated subscription. */
|
|
2335
|
+
subscription?: Subscription;
|
|
2336
|
+
}
|
|
2337
|
+
interface SubscriptionBillingDateUpdated {
|
|
2338
|
+
subscription?: Subscription;
|
|
2339
|
+
billingDate?: Date | null;
|
|
2340
|
+
proration?: Proration;
|
|
2341
|
+
}
|
|
2342
|
+
interface UpdateSubscriptionOriginRequest {
|
|
2343
|
+
/**
|
|
2344
|
+
* ID of the subscription to update origin.
|
|
2345
|
+
* @format GUID
|
|
2346
|
+
*/
|
|
2347
|
+
id?: string;
|
|
2348
|
+
/**
|
|
2349
|
+
* Origin entity ID of the subscription to update.
|
|
2350
|
+
* @format GUID
|
|
2351
|
+
*/
|
|
2352
|
+
entityId?: string;
|
|
2353
|
+
}
|
|
2354
|
+
interface UpdateSubscriptionOriginResponse {
|
|
2355
|
+
/** Updated subscription. */
|
|
2356
|
+
subscription?: Subscription;
|
|
2357
|
+
}
|
|
2358
|
+
interface ReviseSubscriptionRequest {
|
|
2359
|
+
/**
|
|
2360
|
+
* Subscription ID
|
|
2361
|
+
* @format GUID
|
|
2362
|
+
*/
|
|
2363
|
+
id?: string;
|
|
2364
|
+
/**
|
|
2365
|
+
* 0 for no revision, maxSize is 100
|
|
2366
|
+
* @maxSize 100
|
|
2367
|
+
*/
|
|
2368
|
+
items?: Item[];
|
|
2369
|
+
}
|
|
2370
|
+
interface ReviseSubscriptionResponse {
|
|
2371
|
+
subscription?: Subscription;
|
|
2372
|
+
}
|
|
2373
|
+
interface UpdateSubscriptionItemsRequest {
|
|
2374
|
+
/**
|
|
2375
|
+
* Subscription ID
|
|
2376
|
+
* @format GUID
|
|
2377
|
+
*/
|
|
2378
|
+
id?: string;
|
|
2379
|
+
/** Update action. For RESET_PENDING_UPDATES, nothing but the subscription ID should be defined in the request. */
|
|
2380
|
+
updateAction?: UpdateActionWithLiterals;
|
|
2381
|
+
/** Updates execution date. Relevant only for UpdateAction.SPECIFIC_DATE. Only specific date is supported. */
|
|
2382
|
+
scheduleAdditionalInfo?: ScheduleAdditionalInfo;
|
|
2383
|
+
/**
|
|
2384
|
+
* Existing items to update
|
|
2385
|
+
* @maxSize 100
|
|
2386
|
+
*/
|
|
2387
|
+
itemsToUpdate?: ItemChange[];
|
|
2388
|
+
/**
|
|
2389
|
+
* Items to add
|
|
2390
|
+
* @maxSize 99
|
|
2391
|
+
*/
|
|
2392
|
+
itemsToAdd?: Item[];
|
|
2393
|
+
/**
|
|
2394
|
+
* Existing items to delete
|
|
2395
|
+
* @format GUID
|
|
2396
|
+
* @maxSize 99
|
|
2397
|
+
*/
|
|
2398
|
+
itemsToDelete?: string[] | null;
|
|
2399
|
+
}
|
|
2400
|
+
declare enum UpdateAction {
|
|
2401
|
+
NONE = "NONE",
|
|
2402
|
+
/** Update subscription immediately, please note proration for updates changing price are not yet supported */
|
|
2403
|
+
IMMEDIATELY = "IMMEDIATELY",
|
|
2404
|
+
/** Request updates that will take affect only at the start of the next billing cycle. */
|
|
2405
|
+
NEXT_BILLING_CYCLE = "NEXT_BILLING_CYCLE",
|
|
2406
|
+
/** Reset all pending updates */
|
|
2407
|
+
RESET_PENDING_UPDATES = "RESET_PENDING_UPDATES",
|
|
2408
|
+
/** Request updates that will take affect only at a specific date. */
|
|
2409
|
+
SPECIFIC_DATE = "SPECIFIC_DATE"
|
|
2410
|
+
}
|
|
2411
|
+
/** @enumType */
|
|
2412
|
+
type UpdateActionWithLiterals = UpdateAction | 'NONE' | 'IMMEDIATELY' | 'NEXT_BILLING_CYCLE' | 'RESET_PENDING_UPDATES' | 'SPECIFIC_DATE';
|
|
2413
|
+
interface ScheduleAdditionalInfo extends ScheduleAdditionalInfoParamOneOf {
|
|
2414
|
+
/**
|
|
2415
|
+
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
2416
|
+
* format. The use of this field may be restricted in various BASS endpoints.
|
|
2417
|
+
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
2418
|
+
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
2419
|
+
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2420
|
+
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2421
|
+
*/
|
|
2422
|
+
specificDate?: Date | null;
|
|
2423
|
+
/**
|
|
2424
|
+
* When the update becomes effective, as number of billing cycles from now.
|
|
2425
|
+
* The use of this field may be restricted in various BASS endpoints.
|
|
2426
|
+
* For example, in _Pause Subscription_ it's only available in
|
|
2427
|
+
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
2428
|
+
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
2429
|
+
* @min 1
|
|
2430
|
+
*/
|
|
2431
|
+
numberOfCycles?: number;
|
|
2432
|
+
}
|
|
2433
|
+
/** @oneof */
|
|
2434
|
+
interface ScheduleAdditionalInfoParamOneOf {
|
|
2435
|
+
/**
|
|
2436
|
+
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
2437
|
+
* format. The use of this field may be restricted in various BASS endpoints.
|
|
2438
|
+
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
2439
|
+
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
2440
|
+
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2441
|
+
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2442
|
+
*/
|
|
2443
|
+
specificDate?: Date | null;
|
|
2444
|
+
/**
|
|
2445
|
+
* When the update becomes effective, as number of billing cycles from now.
|
|
2446
|
+
* The use of this field may be restricted in various BASS endpoints.
|
|
2447
|
+
* For example, in _Pause Subscription_ it's only available in
|
|
2448
|
+
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
2449
|
+
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
2450
|
+
* @min 1
|
|
2451
|
+
*/
|
|
2452
|
+
numberOfCycles?: number;
|
|
2453
|
+
}
|
|
2454
|
+
interface UpdateSubscriptionItemsResponse {
|
|
2455
|
+
subscription?: Subscription;
|
|
2456
|
+
}
|
|
2457
|
+
interface BulkUpdateSubscriptionItemsByFilterRequest {
|
|
2458
|
+
/**
|
|
2459
|
+
* Filter to identify the subscriptions for which items are updated. For
|
|
2460
|
+
* supported fields see
|
|
2461
|
+
* [Search and Query: Bulk Update Subscription Items By Filter](https://bo.wix.com/wix-docs/rest/drafts/subscriptions-by-billing-by-wix/search-and-query#drafts_subscriptions-by-billing-by-wix_search-and-query_bulk-update-subscription-items-by-filter).
|
|
2462
|
+
* Sending an empty subscription filter results in a validation error.
|
|
2463
|
+
* In case you pass `{"updateAction": "RESET_PENDING_UPDATES"}`, use only the
|
|
2464
|
+
* `subscriptionId` field inside this filter. Passing any other filter results
|
|
2465
|
+
* in a failed validation error.
|
|
2466
|
+
*/
|
|
2467
|
+
subscriptionFilter?: Record<string, any> | null;
|
|
2468
|
+
/**
|
|
2469
|
+
* Filter to specify which subscription items are updated. Make sure to use
|
|
2470
|
+
* the catalog item ID and not the item's unique ID. All subscription items
|
|
2471
|
+
* with matching `items.catalogReference.catalogItemId` are updated.
|
|
2472
|
+
*
|
|
2473
|
+
* Max: `100` reference catalog item IDs
|
|
2474
|
+
* @format GUID
|
|
2475
|
+
* @maxSize 100
|
|
2476
|
+
*/
|
|
2477
|
+
catalogReferenceIds?: string[] | null;
|
|
2478
|
+
/**
|
|
2479
|
+
* Information about the update timing and update type.
|
|
2480
|
+
*
|
|
2481
|
+
* + `"IMMEDIATELY"`: The updates become effective immediately.
|
|
2482
|
+
* + `"NEXT_BILLING_CYCLE"`: The updates are scheduled for the beginning of the next billing cycle.
|
|
2483
|
+
* + `"SPECIFIC_DATE"`: The updates are scheduled for the date specified in `scheduleAdditionalInfo.specificDate`.
|
|
2484
|
+
* + `"RESET_PENDING_UPDATES"`: All currently scheduled updates for the specified supcriptions are canceled. Use only the `subscriptionId` field inside `subscriptionFilter`, all other filters result in failed validation errors.
|
|
2485
|
+
*/
|
|
2486
|
+
updateAction?: UpdateActionWithLiterals;
|
|
2487
|
+
/**
|
|
2488
|
+
* Additional information for updates. Currently, only supported for
|
|
2489
|
+
* `{"updateAction": "SPECIFIC_DATE"}`.
|
|
2490
|
+
*/
|
|
2491
|
+
scheduleAdditionalInfo?: ScheduleAdditionalInfo;
|
|
2492
|
+
/**
|
|
2493
|
+
* Update details for the susbcription items that match the filtering.
|
|
2494
|
+
* Currently, you can update only the item price, quantity, and tax. Note
|
|
2495
|
+
* that all item properties are updated to the same values. In case you want set
|
|
2496
|
+
* different values for individual items, you must call
|
|
2497
|
+
* _Bulk Update Subscription Items By Filter_ multiple times, once per unique update.
|
|
2498
|
+
*/
|
|
2499
|
+
bulkItemUpdateData?: BulkItemChange;
|
|
2500
|
+
/**
|
|
2501
|
+
* __Not implemented yet__. Items to add to the subscriptions matching the filtering.
|
|
2502
|
+
* @maxSize 99
|
|
2503
|
+
*/
|
|
2504
|
+
itemsToAdd?: Item[];
|
|
2505
|
+
}
|
|
2506
|
+
interface BulkItemChange {
|
|
2507
|
+
/** Information about the new item price. */
|
|
2508
|
+
pricingModel?: PricingModel;
|
|
2509
|
+
/**
|
|
2510
|
+
* New item quantity.
|
|
2511
|
+
*
|
|
2512
|
+
* Min: `1`
|
|
2513
|
+
* @min 1
|
|
2514
|
+
*/
|
|
2515
|
+
quantity?: number | null;
|
|
2516
|
+
/** Information about the new item tax. */
|
|
2517
|
+
tax?: Tax;
|
|
2518
|
+
}
|
|
2519
|
+
interface BulkUpdateSubscriptionItemsByFilterResponse {
|
|
2520
|
+
/**
|
|
2521
|
+
* ID of your bulk job. You can use
|
|
2522
|
+
* [this Async Infra call](https://pbo.wix.com/fire-console/?artifact=com.wixpress.asyncinfra.async-job-service&service=wix.infra.asyncjobs.v1.AsyncJobService&method=ListAsyncJobItems&body=eyJqb2JfaWQiOiIifQ%3D%3D)
|
|
2523
|
+
* to retrieve information about the job status.
|
|
2524
|
+
*/
|
|
2525
|
+
jobId?: string;
|
|
2526
|
+
}
|
|
2527
|
+
interface DeleteSubscriptionRequest {
|
|
2528
|
+
/** @format GUID */
|
|
2529
|
+
id?: string;
|
|
2530
|
+
revision?: string;
|
|
2531
|
+
}
|
|
2532
|
+
interface DeleteSubscriptionResponse {
|
|
2533
|
+
}
|
|
2534
|
+
interface CancelSubscriptionRequest {
|
|
2535
|
+
/** @format GUID */
|
|
2536
|
+
id: string;
|
|
2537
|
+
actionContext: ActionContext;
|
|
2538
|
+
}
|
|
2539
|
+
interface ActionContext {
|
|
2540
|
+
initiator?: ActionInitiatorWithLiterals;
|
|
2541
|
+
/** Optional action reason message */
|
|
2542
|
+
reason?: string | null;
|
|
2543
|
+
}
|
|
2544
|
+
interface CancelSubscriptionResponse {
|
|
2545
|
+
subscription?: Subscription;
|
|
2546
|
+
}
|
|
2547
|
+
interface PauseSubscriptionRequest {
|
|
2548
|
+
/** @format GUID */
|
|
2549
|
+
id: string;
|
|
2550
|
+
pausePolicy?: PausePolicyWithLiterals;
|
|
2551
|
+
pauseAt?: PauseAtWithLiterals;
|
|
2552
|
+
/** contains additional scheduling information for certain pause_at options (for example: SPECIFIC_DATE & NUMBER_OF_CYCLES_FROM_TODAY) */
|
|
2553
|
+
pauseAtSchedule?: ScheduleAdditionalInfo;
|
|
2554
|
+
/** contains additional scheduling information for certain auto_resume_at either specific date */
|
|
2555
|
+
autoResumeAtSchedule?: ScheduleAdditionalInfo;
|
|
2556
|
+
actionContext: ActionContext;
|
|
2557
|
+
}
|
|
2558
|
+
interface PauseSubscriptionResponse {
|
|
2559
|
+
subscription?: Subscription;
|
|
2560
|
+
}
|
|
2561
|
+
interface SubscriptionPaused {
|
|
2562
|
+
subscription?: Subscription;
|
|
2563
|
+
pausePolicy?: PausePolicyWithLiterals;
|
|
2564
|
+
actionDetails?: ActionDetails;
|
|
2565
|
+
}
|
|
2566
|
+
interface PauseSubscriptionRequested {
|
|
2567
|
+
subscription?: Subscription;
|
|
2568
|
+
pauseAt?: PauseAtWithLiterals;
|
|
2569
|
+
pausePolicy?: PausePolicyWithLiterals;
|
|
2570
|
+
actionDetails?: ActionDetails;
|
|
2571
|
+
}
|
|
2572
|
+
interface ScheduledPauseCanceled {
|
|
2573
|
+
subscription?: Subscription;
|
|
2574
|
+
actionDetails?: ActionDetails;
|
|
2575
|
+
}
|
|
2576
|
+
interface ResumeSubscriptionRequest {
|
|
2577
|
+
/** @format GUID */
|
|
2578
|
+
id: string;
|
|
2579
|
+
resumeAt?: ResumeAtWithLiterals;
|
|
2580
|
+
/** contains additional scheduling information for certain resume_at options (for example: SPECIFIC_DATE) */
|
|
2581
|
+
resumeAtSchedule?: ScheduleAdditionalInfo;
|
|
2582
|
+
actionContext: ActionContext;
|
|
2583
|
+
}
|
|
2584
|
+
interface ResumeSubscriptionResponse {
|
|
2585
|
+
subscription?: Subscription;
|
|
2586
|
+
}
|
|
2587
|
+
interface SubscriptionResumed {
|
|
2588
|
+
subscription?: Subscription;
|
|
2589
|
+
actionDetails?: ActionDetails;
|
|
2590
|
+
}
|
|
2591
|
+
interface ResumeSubscriptionRequested {
|
|
2592
|
+
subscription?: Subscription;
|
|
2593
|
+
resumeAt?: ResumeAtWithLiterals;
|
|
2594
|
+
actionDetails?: ActionDetails;
|
|
2595
|
+
}
|
|
2596
|
+
interface ScheduledResumeCanceled {
|
|
2597
|
+
subscription?: Subscription;
|
|
2598
|
+
actionDetails?: ActionDetails;
|
|
2599
|
+
}
|
|
2600
|
+
interface SearchSubscriptionsRequest extends SearchSubscriptionsRequestPagingMethodOneOf {
|
|
2601
|
+
/** Limit number of results and enable to skip rows. The default limit is 25. */
|
|
2602
|
+
paging?: Paging;
|
|
2603
|
+
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
2604
|
+
cursor?: CursorPaging;
|
|
2605
|
+
/** A filter object */
|
|
2606
|
+
filter?: any;
|
|
2607
|
+
/** A Sorting option by field name and order. */
|
|
2608
|
+
sorting?: SortingClauses;
|
|
2609
|
+
}
|
|
2610
|
+
/** @oneof */
|
|
2611
|
+
interface SearchSubscriptionsRequestPagingMethodOneOf {
|
|
2612
|
+
/** Limit number of results and enable to skip rows. The default limit is 25. */
|
|
2613
|
+
paging?: Paging;
|
|
2614
|
+
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
2615
|
+
cursor?: CursorPaging;
|
|
2616
|
+
}
|
|
2617
|
+
interface SortingClauses {
|
|
2618
|
+
sorting?: Sorting[];
|
|
2619
|
+
}
|
|
2620
|
+
interface SearchSubscriptionsResponse {
|
|
2621
|
+
subscriptions?: Subscription[];
|
|
2622
|
+
cursor?: CursorPaging;
|
|
2623
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
2624
|
+
}
|
|
2625
|
+
interface CursorPagingMetadata {
|
|
2626
|
+
/** Total number of items matching the filter. Available only on the first page of *Search* */
|
|
2627
|
+
total?: number | null;
|
|
2628
|
+
}
|
|
2629
|
+
interface TurnOnSubscriptionAutoRenewalRequest {
|
|
2630
|
+
/** @format GUID */
|
|
2631
|
+
id: string;
|
|
2632
|
+
actionContext: ActionContext;
|
|
2633
|
+
}
|
|
2634
|
+
interface TurnOnSubscriptionAutoRenewalResponse {
|
|
2635
|
+
subscription?: Subscription;
|
|
2636
|
+
}
|
|
2637
|
+
interface SubscriptionAutoRenewalTurnedOn {
|
|
2638
|
+
subscription?: Subscription;
|
|
2639
|
+
actionDetails?: ActionDetails;
|
|
2640
|
+
}
|
|
2641
|
+
interface TurnOffSubscriptionAutoRenewalRequest {
|
|
2642
|
+
/** @format GUID */
|
|
2643
|
+
id: string;
|
|
2644
|
+
actionContext: ActionContext;
|
|
2645
|
+
}
|
|
2646
|
+
interface TurnOffSubscriptionAutoRenewalResponse {
|
|
2647
|
+
subscription?: Subscription;
|
|
2648
|
+
}
|
|
2649
|
+
interface SubscriptionAutoRenewalTurnedOff {
|
|
2650
|
+
subscription?: Subscription;
|
|
2651
|
+
actionDetails?: ActionDetails;
|
|
2652
|
+
}
|
|
2653
|
+
interface MarkLatestInvoiceAsPaidRequest {
|
|
2654
|
+
/**
|
|
2655
|
+
* The ID of the offline subscription to mark as paid its latest invoice
|
|
2656
|
+
* @format GUID
|
|
2657
|
+
*/
|
|
2658
|
+
subscriptionId: string;
|
|
2659
|
+
}
|
|
2660
|
+
interface MarkLatestInvoiceAsPaidResponse {
|
|
2661
|
+
subscription?: Subscription;
|
|
2662
|
+
}
|
|
2663
|
+
interface LatestInvoiceMarkedAsPaid {
|
|
2664
|
+
subscription?: Subscription;
|
|
2665
|
+
}
|
|
2666
|
+
interface MultipleSubscriptionsOnOrdersInvoice {
|
|
2667
|
+
/**
|
|
2668
|
+
* the invoice id of the affected subscription
|
|
2669
|
+
* @format GUID
|
|
2670
|
+
*/
|
|
2671
|
+
invoiceId?: string;
|
|
2672
|
+
/**
|
|
2673
|
+
* the order id of the affected subscription
|
|
2674
|
+
* @format GUID
|
|
2675
|
+
*/
|
|
2676
|
+
orderId?: string;
|
|
2677
|
+
}
|
|
2678
|
+
interface MarkBillingCycleAsPaidRequest {
|
|
2679
|
+
/**
|
|
2680
|
+
* The ID of the subscription to mark as paid its invoice.
|
|
2681
|
+
* @format GUID
|
|
2682
|
+
*/
|
|
2683
|
+
subscriptionId: string;
|
|
2684
|
+
/**
|
|
2685
|
+
* The subscription cycle for which the invoice is to be marked as paid.
|
|
2686
|
+
* If left empty, the most recent cycle will be selected.
|
|
2687
|
+
* @min 1
|
|
2688
|
+
*/
|
|
2689
|
+
paidCycle?: number | null;
|
|
2690
|
+
}
|
|
2691
|
+
interface MarkBillingCycleAsPaidResponse {
|
|
2692
|
+
subscription?: Subscription;
|
|
2693
|
+
}
|
|
2694
|
+
interface GetSubscriptionsStatsRequest {
|
|
2695
|
+
}
|
|
2696
|
+
interface GetSubscriptionsStatsResponse {
|
|
2697
|
+
amountByStatuses?: AmountByStatus[];
|
|
2698
|
+
total?: number;
|
|
2699
|
+
}
|
|
2700
|
+
interface AmountByStatus {
|
|
2701
|
+
status?: SubscriptionStatusEnumSubscriptionStatusWithLiterals;
|
|
2702
|
+
amount?: number;
|
|
2703
|
+
}
|
|
2704
|
+
interface ExtendSubscriptionRequest extends ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
2705
|
+
/** User won't be charged for additional period added on top of subscription end date. */
|
|
2706
|
+
extensionPeriod?: Duration;
|
|
2707
|
+
/**
|
|
2708
|
+
* user will be charged for billing cycles added
|
|
2709
|
+
* @min 1
|
|
2710
|
+
*/
|
|
2711
|
+
extensionBillingCycles?: number;
|
|
2712
|
+
/**
|
|
2713
|
+
* The ID of the subscription to be extended
|
|
2714
|
+
* @format GUID
|
|
2715
|
+
*/
|
|
2716
|
+
id: string;
|
|
2717
|
+
actionContext: ActionContext;
|
|
2718
|
+
}
|
|
2719
|
+
/** @oneof */
|
|
2720
|
+
interface ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
2721
|
+
/** User won't be charged for additional period added on top of subscription end date. */
|
|
2722
|
+
extensionPeriod?: Duration;
|
|
2723
|
+
/**
|
|
2724
|
+
* user will be charged for billing cycles added
|
|
2725
|
+
* @min 1
|
|
2726
|
+
*/
|
|
2727
|
+
extensionBillingCycles?: number;
|
|
2728
|
+
}
|
|
2729
|
+
interface ExtendSubscriptionResponse {
|
|
2730
|
+
/** The now extended subscription */
|
|
2731
|
+
subscription?: Subscription;
|
|
2732
|
+
}
|
|
2733
|
+
interface AllowedActionsRequest {
|
|
2734
|
+
/** @format GUID */
|
|
2735
|
+
id: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* List of additional fields to be included in the response.
|
|
2738
|
+
* @maxSize 1
|
|
2739
|
+
*/
|
|
2740
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
2741
|
+
}
|
|
2742
|
+
declare enum RequestedFields {
|
|
2743
|
+
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
2744
|
+
/** Include unsupported action list, including the reasons for the lack of support */
|
|
2745
|
+
UNSUPPORTED_ACTION = "UNSUPPORTED_ACTION"
|
|
2746
|
+
}
|
|
2747
|
+
/** @enumType */
|
|
2748
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'UNSUPPORTED_ACTION';
|
|
2749
|
+
interface AllowedActionsResponse {
|
|
2750
|
+
/** List of actions that are allowed. */
|
|
2751
|
+
actions?: Action[];
|
|
2752
|
+
/**
|
|
2753
|
+
* List of actions that are not supported, included only if requested. Provides reasons for each unsupported action.
|
|
2754
|
+
* @maxSize 20
|
|
2755
|
+
*/
|
|
2756
|
+
unsupportedActions?: UnsupportedAction[];
|
|
2757
|
+
}
|
|
2758
|
+
interface UnsupportedAction {
|
|
2759
|
+
actionType?: ActionTypeWithLiterals;
|
|
2760
|
+
/**
|
|
2761
|
+
* Provides detailed reasons for the unsupported action. Each `UnsupportedReason` includes a code and a message explaining why the action is not allowed.
|
|
2762
|
+
* @maxSize 20
|
|
2763
|
+
*/
|
|
2764
|
+
reasons?: UnsupportedReason[];
|
|
2765
|
+
}
|
|
2766
|
+
interface UnsupportedReason {
|
|
2767
|
+
code?: string;
|
|
2768
|
+
description?: string | null;
|
|
2769
|
+
}
|
|
2770
|
+
interface ListUpcomingChargesRequest {
|
|
2771
|
+
/**
|
|
2772
|
+
* Subscription id charges to be previewed for
|
|
2773
|
+
* @format GUID
|
|
2774
|
+
*/
|
|
2775
|
+
subscriptionId: string;
|
|
2776
|
+
/** Period of time to provide charged for. If not provided,then only next charge will be returned. */
|
|
2777
|
+
customDuration?: Duration;
|
|
2778
|
+
/**
|
|
2779
|
+
* Date of the next billing cycle so that the upcoming charges will be calculated accordingly.
|
|
2780
|
+
* If not provided, the upcoming charges will be calculated according to the existing next billing date.
|
|
2781
|
+
*/
|
|
2782
|
+
nextBillingDate?: Date | null;
|
|
2783
|
+
}
|
|
2784
|
+
interface ListUpcomingChargesResponse {
|
|
2785
|
+
upcomingCharges?: SubscriptionCharge[];
|
|
2786
|
+
}
|
|
2787
|
+
interface PreviewSubscriptionChargesRequest extends PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
2788
|
+
/** Information about a non-existing subscription. */
|
|
2789
|
+
subscriptionInfo?: SubscriptionInfo;
|
|
2790
|
+
}
|
|
2791
|
+
/** @oneof */
|
|
2792
|
+
interface PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
2793
|
+
/** Information about a non-existing subscription. */
|
|
2794
|
+
subscriptionInfo?: SubscriptionInfo;
|
|
2795
|
+
}
|
|
2796
|
+
/** Subscription information to use for calculating the preview of charges for a subscription. */
|
|
2797
|
+
interface SubscriptionInfo {
|
|
2798
|
+
billingSettings?: BillingSettings;
|
|
2799
|
+
items?: Item[];
|
|
2800
|
+
startDate?: Date | null;
|
|
2801
|
+
}
|
|
2802
|
+
interface PreviewSubscriptionChargesResponse {
|
|
2803
|
+
/** Charges for subscription. */
|
|
2804
|
+
charges?: Charge[];
|
|
2805
|
+
}
|
|
2806
|
+
/** Represents a charge applicable to a subscription. */
|
|
2807
|
+
interface Charge {
|
|
2808
|
+
/** The cycle number from which the charge starts. */
|
|
2809
|
+
cycleFrom?: number;
|
|
2810
|
+
/** The number of cycles for which the charge is applicable. */
|
|
2811
|
+
cycleCount?: number | null;
|
|
2812
|
+
/** The breakdown of the charge */
|
|
2813
|
+
totals?: Totals;
|
|
2814
|
+
/** The billing date from which the charge starts */
|
|
2815
|
+
cycleBillingDate?: Date | null;
|
|
2816
|
+
}
|
|
2817
|
+
interface PreviewSubscriptionsChargesRequest {
|
|
2818
|
+
/**
|
|
2819
|
+
* Information required to calculate the preview charges for the subscriptions, including an identifier.
|
|
2820
|
+
* @minSize 1
|
|
2821
|
+
* @maxSize 10
|
|
2822
|
+
*/
|
|
2823
|
+
subscriptionsBillingDetails?: SubscriptionBillingDetails[];
|
|
2824
|
+
/**
|
|
2825
|
+
* Specifies the number of upcoming billing charges to preview for all subscriptions in the order.
|
|
2826
|
+
* For instance, if a subscription costs $10 for the first 3 cycles, $12 for cycles 4 through 7,
|
|
2827
|
+
* $15 for cycles 8 through 10, and $20 for cycle 11 onwards:
|
|
2828
|
+
* - Sending "1" will calculate and return charges for cycles 4 through 7 since it's the first charge in the future.
|
|
2829
|
+
* - Sending "2" will provide a response with charges for cycles 4 through 7 and cycles 8 through 10.
|
|
2830
|
+
* - Sending "3" or more will include totals for cycles 4 through 7, cycles 8 through 10, and from cycle 11 onwards.
|
|
2831
|
+
* If no value is provided, the response will include charges for all upcoming cycles, including the existing one,
|
|
2832
|
+
* in this case, charges for cycle 1 through 3.
|
|
2833
|
+
* If there is a single charge for a subscription, meaning that subscription price remains consistent across all cycles,
|
|
2834
|
+
* then even if future_charges_count is set, it will be ignored and the only charge this subscription has will be returned.
|
|
2835
|
+
* @min 1
|
|
2836
|
+
* @max 10
|
|
2837
|
+
*/
|
|
2838
|
+
numberOfNextRecurringCharges?: number | null;
|
|
2839
|
+
}
|
|
2840
|
+
interface SubscriptionBillingDetails {
|
|
2841
|
+
/**
|
|
2842
|
+
* External identifier of the subscription
|
|
2843
|
+
* @format GUID
|
|
2844
|
+
*/
|
|
2845
|
+
externalId?: string | null;
|
|
2846
|
+
/** Billing details parameters including schedule, currency, etc. */
|
|
2847
|
+
billingSettings?: BillingSettings;
|
|
2848
|
+
/**
|
|
2849
|
+
* Items, minSize is 1, maxSize is 100
|
|
2850
|
+
* @minSize 1
|
|
2851
|
+
* @maxSize 100
|
|
2852
|
+
*/
|
|
2853
|
+
items?: Item[];
|
|
2854
|
+
/** Subscription start date, now if not set */
|
|
2855
|
+
startDate?: Date | null;
|
|
2856
|
+
/** Shipping address associated with subscription. At the moment used only for payments. Optional. */
|
|
2857
|
+
shippingAddress?: FullAddressDetails;
|
|
2858
|
+
}
|
|
2859
|
+
interface PreviewSubscriptionsChargesResponse {
|
|
2860
|
+
/** Charges for the subscriptions, including an identifier. */
|
|
2861
|
+
subscriptionsCharges?: SubscriptionCharges[];
|
|
2862
|
+
}
|
|
2863
|
+
interface SubscriptionCharges {
|
|
2864
|
+
/**
|
|
2865
|
+
* External identifier of the subscription
|
|
2866
|
+
* @format GUID
|
|
2867
|
+
*/
|
|
2868
|
+
externalId?: string | null;
|
|
2869
|
+
/** Charges for subscription. */
|
|
2870
|
+
charges?: Charge[];
|
|
2871
|
+
}
|
|
2872
|
+
interface CreateSubscriptionForOrderRequest {
|
|
2873
|
+
/** Subscription needs to be created */
|
|
2874
|
+
subscription?: Subscription;
|
|
2875
|
+
/**
|
|
2876
|
+
* Optional unique identifier for this request in order to prevent subscription duplications
|
|
2877
|
+
* @format GUID
|
|
2878
|
+
*/
|
|
2879
|
+
idempotencyKey?: string | null;
|
|
2880
|
+
}
|
|
2881
|
+
interface CreateSubscriptionForOrderResponse {
|
|
2882
|
+
/** Created subscription */
|
|
2883
|
+
subscription?: Subscription;
|
|
2884
|
+
/** Non-persistent invoice */
|
|
2885
|
+
invoice?: Invoice;
|
|
2886
|
+
}
|
|
2887
|
+
/** An invoice includes information about the subscription and the customer. */
|
|
2888
|
+
interface Invoice {
|
|
2889
|
+
/**
|
|
2890
|
+
* Invoice ID.
|
|
2891
|
+
* @format GUID
|
|
2892
|
+
* @readonly
|
|
2893
|
+
*/
|
|
2894
|
+
id?: string | null;
|
|
2895
|
+
/**
|
|
2896
|
+
* Date and time the invoice was created.
|
|
2897
|
+
* @readonly
|
|
2898
|
+
*/
|
|
2899
|
+
createdDate?: Date | null;
|
|
2900
|
+
/**
|
|
2901
|
+
* Date and time the invoice was last updated.
|
|
2902
|
+
* @readonly
|
|
2903
|
+
*/
|
|
2904
|
+
updatedDate?: Date | null;
|
|
2905
|
+
/**
|
|
2906
|
+
* Revision number, which increments by 1 each time the invoice is updated.
|
|
2907
|
+
* To prevent conflicting changes,
|
|
2908
|
+
* the current revision must be passed when updating the invoice.
|
|
2909
|
+
*
|
|
2910
|
+
* Ignored when creating a invoice.
|
|
2911
|
+
* @readonly
|
|
2912
|
+
*/
|
|
2913
|
+
revision?: string | null;
|
|
2914
|
+
/** Information about the invoice origin. */
|
|
2915
|
+
origin?: BusinessOriginData;
|
|
2916
|
+
/**
|
|
2917
|
+
* Invoice status.
|
|
2918
|
+
*
|
|
2919
|
+
* + `"UNKNOWN"`: There is no information about the invoice status.
|
|
2920
|
+
* + `"OPEN"`: BASS has created the invoice but hasn't initiated the payment process.
|
|
2921
|
+
* + `"PAID"`: The customer has successfully paid for the invoice.
|
|
2922
|
+
* + `"ATTEMPT_FAILED"`: The payment process has started and there has been at least one unsuccessful payment attempt.
|
|
2923
|
+
* + `"FAILED"`: The payment process has failed and there are no more retries.
|
|
2924
|
+
* + `"CANCELED"`: The payment process has been stopped because the related subscription has been canceled.
|
|
2925
|
+
* @readonly
|
|
2926
|
+
*/
|
|
2927
|
+
status?: InvoiceStatusWithLiterals;
|
|
2928
|
+
/**
|
|
2929
|
+
* 3-letter currency code of the invoice in
|
|
2930
|
+
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
2931
|
+
* @format CURRENCY
|
|
2932
|
+
*/
|
|
2933
|
+
currency?: string;
|
|
2934
|
+
/** Information about the customer. */
|
|
2935
|
+
customer?: Customer;
|
|
2936
|
+
/**
|
|
2937
|
+
* Whether the payment is processed through Wix and whether the customer must provide some input.
|
|
2938
|
+
*
|
|
2939
|
+
* + `"UNKNOWN"`: There is no information about the collection method.
|
|
2940
|
+
* + `"AUTO_CHARGE"`: The customer pays automatically through Wix.
|
|
2941
|
+
* + `"SEND_INVOICE"`: The customer pays through Wix, but some manual input is required.
|
|
2942
|
+
* + `"OFFLINE"`: The customer pays outside of Wix.
|
|
2943
|
+
*/
|
|
2944
|
+
collectionMethod?: CollectionMethodWithLiterals;
|
|
2945
|
+
/**
|
|
2946
|
+
* ID of the
|
|
2947
|
+
* [payment method](https://bo.wix.com/wix-docs/rest/wix-cashier/settings/payment-method-type/payment-method-type-object).
|
|
2948
|
+
* Not available for the first payment of a subscription and all offline
|
|
2949
|
+
* payments.
|
|
2950
|
+
* @format GUID
|
|
2951
|
+
*/
|
|
2952
|
+
paymentMethodId?: string | null;
|
|
2953
|
+
/**
|
|
2954
|
+
* Cashier [Order ID](https://dev.wix.com/docs/rest/payments/wix-cashier/pay/order#order-object)
|
|
2955
|
+
* for the corresponding payment.
|
|
2956
|
+
* @format GUID
|
|
2957
|
+
* @readonly
|
|
2958
|
+
*/
|
|
2959
|
+
paymentOrderId?: string | null;
|
|
2960
|
+
/** Information about a discount. Available only for invoices that include a discount. */
|
|
2961
|
+
discount?: InvoiceDiscount;
|
|
2962
|
+
/** Billing address. */
|
|
2963
|
+
billingAddress?: FullAddressDetails;
|
|
2964
|
+
/** Shipping address. Available only for `"PHYSICAL"` line items. */
|
|
2965
|
+
shippingAddress?: FullAddressDetails;
|
|
2966
|
+
/**
|
|
2967
|
+
* Shipping fee in `0.00` format.
|
|
2968
|
+
* @format DECIMAL_VALUE
|
|
2969
|
+
*/
|
|
2970
|
+
shippingFee?: string | null;
|
|
2971
|
+
/**
|
|
2972
|
+
* Information about the invoice's totals.
|
|
2973
|
+
* @readonly
|
|
2974
|
+
*/
|
|
2975
|
+
totals?: Totals;
|
|
2976
|
+
/** Line items belonging to the invoice. */
|
|
2977
|
+
invoiceItems?: InvoiceItem[];
|
|
2978
|
+
/**
|
|
2979
|
+
* Whether the invoice is used to validate payment details.
|
|
2980
|
+
*
|
|
2981
|
+
* + `true`: BASS uses the invoice to test payment details. Relevant for free trials. Ensures that Wix can collect the payment of the first billing cycle.
|
|
2982
|
+
* + `false`: Standard invoice.
|
|
2983
|
+
*/
|
|
2984
|
+
isAuthorization?: boolean | null;
|
|
2985
|
+
/** Whether the invoice's `totals.totalPrice` includes tax. */
|
|
2986
|
+
isTaxInclusive?: boolean | null;
|
|
2987
|
+
/** Details of the latest payment attempt. */
|
|
2988
|
+
latestPaymentAttempt?: LatestPaymentAttempt;
|
|
2989
|
+
/** List of charges and credits that adjust the invoice's `totals.totalPrice`. */
|
|
2990
|
+
adjustments?: PriceAdjustment[];
|
|
2991
|
+
/**
|
|
2992
|
+
* Invoice Number.
|
|
2993
|
+
* @maxLength 10
|
|
2994
|
+
* @readonly
|
|
2995
|
+
*/
|
|
2996
|
+
invoiceNumber?: string | null;
|
|
2997
|
+
/**
|
|
2998
|
+
* Shipping charges for the invoice.
|
|
2999
|
+
* Supports only one discount without cycles.
|
|
3000
|
+
* Discounts with cycles (repeated discounts across different billing cycles) are not supported for shipping
|
|
3001
|
+
*/
|
|
3002
|
+
shippingCharges?: InvoiceShippingCharges;
|
|
3003
|
+
/** Information about the invoice tax */
|
|
3004
|
+
taxData?: TaxData;
|
|
3005
|
+
/** Business address. */
|
|
3006
|
+
businessAddress?: Address;
|
|
3007
|
+
/**
|
|
3008
|
+
* ID of the billing order that created this invoice.
|
|
3009
|
+
* @format GUID
|
|
3010
|
+
*/
|
|
3011
|
+
orderId?: string | null;
|
|
3012
|
+
/**
|
|
3013
|
+
* Platform origin the invoice is originated from.
|
|
3014
|
+
* @format GUID
|
|
3015
|
+
*/
|
|
3016
|
+
platformOriginAppId?: string | null;
|
|
3017
|
+
/**
|
|
3018
|
+
* Refund information, provided that there are refunds for this invoice.
|
|
3019
|
+
* @readonly
|
|
3020
|
+
*/
|
|
3021
|
+
refundInfo?: RefundInfo;
|
|
3022
|
+
}
|
|
3023
|
+
interface BusinessOriginData {
|
|
3024
|
+
/**
|
|
3025
|
+
* ID of the app for which BASS has created the invoice. For example,
|
|
3026
|
+
* `"1380b703-ce81-ff05-f115-39571d94dfcd"` for the Wix eCommerce app.
|
|
3027
|
+
* @format GUID
|
|
3028
|
+
*/
|
|
3029
|
+
appId?: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* [Instance ID](https://dev.wix.com/api/rest/app-management/apps/app-instance/get-app-instance)
|
|
3032
|
+
* of the app for which BASS has created the invoice.
|
|
3033
|
+
* @format GUID
|
|
3034
|
+
*/
|
|
3035
|
+
instanceId?: string;
|
|
3036
|
+
/**
|
|
3037
|
+
* ID of the entity that triggered the invoice creation. For example, the ID of a
|
|
3038
|
+
* [pricing plan](https://dev.wix.com/docs/rest/payments/pricing-plans/pricing-plans/plan#plan-object).
|
|
3039
|
+
* @format GUID
|
|
3040
|
+
*/
|
|
3041
|
+
entityId?: string;
|
|
3042
|
+
}
|
|
3043
|
+
declare enum InvoiceStatus {
|
|
3044
|
+
UNKNOWN = "UNKNOWN",
|
|
3045
|
+
OPEN = "OPEN",
|
|
3046
|
+
PAID = "PAID",
|
|
3047
|
+
FAILED = "FAILED",
|
|
3048
|
+
ATTEMPT_FAILED = "ATTEMPT_FAILED",
|
|
3049
|
+
CANCELED = "CANCELED",
|
|
3050
|
+
REFUNDED = "REFUNDED"
|
|
3051
|
+
}
|
|
3052
|
+
/** @enumType */
|
|
3053
|
+
type InvoiceStatusWithLiterals = InvoiceStatus | 'UNKNOWN' | 'OPEN' | 'PAID' | 'FAILED' | 'ATTEMPT_FAILED' | 'CANCELED' | 'REFUNDED';
|
|
3054
|
+
declare enum CollectionMethod {
|
|
3055
|
+
UNKNOWN = "UNKNOWN",
|
|
3056
|
+
AUTO_CHARGE = "AUTO_CHARGE",
|
|
3057
|
+
OFFLINE = "OFFLINE",
|
|
3058
|
+
SEND_INVOICE = "SEND_INVOICE"
|
|
3059
|
+
}
|
|
3060
|
+
/** @enumType */
|
|
3061
|
+
type CollectionMethodWithLiterals = CollectionMethod | 'UNKNOWN' | 'AUTO_CHARGE' | 'OFFLINE' | 'SEND_INVOICE';
|
|
3062
|
+
declare enum CreationMode {
|
|
3063
|
+
UNKNOWN = "UNKNOWN",
|
|
3064
|
+
SYSTEM = "SYSTEM",
|
|
3065
|
+
MANUAL = "MANUAL"
|
|
3066
|
+
}
|
|
3067
|
+
/** @enumType */
|
|
3068
|
+
type CreationModeWithLiterals = CreationMode | 'UNKNOWN' | 'SYSTEM' | 'MANUAL';
|
|
3069
|
+
interface LatestPaymentAttempt {
|
|
3070
|
+
/**
|
|
3071
|
+
* ID of the latest payment attempt.
|
|
3072
|
+
* @format GUID
|
|
3073
|
+
* @readonly
|
|
3074
|
+
*/
|
|
3075
|
+
paymentAttemptId?: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* Date and time of the latest payment attempt in `YYYY-MM-DDThh:mm.sssZ` format.
|
|
3078
|
+
* @readonly
|
|
3079
|
+
*/
|
|
3080
|
+
dateAttempt?: Date | null;
|
|
3081
|
+
/** Number of the latest payment attempt. */
|
|
3082
|
+
attemptNumber?: number;
|
|
3083
|
+
/**
|
|
3084
|
+
* Status of the latest payment attempt.
|
|
3085
|
+
*
|
|
3086
|
+
* + `"UNKNOWN"`: There is no information about the status of the latest payment attempt.
|
|
3087
|
+
* + `"SCHEDULED"`: The latest payment attempt is scheduled but hasn't started yet.
|
|
3088
|
+
* + `"IN_PROGRESS"`: The latest payment attempt is in progress.
|
|
3089
|
+
* + `"PAID"`: The latest payment attempt resulted in a successful payment.
|
|
3090
|
+
* + `"DECLINED"`: The latest payment attempt has been declined.
|
|
3091
|
+
* + `"TECHNICAL_FAILURE"`: The latest payment attempt couldn't be process due to a technical failure.
|
|
3092
|
+
* + `"CANCELED"`: The latest payment attempt has been canceled by BASS.
|
|
3093
|
+
* @readonly
|
|
3094
|
+
*/
|
|
3095
|
+
status?: PaymentAttemptStatusWithLiterals;
|
|
3096
|
+
/**
|
|
3097
|
+
* Whether BASS tries to collect the payment another time. Available only when
|
|
3098
|
+
* `latestPaymentAttempt.status` is set to `"DECLINED"`.
|
|
3099
|
+
*/
|
|
3100
|
+
retryable?: boolean;
|
|
3101
|
+
}
|
|
3102
|
+
declare enum PaymentAttemptStatus {
|
|
3103
|
+
UNKNOWN = "UNKNOWN",
|
|
3104
|
+
SCHEDULED = "SCHEDULED",
|
|
3105
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
3106
|
+
PAID = "PAID",
|
|
3107
|
+
DECLINED = "DECLINED",
|
|
3108
|
+
TECHNICAL_FAILURE = "TECHNICAL_FAILURE",
|
|
3109
|
+
CANCELED = "CANCELED",
|
|
3110
|
+
PENDING = "PENDING"
|
|
3111
|
+
}
|
|
3112
|
+
/** @enumType */
|
|
3113
|
+
type PaymentAttemptStatusWithLiterals = PaymentAttemptStatus | 'UNKNOWN' | 'SCHEDULED' | 'IN_PROGRESS' | 'PAID' | 'DECLINED' | 'TECHNICAL_FAILURE' | 'CANCELED' | 'PENDING';
|
|
3114
|
+
interface PriceAdjustment extends PriceAdjustmentAdjustmentTypeOneOf {
|
|
3115
|
+
/** Adjustment that increases the price. */
|
|
3116
|
+
charge?: PriceAdjustmentValue;
|
|
3117
|
+
/** Adjustment that lowers the price. */
|
|
3118
|
+
credit?: PriceAdjustmentValue;
|
|
3119
|
+
}
|
|
3120
|
+
/** @oneof */
|
|
3121
|
+
interface PriceAdjustmentAdjustmentTypeOneOf {
|
|
3122
|
+
/** Adjustment that increases the price. */
|
|
3123
|
+
charge?: PriceAdjustmentValue;
|
|
3124
|
+
/** Adjustment that lowers the price. */
|
|
3125
|
+
credit?: PriceAdjustmentValue;
|
|
3126
|
+
}
|
|
3127
|
+
interface PriceAdjustmentValue extends PriceAdjustmentValueAdjustmentValueTypeOneOf {
|
|
3128
|
+
/**
|
|
3129
|
+
* Absolute amount that adjusts the price.
|
|
3130
|
+
*
|
|
3131
|
+
* Min: `0.01`
|
|
3132
|
+
* @decimalValue options { gt:0.00 }
|
|
3133
|
+
*/
|
|
3134
|
+
amount?: string;
|
|
3135
|
+
/**
|
|
3136
|
+
* Relative factor that adjusts the price. For example, setting
|
|
3137
|
+
* `multiplier` to:
|
|
3138
|
+
* - `0.50` results in a price adjustment of 50% of the original value.
|
|
3139
|
+
* - `0.75` results in a price adjustment of 75% of the original value.
|
|
3140
|
+
* - `1.00` results in a price adjustment of 100% of the original value.
|
|
3141
|
+
*
|
|
3142
|
+
* Min: `0.01`
|
|
3143
|
+
* Max: `1.00`
|
|
3144
|
+
* @decimalValue options { gt:0.00, lte:1 }
|
|
3145
|
+
*/
|
|
3146
|
+
multiplier?: string;
|
|
3147
|
+
}
|
|
3148
|
+
/** @oneof */
|
|
3149
|
+
interface PriceAdjustmentValueAdjustmentValueTypeOneOf {
|
|
3150
|
+
/**
|
|
3151
|
+
* Absolute amount that adjusts the price.
|
|
3152
|
+
*
|
|
3153
|
+
* Min: `0.01`
|
|
3154
|
+
* @decimalValue options { gt:0.00 }
|
|
3155
|
+
*/
|
|
3156
|
+
amount?: string;
|
|
3157
|
+
/**
|
|
3158
|
+
* Relative factor that adjusts the price. For example, setting
|
|
3159
|
+
* `multiplier` to:
|
|
3160
|
+
* - `0.50` results in a price adjustment of 50% of the original value.
|
|
3161
|
+
* - `0.75` results in a price adjustment of 75% of the original value.
|
|
3162
|
+
* - `1.00` results in a price adjustment of 100% of the original value.
|
|
3163
|
+
*
|
|
3164
|
+
* Min: `0.01`
|
|
3165
|
+
* Max: `1.00`
|
|
3166
|
+
* @decimalValue options { gt:0.00, lte:1 }
|
|
3167
|
+
*/
|
|
3168
|
+
multiplier?: string;
|
|
3169
|
+
}
|
|
3170
|
+
interface InvoiceShippingCharges {
|
|
3171
|
+
/**
|
|
3172
|
+
* Amount of the shipping fee in `0.00` format.
|
|
3173
|
+
*
|
|
3174
|
+
* Min: `0.01`
|
|
3175
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
3176
|
+
*/
|
|
3177
|
+
amount?: string;
|
|
3178
|
+
/** Tax of the shipping fee */
|
|
3179
|
+
tax?: Tax;
|
|
3180
|
+
/** Information about the shipping charges tax data */
|
|
3181
|
+
taxData?: ItemTaxData;
|
|
3182
|
+
discount?: Discount;
|
|
3183
|
+
}
|
|
3184
|
+
/** Tax data from all items */
|
|
3185
|
+
interface TaxData {
|
|
3186
|
+
/** Aggregated tax data from all items */
|
|
3187
|
+
taxSummary?: TaxSummary;
|
|
3188
|
+
}
|
|
3189
|
+
interface TaxSummary {
|
|
3190
|
+
/**
|
|
3191
|
+
* Aggregated from tax_breakdowns with exemptions excluded from amount
|
|
3192
|
+
* @format DECIMAL_VALUE
|
|
3193
|
+
*/
|
|
3194
|
+
aggregatedTaxAmount?: string;
|
|
3195
|
+
/**
|
|
3196
|
+
* Array of each tax applied, grouped by `"jurisdiction"`, `"jurisdiction_type"`, `"tax_type"`, `"tax_name"` and `"tax_rate"`.
|
|
3197
|
+
* @maxSize 50
|
|
3198
|
+
*/
|
|
3199
|
+
aggregatedTaxBreakdowns?: AggregatedTaxBreakdown[];
|
|
3200
|
+
}
|
|
3201
|
+
interface AggregatedTaxBreakdown {
|
|
3202
|
+
/**
|
|
3203
|
+
* Name of the tax that was calculated.
|
|
3204
|
+
* @maxLength 200
|
|
3205
|
+
*/
|
|
3206
|
+
taxName?: string;
|
|
3207
|
+
/**
|
|
3208
|
+
* Type of tax that was calculated.
|
|
3209
|
+
* @maxLength 200
|
|
3210
|
+
*/
|
|
3211
|
+
taxType?: string;
|
|
1917
3212
|
/**
|
|
1918
|
-
*
|
|
1919
|
-
* @
|
|
3213
|
+
* Jurisdiction that taxes were calculated for.
|
|
3214
|
+
* @maxLength 200
|
|
1920
3215
|
*/
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
3216
|
+
jurisdiction?: string;
|
|
3217
|
+
/** Type of jurisdiction that taxes were calculated for. */
|
|
3218
|
+
jurisdictionType?: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `"0.1000"` and 200% tax is `"2.0000"`.
|
|
3221
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
3222
|
+
*/
|
|
3223
|
+
rate?: string;
|
|
3224
|
+
/**
|
|
3225
|
+
* Total amount of this tax for this jurisdiction.
|
|
3226
|
+
* @format DECIMAL_VALUE
|
|
3227
|
+
* @decimalValue options { maxScale:4 }
|
|
3228
|
+
*/
|
|
3229
|
+
aggregatedTaxAmount?: string;
|
|
1925
3230
|
}
|
|
1926
|
-
interface
|
|
1927
|
-
|
|
3231
|
+
interface RefundInfo {
|
|
3232
|
+
/**
|
|
3233
|
+
* If refunds are present, this will include the total amount refunded.
|
|
3234
|
+
* @format DECIMAL_VALUE
|
|
3235
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
3236
|
+
*/
|
|
3237
|
+
totalRefundAmount?: string | null;
|
|
3238
|
+
/**
|
|
3239
|
+
* The refunds that have been applied to this invoice
|
|
3240
|
+
* @maxSize 20
|
|
3241
|
+
*/
|
|
3242
|
+
refunds?: Refund[];
|
|
1928
3243
|
}
|
|
1929
|
-
interface
|
|
3244
|
+
interface Refund {
|
|
1930
3245
|
/**
|
|
1931
|
-
*
|
|
3246
|
+
* refund amount
|
|
3247
|
+
* @format DECIMAL_VALUE
|
|
3248
|
+
* @decimalValue options { gt:0.00, maxScale:2 }
|
|
3249
|
+
*/
|
|
3250
|
+
amount?: string;
|
|
3251
|
+
/** the date of the refund transaction */
|
|
3252
|
+
transactionDate?: Date | null;
|
|
3253
|
+
/**
|
|
3254
|
+
* the transaction id associated with this refund
|
|
1932
3255
|
* @format GUID
|
|
1933
3256
|
*/
|
|
1934
|
-
|
|
3257
|
+
transactionId?: string;
|
|
3258
|
+
/** a reason for the refund */
|
|
3259
|
+
reason?: RefundReasonWithLiterals;
|
|
1935
3260
|
/**
|
|
1936
|
-
*
|
|
1937
|
-
*
|
|
1938
|
-
* @min 1
|
|
3261
|
+
* a description of the refund - this is a free text field for the initiator
|
|
3262
|
+
* @maxLength 255
|
|
1939
3263
|
*/
|
|
1940
|
-
|
|
3264
|
+
description?: string | null;
|
|
1941
3265
|
}
|
|
1942
|
-
|
|
1943
|
-
|
|
3266
|
+
declare enum RefundReason {
|
|
3267
|
+
UNKNOWN_REFUND_REASON = "UNKNOWN_REFUND_REASON",
|
|
3268
|
+
DUPLICATE_CHARGE = "DUPLICATE_CHARGE",
|
|
3269
|
+
FRAUDULENT = "FRAUDULENT",
|
|
3270
|
+
CUSTOMER_REQUEST = "CUSTOMER_REQUEST",
|
|
3271
|
+
PROVISION_FAILED = "PROVISION_FAILED",
|
|
3272
|
+
OTHER = "OTHER"
|
|
1944
3273
|
}
|
|
1945
|
-
|
|
3274
|
+
/** @enumType */
|
|
3275
|
+
type RefundReasonWithLiterals = RefundReason | 'UNKNOWN_REFUND_REASON' | 'DUPLICATE_CHARGE' | 'FRAUDULENT' | 'CUSTOMER_REQUEST' | 'PROVISION_FAILED' | 'OTHER';
|
|
3276
|
+
interface Task {
|
|
3277
|
+
key?: TaskKey;
|
|
3278
|
+
executeAt?: Date | null;
|
|
3279
|
+
payload?: string | null;
|
|
1946
3280
|
}
|
|
1947
|
-
interface
|
|
1948
|
-
|
|
1949
|
-
|
|
3281
|
+
interface TaskKey {
|
|
3282
|
+
appId?: string;
|
|
3283
|
+
instanceId?: string;
|
|
3284
|
+
subjectId?: string | null;
|
|
1950
3285
|
}
|
|
1951
|
-
interface
|
|
1952
|
-
|
|
1953
|
-
|
|
3286
|
+
interface TaskAction extends TaskActionActionOneOf {
|
|
3287
|
+
complete?: Complete;
|
|
3288
|
+
cancel?: Cancel;
|
|
3289
|
+
reschedule?: Reschedule;
|
|
1954
3290
|
}
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
3291
|
+
/** @oneof */
|
|
3292
|
+
interface TaskActionActionOneOf {
|
|
3293
|
+
complete?: Complete;
|
|
3294
|
+
cancel?: Cancel;
|
|
3295
|
+
reschedule?: Reschedule;
|
|
3296
|
+
}
|
|
3297
|
+
interface Complete {
|
|
3298
|
+
}
|
|
3299
|
+
interface Cancel {
|
|
3300
|
+
}
|
|
3301
|
+
interface Reschedule {
|
|
3302
|
+
executeAt?: Date | null;
|
|
3303
|
+
payload?: string | null;
|
|
3304
|
+
}
|
|
3305
|
+
interface V1SubscriptionEvent extends V1SubscriptionEventEventOneOf {
|
|
3306
|
+
/** A subscriptions was created */
|
|
3307
|
+
created?: V1SubscriptionCreated;
|
|
3308
|
+
/** Subscription is considered active and will be visible to site owners and members */
|
|
3309
|
+
activated?: V1SubscriptionActivated;
|
|
3310
|
+
/**
|
|
3311
|
+
* Subscription was canceled either by cancellation request with requested expiration date NOW or by payment provider.
|
|
3312
|
+
* If cancelled by payment provider subscription will be valid until the date calculated depending on how many cycles it was already paid for.
|
|
3313
|
+
*/
|
|
3314
|
+
canceled?: V1SubscriptionCanceled;
|
|
3315
|
+
/** Subscription was updated. Currently the only possible change is valid_until date */
|
|
3316
|
+
updated?: V1SubscriptionUpdated;
|
|
3317
|
+
/** Subscription cycle has started. Currently the cycle starts when a payment is received. */
|
|
3318
|
+
cycleTriggered?: SubscriptionCycleTriggered;
|
|
3319
|
+
/** Offline subscription was marked as paid */
|
|
3320
|
+
markedAsPaid?: SubscriptionMarkedAsPaid;
|
|
3321
|
+
/**
|
|
3322
|
+
* Subscription cancellation for the future date was requested.
|
|
3323
|
+
* Subscription will stay in pending cancellation status until the date calculated depending on free trial and the next payment date.
|
|
3324
|
+
*/
|
|
3325
|
+
cancellationRequested?: SubscriptionCancellationRequested;
|
|
3326
|
+
/** Subscription and it's payment schedule (for recurring) was suspended */
|
|
3327
|
+
suspended?: SubscriptionSuspended;
|
|
3328
|
+
/** Previously suspended subscription and it's payment schedule (for recurring) was resumed */
|
|
3329
|
+
resumed?: V1SubscriptionResumed;
|
|
3330
|
+
/** Subscription expired according to valid_until expiration date. */
|
|
3331
|
+
expired?: SubscriptionExpired;
|
|
3332
|
+
/** Subscription initial purchase completed */
|
|
3333
|
+
initialPurchaseCompleted?: V1SubscriptionInitialPurchaseCompleted;
|
|
3334
|
+
}
|
|
3335
|
+
/** @oneof */
|
|
3336
|
+
interface V1SubscriptionEventEventOneOf {
|
|
3337
|
+
/** A subscriptions was created */
|
|
3338
|
+
created?: V1SubscriptionCreated;
|
|
3339
|
+
/** Subscription is considered active and will be visible to site owners and members */
|
|
3340
|
+
activated?: V1SubscriptionActivated;
|
|
3341
|
+
/**
|
|
3342
|
+
* Subscription was canceled either by cancellation request with requested expiration date NOW or by payment provider.
|
|
3343
|
+
* If cancelled by payment provider subscription will be valid until the date calculated depending on how many cycles it was already paid for.
|
|
3344
|
+
*/
|
|
3345
|
+
canceled?: V1SubscriptionCanceled;
|
|
3346
|
+
/** Subscription was updated. Currently the only possible change is valid_until date */
|
|
3347
|
+
updated?: V1SubscriptionUpdated;
|
|
3348
|
+
/** Subscription cycle has started. Currently the cycle starts when a payment is received. */
|
|
3349
|
+
cycleTriggered?: SubscriptionCycleTriggered;
|
|
3350
|
+
/** Offline subscription was marked as paid */
|
|
3351
|
+
markedAsPaid?: SubscriptionMarkedAsPaid;
|
|
3352
|
+
/**
|
|
3353
|
+
* Subscription cancellation for the future date was requested.
|
|
3354
|
+
* Subscription will stay in pending cancellation status until the date calculated depending on free trial and the next payment date.
|
|
3355
|
+
*/
|
|
3356
|
+
cancellationRequested?: SubscriptionCancellationRequested;
|
|
3357
|
+
/** Subscription and it's payment schedule (for recurring) was suspended */
|
|
3358
|
+
suspended?: SubscriptionSuspended;
|
|
3359
|
+
/** Previously suspended subscription and it's payment schedule (for recurring) was resumed */
|
|
3360
|
+
resumed?: V1SubscriptionResumed;
|
|
3361
|
+
/** Subscription expired according to valid_until expiration date. */
|
|
3362
|
+
expired?: SubscriptionExpired;
|
|
3363
|
+
/** Subscription initial purchase completed */
|
|
3364
|
+
initialPurchaseCompleted?: V1SubscriptionInitialPurchaseCompleted;
|
|
3365
|
+
}
|
|
3366
|
+
interface V1SubscriptionCreated {
|
|
3367
|
+
subscription?: V1Subscription;
|
|
3368
|
+
}
|
|
3369
|
+
interface V1Subscription {
|
|
3370
|
+
/**
|
|
3371
|
+
* ID of the subscription
|
|
3372
|
+
* @format GUID
|
|
3373
|
+
* @readonly
|
|
3374
|
+
*/
|
|
3375
|
+
id?: string;
|
|
1958
3376
|
/**
|
|
1959
|
-
*
|
|
1960
|
-
* @
|
|
3377
|
+
* ID of the app which created the subscription
|
|
3378
|
+
* @format GUID
|
|
1961
3379
|
*/
|
|
1962
|
-
|
|
3380
|
+
wixAppId?: string;
|
|
1963
3381
|
/**
|
|
1964
|
-
*
|
|
3382
|
+
* Instance ID of the Subscriptions app
|
|
1965
3383
|
* @format GUID
|
|
1966
3384
|
*/
|
|
1967
|
-
|
|
1968
|
-
actionContext: ActionContext;
|
|
1969
|
-
}
|
|
1970
|
-
/** @oneof */
|
|
1971
|
-
interface ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
1972
|
-
/** User won't be charged for additional period added on top of subscription end date. */
|
|
1973
|
-
extensionPeriod?: Duration;
|
|
3385
|
+
tenantId?: string;
|
|
1974
3386
|
/**
|
|
1975
|
-
*
|
|
1976
|
-
* @
|
|
3387
|
+
* ID of entity in app (e.g. a cart in stores/order in paid plans)
|
|
3388
|
+
* @format GUID
|
|
1977
3389
|
*/
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
/**
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
3390
|
+
originEntityId?: string;
|
|
3391
|
+
/** Site member or a contact who bought the subscription */
|
|
3392
|
+
subscriber?: Subscriber;
|
|
3393
|
+
/**
|
|
3394
|
+
* Wix Pay order ID, is empty for free subscriptions
|
|
3395
|
+
* @format GUID
|
|
3396
|
+
*/
|
|
3397
|
+
wixPayOrderId?: string | null;
|
|
3398
|
+
/**
|
|
3399
|
+
* Subscription name (e.g. a product or subscription package name)
|
|
3400
|
+
* @maxLength 150
|
|
3401
|
+
*/
|
|
3402
|
+
name?: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* Optional additional subscription description
|
|
3405
|
+
* @maxLength 500
|
|
3406
|
+
*/
|
|
3407
|
+
description?: string;
|
|
3408
|
+
/** Amount to be paid for a single scheduled payment */
|
|
3409
|
+
price?: Money;
|
|
3410
|
+
/** True if the subscription is recurring, false for a single payment subscription */
|
|
3411
|
+
recurring?: boolean;
|
|
3412
|
+
/** Online (paid by subscriber using wix pay) or offline (need to manually mark as paid) */
|
|
3413
|
+
subscriptionType?: SubscriptionTypeWithLiterals;
|
|
3414
|
+
/** Active, expired, canceled, etc. */
|
|
3415
|
+
subscriptionStatus?: V1SubscriptionStatusEnumSubscriptionStatusWithLiterals;
|
|
3416
|
+
/** Subscription start date (may differ from creation date) */
|
|
3417
|
+
validFrom?: Date | null;
|
|
3418
|
+
/** Subscription expiration date */
|
|
3419
|
+
validUntil?: Date | null;
|
|
3420
|
+
/** Status of last payment associated with this subscription */
|
|
3421
|
+
lastPaymentStatus?: PaymentStatusEnumPaymentStatusWithLiterals;
|
|
3422
|
+
/** Payment schedule in the wix pay format. Exists for recurring subscriptions only. */
|
|
3423
|
+
billingProfile?: V2Subscription;
|
|
3424
|
+
/** Owner, member, etc. - present if subscription is canceled */
|
|
3425
|
+
cancellationInitiator?: CancellationInitiatorWithLiterals;
|
|
3426
|
+
/** Optional, present if subscription is canceled */
|
|
3427
|
+
cancellationReason?: string | null;
|
|
3428
|
+
/** Can be used for arbitrary app-specific map<string, string> data */
|
|
3429
|
+
externalData?: Record<string, string>;
|
|
3430
|
+
/** Date when subscription was created (not related to payment dates) */
|
|
3431
|
+
dateCreated?: Date | null;
|
|
3432
|
+
/** Restrictions on possible subscription actions. Default policy has all restrictions enabled. */
|
|
3433
|
+
policy?: SubscriptionPolicy;
|
|
3434
|
+
/** List of subscription suspension periods */
|
|
3435
|
+
suspensions?: Suspension[];
|
|
3436
|
+
/** Initial subscription expiration date that was calculated on the subscription purchase plus duration of suspensions */
|
|
3437
|
+
validUntilDateWithSuspensions?: Date | null;
|
|
3438
|
+
/** Duration of single payment subscription (instead of billing_profile) */
|
|
3439
|
+
singlePaymentDuration?: V1Duration;
|
|
1985
3440
|
/** @format GUID */
|
|
1986
|
-
|
|
3441
|
+
originInstanceId?: string | null;
|
|
3442
|
+
}
|
|
3443
|
+
interface Subscriber {
|
|
1987
3444
|
/**
|
|
1988
|
-
*
|
|
1989
|
-
* @
|
|
3445
|
+
* Member or contact ID
|
|
3446
|
+
* @format GUID
|
|
1990
3447
|
*/
|
|
1991
|
-
|
|
3448
|
+
id?: string;
|
|
3449
|
+
/** Member or contact */
|
|
3450
|
+
identityType?: IdentityTypeWithLiterals;
|
|
1992
3451
|
}
|
|
1993
|
-
declare enum
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
3452
|
+
declare enum IdentityType {
|
|
3453
|
+
/** Identity type undefined */
|
|
3454
|
+
UNDEFINED = "UNDEFINED",
|
|
3455
|
+
/** Subscription is associated with a member ID */
|
|
3456
|
+
MEMBER = "MEMBER",
|
|
3457
|
+
/** Subscriptions is associated with a contact ID */
|
|
3458
|
+
CONTACT = "CONTACT"
|
|
1997
3459
|
}
|
|
1998
3460
|
/** @enumType */
|
|
1999
|
-
type
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
actions?: Action[];
|
|
3461
|
+
type IdentityTypeWithLiterals = IdentityType | 'UNDEFINED' | 'MEMBER' | 'CONTACT';
|
|
3462
|
+
/** Price of a payment. Includes amount and currency. */
|
|
3463
|
+
interface Money {
|
|
2003
3464
|
/**
|
|
2004
|
-
*
|
|
2005
|
-
* @
|
|
3465
|
+
* Monetary amount i.e. 3.99.
|
|
3466
|
+
* @format DECIMAL_VALUE
|
|
2006
3467
|
*/
|
|
2007
|
-
|
|
2008
|
-
}
|
|
2009
|
-
interface UnsupportedAction {
|
|
2010
|
-
actionType?: ActionTypeWithLiterals;
|
|
3468
|
+
amount?: string;
|
|
2011
3469
|
/**
|
|
2012
|
-
*
|
|
2013
|
-
* @
|
|
3470
|
+
* Currency in ISO 4217 format i.e. USD.
|
|
3471
|
+
* @minLength 3
|
|
3472
|
+
* @maxLength 3
|
|
2014
3473
|
*/
|
|
2015
|
-
|
|
3474
|
+
currency?: string;
|
|
2016
3475
|
}
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
3476
|
+
declare enum SubscriptionType {
|
|
3477
|
+
UNDEFINED = "UNDEFINED",
|
|
3478
|
+
/** Payments made by the subscriber */
|
|
3479
|
+
ONLINE = "ONLINE",
|
|
3480
|
+
/** Payments managed manually by the site owner */
|
|
3481
|
+
OFFLINE = "OFFLINE"
|
|
2020
3482
|
}
|
|
2021
|
-
|
|
3483
|
+
/** @enumType */
|
|
3484
|
+
type SubscriptionTypeWithLiterals = SubscriptionType | 'UNDEFINED' | 'ONLINE' | 'OFFLINE';
|
|
3485
|
+
declare enum V1SubscriptionStatusEnumSubscriptionStatus {
|
|
3486
|
+
/** Subscription status undefined */
|
|
3487
|
+
UNDEFINED = "UNDEFINED",
|
|
3488
|
+
/** Subscription created, but hasn't been paid for yet. This status if filtered out in ListSubscriptions response by default. */
|
|
3489
|
+
DRAFT = "DRAFT",
|
|
3490
|
+
/** Subscription has been paid for, but the start date is in the future */
|
|
3491
|
+
PENDING = "PENDING",
|
|
3492
|
+
/** Subscription is active */
|
|
3493
|
+
ACTIVE = "ACTIVE",
|
|
3494
|
+
/** Subscription has expired */
|
|
3495
|
+
EXPIRED = "EXPIRED",
|
|
3496
|
+
/** Subscription has been canceled */
|
|
3497
|
+
CANCELED = "CANCELED",
|
|
3498
|
+
/** Subscription has been set to be canceled at a future date */
|
|
3499
|
+
PENDING_CANCELLATION = "PENDING_CANCELLATION",
|
|
3500
|
+
/** Subscription is suspended */
|
|
3501
|
+
SUSPENDED = "SUSPENDED"
|
|
3502
|
+
}
|
|
3503
|
+
/** @enumType */
|
|
3504
|
+
type V1SubscriptionStatusEnumSubscriptionStatusWithLiterals = V1SubscriptionStatusEnumSubscriptionStatus | 'UNDEFINED' | 'DRAFT' | 'PENDING' | 'ACTIVE' | 'EXPIRED' | 'CANCELED' | 'PENDING_CANCELLATION' | 'SUSPENDED';
|
|
3505
|
+
declare enum PaymentStatusEnumPaymentStatus {
|
|
3506
|
+
/** Payment status undefined */
|
|
3507
|
+
UNDEFINED = "UNDEFINED",
|
|
3508
|
+
/** Payment has been paid */
|
|
3509
|
+
PAID = "PAID",
|
|
3510
|
+
/** Payment has been refunded */
|
|
3511
|
+
REFUNDED = "REFUNDED",
|
|
3512
|
+
/** Recurring payment has failed */
|
|
3513
|
+
FAILED = "FAILED",
|
|
3514
|
+
/** Payment has not been paid */
|
|
3515
|
+
UNPAID = "UNPAID",
|
|
3516
|
+
/** Billing has been initialized, but actual charge is yet to be made. Can happen for free trial and PayPal */
|
|
3517
|
+
PENDING = "PENDING"
|
|
3518
|
+
}
|
|
3519
|
+
/** @enumType */
|
|
3520
|
+
type PaymentStatusEnumPaymentStatusWithLiterals = PaymentStatusEnumPaymentStatus | 'UNDEFINED' | 'PAID' | 'REFUNDED' | 'FAILED' | 'UNPAID' | 'PENDING';
|
|
3521
|
+
/**
|
|
3522
|
+
* Recurring payment is described by `frequency` (day, week, month) and `interval`.
|
|
3523
|
+
*
|
|
3524
|
+
* For example, to create a recurring payment every 14 days, just set `interval` to 14 and frequency to `DAY`.
|
|
3525
|
+
*
|
|
3526
|
+
* In some cases there should be a trial period for the order, after which payments start to occur.
|
|
3527
|
+
* Trial period is also defined as `frequency` and `interval` pair.
|
|
3528
|
+
*
|
|
3529
|
+
* So one can define a monthly 'subscription' with a 14 days trial period.
|
|
3530
|
+
*/
|
|
3531
|
+
interface V2Subscription {
|
|
3532
|
+
/** frequency of recurring payment (required) */
|
|
3533
|
+
frequency?: SubscriptionFrequencyWithLiterals;
|
|
3534
|
+
/** interval of recurring payment (required) */
|
|
3535
|
+
interval?: number;
|
|
3536
|
+
/** trial period for recurring payment (optional) */
|
|
3537
|
+
trial?: SubscriptionTrialPeriod;
|
|
2022
3538
|
/**
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
3539
|
+
* how many billing cycles should be done before subscription finishes
|
|
3540
|
+
* (optional, 0 by default means endless subscription)
|
|
2025
3541
|
*/
|
|
2026
|
-
|
|
2027
|
-
/** Period of time to provide charged for. If not provided,then only next charge will be returned. */
|
|
2028
|
-
customDuration?: Duration;
|
|
3542
|
+
billingCycles?: number;
|
|
2029
3543
|
/**
|
|
2030
|
-
*
|
|
2031
|
-
*
|
|
3544
|
+
* date in the future or in the past when the first billing cycle begins
|
|
3545
|
+
* (the first off-session payment is performed when it ends)
|
|
2032
3546
|
*/
|
|
2033
|
-
|
|
3547
|
+
firstCycleStartDate?: Date | null;
|
|
2034
3548
|
}
|
|
2035
|
-
|
|
2036
|
-
|
|
3549
|
+
/** Frequency unit of recurring payment */
|
|
3550
|
+
declare enum SubscriptionFrequency {
|
|
3551
|
+
UNDEFINED = "UNDEFINED",
|
|
3552
|
+
DAY = "DAY",
|
|
3553
|
+
WEEK = "WEEK",
|
|
3554
|
+
MONTH = "MONTH",
|
|
3555
|
+
YEAR = "YEAR"
|
|
2037
3556
|
}
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
3557
|
+
/** @enumType */
|
|
3558
|
+
type SubscriptionFrequencyWithLiterals = SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
3559
|
+
/** Trial period of subscription */
|
|
3560
|
+
interface SubscriptionTrialPeriod {
|
|
3561
|
+
/** trial period in units (required) */
|
|
3562
|
+
period?: number;
|
|
3563
|
+
/** units in which trial period is described (optional, default DAY) */
|
|
3564
|
+
unit?: SubscriptionFrequencyWithLiterals;
|
|
3565
|
+
}
|
|
3566
|
+
declare enum CancellationInitiator {
|
|
3567
|
+
/** Cancellation initiator undefined */
|
|
3568
|
+
UNDEFINED = "UNDEFINED",
|
|
3569
|
+
/** Subscription was canceled by site owner (default if canceled by user or service identity) */
|
|
3570
|
+
OWNER = "OWNER",
|
|
3571
|
+
/** Subscription was canceled by member (default if canceled by member identity) */
|
|
3572
|
+
MEMBER = "MEMBER",
|
|
3573
|
+
/** Subscription was canceled because of payment failure */
|
|
3574
|
+
PAYMENT_FAILURE = "PAYMENT_FAILURE",
|
|
3575
|
+
/** Subscription was canceled because of payment setup failure */
|
|
3576
|
+
SETUP_FAILURE = "SETUP_FAILURE"
|
|
2041
3577
|
}
|
|
2042
|
-
/** @
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
3578
|
+
/** @enumType */
|
|
3579
|
+
type CancellationInitiatorWithLiterals = CancellationInitiator | 'UNDEFINED' | 'OWNER' | 'MEMBER' | 'PAYMENT_FAILURE' | 'SETUP_FAILURE';
|
|
3580
|
+
interface SubscriptionPolicy {
|
|
3581
|
+
/** Subscription expiration date can be updated */
|
|
3582
|
+
expiryDateChangeable?: boolean;
|
|
3583
|
+
/** Subscription can be cancelled by the member who bought it (when memberId == subscriberId) */
|
|
3584
|
+
cancellableByMember?: boolean;
|
|
3585
|
+
/** Subscription expiration date on cancellation can be set to next payment date */
|
|
3586
|
+
cancellableAtNextPaymentCycle?: boolean;
|
|
3587
|
+
}
|
|
3588
|
+
interface Suspension {
|
|
3589
|
+
status?: StatusWithLiterals;
|
|
3590
|
+
/** Beginning of the suspended period */
|
|
3591
|
+
startsAt?: Date | null;
|
|
3592
|
+
/** End of the suspended period */
|
|
3593
|
+
endsAt?: Date | null;
|
|
3594
|
+
}
|
|
3595
|
+
declare enum Status {
|
|
3596
|
+
UNDEFINED = "UNDEFINED",
|
|
3597
|
+
ACTIVE = "ACTIVE",
|
|
3598
|
+
ENDED = "ENDED"
|
|
2046
3599
|
}
|
|
2047
|
-
/**
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
3600
|
+
/** @enumType */
|
|
3601
|
+
type StatusWithLiterals = Status | 'UNDEFINED' | 'ACTIVE' | 'ENDED';
|
|
3602
|
+
/** A duration expressed in amount of time units. */
|
|
3603
|
+
interface V1Duration {
|
|
3604
|
+
/** Amount of the unit */
|
|
3605
|
+
amount?: number;
|
|
3606
|
+
/** Day, Week, Month, Year. */
|
|
3607
|
+
unit?: SubscriptionFrequencyWithLiterals;
|
|
2052
3608
|
}
|
|
2053
|
-
interface
|
|
2054
|
-
|
|
2055
|
-
charges?: Charge[];
|
|
3609
|
+
interface V1SubscriptionActivated {
|
|
3610
|
+
subscription?: V1Subscription;
|
|
2056
3611
|
}
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
/** The cycle number from which the charge starts. */
|
|
2060
|
-
cycleFrom?: number;
|
|
2061
|
-
/** The number of cycles for which the charge is applicable. */
|
|
2062
|
-
cycleCount?: number | null;
|
|
2063
|
-
/** The breakdown of the charge */
|
|
2064
|
-
totals?: Totals;
|
|
2065
|
-
/** The billing date from which the charge starts */
|
|
2066
|
-
cycleBillingDate?: Date | null;
|
|
3612
|
+
interface V1SubscriptionCanceled {
|
|
3613
|
+
subscription?: V1Subscription;
|
|
2067
3614
|
}
|
|
2068
|
-
interface
|
|
2069
|
-
|
|
2070
|
-
* Information required to calculate the preview charges for the subscriptions, including an identifier.
|
|
2071
|
-
* @minSize 1
|
|
2072
|
-
* @maxSize 10
|
|
2073
|
-
*/
|
|
2074
|
-
subscriptionsBillingDetails?: SubscriptionBillingDetails[];
|
|
2075
|
-
/**
|
|
2076
|
-
* Specifies the number of upcoming billing charges to preview for all subscriptions in the order.
|
|
2077
|
-
* For instance, if a subscription costs $10 for the first 3 cycles, $12 for cycles 4 through 7,
|
|
2078
|
-
* $15 for cycles 8 through 10, and $20 for cycle 11 onwards:
|
|
2079
|
-
* - Sending "1" will calculate and return charges for cycles 4 through 7 since it's the first charge in the future.
|
|
2080
|
-
* - Sending "2" will provide a response with charges for cycles 4 through 7 and cycles 8 through 10.
|
|
2081
|
-
* - Sending "3" or more will include totals for cycles 4 through 7, cycles 8 through 10, and from cycle 11 onwards.
|
|
2082
|
-
* If no value is provided, the response will include charges for all upcoming cycles, including the existing one,
|
|
2083
|
-
* in this case, charges for cycle 1 through 3.
|
|
2084
|
-
* If there is a single charge for a subscription, meaning that subscription price remains consistent across all cycles,
|
|
2085
|
-
* then even if future_charges_count is set, it will be ignored and the only charge this subscription has will be returned.
|
|
2086
|
-
* @min 1
|
|
2087
|
-
* @max 10
|
|
2088
|
-
*/
|
|
2089
|
-
numberOfNextRecurringCharges?: number | null;
|
|
3615
|
+
interface V1SubscriptionUpdated {
|
|
3616
|
+
subscription?: V1Subscription;
|
|
2090
3617
|
}
|
|
2091
|
-
interface
|
|
3618
|
+
interface SubscriptionCycleTriggered {
|
|
3619
|
+
subscription?: V1Subscription;
|
|
3620
|
+
billingCycle?: number;
|
|
2092
3621
|
/**
|
|
2093
|
-
*
|
|
3622
|
+
* Wix Pay transaction id, optional. Exists if event was triggered by a payment.
|
|
2094
3623
|
* @format GUID
|
|
2095
3624
|
*/
|
|
2096
|
-
|
|
2097
|
-
/** Billing details parameters including schedule, currency, etc. */
|
|
2098
|
-
billingSettings?: BillingSettings;
|
|
2099
|
-
/**
|
|
2100
|
-
* Items, minSize is 1, maxSize is 100
|
|
2101
|
-
* @minSize 1
|
|
2102
|
-
* @maxSize 100
|
|
2103
|
-
*/
|
|
2104
|
-
items?: Item[];
|
|
2105
|
-
/** Subscription start date, now if not set */
|
|
2106
|
-
startDate?: Date | null;
|
|
2107
|
-
/** Shipping address associated with subscription. At the moment used only for payments. Optional. */
|
|
2108
|
-
shippingAddress?: FullAddressDetails;
|
|
3625
|
+
transactionId?: string | null;
|
|
2109
3626
|
}
|
|
2110
|
-
interface
|
|
2111
|
-
|
|
2112
|
-
|
|
3627
|
+
interface SubscriptionMarkedAsPaid {
|
|
3628
|
+
subscription?: V1Subscription;
|
|
3629
|
+
/** A number indicating which payment (cycle) was marked as paid. For recurring subscriptions only. */
|
|
3630
|
+
billingCycle?: number | null;
|
|
2113
3631
|
}
|
|
2114
|
-
interface
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
3632
|
+
interface SubscriptionCancellationRequested {
|
|
3633
|
+
subscription?: V1Subscription;
|
|
3634
|
+
}
|
|
3635
|
+
interface SubscriptionSuspended {
|
|
3636
|
+
subscription?: V1Subscription;
|
|
3637
|
+
}
|
|
3638
|
+
interface V1SubscriptionResumed {
|
|
3639
|
+
subscription?: V1Subscription;
|
|
3640
|
+
}
|
|
3641
|
+
interface SubscriptionExpired {
|
|
3642
|
+
subscription?: V1Subscription;
|
|
3643
|
+
}
|
|
3644
|
+
interface V1SubscriptionInitialPurchaseCompleted {
|
|
3645
|
+
subscription?: V1Subscription;
|
|
2122
3646
|
}
|
|
2123
3647
|
interface ListSubscriptionHistoryRequest {
|
|
2124
3648
|
/** @format GUID */
|
|
@@ -2307,6 +3831,100 @@ interface SubscriptionBackOfficeAction {
|
|
|
2307
3831
|
interface UnknownSubscriptionEvent {
|
|
2308
3832
|
subscriptionAsString?: string | null;
|
|
2309
3833
|
}
|
|
3834
|
+
/** @docsIgnore */
|
|
3835
|
+
type CustomerCancelSubscriptionApplicationErrors = {
|
|
3836
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3837
|
+
description?: string;
|
|
3838
|
+
data?: Record<string, any>;
|
|
3839
|
+
};
|
|
3840
|
+
/** @docsIgnore */
|
|
3841
|
+
type CustomerTurnOnSubscriptionAutoRenewalApplicationErrors = {
|
|
3842
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3843
|
+
description?: string;
|
|
3844
|
+
data?: Record<string, any>;
|
|
3845
|
+
};
|
|
3846
|
+
/** @docsIgnore */
|
|
3847
|
+
type CustomerTurnOffSubscriptionAutoRenewalApplicationErrors = {
|
|
3848
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3849
|
+
description?: string;
|
|
3850
|
+
data?: Record<string, any>;
|
|
3851
|
+
};
|
|
3852
|
+
/** @docsIgnore */
|
|
3853
|
+
type CustomerExtendSubscriptionApplicationErrors = {
|
|
3854
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3855
|
+
description?: string;
|
|
3856
|
+
data?: Record<string, any>;
|
|
3857
|
+
};
|
|
3858
|
+
/** @docsIgnore */
|
|
3859
|
+
type UpdateSubscriptionBillingDateApplicationErrors = {
|
|
3860
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3861
|
+
description?: string;
|
|
3862
|
+
data?: Record<string, any>;
|
|
3863
|
+
};
|
|
3864
|
+
/** @docsIgnore */
|
|
3865
|
+
type CancelSubscriptionApplicationErrors = {
|
|
3866
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3867
|
+
description?: string;
|
|
3868
|
+
data?: Record<string, any>;
|
|
3869
|
+
};
|
|
3870
|
+
/** @docsIgnore */
|
|
3871
|
+
type PauseSubscriptionApplicationErrors = {
|
|
3872
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3873
|
+
description?: string;
|
|
3874
|
+
data?: Record<string, any>;
|
|
3875
|
+
};
|
|
3876
|
+
/** @docsIgnore */
|
|
3877
|
+
type ResumeSubscriptionApplicationErrors = {
|
|
3878
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3879
|
+
description?: string;
|
|
3880
|
+
data?: Record<string, any>;
|
|
3881
|
+
};
|
|
3882
|
+
/** @docsIgnore */
|
|
3883
|
+
type TurnOnSubscriptionAutoRenewalApplicationErrors = {
|
|
3884
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3885
|
+
description?: string;
|
|
3886
|
+
data?: Record<string, any>;
|
|
3887
|
+
};
|
|
3888
|
+
/** @docsIgnore */
|
|
3889
|
+
type TurnOffSubscriptionAutoRenewalApplicationErrors = {
|
|
3890
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3891
|
+
description?: string;
|
|
3892
|
+
data?: Record<string, any>;
|
|
3893
|
+
};
|
|
3894
|
+
/** @docsIgnore */
|
|
3895
|
+
type MarkLatestInvoiceAsPaidApplicationErrors = {
|
|
3896
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3897
|
+
description?: string;
|
|
3898
|
+
data?: Record<string, any>;
|
|
3899
|
+
} | {
|
|
3900
|
+
code?: 'SUBSCRIPTION_PART_OF_ORDER';
|
|
3901
|
+
description?: string;
|
|
3902
|
+
data?: MultipleSubscriptionsOnOrdersInvoice;
|
|
3903
|
+
};
|
|
3904
|
+
/** @docsIgnore */
|
|
3905
|
+
type MarkBillingCycleAsPaidApplicationErrors = {
|
|
3906
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3907
|
+
description?: string;
|
|
3908
|
+
data?: Record<string, any>;
|
|
3909
|
+
} | {
|
|
3910
|
+
code?: 'SUBSCRIPTION_PART_OF_ORDER';
|
|
3911
|
+
description?: string;
|
|
3912
|
+
data?: MultipleSubscriptionsOnOrdersInvoice;
|
|
3913
|
+
} | {
|
|
3914
|
+
code?: 'INVOICE_NOT_FOUND';
|
|
3915
|
+
description?: string;
|
|
3916
|
+
data?: Record<string, any>;
|
|
3917
|
+
} | {
|
|
3918
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_COLLECTION_METHOD';
|
|
3919
|
+
description?: string;
|
|
3920
|
+
data?: Record<string, any>;
|
|
3921
|
+
};
|
|
3922
|
+
/** @docsIgnore */
|
|
3923
|
+
type ExtendSubscriptionApplicationErrors = {
|
|
3924
|
+
code?: 'OPERATION_NOT_SUPPORTED_FOR_STATUS';
|
|
3925
|
+
description?: string;
|
|
3926
|
+
data?: Record<string, any>;
|
|
3927
|
+
};
|
|
2310
3928
|
|
|
2311
3929
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
2312
3930
|
getUrl: (context: any) => string;
|
|
@@ -2401,4 +4019,4 @@ declare function listSubscriptionHistory(): __PublicMethodMetaInfo<'GET', {
|
|
|
2401
4019
|
subscriptionId: string;
|
|
2402
4020
|
}, ListSubscriptionHistoryRequest$1, ListSubscriptionHistoryRequest, ListSubscriptionHistoryResponse$1, ListSubscriptionHistoryResponse>;
|
|
2403
4021
|
|
|
2404
|
-
export { type __PublicMethodMetaInfo, allowedActions, cancelSubscription, countSubscriptions, customerAllowedActions, customerCancelSubscription, customerExtendSubscription, customerGetSubscription, customerInitiatePaymentMethodSetup, customerListUpcomingCharges, customerQuerySubscriptions, customerTurnOffSubscriptionAutoRenewal, customerTurnOnSubscriptionAutoRenewal, customerUpdateSubscriptionPaymentMethod, extendSubscription, getSubscription, getSubscriptionsStats, initiatePaymentMethodSetup, listSubscriptionHistory, listUpcomingCharges, markBillingCycleAsPaid, markLatestInvoiceAsPaid, pauseSubscription, payCycle, previewSubscriptionCharges, previewSubscriptionsCharges, querySubscriptions, resumeSubscription, searchSubscriptions, turnOffSubscriptionAutoRenewal, turnOnSubscriptionAutoRenewal, updateSubscriptionBillingDate, updateSubscriptionPaymentMethod };
|
|
4022
|
+
export { type ActionContext as ActionContextOriginal, type ActionDetails as ActionDetailsOriginal, type ActionEvent as ActionEventOriginal, ActionInitiator as ActionInitiatorOriginal, type ActionInitiatorWithLiterals as ActionInitiatorWithLiteralsOriginal, type Action as ActionOriginal, ActionType as ActionTypeOriginal, type ActionTypeWithLiterals as ActionTypeWithLiteralsOriginal, type AddPausePeriodRequest as AddPausePeriodRequestOriginal, type AddPausePeriodResponse as AddPausePeriodResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, AdditionalFeeTrigger as AdditionalFeeTriggerOriginal, type AdditionalFeeTriggerWithLiterals as AdditionalFeeTriggerWithLiteralsOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal, type AllowedActionsRequest as AllowedActionsRequestOriginal, type AllowedActionsResponse as AllowedActionsResponseOriginal, type AmountByStatus as AmountByStatusOriginal, type ApplicationFee as ApplicationFeeOriginal, type ApplicationFeeValueOneOf as ApplicationFeeValueOneOfOriginal, type AttachInvoice as AttachInvoiceOriginal, type AutomaticRetryData as AutomaticRetryDataOriginal, type BassToSapiPaypalMigrationRequest as BassToSapiPaypalMigrationRequestOriginal, type BassToSapiPaypalMigrationResponse as BassToSapiPaypalMigrationResponseOriginal, type BillingSettings as BillingSettingsOriginal, type BillingStatus as BillingStatusOriginal, type BulkItemChange as BulkItemChangeOriginal, type BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequestOriginal, type BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponseOriginal, type BusinessOriginData as BusinessOriginDataOriginal, type BusinessOrigin as BusinessOriginOriginal, type Cancel as CancelOriginal, type CancelSubscriptionApplicationErrors as CancelSubscriptionApplicationErrorsOriginal, type CancelSubscriptionBORequest as CancelSubscriptionBORequestOriginal, type CancelSubscriptionBOResponse as CancelSubscriptionBOResponseOriginal, type CancelSubscriptionRequest as CancelSubscriptionRequestOriginal, type CancelSubscriptionResponse as CancelSubscriptionResponseOriginal, type CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequestOriginal, type CancellationInfo as CancellationInfoOriginal, CancellationInitiator as CancellationInitiatorOriginal, type CancellationInitiatorWithLiterals as CancellationInitiatorWithLiteralsOriginal, type CatalogReference as CatalogReferenceOriginal, type Charge as ChargeOriginal, CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethodOriginal, type CollectionMethodEnumCollectionMethodWithLiterals as CollectionMethodEnumCollectionMethodWithLiteralsOriginal, CollectionMethod as CollectionMethodOriginal, type CollectionMethodWithLiterals as CollectionMethodWithLiteralsOriginal, type Complete as CompleteOriginal, type ConvertSapiRequest as ConvertSapiRequestOriginal, type ConvertSapiResponse as ConvertSapiResponseOriginal, type CountByStatus as CountByStatusOriginal, type CountSubscriptionFilter as CountSubscriptionFilterOriginal, type CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOfOriginal, type CountSubscriptionsRequest as CountSubscriptionsRequestOriginal, type CountSubscriptionsResponse as CountSubscriptionsResponseOriginal, type CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequestOriginal, type CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponseOriginal, type CreateSubscriptionForOrderRequest as CreateSubscriptionForOrderRequestOriginal, type CreateSubscriptionForOrderResponse as CreateSubscriptionForOrderResponseOriginal, type CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOfOriginal, type CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequestOriginal, type CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponseOriginal, type CreateSubscriptionRequest as CreateSubscriptionRequestOriginal, type CreateSubscriptionResponse as CreateSubscriptionResponseOriginal, CreationMode as CreationModeOriginal, type CreationModeWithLiterals as CreationModeWithLiteralsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomBillingSchedule as CustomBillingScheduleOriginal, type CustomProrationAmountOneOf as CustomProrationAmountOneOfOriginal, type CustomProration as CustomProrationOriginal, type CustomerAllowedActionsRequest as CustomerAllowedActionsRequestOriginal, type CustomerAllowedActionsResponse as CustomerAllowedActionsResponseOriginal, type CustomerCancelSubscriptionApplicationErrors as CustomerCancelSubscriptionApplicationErrorsOriginal, type CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequestOriginal, type CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponseOriginal, type CustomerExtendSubscriptionApplicationErrors as CustomerExtendSubscriptionApplicationErrorsOriginal, type CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequestOriginal, type CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponseOriginal, type CustomerIdOneOf as CustomerIdOneOfOriginal, type CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequestOriginal, type CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponseOriginal, type Customer as CustomerOriginal, type CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequestOriginal, type CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponseOriginal, type CustomerTurnOffSubscriptionAutoRenewalApplicationErrors as CustomerTurnOffSubscriptionAutoRenewalApplicationErrorsOriginal, type CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequestOriginal, type CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponseOriginal, type CustomerTurnOnSubscriptionAutoRenewalApplicationErrors as CustomerTurnOnSubscriptionAutoRenewalApplicationErrorsOriginal, type Cycles as CyclesOriginal, type DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequestOriginal, type DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponseOriginal, type DeleteSubscriptionBORequest as DeleteSubscriptionBORequestOriginal, type DeleteSubscriptionBOResponse as DeleteSubscriptionBOResponseOriginal, type DeleteSubscriptionRequest as DeleteSubscriptionRequestOriginal, type DeleteSubscriptionResponse as DeleteSubscriptionResponseOriginal, type DetachInvoice as DetachInvoiceOriginal, type DiscountCycles as DiscountCyclesOriginal, type DiscountOrigin as DiscountOriginOriginal, type Discount as DiscountOriginal, type DiscountValueOneOf as DiscountValueOneOfOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, DurationUnit as DurationUnitOriginal, type DurationUnitWithLiterals as DurationUnitWithLiteralsOriginal, type DynamicTax as DynamicTaxOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, ExtendPolicyType as ExtendPolicyTypeOriginal, type ExtendPolicyTypeWithLiterals as ExtendPolicyTypeWithLiteralsOriginal, type ExtendSubscriptionApplicationErrors as ExtendSubscriptionApplicationErrorsOriginal, type ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOfOriginal, type ExtendSubscriptionRequest as ExtendSubscriptionRequestOriginal, type ExtendSubscriptionResponse as ExtendSubscriptionResponseOriginal, type ExternalCollectionDetails as ExternalCollectionDetailsOriginal, type FinishFreeTrialNowRequest as FinishFreeTrialNowRequestOriginal, type FinishFreeTrialNowResponse as FinishFreeTrialNowResponseOriginal, type FixSubscriptionInvoicesConsistencyRequest as FixSubscriptionInvoicesConsistencyRequestOriginal, type FixSubscriptionInvoicesConsistencyResponse as FixSubscriptionInvoicesConsistencyResponseOriginal, type FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOfOriginal, type FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequestOriginal, type FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponseOriginal, type FixSubscriptionTimeCapsuleTasksRequest as FixSubscriptionTimeCapsuleTasksRequestOriginal, type FixSubscriptionTimeCapsuleTasksResponse as FixSubscriptionTimeCapsuleTasksResponseOriginal, type FixedPrice as FixedPriceOriginal, type FreeTrailEnded as FreeTrailEndedOriginal, type FreeTrailStarted as FreeTrailStartedOriginal, type FreeTrialData as FreeTrialDataOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type FullAddressDetails as FullAddressDetailsOriginal, type FuturePriceUpdatesRequested as FuturePriceUpdatesRequestedOriginal, type FutureUpdatesRequested as FutureUpdatesRequestedOriginal, type GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequestOriginal, type GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponseOriginal, type GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequestOriginal, type GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponseOriginal, type GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequestOriginal, type GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponseOriginal, type GetSubscriptionRequest as GetSubscriptionRequestOriginal, type GetSubscriptionResponse as GetSubscriptionResponseOriginal, type GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequestOriginal, type GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponseOriginal, type GracePeriodData as GracePeriodDataOriginal, type GracePeriodEnded as GracePeriodEndedOriginal, type GracePeriodStarted as GracePeriodStartedOriginal, type HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequestOriginal, HistoryActionInitiator as HistoryActionInitiatorOriginal, type HistoryActionInitiatorWithLiterals as HistoryActionInitiatorWithLiteralsOriginal, HistoryViewMode as HistoryViewModeOriginal, type HistoryViewModeWithLiterals as HistoryViewModeWithLiteralsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequestOriginal, type InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponseOriginal, type InitiatedPaymentMethodSetup as InitiatedPaymentMethodSetupOriginal, type InternalSubscriptionData as InternalSubscriptionDataOriginal, type InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOfOriginal, type InvoiceAction as InvoiceActionOriginal, type InvoiceApplicationFee as InvoiceApplicationFeeOriginal, type InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOfOriginal, type InvoiceDiscount as InvoiceDiscountOriginal, type InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOfOriginal, type InvoiceItem as InvoiceItemOriginal, type InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOfOriginal, type Invoice as InvoiceOriginal, type InvoiceShippingCharges as InvoiceShippingChargesOriginal, InvoiceStatus as InvoiceStatusOriginal, type InvoiceStatusWithLiterals as InvoiceStatusWithLiteralsOriginal, ItemCategory as ItemCategoryOriginal, type ItemCategoryWithLiterals as ItemCategoryWithLiteralsOriginal, type ItemChange as ItemChangeOriginal, type Item as ItemOriginal, type ItemTaxData as ItemTaxDataOriginal, type LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaidOriginal, type LatestPaymentAttempt as LatestPaymentAttemptOriginal, type LineItemTaxSummary as LineItemTaxSummaryOriginal, type ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequestOriginal, type ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponseOriginal, type ListUpcomingChargesRequest as ListUpcomingChargesRequestOriginal, type ListUpcomingChargesResponse as ListUpcomingChargesResponseOriginal, type MarkBillingCycleAsPaidApplicationErrors as MarkBillingCycleAsPaidApplicationErrorsOriginal, type MarkBillingCycleAsPaidRequest as MarkBillingCycleAsPaidRequestOriginal, type MarkBillingCycleAsPaidResponse as MarkBillingCycleAsPaidResponseOriginal, type MarkLatestInvoiceAsPaidApplicationErrors as MarkLatestInvoiceAsPaidApplicationErrorsOriginal, type MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequestOriginal, type MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrationDetails as MigrationDetailsOriginal, type Money as MoneyOriginal, type MultipleSubscriptionsOnOrdersInvoice as MultipleSubscriptionsOnOrdersInvoiceOriginal, type OneTime as OneTimeOriginal, OrderMethod as OrderMethodOriginal, type OrderMethodWithLiterals as OrderMethodWithLiteralsOriginal, type Origin as OriginOriginal, type OriginOverride as OriginOverrideOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PauseAt as PauseAtOriginal, type PauseAtWithLiterals as PauseAtWithLiteralsOriginal, type PauseInfo as PauseInfoOriginal, type PausePeriod as PausePeriodOriginal, PausePolicy as PausePolicyOriginal, type PausePolicyWithLiterals as PausePolicyWithLiteralsOriginal, type PauseSubscriptionApplicationErrors as PauseSubscriptionApplicationErrorsOriginal, type PauseSubscriptionBORequest as PauseSubscriptionBORequestOriginal, type PauseSubscriptionBOResponse as PauseSubscriptionBOResponseOriginal, type PauseSubscriptionRequest as PauseSubscriptionRequestOriginal, type PauseSubscriptionRequested as PauseSubscriptionRequestedOriginal, type PauseSubscriptionResponse as PauseSubscriptionResponseOriginal, type PayCycleRequest as PayCycleRequestOriginal, type PayCycleResponse as PayCycleResponseOriginal, type PayRecurringInvoice as PayRecurringInvoiceOriginal, PaymentAttemptStatus as PaymentAttemptStatusOriginal, type PaymentAttemptStatusWithLiterals as PaymentAttemptStatusWithLiteralsOriginal, type PaymentData as PaymentDataOriginal, type PaymentMethod as PaymentMethodOriginal, type PaymentMethodUpdated as PaymentMethodUpdatedOriginal, PaymentMode as PaymentModeOriginal, type PaymentModeWithLiterals as PaymentModeWithLiteralsOriginal, type PaymentOrigin as PaymentOriginOriginal, type PaymentSettings as PaymentSettingsOriginal, PaymentSettlementMethod as PaymentSettlementMethodOriginal, type PaymentSettlementMethodWithLiterals as PaymentSettlementMethodWithLiteralsOriginal, PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatusOriginal, type PaymentStatusEnumPaymentStatusWithLiterals as PaymentStatusEnumPaymentStatusWithLiteralsOriginal, PaymentStatus as PaymentStatusOriginal, type PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal, type PaymentTaxData as PaymentTaxDataOriginal, PaymentTestMode as PaymentTestModeOriginal, type PaymentTestModeWithLiterals as PaymentTestModeWithLiteralsOriginal, type PlatformOrigin as PlatformOriginOriginal, type PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequestOriginal, type PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOfOriginal, type PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponseOriginal, type PreviewSubscriptionsChargesRequest as PreviewSubscriptionsChargesRequestOriginal, type PreviewSubscriptionsChargesResponse as PreviewSubscriptionsChargesResponseOriginal, type PriceAdjustmentAdjustmentTypeOneOf as PriceAdjustmentAdjustmentTypeOneOfOriginal, type PriceAdjustment as PriceAdjustmentOriginal, type PriceAdjustmentValueAdjustmentValueTypeOneOf as PriceAdjustmentValueAdjustmentValueTypeOneOfOriginal, type PriceAdjustmentValue as PriceAdjustmentValueOriginal, type PriceDetails as PriceDetailsOriginal, type PricingModelModelOneOf as PricingModelModelOneOfOriginal, type PricingModel as PricingModelOriginal, type Proration as ProrationOriginal, type ProrationTypeOneOf as ProrationTypeOneOfOriginal, type QuerySubscriptionsRequest as QuerySubscriptionsRequestOriginal, type QuerySubscriptionsResponse as QuerySubscriptionsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type Recurring as RecurringOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefundInfo as RefundInfoOriginal, type Refund as RefundOriginal, RefundReason as RefundReasonOriginal, type RefundReasonWithLiterals as RefundReasonWithLiteralsOriginal, type RemoveCancellationInfoRequest as RemoveCancellationInfoRequestOriginal, type RemoveCancellationInfoResponse as RemoveCancellationInfoResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type Reschedule as RescheduleOriginal, type ResetPendingUpdates as ResetPendingUpdatesOriginal, type RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequestOriginal, type RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponseOriginal, type RestoreInfo as RestoreInfoOriginal, ResumeAt as ResumeAtOriginal, type ResumeAtWithLiterals as ResumeAtWithLiteralsOriginal, type ResumeSubscriptionApplicationErrors as ResumeSubscriptionApplicationErrorsOriginal, type ResumeSubscriptionRequest as ResumeSubscriptionRequestOriginal, type ResumeSubscriptionRequested as ResumeSubscriptionRequestedOriginal, type ResumeSubscriptionResponse as ResumeSubscriptionResponseOriginal, type ReviseSubscriptionRequest as ReviseSubscriptionRequestOriginal, type ReviseSubscriptionResponse as ReviseSubscriptionResponseOriginal, RevivePolicy as RevivePolicyOriginal, type RevivePolicyWithLiterals as RevivePolicyWithLiteralsOriginal, type ReviveSubscriptionRequest as ReviveSubscriptionRequestOriginal, type ReviveSubscriptionResponse as ReviveSubscriptionResponseOriginal, type RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequestOriginal, type ScheduleAdditionalInfo as ScheduleAdditionalInfoOriginal, type ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOfOriginal, type ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequestOriginal, type ScheduledPauseCanceled as ScheduledPauseCanceledOriginal, type ScheduledResumeCanceled as ScheduledResumeCanceledOriginal, type SearchSubscriptionRequest as SearchSubscriptionRequestOriginal, type SearchSubscriptionResponse as SearchSubscriptionResponseOriginal, type SearchSubscriptionsRequest as SearchSubscriptionsRequestOriginal, type SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOfOriginal, type SearchSubscriptionsResponse as SearchSubscriptionsResponseOriginal, type SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOfOriginal, type SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequestOriginal, type SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponseOriginal, type SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequestOriginal, type SetIsMigratedEvent as SetIsMigratedEventOriginal, type SetShiftingDataRequest as SetShiftingDataRequestOriginal, type SetShiftingDataResponse as SetShiftingDataResponseOriginal, type ShippingCharges as ShippingChargesOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type SortingClauses as SortingClausesOriginal, type Sorting as SortingOriginal, type SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateDataOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type Subscriber as SubscriberOriginal, type SubscriptionActivated as SubscriptionActivatedOriginal, type SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOffOriginal, type SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOnOriginal, type SubscriptionBackOfficeAction as SubscriptionBackOfficeActionOriginal, type SubscriptionBillingCyclePaid as SubscriptionBillingCyclePaidOriginal, type SubscriptionBillingCycleStarted as SubscriptionBillingCycleStartedOriginal, type SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdatedOriginal, type SubscriptionBillingDetails as SubscriptionBillingDetailsOriginal, type SubscriptionCanceled as SubscriptionCanceledOriginal, type SubscriptionCancellationRequested as SubscriptionCancellationRequestedOriginal, type SubscriptionCharge as SubscriptionChargeOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, type SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdatedOriginal, type SubscriptionCreated as SubscriptionCreatedOriginal, type SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPayOriginal, type SubscriptionCycleTriggered as SubscriptionCycleTriggeredOriginal, type SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEventOriginal, type SubscriptionDeleted as SubscriptionDeletedOriginal, type SubscriptionDiff as SubscriptionDiffOriginal, type SubscriptionEnded as SubscriptionEndedOriginal, type SubscriptionEvent as SubscriptionEventOriginal, type SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOfOriginal, type SubscriptionExpired as SubscriptionExpiredOriginal, type SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOfOriginal, type SubscriptionExtended as SubscriptionExtendedOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionHistoryEntry as SubscriptionHistoryEntryOriginal, type SubscriptionInfo as SubscriptionInfoOriginal, type SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompletedOriginal, type SubscriptionInvoice as SubscriptionInvoiceOriginal, type SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaidOriginal, type Subscription as SubscriptionOriginal, type SubscriptionPaused as SubscriptionPausedOriginal, type SubscriptionPolicies as SubscriptionPoliciesOriginal, type SubscriptionPolicy as SubscriptionPolicyOriginal, type SubscriptionResumed as SubscriptionResumedOriginal, type SubscriptionRevived as SubscriptionRevivedOriginal, SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatusOriginal, type SubscriptionStatusEnumSubscriptionStatusWithLiterals as SubscriptionStatusEnumSubscriptionStatusWithLiteralsOriginal, SubscriptionStatusGroup as SubscriptionStatusGroupOriginal, type SubscriptionStatusGroupWithLiterals as SubscriptionStatusGroupWithLiteralsOriginal, type SubscriptionStatus as SubscriptionStatusOriginal, type SubscriptionSuspended as SubscriptionSuspendedOriginal, type SubscriptionTrialPeriod as SubscriptionTrialPeriodOriginal, SubscriptionType as SubscriptionTypeOriginal, type SubscriptionTypeWithLiterals as SubscriptionTypeWithLiteralsOriginal, type SubscriptionUpdateData as SubscriptionUpdateDataOriginal, type SubscriptionUpdated as SubscriptionUpdatedOriginal, type Suspension as SuspensionOriginal, type TaskActionActionOneOf as TaskActionActionOneOfOriginal, type TaskAction as TaskActionOriginal, type TaskKey as TaskKeyOriginal, type Task as TaskOriginal, type TaxBreakdown as TaxBreakdownOriginal, type TaxData as TaxDataOriginal, type Tax as TaxOriginal, type TaxSettings as TaxSettingsOriginal, type TaxSummary as TaxSummaryOriginal, type TaxValueOneOf as TaxValueOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type TimeBasedProration as TimeBasedProrationOriginal, type Totals as TotalsOriginal, type TurnOffSubscriptionAutoRenewalApplicationErrors as TurnOffSubscriptionAutoRenewalApplicationErrorsOriginal, type TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequestOriginal, type TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponseOriginal, type TurnOnSubscriptionAutoRenewalApplicationErrors as TurnOnSubscriptionAutoRenewalApplicationErrorsOriginal, type TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequestOriginal, type TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponseOriginal, type UnknownSubscriptionEvent as UnknownSubscriptionEventOriginal, type UnsupportedAction as UnsupportedActionOriginal, type UnsupportedReason as UnsupportedReasonOriginal, UpdateAction as UpdateActionOriginal, type UpdateActionWithLiterals as UpdateActionWithLiteralsOriginal, type UpdateBillingDateData as UpdateBillingDateDataOriginal, type UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequestOriginal, type UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponseOriginal, type UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequestOriginal, type UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponseOriginal, type UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequestOriginal, type UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponseOriginal, type UpdatePaymentStatusRequest as UpdatePaymentStatusRequestOriginal, type UpdatePaymentStatusResponse as UpdatePaymentStatusResponseOriginal, type UpdateStatusRequest as UpdateStatusRequestOriginal, type UpdateStatusResponse as UpdateStatusResponseOriginal, type UpdateSubscriptionBillingDateApplicationErrors as UpdateSubscriptionBillingDateApplicationErrorsOriginal, type UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequestOriginal, type UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponseOriginal, type UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequestOriginal, type UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponseOriginal, type UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequestOriginal, type UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponseOriginal, type UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequestOriginal, type UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponseOriginal, type UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequestOriginal, type UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponseOriginal, type UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequestOriginal, type UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponseOriginal, type UpdateSubscriptionRequest as UpdateSubscriptionRequestOriginal, type UpdateSubscriptionResponse as UpdateSubscriptionResponseOriginal, type UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequestOriginal, type UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponseOriginal, type UpdatesApplied as UpdatesAppliedOriginal, type V1Duration as V1DurationOriginal, type V1SubscriptionActivated as V1SubscriptionActivatedOriginal, type V1SubscriptionCanceled as V1SubscriptionCanceledOriginal, type V1SubscriptionCreated as V1SubscriptionCreatedOriginal, type V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOfOriginal, type V1SubscriptionEvent as V1SubscriptionEventOriginal, type V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompletedOriginal, type V1Subscription as V1SubscriptionOriginal, type V1SubscriptionResumed as V1SubscriptionResumedOriginal, V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatusOriginal, type V1SubscriptionStatusEnumSubscriptionStatusWithLiterals as V1SubscriptionStatusEnumSubscriptionStatusWithLiteralsOriginal, type V1SubscriptionUpdated as V1SubscriptionUpdatedOriginal, type V2Subscription as V2SubscriptionOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, allowedActions, cancelSubscription, countSubscriptions, customerAllowedActions, customerCancelSubscription, customerExtendSubscription, customerGetSubscription, customerInitiatePaymentMethodSetup, customerListUpcomingCharges, customerQuerySubscriptions, customerTurnOffSubscriptionAutoRenewal, customerTurnOnSubscriptionAutoRenewal, customerUpdateSubscriptionPaymentMethod, extendSubscription, getSubscription, getSubscriptionsStats, initiatePaymentMethodSetup, listSubscriptionHistory, listUpcomingCharges, markBillingCycleAsPaid, markLatestInvoiceAsPaid, pauseSubscription, payCycle, previewSubscriptionCharges, previewSubscriptionsCharges, querySubscriptions, resumeSubscription, searchSubscriptions, turnOffSubscriptionAutoRenewal, turnOnSubscriptionAutoRenewal, updateSubscriptionBillingDate, updateSubscriptionPaymentMethod };
|