@wix/auto_sdk_stores_subscription-options 1.0.10 → 1.0.11
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/index.d.mts +144 -0
- package/build/index.d.ts +144 -0
- package/build/index.js +873 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +836 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +144 -0
- package/build/internal/index.d.ts +144 -0
- package/build/internal/index.js +873 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +836 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +290 -0
- package/build/internal/meta.d.ts +290 -0
- package/build/internal/meta.js +658 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +620 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/stores-v1-subscription-option-subscription-options.types.d.ts → internal/stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.mts} +98 -54
- package/build/internal/{cjs/src/stores-v1-subscription-option-subscription-options.types.d.ts → stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.ts} +98 -54
- package/build/meta.d.mts +290 -0
- package/build/meta.d.ts +290 -0
- package/build/meta.js +658 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +620 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/es/src/stores-v1-subscription-option-subscription-options.types.d.ts → stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.mts} +98 -54
- package/build/{cjs/src/stores-v1-subscription-option-subscription-options.types.d.ts → stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.ts} +98 -54
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.js +0 -21
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js +0 -421
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.js +0 -258
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.js +0 -81
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.types.js +0 -20
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +0 -586
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.js +0 -16
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js +0 -406
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.js +0 -220
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.js +0 -64
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.types.js +0 -17
- package/build/es/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js +0 -548
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js +0 -21
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js +0 -421
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.js +0 -258
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.js +0 -81
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.types.js +0 -20
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +0 -586
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.js +0 -16
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js +0 -406
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.js +0 -220
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.js +0 -64
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.types.js +0 -17
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js +0 -548
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
package/build/meta.mjs
ADDED
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
// src/stores-v1-subscription-option-subscription-options.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
5
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
8
|
+
const domainToMappings = {
|
|
9
|
+
"api._api_base_domain_": [
|
|
10
|
+
{
|
|
11
|
+
srcPath: "/wix-ecommerce-plans",
|
|
12
|
+
destPath: ""
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"www.wixapis.com": [
|
|
16
|
+
{
|
|
17
|
+
srcPath: "/stores/v1/subscription-options",
|
|
18
|
+
destPath: "/v1/subscription-options"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"www._base_domain_": [
|
|
22
|
+
{
|
|
23
|
+
srcPath: "/_api/subscription-options-server",
|
|
24
|
+
destPath: ""
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"editor._base_domain_": [
|
|
28
|
+
{
|
|
29
|
+
srcPath: "/_api/subscription-options-server",
|
|
30
|
+
destPath: ""
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"blocks._base_domain_": [
|
|
34
|
+
{
|
|
35
|
+
srcPath: "/_api/subscription-options-server",
|
|
36
|
+
destPath: ""
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"create.editorx": [
|
|
40
|
+
{
|
|
41
|
+
srcPath: "/_api/subscription-options-server",
|
|
42
|
+
destPath: ""
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"manage._base_domain_": [
|
|
46
|
+
{
|
|
47
|
+
srcPath: "/_api/subscription-options-server",
|
|
48
|
+
destPath: ""
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
};
|
|
52
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
53
|
+
}
|
|
54
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
55
|
+
const domainToMappings = {
|
|
56
|
+
"api._api_base_domain_": [
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/wix-ecommerce-plans-reader",
|
|
59
|
+
destPath: ""
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"www._base_domain_": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
65
|
+
destPath: ""
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
_: [
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
71
|
+
destPath: ""
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"manage._base_domain_": [
|
|
75
|
+
{
|
|
76
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
77
|
+
destPath: ""
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
82
|
+
}
|
|
83
|
+
var PACKAGE_NAME = "@wix/auto_sdk_stores_subscription-options";
|
|
84
|
+
function getSubscriptionOption(payload) {
|
|
85
|
+
function __getSubscriptionOption({ host }) {
|
|
86
|
+
const metadata = {
|
|
87
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
88
|
+
method: "GET",
|
|
89
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
90
|
+
packageName: PACKAGE_NAME,
|
|
91
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
92
|
+
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
93
|
+
),
|
|
94
|
+
params: toURLSearchParams(payload),
|
|
95
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
96
|
+
{
|
|
97
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
98
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
99
|
+
}
|
|
100
|
+
])
|
|
101
|
+
};
|
|
102
|
+
return metadata;
|
|
103
|
+
}
|
|
104
|
+
return __getSubscriptionOption;
|
|
105
|
+
}
|
|
106
|
+
function getSubscriptionOptionsForProduct(payload) {
|
|
107
|
+
function __getSubscriptionOptionsForProduct({ host }) {
|
|
108
|
+
const metadata = {
|
|
109
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
110
|
+
method: "GET",
|
|
111
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
112
|
+
packageName: PACKAGE_NAME,
|
|
113
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
114
|
+
{
|
|
115
|
+
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
116
|
+
data: payload,
|
|
117
|
+
host
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
params: toURLSearchParams(payload),
|
|
121
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
122
|
+
{
|
|
123
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
124
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
125
|
+
}
|
|
126
|
+
])
|
|
127
|
+
};
|
|
128
|
+
return metadata;
|
|
129
|
+
}
|
|
130
|
+
return __getSubscriptionOptionsForProduct;
|
|
131
|
+
}
|
|
132
|
+
function getProductIdsForSubscriptionOption(payload) {
|
|
133
|
+
function __getProductIdsForSubscriptionOption({ host }) {
|
|
134
|
+
const metadata = {
|
|
135
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
136
|
+
method: "GET",
|
|
137
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
138
|
+
packageName: PACKAGE_NAME,
|
|
139
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
140
|
+
{
|
|
141
|
+
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
142
|
+
data: payload,
|
|
143
|
+
host
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
params: toURLSearchParams(payload)
|
|
147
|
+
};
|
|
148
|
+
return metadata;
|
|
149
|
+
}
|
|
150
|
+
return __getProductIdsForSubscriptionOption;
|
|
151
|
+
}
|
|
152
|
+
function getOneTimePurchasesStatus(payload) {
|
|
153
|
+
function __getOneTimePurchasesStatus({ host }) {
|
|
154
|
+
const metadata = {
|
|
155
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
156
|
+
method: "GET",
|
|
157
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
158
|
+
packageName: PACKAGE_NAME,
|
|
159
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
160
|
+
{
|
|
161
|
+
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
162
|
+
data: payload,
|
|
163
|
+
host
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
params: toURLSearchParams(payload)
|
|
167
|
+
};
|
|
168
|
+
return metadata;
|
|
169
|
+
}
|
|
170
|
+
return __getOneTimePurchasesStatus;
|
|
171
|
+
}
|
|
172
|
+
function createSubscriptionOption(payload) {
|
|
173
|
+
function __createSubscriptionOption({ host }) {
|
|
174
|
+
const serializedData = transformPaths(payload, [
|
|
175
|
+
{
|
|
176
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
177
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
178
|
+
}
|
|
179
|
+
]);
|
|
180
|
+
const metadata = {
|
|
181
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
182
|
+
method: "POST",
|
|
183
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.CreateSubscriptionOption",
|
|
184
|
+
packageName: PACKAGE_NAME,
|
|
185
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
186
|
+
{ protoPath: "/v1/subscription-options", data: serializedData, host }
|
|
187
|
+
),
|
|
188
|
+
data: serializedData,
|
|
189
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
190
|
+
{
|
|
191
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
192
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
193
|
+
}
|
|
194
|
+
])
|
|
195
|
+
};
|
|
196
|
+
return metadata;
|
|
197
|
+
}
|
|
198
|
+
return __createSubscriptionOption;
|
|
199
|
+
}
|
|
200
|
+
function updateSubscriptionOption(payload) {
|
|
201
|
+
function __updateSubscriptionOption({ host }) {
|
|
202
|
+
const serializedData = transformPaths(payload, [
|
|
203
|
+
{
|
|
204
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
205
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
206
|
+
}
|
|
207
|
+
]);
|
|
208
|
+
const metadata = {
|
|
209
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
210
|
+
method: "PATCH",
|
|
211
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.UpdateSubscriptionOption",
|
|
212
|
+
packageName: PACKAGE_NAME,
|
|
213
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
214
|
+
{
|
|
215
|
+
protoPath: "/v1/subscription-options/{subscriptionOption.id}",
|
|
216
|
+
data: serializedData,
|
|
217
|
+
host
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
data: serializedData,
|
|
221
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
222
|
+
{
|
|
223
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
224
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
225
|
+
}
|
|
226
|
+
])
|
|
227
|
+
};
|
|
228
|
+
return metadata;
|
|
229
|
+
}
|
|
230
|
+
return __updateSubscriptionOption;
|
|
231
|
+
}
|
|
232
|
+
function deleteSubscriptionOption(payload) {
|
|
233
|
+
function __deleteSubscriptionOption({ host }) {
|
|
234
|
+
const metadata = {
|
|
235
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
236
|
+
method: "DELETE",
|
|
237
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.DeleteSubscriptionOption",
|
|
238
|
+
packageName: PACKAGE_NAME,
|
|
239
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
240
|
+
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
241
|
+
),
|
|
242
|
+
params: toURLSearchParams(payload)
|
|
243
|
+
};
|
|
244
|
+
return metadata;
|
|
245
|
+
}
|
|
246
|
+
return __deleteSubscriptionOption;
|
|
247
|
+
}
|
|
248
|
+
function bulkCreateSubscriptionOptions(payload) {
|
|
249
|
+
function __bulkCreateSubscriptionOptions({ host }) {
|
|
250
|
+
const serializedData = transformPaths(payload, [
|
|
251
|
+
{
|
|
252
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
253
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
254
|
+
}
|
|
255
|
+
]);
|
|
256
|
+
const metadata = {
|
|
257
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
258
|
+
method: "POST",
|
|
259
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.BulkCreateSubscriptionOptions",
|
|
260
|
+
packageName: PACKAGE_NAME,
|
|
261
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
262
|
+
{
|
|
263
|
+
protoPath: "/v1/subscription-options/createBulk",
|
|
264
|
+
data: serializedData,
|
|
265
|
+
host
|
|
266
|
+
}
|
|
267
|
+
),
|
|
268
|
+
data: serializedData,
|
|
269
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
270
|
+
{
|
|
271
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
272
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
273
|
+
}
|
|
274
|
+
])
|
|
275
|
+
};
|
|
276
|
+
return metadata;
|
|
277
|
+
}
|
|
278
|
+
return __bulkCreateSubscriptionOptions;
|
|
279
|
+
}
|
|
280
|
+
function bulkUpdateSubscriptionOptions(payload) {
|
|
281
|
+
function __bulkUpdateSubscriptionOptions({ host }) {
|
|
282
|
+
const serializedData = transformPaths(payload, [
|
|
283
|
+
{
|
|
284
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
285
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
286
|
+
}
|
|
287
|
+
]);
|
|
288
|
+
const metadata = {
|
|
289
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
290
|
+
method: "PATCH",
|
|
291
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.BulkUpdateSubscriptionOptions",
|
|
292
|
+
packageName: PACKAGE_NAME,
|
|
293
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
294
|
+
{ protoPath: "/v1/subscription-options", data: serializedData, host }
|
|
295
|
+
),
|
|
296
|
+
data: serializedData,
|
|
297
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
298
|
+
{
|
|
299
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
300
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
301
|
+
}
|
|
302
|
+
])
|
|
303
|
+
};
|
|
304
|
+
return metadata;
|
|
305
|
+
}
|
|
306
|
+
return __bulkUpdateSubscriptionOptions;
|
|
307
|
+
}
|
|
308
|
+
function bulkDeleteSubscriptionOptions(payload) {
|
|
309
|
+
function __bulkDeleteSubscriptionOptions({ host }) {
|
|
310
|
+
const metadata = {
|
|
311
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
312
|
+
method: "POST",
|
|
313
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.BulkDeleteSubscriptionOptions",
|
|
314
|
+
packageName: PACKAGE_NAME,
|
|
315
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
316
|
+
{
|
|
317
|
+
protoPath: "/v1/subscription-options/deleteBulk",
|
|
318
|
+
data: payload,
|
|
319
|
+
host
|
|
320
|
+
}
|
|
321
|
+
),
|
|
322
|
+
data: payload
|
|
323
|
+
};
|
|
324
|
+
return metadata;
|
|
325
|
+
}
|
|
326
|
+
return __bulkDeleteSubscriptionOptions;
|
|
327
|
+
}
|
|
328
|
+
function assignSubscriptionOptionsToProduct(payload) {
|
|
329
|
+
function __assignSubscriptionOptionsToProduct({ host }) {
|
|
330
|
+
const serializedData = transformPaths(payload, [
|
|
331
|
+
{
|
|
332
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
333
|
+
paths: [{ path: "assignedSubscriptionOptions.discount.value" }]
|
|
334
|
+
}
|
|
335
|
+
]);
|
|
336
|
+
const metadata = {
|
|
337
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
338
|
+
method: "POST",
|
|
339
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.AssignSubscriptionOptionsToProduct",
|
|
340
|
+
packageName: PACKAGE_NAME,
|
|
341
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
342
|
+
{
|
|
343
|
+
protoPath: "/v1/subscription-options/product/{productId}/assign",
|
|
344
|
+
data: serializedData,
|
|
345
|
+
host
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
data: serializedData
|
|
349
|
+
};
|
|
350
|
+
return metadata;
|
|
351
|
+
}
|
|
352
|
+
return __assignSubscriptionOptionsToProduct;
|
|
353
|
+
}
|
|
354
|
+
function allowOneTimePurchases(payload) {
|
|
355
|
+
function __allowOneTimePurchases({ host }) {
|
|
356
|
+
const metadata = {
|
|
357
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
358
|
+
method: "PATCH",
|
|
359
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.AllowOneTimePurchases",
|
|
360
|
+
packageName: PACKAGE_NAME,
|
|
361
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
362
|
+
{
|
|
363
|
+
protoPath: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
|
|
364
|
+
data: payload,
|
|
365
|
+
host
|
|
366
|
+
}
|
|
367
|
+
),
|
|
368
|
+
data: payload
|
|
369
|
+
};
|
|
370
|
+
return metadata;
|
|
371
|
+
}
|
|
372
|
+
return __allowOneTimePurchases;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// src/stores-v1-subscription-option-subscription-options.meta.ts
|
|
376
|
+
function getSubscriptionOption2() {
|
|
377
|
+
const payload = { id: ":id" };
|
|
378
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
379
|
+
const getUrl = (context) => {
|
|
380
|
+
const { url } = getRequestOptions(context);
|
|
381
|
+
return url;
|
|
382
|
+
};
|
|
383
|
+
return {
|
|
384
|
+
getUrl,
|
|
385
|
+
httpMethod: "GET",
|
|
386
|
+
path: "/v1/subscription-options/{id}",
|
|
387
|
+
pathParams: { id: "id" },
|
|
388
|
+
__requestType: null,
|
|
389
|
+
__originalRequestType: null,
|
|
390
|
+
__responseType: null,
|
|
391
|
+
__originalResponseType: null
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function getSubscriptionOptionsForProduct2() {
|
|
395
|
+
const payload = { productId: ":productId" };
|
|
396
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
397
|
+
payload
|
|
398
|
+
);
|
|
399
|
+
const getUrl = (context) => {
|
|
400
|
+
const { url } = getRequestOptions(context);
|
|
401
|
+
return url;
|
|
402
|
+
};
|
|
403
|
+
return {
|
|
404
|
+
getUrl,
|
|
405
|
+
httpMethod: "GET",
|
|
406
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
407
|
+
pathParams: { productId: "productId" },
|
|
408
|
+
__requestType: null,
|
|
409
|
+
__originalRequestType: null,
|
|
410
|
+
__responseType: null,
|
|
411
|
+
__originalResponseType: null
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function getProductIdsForSubscriptionOption2() {
|
|
415
|
+
const payload = { id: ":id" };
|
|
416
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
417
|
+
payload
|
|
418
|
+
);
|
|
419
|
+
const getUrl = (context) => {
|
|
420
|
+
const { url } = getRequestOptions(context);
|
|
421
|
+
return url;
|
|
422
|
+
};
|
|
423
|
+
return {
|
|
424
|
+
getUrl,
|
|
425
|
+
httpMethod: "GET",
|
|
426
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
427
|
+
pathParams: { id: "id" },
|
|
428
|
+
__requestType: null,
|
|
429
|
+
__originalRequestType: null,
|
|
430
|
+
__responseType: null,
|
|
431
|
+
__originalResponseType: null
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
function getOneTimePurchasesStatus2() {
|
|
435
|
+
const payload = { productId: ":productId" };
|
|
436
|
+
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
437
|
+
const getUrl = (context) => {
|
|
438
|
+
const { url } = getRequestOptions(context);
|
|
439
|
+
return url;
|
|
440
|
+
};
|
|
441
|
+
return {
|
|
442
|
+
getUrl,
|
|
443
|
+
httpMethod: "GET",
|
|
444
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
445
|
+
pathParams: { productId: "productId" },
|
|
446
|
+
__requestType: null,
|
|
447
|
+
__originalRequestType: null,
|
|
448
|
+
__responseType: null,
|
|
449
|
+
__originalResponseType: null
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
function createSubscriptionOption2() {
|
|
453
|
+
const payload = {};
|
|
454
|
+
const getRequestOptions = createSubscriptionOption(payload);
|
|
455
|
+
const getUrl = (context) => {
|
|
456
|
+
const { url } = getRequestOptions(context);
|
|
457
|
+
return url;
|
|
458
|
+
};
|
|
459
|
+
return {
|
|
460
|
+
getUrl,
|
|
461
|
+
httpMethod: "POST",
|
|
462
|
+
path: "/v1/subscription-options",
|
|
463
|
+
pathParams: {},
|
|
464
|
+
__requestType: null,
|
|
465
|
+
__originalRequestType: null,
|
|
466
|
+
__responseType: null,
|
|
467
|
+
__originalResponseType: null
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function updateSubscriptionOption2() {
|
|
471
|
+
const payload = {
|
|
472
|
+
subscriptionOption: { id: ":subscriptionOptionId" }
|
|
473
|
+
};
|
|
474
|
+
const getRequestOptions = updateSubscriptionOption(payload);
|
|
475
|
+
const getUrl = (context) => {
|
|
476
|
+
const { url } = getRequestOptions(context);
|
|
477
|
+
return url;
|
|
478
|
+
};
|
|
479
|
+
return {
|
|
480
|
+
getUrl,
|
|
481
|
+
httpMethod: "PATCH",
|
|
482
|
+
path: "/v1/subscription-options/{subscriptionOption.id}",
|
|
483
|
+
pathParams: { subscriptionOptionId: "subscriptionOptionId" },
|
|
484
|
+
__requestType: null,
|
|
485
|
+
__originalRequestType: null,
|
|
486
|
+
__responseType: null,
|
|
487
|
+
__originalResponseType: null
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
function deleteSubscriptionOption2() {
|
|
491
|
+
const payload = { id: ":id" };
|
|
492
|
+
const getRequestOptions = deleteSubscriptionOption(payload);
|
|
493
|
+
const getUrl = (context) => {
|
|
494
|
+
const { url } = getRequestOptions(context);
|
|
495
|
+
return url;
|
|
496
|
+
};
|
|
497
|
+
return {
|
|
498
|
+
getUrl,
|
|
499
|
+
httpMethod: "DELETE",
|
|
500
|
+
path: "/v1/subscription-options/{id}",
|
|
501
|
+
pathParams: { id: "id" },
|
|
502
|
+
__requestType: null,
|
|
503
|
+
__originalRequestType: null,
|
|
504
|
+
__responseType: null,
|
|
505
|
+
__originalResponseType: null
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
function bulkCreateSubscriptionOptions2() {
|
|
509
|
+
const payload = {};
|
|
510
|
+
const getRequestOptions = bulkCreateSubscriptionOptions(
|
|
511
|
+
payload
|
|
512
|
+
);
|
|
513
|
+
const getUrl = (context) => {
|
|
514
|
+
const { url } = getRequestOptions(context);
|
|
515
|
+
return url;
|
|
516
|
+
};
|
|
517
|
+
return {
|
|
518
|
+
getUrl,
|
|
519
|
+
httpMethod: "POST",
|
|
520
|
+
path: "/v1/subscription-options/createBulk",
|
|
521
|
+
pathParams: {},
|
|
522
|
+
__requestType: null,
|
|
523
|
+
__originalRequestType: null,
|
|
524
|
+
__responseType: null,
|
|
525
|
+
__originalResponseType: null
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
function bulkUpdateSubscriptionOptions2() {
|
|
529
|
+
const payload = {};
|
|
530
|
+
const getRequestOptions = bulkUpdateSubscriptionOptions(
|
|
531
|
+
payload
|
|
532
|
+
);
|
|
533
|
+
const getUrl = (context) => {
|
|
534
|
+
const { url } = getRequestOptions(context);
|
|
535
|
+
return url;
|
|
536
|
+
};
|
|
537
|
+
return {
|
|
538
|
+
getUrl,
|
|
539
|
+
httpMethod: "PATCH",
|
|
540
|
+
path: "/v1/subscription-options",
|
|
541
|
+
pathParams: {},
|
|
542
|
+
__requestType: null,
|
|
543
|
+
__originalRequestType: null,
|
|
544
|
+
__responseType: null,
|
|
545
|
+
__originalResponseType: null
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
function bulkDeleteSubscriptionOptions2() {
|
|
549
|
+
const payload = {};
|
|
550
|
+
const getRequestOptions = bulkDeleteSubscriptionOptions(
|
|
551
|
+
payload
|
|
552
|
+
);
|
|
553
|
+
const getUrl = (context) => {
|
|
554
|
+
const { url } = getRequestOptions(context);
|
|
555
|
+
return url;
|
|
556
|
+
};
|
|
557
|
+
return {
|
|
558
|
+
getUrl,
|
|
559
|
+
httpMethod: "POST",
|
|
560
|
+
path: "/v1/subscription-options/deleteBulk",
|
|
561
|
+
pathParams: {},
|
|
562
|
+
__requestType: null,
|
|
563
|
+
__originalRequestType: null,
|
|
564
|
+
__responseType: null,
|
|
565
|
+
__originalResponseType: null
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
function assignSubscriptionOptionsToProduct2() {
|
|
569
|
+
const payload = { productId: ":productId" };
|
|
570
|
+
const getRequestOptions = assignSubscriptionOptionsToProduct(
|
|
571
|
+
payload
|
|
572
|
+
);
|
|
573
|
+
const getUrl = (context) => {
|
|
574
|
+
const { url } = getRequestOptions(context);
|
|
575
|
+
return url;
|
|
576
|
+
};
|
|
577
|
+
return {
|
|
578
|
+
getUrl,
|
|
579
|
+
httpMethod: "POST",
|
|
580
|
+
path: "/v1/subscription-options/product/{productId}/assign",
|
|
581
|
+
pathParams: { productId: "productId" },
|
|
582
|
+
__requestType: null,
|
|
583
|
+
__originalRequestType: null,
|
|
584
|
+
__responseType: null,
|
|
585
|
+
__originalResponseType: null
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
function allowOneTimePurchases2() {
|
|
589
|
+
const payload = { productId: ":productId" };
|
|
590
|
+
const getRequestOptions = allowOneTimePurchases(payload);
|
|
591
|
+
const getUrl = (context) => {
|
|
592
|
+
const { url } = getRequestOptions(context);
|
|
593
|
+
return url;
|
|
594
|
+
};
|
|
595
|
+
return {
|
|
596
|
+
getUrl,
|
|
597
|
+
httpMethod: "PATCH",
|
|
598
|
+
path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
|
|
599
|
+
pathParams: { productId: "productId" },
|
|
600
|
+
__requestType: null,
|
|
601
|
+
__originalRequestType: null,
|
|
602
|
+
__responseType: null,
|
|
603
|
+
__originalResponseType: null
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
export {
|
|
607
|
+
allowOneTimePurchases2 as allowOneTimePurchases,
|
|
608
|
+
assignSubscriptionOptionsToProduct2 as assignSubscriptionOptionsToProduct,
|
|
609
|
+
bulkCreateSubscriptionOptions2 as bulkCreateSubscriptionOptions,
|
|
610
|
+
bulkDeleteSubscriptionOptions2 as bulkDeleteSubscriptionOptions,
|
|
611
|
+
bulkUpdateSubscriptionOptions2 as bulkUpdateSubscriptionOptions,
|
|
612
|
+
createSubscriptionOption2 as createSubscriptionOption,
|
|
613
|
+
deleteSubscriptionOption2 as deleteSubscriptionOption,
|
|
614
|
+
getOneTimePurchasesStatus2 as getOneTimePurchasesStatus,
|
|
615
|
+
getProductIdsForSubscriptionOption2 as getProductIdsForSubscriptionOption,
|
|
616
|
+
getSubscriptionOption2 as getSubscriptionOption,
|
|
617
|
+
getSubscriptionOptionsForProduct2 as getSubscriptionOptionsForProduct,
|
|
618
|
+
updateSubscriptionOption2 as updateSubscriptionOption
|
|
619
|
+
};
|
|
620
|
+
//# sourceMappingURL=meta.mjs.map
|