@wix/auto_sdk_ecom_subscription-contracts 1.0.147 → 1.0.149
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 +3 -2
- package/build/cjs/index.js +32 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -3
- package/build/cjs/index.typings.js +32 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +32 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -2
- package/build/es/index.mjs +32 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -3
- package/build/es/index.typings.mjs +32 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +32 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -2
- package/build/internal/cjs/index.typings.d.ts +12 -3
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/index.d.mts +3 -2
- package/build/internal/es/index.typings.d.mts +12 -3
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import '@wix/sdk-types';
|
|
|
4
4
|
/**
|
|
5
5
|
* A subscription contract holds the terms of a buyer's subscription: the items, prices, billing frequency, and buyer, billing, and shipping details agreed on at checkout, or as later changed through draft subscription contracts.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* When a buyer checks out with subscription items, a subscription contract is created for each group of items that are billed together. Physical items from the same catalog with identical `subscriptionInfo.subscriptionSettings` share a subscription contract. Every other subscription item gets its own subscription contract. Each billing cycle, an order is created from the contract's current content. The order's `lineItems.subscriptionInfo.id` holds the contract ID, and `lineItems.subscriptionInfo.cycleNumber` holds the billing cycle the order is for.
|
|
8
8
|
*
|
|
9
9
|
* To change a subscription contract, create a [draft subscription contract](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/subscriptions/draft-subscription-contracts/introduction), edit it, and commit it.
|
|
10
10
|
*/
|
package/build/es/meta.mjs
CHANGED
|
@@ -108,6 +108,14 @@ function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
|
108
108
|
{
|
|
109
109
|
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
110
110
|
destPath: "/v1/bulk/subscription-contracts"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/ecom/v1/subscription-contracts",
|
|
114
|
+
destPath: "/v1/subscription-contracts"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/ecom/v1/bulk/subscription-contracts",
|
|
118
|
+
destPath: "/v1/bulk/subscription-contracts"
|
|
111
119
|
}
|
|
112
120
|
],
|
|
113
121
|
"*.dev.wix-code.com": [
|
|
@@ -118,6 +126,14 @@ function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
|
118
126
|
{
|
|
119
127
|
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
120
128
|
destPath: "/v1/bulk/subscription-contracts"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
srcPath: "/_api/ecom/v1/subscription-contracts",
|
|
132
|
+
destPath: "/v1/subscription-contracts"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
srcPath: "/_api/ecom/v1/bulk/subscription-contracts",
|
|
136
|
+
destPath: "/v1/bulk/subscription-contracts"
|
|
121
137
|
}
|
|
122
138
|
],
|
|
123
139
|
_: [
|
|
@@ -128,6 +144,14 @@ function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
|
128
144
|
{
|
|
129
145
|
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
130
146
|
destPath: "/v1/bulk/subscription-contracts"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
srcPath: "/_api/ecom/v1/subscription-contracts",
|
|
150
|
+
destPath: "/v1/subscription-contracts"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
srcPath: "/_api/ecom/v1/bulk/subscription-contracts",
|
|
154
|
+
destPath: "/v1/bulk/subscription-contracts"
|
|
131
155
|
}
|
|
132
156
|
],
|
|
133
157
|
"manage._base_domain_": [
|
|
@@ -138,6 +162,14 @@ function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
|
138
162
|
{
|
|
139
163
|
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
140
164
|
destPath: "/v1/bulk/subscription-contracts"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
srcPath: "/_api/ecom/v1/subscription-contracts",
|
|
168
|
+
destPath: "/v1/subscription-contracts"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
srcPath: "/_api/ecom/v1/bulk/subscription-contracts",
|
|
172
|
+
destPath: "/v1/bulk/subscription-contracts"
|
|
141
173
|
}
|
|
142
174
|
]
|
|
143
175
|
};
|