@deliverart/sdk-js-subscription 2.13.2 → 2.13.4
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/README.md +79 -0
- package/dist/index.cjs +514 -50
- package/dist/index.d.cts +2587 -142
- package/dist/index.d.ts +2587 -142
- package/dist/index.js +468 -50
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
CreateSubscriptionConsumption: () => CreateSubscriptionConsumption,
|
|
25
25
|
CreateSubscriptionConsumptionRenewal: () => CreateSubscriptionConsumptionRenewal,
|
|
26
26
|
CreateSubscriptionInfinite: () => CreateSubscriptionInfinite,
|
|
27
|
+
CreateSubscriptionPlan: () => CreateSubscriptionPlan,
|
|
27
28
|
CreateSubscriptionPrice: () => CreateSubscriptionPrice,
|
|
28
29
|
CreateSubscriptionTimeBased: () => CreateSubscriptionTimeBased,
|
|
29
30
|
CreateSubscriptionTimeBasedRenewal: () => CreateSubscriptionTimeBasedRenewal,
|
|
@@ -32,6 +33,7 @@ __export(index_exports, {
|
|
|
32
33
|
DeleteSubscriptionConsumption: () => DeleteSubscriptionConsumption,
|
|
33
34
|
DeleteSubscriptionConsumptionRenewal: () => DeleteSubscriptionConsumptionRenewal,
|
|
34
35
|
DeleteSubscriptionInfinite: () => DeleteSubscriptionInfinite,
|
|
36
|
+
DeleteSubscriptionPlan: () => DeleteSubscriptionPlan,
|
|
35
37
|
DeleteSubscriptionPrice: () => DeleteSubscriptionPrice,
|
|
36
38
|
DeleteSubscriptionTimeBased: () => DeleteSubscriptionTimeBased,
|
|
37
39
|
DeleteSubscriptionTimeBasedRenewal: () => DeleteSubscriptionTimeBasedRenewal,
|
|
@@ -47,6 +49,10 @@ __export(index_exports, {
|
|
|
47
49
|
GetSubscriptionInfiniteDetails: () => GetSubscriptionInfiniteDetails,
|
|
48
50
|
GetSubscriptionInfiniteList: () => GetSubscriptionInfiniteList,
|
|
49
51
|
GetSubscriptionOverviewFromPointOfSale: () => GetSubscriptionOverviewFromPointOfSale,
|
|
52
|
+
GetSubscriptionPlanCatalog: () => GetSubscriptionPlanCatalog,
|
|
53
|
+
GetSubscriptionPlanCatalogDetails: () => GetSubscriptionPlanCatalogDetails,
|
|
54
|
+
GetSubscriptionPlanDetails: () => GetSubscriptionPlanDetails,
|
|
55
|
+
GetSubscriptionPlans: () => GetSubscriptionPlans,
|
|
50
56
|
GetSubscriptionPriceDetails: () => GetSubscriptionPriceDetails,
|
|
51
57
|
GetSubscriptionPrices: () => GetSubscriptionPrices,
|
|
52
58
|
GetSubscriptionTimeBasedDetails: () => GetSubscriptionTimeBasedDetails,
|
|
@@ -56,8 +62,13 @@ __export(index_exports, {
|
|
|
56
62
|
GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased: () => GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased,
|
|
57
63
|
GetSubscriptions: () => GetSubscriptions,
|
|
58
64
|
GetSubscriptionsFromPointOfSale: () => GetSubscriptionsFromPointOfSale,
|
|
65
|
+
PaySubscriptionConsumptionRenewal: () => PaySubscriptionConsumptionRenewal,
|
|
66
|
+
PaySubscriptionTimeBasedRenewal: () => PaySubscriptionTimeBasedRenewal,
|
|
67
|
+
ResolveSubscriptionConsumptionRenewalPayment: () => ResolveSubscriptionConsumptionRenewalPayment,
|
|
68
|
+
ResolveSubscriptionTimeBasedRenewalPayment: () => ResolveSubscriptionTimeBasedRenewalPayment,
|
|
59
69
|
UpdateSubscription: () => UpdateSubscription,
|
|
60
70
|
UpdateSubscriptionConsumption: () => UpdateSubscriptionConsumption,
|
|
71
|
+
UpdateSubscriptionPlan: () => UpdateSubscriptionPlan,
|
|
61
72
|
UpdateSubscriptionPrice: () => UpdateSubscriptionPrice,
|
|
62
73
|
UpdateSubscriptionTimeBased: () => UpdateSubscriptionTimeBased,
|
|
63
74
|
adjustSubscriptionConsumptionCreditsInputSchema: () => adjustSubscriptionConsumptionCreditsInputSchema,
|
|
@@ -70,6 +81,8 @@ __export(index_exports, {
|
|
|
70
81
|
createSubscriptionConsumptionResponseSchema: () => createSubscriptionConsumptionResponseSchema,
|
|
71
82
|
createSubscriptionInfiniteInputSchema: () => createSubscriptionInfiniteInputSchema,
|
|
72
83
|
createSubscriptionInfiniteResponseSchema: () => createSubscriptionInfiniteResponseSchema,
|
|
84
|
+
createSubscriptionPlanInputSchema: () => createSubscriptionPlanInputSchema,
|
|
85
|
+
createSubscriptionPlanResponseSchema: () => createSubscriptionPlanResponseSchema,
|
|
73
86
|
createSubscriptionPriceInputSchema: () => createSubscriptionPriceInputSchema,
|
|
74
87
|
createSubscriptionPriceResponseSchema: () => createSubscriptionPriceResponseSchema,
|
|
75
88
|
createSubscriptionTimeBasedInputSchema: () => createSubscriptionTimeBasedInputSchema,
|
|
@@ -92,6 +105,8 @@ __export(index_exports, {
|
|
|
92
105
|
deleteSubscriptionInfiniteInputSchema: () => deleteSubscriptionInfiniteInputSchema,
|
|
93
106
|
deleteSubscriptionInfiniteResponseSchema: () => deleteSubscriptionInfiniteResponseSchema,
|
|
94
107
|
deleteSubscriptionInputSchema: () => deleteSubscriptionInputSchema,
|
|
108
|
+
deleteSubscriptionPlanInputSchema: () => deleteSubscriptionPlanInputSchema,
|
|
109
|
+
deleteSubscriptionPlanResponseSchema: () => deleteSubscriptionPlanResponseSchema,
|
|
95
110
|
deleteSubscriptionPriceInputSchema: () => deleteSubscriptionPriceInputSchema,
|
|
96
111
|
deleteSubscriptionPriceResponseSchema: () => deleteSubscriptionPriceResponseSchema,
|
|
97
112
|
deleteSubscriptionResponseSchema: () => deleteSubscriptionResponseSchema,
|
|
@@ -122,6 +137,14 @@ __export(index_exports, {
|
|
|
122
137
|
getSubscriptionInfiniteListResponseSchema: () => getSubscriptionInfiniteListResponseSchema,
|
|
123
138
|
getSubscriptionOverviewFromPointOfSaleInputSchema: () => getSubscriptionOverviewFromPointOfSaleInputSchema,
|
|
124
139
|
getSubscriptionOverviewFromPointOfSaleResponseSchema: () => getSubscriptionOverviewFromPointOfSaleResponseSchema,
|
|
140
|
+
getSubscriptionPlanCatalogDetailsInputSchema: () => getSubscriptionPlanCatalogDetailsInputSchema,
|
|
141
|
+
getSubscriptionPlanCatalogDetailsResponseSchema: () => getSubscriptionPlanCatalogDetailsResponseSchema,
|
|
142
|
+
getSubscriptionPlanCatalogInputSchema: () => getSubscriptionPlanCatalogInputSchema,
|
|
143
|
+
getSubscriptionPlanCatalogResponseSchema: () => getSubscriptionPlanCatalogResponseSchema,
|
|
144
|
+
getSubscriptionPlanDetailsInputSchema: () => getSubscriptionPlanDetailsInputSchema,
|
|
145
|
+
getSubscriptionPlanDetailsResponseSchema: () => getSubscriptionPlanDetailsResponseSchema,
|
|
146
|
+
getSubscriptionPlansInputSchema: () => getSubscriptionPlansInputSchema,
|
|
147
|
+
getSubscriptionPlansResponseSchema: () => getSubscriptionPlansResponseSchema,
|
|
125
148
|
getSubscriptionPriceDetailsInputSchema: () => getSubscriptionPriceDetailsInputSchema,
|
|
126
149
|
getSubscriptionPriceDetailsResponseSchema: () => getSubscriptionPriceDetailsResponseSchema,
|
|
127
150
|
getSubscriptionPricesInputSchema: () => getSubscriptionPricesInputSchema,
|
|
@@ -139,8 +162,26 @@ __export(index_exports, {
|
|
|
139
162
|
getSubscriptionsFromPointOfSaleResponseSchema: () => getSubscriptionsFromPointOfSaleResponseSchema,
|
|
140
163
|
getSubscriptionsInputSchema: () => getSubscriptionsInputSchema,
|
|
141
164
|
getSubscriptionsResponseSchema: () => getSubscriptionsResponseSchema,
|
|
165
|
+
paySubscriptionConsumptionRenewalInputSchema: () => paySubscriptionConsumptionRenewalInputSchema,
|
|
166
|
+
paySubscriptionConsumptionRenewalResponseSchema: () => paySubscriptionConsumptionRenewalResponseSchema,
|
|
167
|
+
paySubscriptionRenewalInputSchema: () => paySubscriptionRenewalInputSchema,
|
|
168
|
+
paySubscriptionTimeBasedRenewalInputSchema: () => paySubscriptionTimeBasedRenewalInputSchema,
|
|
169
|
+
paySubscriptionTimeBasedRenewalResponseSchema: () => paySubscriptionTimeBasedRenewalResponseSchema,
|
|
170
|
+
paymentIriSchema: () => paymentIriSchema,
|
|
171
|
+
paymentMethodSchema: () => import_sdk_js_global_types2.paymentMethodSchema,
|
|
172
|
+
paymentMethods: () => import_sdk_js_global_types2.paymentMethods,
|
|
173
|
+
paymentNullableIriSchema: () => paymentNullableIriSchema,
|
|
174
|
+
paymentStatusSchema: () => import_sdk_js_global_types2.paymentStatusSchema,
|
|
175
|
+
paymentStatuses: () => import_sdk_js_global_types2.paymentStatuses,
|
|
142
176
|
renewalStatusSchema: () => import_sdk_js_global_types2.renewalStatusSchema,
|
|
143
177
|
renewalStatuses: () => import_sdk_js_global_types2.renewalStatuses,
|
|
178
|
+
resolvableRenewalPaymentStatusSchema: () => resolvableRenewalPaymentStatusSchema,
|
|
179
|
+
resolvableRenewalPaymentStatuses: () => resolvableRenewalPaymentStatuses,
|
|
180
|
+
resolveSubscriptionConsumptionRenewalPaymentInputSchema: () => resolveSubscriptionConsumptionRenewalPaymentInputSchema,
|
|
181
|
+
resolveSubscriptionConsumptionRenewalPaymentResponseSchema: () => resolveSubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
182
|
+
resolveSubscriptionRenewalPaymentInputSchema: () => resolveSubscriptionRenewalPaymentInputSchema,
|
|
183
|
+
resolveSubscriptionTimeBasedRenewalPaymentInputSchema: () => resolveSubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
184
|
+
resolveSubscriptionTimeBasedRenewalPaymentResponseSchema: () => resolveSubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
144
185
|
subscriptionAvailabilityReasonSchema: () => subscriptionAvailabilityReasonSchema,
|
|
145
186
|
subscriptionAvailabilityReasons: () => subscriptionAvailabilityReasons,
|
|
146
187
|
subscriptionConsumptionDetailsSchema: () => subscriptionConsumptionDetailsSchema,
|
|
@@ -161,13 +202,21 @@ __export(index_exports, {
|
|
|
161
202
|
subscriptionIriSchema: () => subscriptionIriSchema,
|
|
162
203
|
subscriptionNullableIriSchema: () => subscriptionNullableIriSchema,
|
|
163
204
|
subscriptionOperationQuoteSchema: () => subscriptionOperationQuoteSchema,
|
|
205
|
+
subscriptionOverviewPlanSchema: () => subscriptionOverviewPlanSchema,
|
|
164
206
|
subscriptionOverviewResponseSchema: () => subscriptionOverviewResponseSchema,
|
|
165
207
|
subscriptionOverviewSubscriptionSchema: () => subscriptionOverviewSubscriptionSchema,
|
|
208
|
+
subscriptionPlanIriSchema: () => subscriptionPlanIriSchema,
|
|
209
|
+
subscriptionPlanNullableIriSchema: () => subscriptionPlanNullableIriSchema,
|
|
210
|
+
subscriptionPlanPriceOptionSchema: () => subscriptionPlanPriceOptionSchema,
|
|
211
|
+
subscriptionPlanSchema: () => subscriptionPlanSchema,
|
|
212
|
+
subscriptionPlanSummarySchema: () => subscriptionPlanSummarySchema,
|
|
213
|
+
subscriptionPlansQuerySchema: () => subscriptionPlansQuerySchema,
|
|
166
214
|
subscriptionPriceIriSchema: () => subscriptionPriceIriSchema,
|
|
167
215
|
subscriptionPriceNullableIriSchema: () => subscriptionPriceNullableIriSchema,
|
|
168
216
|
subscriptionPriceSchema: () => subscriptionPriceSchema,
|
|
169
217
|
subscriptionPricesQuerySchema: () => subscriptionPricesQuerySchema,
|
|
170
218
|
subscriptionQuerySchema: () => subscriptionQuerySchema,
|
|
219
|
+
subscriptionRenewalPaymentInfoSchema: () => subscriptionRenewalPaymentInfoSchema,
|
|
171
220
|
subscriptionSchema: () => subscriptionSchema,
|
|
172
221
|
subscriptionStatusSchema: () => import_sdk_js_global_types2.subscriptionStatusSchema,
|
|
173
222
|
subscriptionStatuses: () => import_sdk_js_global_types2.subscriptionStatuses,
|
|
@@ -186,6 +235,8 @@ __export(index_exports, {
|
|
|
186
235
|
updateSubscriptionConsumptionInputSchema: () => updateSubscriptionConsumptionInputSchema,
|
|
187
236
|
updateSubscriptionConsumptionResponseSchema: () => updateSubscriptionConsumptionResponseSchema,
|
|
188
237
|
updateSubscriptionInputSchema: () => updateSubscriptionInputSchema,
|
|
238
|
+
updateSubscriptionPlanInputSchema: () => updateSubscriptionPlanInputSchema,
|
|
239
|
+
updateSubscriptionPlanResponseSchema: () => updateSubscriptionPlanResponseSchema,
|
|
189
240
|
updateSubscriptionPriceInputSchema: () => updateSubscriptionPriceInputSchema,
|
|
190
241
|
updateSubscriptionPriceResponseSchema: () => updateSubscriptionPriceResponseSchema,
|
|
191
242
|
updateSubscriptionResponseSchema: () => updateSubscriptionResponseSchema,
|
|
@@ -195,6 +246,7 @@ __export(index_exports, {
|
|
|
195
246
|
writableSubscriptionConsumptionRenewalSchema: () => writableSubscriptionConsumptionRenewalSchema,
|
|
196
247
|
writableSubscriptionConsumptionSchema: () => writableSubscriptionConsumptionSchema,
|
|
197
248
|
writableSubscriptionInfiniteSchema: () => writableSubscriptionInfiniteSchema,
|
|
249
|
+
writableSubscriptionPlanSchema: () => writableSubscriptionPlanSchema,
|
|
198
250
|
writableSubscriptionPriceSchema: () => writableSubscriptionPriceSchema,
|
|
199
251
|
writableSubscriptionTimeBasedRenewalSchema: () => writableSubscriptionTimeBasedRenewalSchema,
|
|
200
252
|
writableSubscriptionTimeBasedSchema: () => writableSubscriptionTimeBasedSchema
|
|
@@ -13991,6 +14043,8 @@ var subscriptionAvailabilityReasons = [
|
|
|
13991
14043
|
"operation_not_allowed"
|
|
13992
14044
|
];
|
|
13993
14045
|
var subscriptionAvailabilityReasonSchema = external_exports.enum(subscriptionAvailabilityReasons);
|
|
14046
|
+
var resolvableRenewalPaymentStatuses = ["paid", "failed", "canceled"];
|
|
14047
|
+
var resolvableRenewalPaymentStatusSchema = external_exports.enum(resolvableRenewalPaymentStatuses);
|
|
13994
14048
|
var subscriptionIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/:id");
|
|
13995
14049
|
var subscriptionNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscriptions/:id");
|
|
13996
14050
|
var subscriptionInfiniteIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/infinite/:id");
|
|
@@ -14007,6 +14061,8 @@ var subscriptionTimeBasedNullableIriSchema = (0, import_sdk_js_global_types.iriN
|
|
|
14007
14061
|
);
|
|
14008
14062
|
var subscriptionPriceIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/prices/:id");
|
|
14009
14063
|
var subscriptionPriceNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscriptions/prices/:id");
|
|
14064
|
+
var subscriptionPlanIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscription_plans/:id");
|
|
14065
|
+
var subscriptionPlanNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscription_plans/:id");
|
|
14010
14066
|
var subscriptionConsumptionRenewalIriSchema = (0, import_sdk_js_global_types.iriSchema)(
|
|
14011
14067
|
"/subscriptions/consumption/renewals/:id"
|
|
14012
14068
|
);
|
|
@@ -14019,6 +14075,8 @@ var subscriptionTimeBasedRenewalIriSchema = (0, import_sdk_js_global_types.iriSc
|
|
|
14019
14075
|
var subscriptionTimeBasedRenewalNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
14020
14076
|
"/subscriptions/time_based/renewals/:id"
|
|
14021
14077
|
);
|
|
14078
|
+
var paymentIriSchema = (0, import_sdk_js_global_types.iriSchema)("/payments/:id");
|
|
14079
|
+
var paymentNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/payments/:id");
|
|
14022
14080
|
var creditUsageLogIriSchema = (0, import_sdk_js_global_types.iriSchema)("/credit_usage_logs/:id");
|
|
14023
14081
|
var creditUsageLogNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/credit_usage_logs/:id");
|
|
14024
14082
|
|
|
@@ -14032,12 +14090,59 @@ var integerRangeFilterShape = {
|
|
|
14032
14090
|
"[lte]": external_exports.coerce.number().optional()
|
|
14033
14091
|
};
|
|
14034
14092
|
var jsonContextSchema = external_exports.union([external_exports.array(external_exports.unknown()), external_exports.record(external_exports.string(), external_exports.unknown())]);
|
|
14093
|
+
var subscriptionPlanSummarySchema = external_exports.object({
|
|
14094
|
+
id: external_exports.string(),
|
|
14095
|
+
code: external_exports.string(),
|
|
14096
|
+
name: external_exports.string(),
|
|
14097
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14098
|
+
isActive: external_exports.boolean(),
|
|
14099
|
+
isPurchasable: external_exports.boolean(),
|
|
14100
|
+
isAdminOnly: external_exports.boolean()
|
|
14101
|
+
});
|
|
14102
|
+
var subscriptionOverviewPlanSchema = external_exports.object({
|
|
14103
|
+
id: external_exports.string(),
|
|
14104
|
+
iri: subscriptionPlanIriSchema,
|
|
14105
|
+
code: external_exports.string(),
|
|
14106
|
+
name: external_exports.string(),
|
|
14107
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14108
|
+
active: external_exports.boolean(),
|
|
14109
|
+
purchasable: external_exports.boolean(),
|
|
14110
|
+
adminOnly: external_exports.boolean()
|
|
14111
|
+
});
|
|
14112
|
+
var subscriptionPlanPriceOptionSchema = external_exports.object({
|
|
14113
|
+
id: external_exports.string(),
|
|
14114
|
+
iri: subscriptionPriceIriSchema,
|
|
14115
|
+
threshold: external_exports.coerce.number().int().nonnegative(),
|
|
14116
|
+
unitPrice: external_exports.string()
|
|
14117
|
+
});
|
|
14118
|
+
var subscriptionPlanSchema = external_exports.object({
|
|
14119
|
+
id: external_exports.string(),
|
|
14120
|
+
code: external_exports.string(),
|
|
14121
|
+
name: external_exports.string(),
|
|
14122
|
+
description: external_exports.string().nullable(),
|
|
14123
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14124
|
+
isActive: external_exports.boolean(),
|
|
14125
|
+
isPurchasable: external_exports.boolean(),
|
|
14126
|
+
isAdminOnly: external_exports.boolean(),
|
|
14127
|
+
defaultAutoRenewal: external_exports.boolean(),
|
|
14128
|
+
includedCredits: external_exports.coerce.number().int().positive().nullable(),
|
|
14129
|
+
renewalCredits: external_exports.coerce.number().int().positive().nullable(),
|
|
14130
|
+
renewalThreshold: external_exports.coerce.number().int().nonnegative().nullable(),
|
|
14131
|
+
durationDays: external_exports.coerce.number().int().positive().nullable(),
|
|
14132
|
+
renewalDays: external_exports.coerce.number().int().positive().nullable(),
|
|
14133
|
+
renewalOffsetDays: external_exports.coerce.number().int().nonnegative().nullable(),
|
|
14134
|
+
operationCosts: external_exports.record(external_exports.string(), external_exports.coerce.number().int().nonnegative()),
|
|
14135
|
+
priceOptions: external_exports.array(subscriptionPlanPriceOptionSchema).default([]),
|
|
14136
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
14137
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
14138
|
+
});
|
|
14035
14139
|
var subscriptionBaseSchema = external_exports.object({
|
|
14036
14140
|
id: external_exports.string(),
|
|
14037
14141
|
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
14038
14142
|
autoRenewal: external_exports.boolean(),
|
|
14039
14143
|
startsAt: subscriptionDateSchema,
|
|
14040
14144
|
customUnitPrice: external_exports.string().nullable(),
|
|
14145
|
+
plan: subscriptionPlanSummarySchema.nullable().optional(),
|
|
14041
14146
|
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
14042
14147
|
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
14043
14148
|
});
|
|
@@ -14095,6 +14200,7 @@ var renewalBaseSchema = external_exports.object({
|
|
|
14095
14200
|
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
14096
14201
|
});
|
|
14097
14202
|
var subscriptionConsumptionRenewalSchema = renewalBaseSchema.extend({
|
|
14203
|
+
payment: paymentNullableIriSchema,
|
|
14098
14204
|
credits: external_exports.coerce.number().int(),
|
|
14099
14205
|
pricePerCredit: external_exports.coerce.number()
|
|
14100
14206
|
});
|
|
@@ -14102,6 +14208,7 @@ var subscriptionConsumptionRenewalDetailsSchema = subscriptionConsumptionRenewal
|
|
|
14102
14208
|
subscription: subscriptionConsumptionIriSchema
|
|
14103
14209
|
});
|
|
14104
14210
|
var subscriptionTimeBasedRenewalSchema = renewalBaseSchema.extend({
|
|
14211
|
+
payment: paymentNullableIriSchema,
|
|
14105
14212
|
days: external_exports.coerce.number().int(),
|
|
14106
14213
|
previousExpiresDate: subscriptionDateSchema,
|
|
14107
14214
|
newExpiresDate: subscriptionDateSchema,
|
|
@@ -14113,6 +14220,7 @@ var subscriptionTimeBasedRenewalDetailsSchema = subscriptionTimeBasedRenewalSche
|
|
|
14113
14220
|
var subscriptionPriceSchema = external_exports.object({
|
|
14114
14221
|
id: external_exports.string(),
|
|
14115
14222
|
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14223
|
+
plan: subscriptionPlanNullableIriSchema.nullable().optional(),
|
|
14116
14224
|
threshold: external_exports.coerce.number().int(),
|
|
14117
14225
|
unitPrice: external_exports.string(),
|
|
14118
14226
|
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
@@ -14147,6 +14255,42 @@ var adjustSubscriptionConsumptionCreditsInputSchema = external_exports.object({
|
|
|
14147
14255
|
});
|
|
14148
14256
|
}
|
|
14149
14257
|
});
|
|
14258
|
+
var paySubscriptionRenewalInputSchema = external_exports.object({
|
|
14259
|
+
method: import_sdk_js_global_types3.paymentMethodSchema
|
|
14260
|
+
});
|
|
14261
|
+
var paymentInfoBaseSchema = external_exports.object({
|
|
14262
|
+
id: external_exports.string(),
|
|
14263
|
+
method: import_sdk_js_global_types3.paymentMethodSchema,
|
|
14264
|
+
status: import_sdk_js_global_types3.paymentStatusSchema,
|
|
14265
|
+
amount: external_exports.string()
|
|
14266
|
+
});
|
|
14267
|
+
var subscriptionRenewalPaymentInfoSchema = external_exports.discriminatedUnion("method", [
|
|
14268
|
+
paymentInfoBaseSchema.extend({
|
|
14269
|
+
method: external_exports.literal("stripe"),
|
|
14270
|
+
sessionUrl: external_exports.string(),
|
|
14271
|
+
expiresAt: import_sdk_js_global_types3.datetimeSchema
|
|
14272
|
+
}),
|
|
14273
|
+
paymentInfoBaseSchema.extend({
|
|
14274
|
+
method: external_exports.literal("bank_transfer"),
|
|
14275
|
+
iban: external_exports.string(),
|
|
14276
|
+
bic: external_exports.string(),
|
|
14277
|
+
accountHolder: external_exports.string(),
|
|
14278
|
+
bankName: external_exports.string(),
|
|
14279
|
+
bankAddress: external_exports.string().nullable(),
|
|
14280
|
+
currency: external_exports.string(),
|
|
14281
|
+
description: external_exports.string()
|
|
14282
|
+
}),
|
|
14283
|
+
paymentInfoBaseSchema.extend({
|
|
14284
|
+
method: external_exports.literal("cash")
|
|
14285
|
+
}),
|
|
14286
|
+
paymentInfoBaseSchema.extend({
|
|
14287
|
+
method: external_exports.literal("credit_card")
|
|
14288
|
+
})
|
|
14289
|
+
]);
|
|
14290
|
+
var resolveSubscriptionRenewalPaymentInputSchema = external_exports.object({
|
|
14291
|
+
status: resolvableRenewalPaymentStatusSchema,
|
|
14292
|
+
response: external_exports.string().max(65535).optional()
|
|
14293
|
+
});
|
|
14150
14294
|
var subscriptionOverviewSubscriptionIriSchema = external_exports.union([
|
|
14151
14295
|
subscriptionInfiniteIriSchema,
|
|
14152
14296
|
subscriptionConsumptionIriSchema,
|
|
@@ -14155,6 +14299,7 @@ var subscriptionOverviewSubscriptionIriSchema = external_exports.union([
|
|
|
14155
14299
|
var subscriptionOverviewSubscriptionSchema = external_exports.object({
|
|
14156
14300
|
id: external_exports.string(),
|
|
14157
14301
|
iri: subscriptionOverviewSubscriptionIriSchema,
|
|
14302
|
+
plan: subscriptionOverviewPlanSchema.nullable(),
|
|
14158
14303
|
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14159
14304
|
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
14160
14305
|
startsAt: subscriptionDateSchema,
|
|
@@ -14203,9 +14348,27 @@ var writableSubscriptionTimeBasedSchema = writableSubscriptionCommonSchema.exten
|
|
|
14203
14348
|
});
|
|
14204
14349
|
var writableSubscriptionPriceSchema = external_exports.object({
|
|
14205
14350
|
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14351
|
+
plan: subscriptionPlanNullableIriSchema.nullable().optional(),
|
|
14206
14352
|
threshold: external_exports.coerce.number().int().nonnegative(),
|
|
14207
14353
|
unitPrice: external_exports.string()
|
|
14208
14354
|
});
|
|
14355
|
+
var writableSubscriptionPlanSchema = external_exports.object({
|
|
14356
|
+
code: external_exports.string().min(1).max(100),
|
|
14357
|
+
name: external_exports.string().min(1).max(255),
|
|
14358
|
+
description: external_exports.string().optional().nullable(),
|
|
14359
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
14360
|
+
isActive: external_exports.boolean().optional(),
|
|
14361
|
+
isPurchasable: external_exports.boolean().optional(),
|
|
14362
|
+
isAdminOnly: external_exports.boolean().optional(),
|
|
14363
|
+
defaultAutoRenewal: external_exports.boolean().optional(),
|
|
14364
|
+
includedCredits: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14365
|
+
renewalCredits: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14366
|
+
renewalThreshold: external_exports.coerce.number().int().nonnegative().optional().nullable(),
|
|
14367
|
+
durationDays: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14368
|
+
renewalDays: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14369
|
+
renewalOffsetDays: external_exports.coerce.number().int().nonnegative().optional().nullable(),
|
|
14370
|
+
operationCosts: external_exports.record(external_exports.string(), external_exports.coerce.number().int().nonnegative()).optional()
|
|
14371
|
+
});
|
|
14209
14372
|
var writableSubscriptionConsumptionRenewalSchema = external_exports.object({
|
|
14210
14373
|
subscription: subscriptionConsumptionIriSchema,
|
|
14211
14374
|
credits: external_exports.coerce.number().int().positive()
|
|
@@ -14287,9 +14450,26 @@ var subscriptionTimeBasedRenewalsQuerySchema = renewalQueryBaseSchema.extend({
|
|
|
14287
14450
|
"days[lt]": integerRangeFilterShape["[lt]"],
|
|
14288
14451
|
"days[lte]": integerRangeFilterShape["[lte]"]
|
|
14289
14452
|
});
|
|
14453
|
+
var subscriptionPlansQuerySchema = external_exports.object({
|
|
14454
|
+
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14455
|
+
code: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14456
|
+
name: external_exports.string().optional(),
|
|
14457
|
+
type: external_exports.union([import_sdk_js_global_types3.subscriptionTypeSchema, external_exports.array(import_sdk_js_global_types3.subscriptionTypeSchema)]).optional(),
|
|
14458
|
+
isActive: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
14459
|
+
isPurchasable: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
14460
|
+
isAdminOnly: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
14461
|
+
defaultAutoRenewal: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
14462
|
+
"order[name]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
14463
|
+
"order[code]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
14464
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
14465
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
14466
|
+
page: external_exports.coerce.number().optional()
|
|
14467
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
14290
14468
|
var subscriptionPricesQuerySchema = external_exports.object({
|
|
14291
14469
|
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14292
14470
|
type: external_exports.union([import_sdk_js_global_types3.subscriptionTypeSchema, external_exports.array(import_sdk_js_global_types3.subscriptionTypeSchema)]).optional(),
|
|
14471
|
+
"plan.id": external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14472
|
+
"plan.code": external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14293
14473
|
"threshold[between]": external_exports.coerce.number().optional(),
|
|
14294
14474
|
"threshold[gt]": external_exports.coerce.number().optional(),
|
|
14295
14475
|
"threshold[gte]": external_exports.coerce.number().optional(),
|
|
@@ -14328,6 +14508,7 @@ var getSubscriptionTimeBasedListResponseSchema = (0, import_sdk_js_global_types3
|
|
|
14328
14508
|
var getSubscriptionInfiniteListResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
14329
14509
|
subscriptionInfiniteSchema
|
|
14330
14510
|
);
|
|
14511
|
+
var getSubscriptionPlansResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(subscriptionPlanSchema);
|
|
14331
14512
|
var getSubscriptionPricesResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(subscriptionPriceSchema);
|
|
14332
14513
|
var getCreditUsageLogsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(creditUsageLogSchema);
|
|
14333
14514
|
var getSubscriptionConsumptionRenewalsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
@@ -14336,6 +14517,7 @@ var getSubscriptionConsumptionRenewalsResponseSchema = (0, import_sdk_js_global_
|
|
|
14336
14517
|
var getSubscriptionTimeBasedRenewalsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
14337
14518
|
subscriptionTimeBasedRenewalSchema
|
|
14338
14519
|
);
|
|
14520
|
+
var getSubscriptionPlanCatalogResponseSchema = external_exports.array(subscriptionPlanSchema);
|
|
14339
14521
|
|
|
14340
14522
|
// src/requests/credit-usage-logs/DeleteCreditUsageLog.ts
|
|
14341
14523
|
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
@@ -14657,11 +14839,53 @@ var GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption = class extend
|
|
|
14657
14839
|
}
|
|
14658
14840
|
};
|
|
14659
14841
|
|
|
14660
|
-
// src/requests/subscription-
|
|
14842
|
+
// src/requests/subscription-consumption-renewals/PaySubscriptionConsumptionRenewal.ts
|
|
14661
14843
|
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
14844
|
+
var paySubscriptionConsumptionRenewalInputSchema = paySubscriptionRenewalInputSchema;
|
|
14845
|
+
var paySubscriptionConsumptionRenewalResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
14846
|
+
var PaySubscriptionConsumptionRenewal = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
14847
|
+
constructor(renewalId, method) {
|
|
14848
|
+
super({ method });
|
|
14849
|
+
this.method = "POST";
|
|
14850
|
+
this.contentType = "application/json";
|
|
14851
|
+
this.accept = "application/json";
|
|
14852
|
+
this.inputSchema = paySubscriptionConsumptionRenewalInputSchema;
|
|
14853
|
+
this.outputSchema = paySubscriptionConsumptionRenewalResponseSchema;
|
|
14854
|
+
this.querySchema = void 0;
|
|
14855
|
+
this.headersSchema = void 0;
|
|
14856
|
+
this.renewalId = renewalId;
|
|
14857
|
+
}
|
|
14858
|
+
getPath() {
|
|
14859
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/pay`;
|
|
14860
|
+
}
|
|
14861
|
+
};
|
|
14862
|
+
|
|
14863
|
+
// src/requests/subscription-consumption-renewals/ResolveSubscriptionConsumptionRenewalPayment.ts
|
|
14864
|
+
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
14865
|
+
var resolveSubscriptionConsumptionRenewalPaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
14866
|
+
var resolveSubscriptionConsumptionRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
14867
|
+
var ResolveSubscriptionConsumptionRenewalPayment = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
14868
|
+
constructor(renewalId, input) {
|
|
14869
|
+
super(input);
|
|
14870
|
+
this.method = "POST";
|
|
14871
|
+
this.contentType = "application/json";
|
|
14872
|
+
this.accept = "application/json";
|
|
14873
|
+
this.inputSchema = resolveSubscriptionConsumptionRenewalPaymentInputSchema;
|
|
14874
|
+
this.outputSchema = resolveSubscriptionConsumptionRenewalPaymentResponseSchema;
|
|
14875
|
+
this.querySchema = void 0;
|
|
14876
|
+
this.headersSchema = void 0;
|
|
14877
|
+
this.renewalId = renewalId;
|
|
14878
|
+
}
|
|
14879
|
+
getPath() {
|
|
14880
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/resolve_payment`;
|
|
14881
|
+
}
|
|
14882
|
+
};
|
|
14883
|
+
|
|
14884
|
+
// src/requests/subscription-infinite/CreateSubscriptionInfinite.ts
|
|
14885
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
14662
14886
|
var createSubscriptionInfiniteInputSchema = writableSubscriptionInfiniteSchema;
|
|
14663
14887
|
var createSubscriptionInfiniteResponseSchema = subscriptionInfiniteDetailsSchema;
|
|
14664
|
-
var CreateSubscriptionInfinite = class extends
|
|
14888
|
+
var CreateSubscriptionInfinite = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
14665
14889
|
constructor(input) {
|
|
14666
14890
|
super(input);
|
|
14667
14891
|
this.method = "POST";
|
|
@@ -14678,11 +14902,11 @@ var CreateSubscriptionInfinite = class extends import_sdk_js_core16.AbstractApiR
|
|
|
14678
14902
|
};
|
|
14679
14903
|
|
|
14680
14904
|
// src/requests/subscription-infinite/DeleteSubscriptionInfinite.ts
|
|
14681
|
-
var
|
|
14905
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
14682
14906
|
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
14683
14907
|
var deleteSubscriptionInfiniteInputSchema = external_exports.undefined();
|
|
14684
14908
|
var deleteSubscriptionInfiniteResponseSchema = import_sdk_js_global_types7.emptyResponseSchema;
|
|
14685
|
-
var DeleteSubscriptionInfinite = class extends
|
|
14909
|
+
var DeleteSubscriptionInfinite = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
14686
14910
|
constructor(subscriptionId) {
|
|
14687
14911
|
super(void 0);
|
|
14688
14912
|
this.method = "DELETE";
|
|
@@ -14700,10 +14924,10 @@ var DeleteSubscriptionInfinite = class extends import_sdk_js_core17.AbstractApiR
|
|
|
14700
14924
|
};
|
|
14701
14925
|
|
|
14702
14926
|
// src/requests/subscription-infinite/GetSubscriptionInfiniteDetails.ts
|
|
14703
|
-
var
|
|
14927
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
14704
14928
|
var getSubscriptionInfiniteDetailsInputSchema = external_exports.undefined();
|
|
14705
14929
|
var getSubscriptionInfiniteDetailsResponseSchema = subscriptionInfiniteDetailsSchema;
|
|
14706
|
-
var GetSubscriptionInfiniteDetails = class extends
|
|
14930
|
+
var GetSubscriptionInfiniteDetails = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
14707
14931
|
constructor(subscriptionId) {
|
|
14708
14932
|
super(void 0);
|
|
14709
14933
|
this.method = "GET";
|
|
@@ -14721,9 +14945,9 @@ var GetSubscriptionInfiniteDetails = class extends import_sdk_js_core18.Abstract
|
|
|
14721
14945
|
};
|
|
14722
14946
|
|
|
14723
14947
|
// src/requests/subscription-infinite/GetSubscriptionInfiniteList.ts
|
|
14724
|
-
var
|
|
14948
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
14725
14949
|
var getSubscriptionInfiniteListInputSchema = external_exports.undefined();
|
|
14726
|
-
var GetSubscriptionInfiniteList = class extends
|
|
14950
|
+
var GetSubscriptionInfiniteList = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
14727
14951
|
constructor(options) {
|
|
14728
14952
|
super(void 0, options);
|
|
14729
14953
|
this.method = "GET";
|
|
@@ -14741,11 +14965,157 @@ var GetSubscriptionInfiniteList = class extends import_sdk_js_core19.AbstractApi
|
|
|
14741
14965
|
}
|
|
14742
14966
|
};
|
|
14743
14967
|
|
|
14968
|
+
// src/requests/subscription-plans/CreateSubscriptionPlan.ts
|
|
14969
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
14970
|
+
var createSubscriptionPlanInputSchema = writableSubscriptionPlanSchema.required();
|
|
14971
|
+
var createSubscriptionPlanResponseSchema = subscriptionPlanSchema;
|
|
14972
|
+
var CreateSubscriptionPlan = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
14973
|
+
constructor(input) {
|
|
14974
|
+
super(input);
|
|
14975
|
+
this.method = "POST";
|
|
14976
|
+
this.contentType = "application/json";
|
|
14977
|
+
this.accept = "application/json";
|
|
14978
|
+
this.inputSchema = createSubscriptionPlanInputSchema;
|
|
14979
|
+
this.outputSchema = createSubscriptionPlanResponseSchema;
|
|
14980
|
+
this.querySchema = void 0;
|
|
14981
|
+
this.headersSchema = void 0;
|
|
14982
|
+
}
|
|
14983
|
+
getPath() {
|
|
14984
|
+
return "/subscription_plans";
|
|
14985
|
+
}
|
|
14986
|
+
};
|
|
14987
|
+
|
|
14988
|
+
// src/requests/subscription-plans/DeleteSubscriptionPlan.ts
|
|
14989
|
+
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
14990
|
+
var deleteSubscriptionPlanInputSchema = external_exports.undefined();
|
|
14991
|
+
var deleteSubscriptionPlanResponseSchema = external_exports.undefined();
|
|
14992
|
+
var DeleteSubscriptionPlan = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
14993
|
+
constructor(subscriptionPlanId) {
|
|
14994
|
+
super(void 0);
|
|
14995
|
+
this.method = "DELETE";
|
|
14996
|
+
this.contentType = "application/json";
|
|
14997
|
+
this.accept = "application/json";
|
|
14998
|
+
this.inputSchema = deleteSubscriptionPlanInputSchema;
|
|
14999
|
+
this.outputSchema = deleteSubscriptionPlanResponseSchema;
|
|
15000
|
+
this.querySchema = void 0;
|
|
15001
|
+
this.headersSchema = void 0;
|
|
15002
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
15003
|
+
}
|
|
15004
|
+
getPath() {
|
|
15005
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
15006
|
+
}
|
|
15007
|
+
};
|
|
15008
|
+
|
|
15009
|
+
// src/requests/subscription-plans/GetSubscriptionPlanCatalog.ts
|
|
15010
|
+
var import_sdk_js_core24 = require("@deliverart/sdk-js-core");
|
|
15011
|
+
var getSubscriptionPlanCatalogInputSchema = external_exports.undefined();
|
|
15012
|
+
var GetSubscriptionPlanCatalog = class extends import_sdk_js_core24.AbstractApiRequest {
|
|
15013
|
+
constructor() {
|
|
15014
|
+
super(void 0);
|
|
15015
|
+
this.method = "GET";
|
|
15016
|
+
this.contentType = "application/json";
|
|
15017
|
+
this.accept = "application/json";
|
|
15018
|
+
this.inputSchema = getSubscriptionPlanCatalogInputSchema;
|
|
15019
|
+
this.outputSchema = getSubscriptionPlanCatalogResponseSchema;
|
|
15020
|
+
this.querySchema = void 0;
|
|
15021
|
+
this.headersSchema = void 0;
|
|
15022
|
+
this.listItemSchema = subscriptionPlanSchema;
|
|
15023
|
+
this.paginationDefaultEnabled = false;
|
|
15024
|
+
}
|
|
15025
|
+
getPath() {
|
|
15026
|
+
return "/subscriptions/catalog/plans";
|
|
15027
|
+
}
|
|
15028
|
+
};
|
|
15029
|
+
|
|
15030
|
+
// src/requests/subscription-plans/GetSubscriptionPlanCatalogDetails.ts
|
|
15031
|
+
var import_sdk_js_core25 = require("@deliverart/sdk-js-core");
|
|
15032
|
+
var getSubscriptionPlanCatalogDetailsInputSchema = external_exports.undefined();
|
|
15033
|
+
var getSubscriptionPlanCatalogDetailsResponseSchema = subscriptionPlanSchema;
|
|
15034
|
+
var GetSubscriptionPlanCatalogDetails = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
15035
|
+
constructor(subscriptionPlanId) {
|
|
15036
|
+
super(void 0);
|
|
15037
|
+
this.method = "GET";
|
|
15038
|
+
this.contentType = "application/json";
|
|
15039
|
+
this.accept = "application/json";
|
|
15040
|
+
this.inputSchema = getSubscriptionPlanCatalogDetailsInputSchema;
|
|
15041
|
+
this.outputSchema = getSubscriptionPlanCatalogDetailsResponseSchema;
|
|
15042
|
+
this.querySchema = void 0;
|
|
15043
|
+
this.headersSchema = void 0;
|
|
15044
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
15045
|
+
}
|
|
15046
|
+
getPath() {
|
|
15047
|
+
return `/subscriptions/catalog/plans/${this.subscriptionPlanId}`;
|
|
15048
|
+
}
|
|
15049
|
+
};
|
|
15050
|
+
|
|
15051
|
+
// src/requests/subscription-plans/GetSubscriptionPlanDetails.ts
|
|
15052
|
+
var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
|
|
15053
|
+
var getSubscriptionPlanDetailsInputSchema = external_exports.undefined();
|
|
15054
|
+
var getSubscriptionPlanDetailsResponseSchema = subscriptionPlanSchema;
|
|
15055
|
+
var GetSubscriptionPlanDetails = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
15056
|
+
constructor(subscriptionPlanId) {
|
|
15057
|
+
super(void 0);
|
|
15058
|
+
this.method = "GET";
|
|
15059
|
+
this.contentType = "application/json";
|
|
15060
|
+
this.accept = "application/json";
|
|
15061
|
+
this.inputSchema = getSubscriptionPlanDetailsInputSchema;
|
|
15062
|
+
this.outputSchema = getSubscriptionPlanDetailsResponseSchema;
|
|
15063
|
+
this.querySchema = void 0;
|
|
15064
|
+
this.headersSchema = void 0;
|
|
15065
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
15066
|
+
}
|
|
15067
|
+
getPath() {
|
|
15068
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
15069
|
+
}
|
|
15070
|
+
};
|
|
15071
|
+
|
|
15072
|
+
// src/requests/subscription-plans/GetSubscriptionPlans.ts
|
|
15073
|
+
var import_sdk_js_core27 = require("@deliverart/sdk-js-core");
|
|
15074
|
+
var getSubscriptionPlansInputSchema = external_exports.undefined();
|
|
15075
|
+
var GetSubscriptionPlans = class extends import_sdk_js_core27.AbstractApiRequest {
|
|
15076
|
+
constructor(options) {
|
|
15077
|
+
super(void 0, options);
|
|
15078
|
+
this.method = "GET";
|
|
15079
|
+
this.contentType = "application/json";
|
|
15080
|
+
this.accept = "application/json";
|
|
15081
|
+
this.inputSchema = getSubscriptionPlansInputSchema;
|
|
15082
|
+
this.outputSchema = getSubscriptionPlansResponseSchema;
|
|
15083
|
+
this.querySchema = subscriptionPlansQuerySchema;
|
|
15084
|
+
this.headersSchema = void 0;
|
|
15085
|
+
this.listItemSchema = subscriptionPlanSchema;
|
|
15086
|
+
this.paginationDefaultEnabled = true;
|
|
15087
|
+
}
|
|
15088
|
+
getPath() {
|
|
15089
|
+
return "/subscription_plans";
|
|
15090
|
+
}
|
|
15091
|
+
};
|
|
15092
|
+
|
|
15093
|
+
// src/requests/subscription-plans/UpdateSubscriptionPlan.ts
|
|
15094
|
+
var import_sdk_js_core28 = require("@deliverart/sdk-js-core");
|
|
15095
|
+
var updateSubscriptionPlanInputSchema = writableSubscriptionPlanSchema.partial();
|
|
15096
|
+
var updateSubscriptionPlanResponseSchema = subscriptionPlanSchema;
|
|
15097
|
+
var UpdateSubscriptionPlan = class extends import_sdk_js_core28.AbstractApiRequest {
|
|
15098
|
+
constructor(subscriptionPlanId, input) {
|
|
15099
|
+
super(input);
|
|
15100
|
+
this.method = "PATCH";
|
|
15101
|
+
this.contentType = "application/merge-patch+json";
|
|
15102
|
+
this.accept = "application/json";
|
|
15103
|
+
this.inputSchema = updateSubscriptionPlanInputSchema;
|
|
15104
|
+
this.outputSchema = updateSubscriptionPlanResponseSchema;
|
|
15105
|
+
this.querySchema = void 0;
|
|
15106
|
+
this.headersSchema = void 0;
|
|
15107
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
15108
|
+
}
|
|
15109
|
+
getPath() {
|
|
15110
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
15111
|
+
}
|
|
15112
|
+
};
|
|
15113
|
+
|
|
14744
15114
|
// src/requests/subscription-prices/CreateSubscriptionPrice.ts
|
|
14745
|
-
var
|
|
15115
|
+
var import_sdk_js_core29 = require("@deliverart/sdk-js-core");
|
|
14746
15116
|
var createSubscriptionPriceInputSchema = writableSubscriptionPriceSchema.required();
|
|
14747
15117
|
var createSubscriptionPriceResponseSchema = subscriptionPriceSchema;
|
|
14748
|
-
var CreateSubscriptionPrice = class extends
|
|
15118
|
+
var CreateSubscriptionPrice = class extends import_sdk_js_core29.AbstractApiRequest {
|
|
14749
15119
|
constructor(input) {
|
|
14750
15120
|
super(input);
|
|
14751
15121
|
this.method = "POST";
|
|
@@ -14762,11 +15132,11 @@ var CreateSubscriptionPrice = class extends import_sdk_js_core20.AbstractApiRequ
|
|
|
14762
15132
|
};
|
|
14763
15133
|
|
|
14764
15134
|
// src/requests/subscription-prices/DeleteSubscriptionPrice.ts
|
|
14765
|
-
var
|
|
15135
|
+
var import_sdk_js_core30 = require("@deliverart/sdk-js-core");
|
|
14766
15136
|
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
14767
15137
|
var deleteSubscriptionPriceInputSchema = external_exports.undefined();
|
|
14768
15138
|
var deleteSubscriptionPriceResponseSchema = import_sdk_js_global_types8.emptyResponseSchema;
|
|
14769
|
-
var DeleteSubscriptionPrice = class extends
|
|
15139
|
+
var DeleteSubscriptionPrice = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
14770
15140
|
constructor(priceId) {
|
|
14771
15141
|
super(void 0);
|
|
14772
15142
|
this.method = "DELETE";
|
|
@@ -14784,10 +15154,10 @@ var DeleteSubscriptionPrice = class extends import_sdk_js_core21.AbstractApiRequ
|
|
|
14784
15154
|
};
|
|
14785
15155
|
|
|
14786
15156
|
// src/requests/subscription-prices/GetSubscriptionPriceDetails.ts
|
|
14787
|
-
var
|
|
15157
|
+
var import_sdk_js_core31 = require("@deliverart/sdk-js-core");
|
|
14788
15158
|
var getSubscriptionPriceDetailsInputSchema = external_exports.undefined();
|
|
14789
15159
|
var getSubscriptionPriceDetailsResponseSchema = subscriptionPriceSchema;
|
|
14790
|
-
var GetSubscriptionPriceDetails = class extends
|
|
15160
|
+
var GetSubscriptionPriceDetails = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
14791
15161
|
constructor(priceId) {
|
|
14792
15162
|
super(void 0);
|
|
14793
15163
|
this.method = "GET";
|
|
@@ -14805,9 +15175,9 @@ var GetSubscriptionPriceDetails = class extends import_sdk_js_core22.AbstractApi
|
|
|
14805
15175
|
};
|
|
14806
15176
|
|
|
14807
15177
|
// src/requests/subscription-prices/GetSubscriptionPrices.ts
|
|
14808
|
-
var
|
|
15178
|
+
var import_sdk_js_core32 = require("@deliverart/sdk-js-core");
|
|
14809
15179
|
var getSubscriptionPricesInputSchema = external_exports.undefined();
|
|
14810
|
-
var GetSubscriptionPrices = class extends
|
|
15180
|
+
var GetSubscriptionPrices = class extends import_sdk_js_core32.AbstractApiRequest {
|
|
14811
15181
|
constructor(options) {
|
|
14812
15182
|
super(void 0, options);
|
|
14813
15183
|
this.method = "GET";
|
|
@@ -14826,10 +15196,10 @@ var GetSubscriptionPrices = class extends import_sdk_js_core23.AbstractApiReques
|
|
|
14826
15196
|
};
|
|
14827
15197
|
|
|
14828
15198
|
// src/requests/subscription-prices/UpdateSubscriptionPrice.ts
|
|
14829
|
-
var
|
|
15199
|
+
var import_sdk_js_core33 = require("@deliverart/sdk-js-core");
|
|
14830
15200
|
var updateSubscriptionPriceInputSchema = writableSubscriptionPriceSchema.partial();
|
|
14831
15201
|
var updateSubscriptionPriceResponseSchema = subscriptionPriceSchema;
|
|
14832
|
-
var UpdateSubscriptionPrice = class extends
|
|
15202
|
+
var UpdateSubscriptionPrice = class extends import_sdk_js_core33.AbstractApiRequest {
|
|
14833
15203
|
constructor(priceId, input) {
|
|
14834
15204
|
super(input);
|
|
14835
15205
|
this.method = "PATCH";
|
|
@@ -14847,10 +15217,10 @@ var UpdateSubscriptionPrice = class extends import_sdk_js_core24.AbstractApiRequ
|
|
|
14847
15217
|
};
|
|
14848
15218
|
|
|
14849
15219
|
// src/requests/subscription-time-based/CreateSubscriptionTimeBased.ts
|
|
14850
|
-
var
|
|
15220
|
+
var import_sdk_js_core34 = require("@deliverart/sdk-js-core");
|
|
14851
15221
|
var createSubscriptionTimeBasedInputSchema = writableSubscriptionTimeBasedSchema;
|
|
14852
15222
|
var createSubscriptionTimeBasedResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
14853
|
-
var CreateSubscriptionTimeBased = class extends
|
|
15223
|
+
var CreateSubscriptionTimeBased = class extends import_sdk_js_core34.AbstractApiRequest {
|
|
14854
15224
|
constructor(input) {
|
|
14855
15225
|
super(input);
|
|
14856
15226
|
this.method = "POST";
|
|
@@ -14867,11 +15237,11 @@ var CreateSubscriptionTimeBased = class extends import_sdk_js_core25.AbstractApi
|
|
|
14867
15237
|
};
|
|
14868
15238
|
|
|
14869
15239
|
// src/requests/subscription-time-based/DeleteSubscriptionTimeBased.ts
|
|
14870
|
-
var
|
|
15240
|
+
var import_sdk_js_core35 = require("@deliverart/sdk-js-core");
|
|
14871
15241
|
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
14872
15242
|
var deleteSubscriptionTimeBasedInputSchema = external_exports.undefined();
|
|
14873
15243
|
var deleteSubscriptionTimeBasedResponseSchema = import_sdk_js_global_types9.emptyResponseSchema;
|
|
14874
|
-
var DeleteSubscriptionTimeBased = class extends
|
|
15244
|
+
var DeleteSubscriptionTimeBased = class extends import_sdk_js_core35.AbstractApiRequest {
|
|
14875
15245
|
constructor(subscriptionId) {
|
|
14876
15246
|
super(void 0);
|
|
14877
15247
|
this.method = "DELETE";
|
|
@@ -14889,10 +15259,10 @@ var DeleteSubscriptionTimeBased = class extends import_sdk_js_core26.AbstractApi
|
|
|
14889
15259
|
};
|
|
14890
15260
|
|
|
14891
15261
|
// src/requests/subscription-time-based/GetSubscriptionTimeBasedDetails.ts
|
|
14892
|
-
var
|
|
15262
|
+
var import_sdk_js_core36 = require("@deliverart/sdk-js-core");
|
|
14893
15263
|
var getSubscriptionTimeBasedDetailsInputSchema = external_exports.undefined();
|
|
14894
15264
|
var getSubscriptionTimeBasedDetailsResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
14895
|
-
var GetSubscriptionTimeBasedDetails = class extends
|
|
15265
|
+
var GetSubscriptionTimeBasedDetails = class extends import_sdk_js_core36.AbstractApiRequest {
|
|
14896
15266
|
constructor(subscriptionId) {
|
|
14897
15267
|
super(void 0);
|
|
14898
15268
|
this.method = "GET";
|
|
@@ -14910,9 +15280,9 @@ var GetSubscriptionTimeBasedDetails = class extends import_sdk_js_core27.Abstrac
|
|
|
14910
15280
|
};
|
|
14911
15281
|
|
|
14912
15282
|
// src/requests/subscription-time-based/GetSubscriptionTimeBasedList.ts
|
|
14913
|
-
var
|
|
15283
|
+
var import_sdk_js_core37 = require("@deliverart/sdk-js-core");
|
|
14914
15284
|
var getSubscriptionTimeBasedListInputSchema = external_exports.undefined();
|
|
14915
|
-
var GetSubscriptionTimeBasedList = class extends
|
|
15285
|
+
var GetSubscriptionTimeBasedList = class extends import_sdk_js_core37.AbstractApiRequest {
|
|
14916
15286
|
constructor(options) {
|
|
14917
15287
|
super(void 0, options);
|
|
14918
15288
|
this.method = "GET";
|
|
@@ -14931,12 +15301,12 @@ var GetSubscriptionTimeBasedList = class extends import_sdk_js_core28.AbstractAp
|
|
|
14931
15301
|
};
|
|
14932
15302
|
|
|
14933
15303
|
// src/requests/subscription-time-based/UpdateSubscriptionTimeBased.ts
|
|
14934
|
-
var
|
|
15304
|
+
var import_sdk_js_core38 = require("@deliverart/sdk-js-core");
|
|
14935
15305
|
var updateSubscriptionTimeBasedInputSchema = writableSubscriptionTimeBasedSchema.omit({
|
|
14936
15306
|
pointOfSale: true
|
|
14937
15307
|
}).partial();
|
|
14938
15308
|
var updateSubscriptionTimeBasedResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
14939
|
-
var UpdateSubscriptionTimeBased = class extends
|
|
15309
|
+
var UpdateSubscriptionTimeBased = class extends import_sdk_js_core38.AbstractApiRequest {
|
|
14940
15310
|
constructor(subscriptionId, input) {
|
|
14941
15311
|
super(input);
|
|
14942
15312
|
this.method = "PATCH";
|
|
@@ -14954,10 +15324,10 @@ var UpdateSubscriptionTimeBased = class extends import_sdk_js_core29.AbstractApi
|
|
|
14954
15324
|
};
|
|
14955
15325
|
|
|
14956
15326
|
// src/requests/subscription-time-based-renewals/CreateSubscriptionTimeBasedRenewal.ts
|
|
14957
|
-
var
|
|
15327
|
+
var import_sdk_js_core39 = require("@deliverart/sdk-js-core");
|
|
14958
15328
|
var createSubscriptionTimeBasedRenewalInputSchema = writableSubscriptionTimeBasedRenewalSchema.required();
|
|
14959
15329
|
var createSubscriptionTimeBasedRenewalResponseSchema = subscriptionTimeBasedRenewalDetailsSchema;
|
|
14960
|
-
var CreateSubscriptionTimeBasedRenewal = class extends
|
|
15330
|
+
var CreateSubscriptionTimeBasedRenewal = class extends import_sdk_js_core39.AbstractApiRequest {
|
|
14961
15331
|
constructor(input) {
|
|
14962
15332
|
super(input);
|
|
14963
15333
|
this.method = "POST";
|
|
@@ -14974,11 +15344,11 @@ var CreateSubscriptionTimeBasedRenewal = class extends import_sdk_js_core30.Abst
|
|
|
14974
15344
|
};
|
|
14975
15345
|
|
|
14976
15346
|
// src/requests/subscription-time-based-renewals/DeleteSubscriptionTimeBasedRenewal.ts
|
|
14977
|
-
var
|
|
15347
|
+
var import_sdk_js_core40 = require("@deliverart/sdk-js-core");
|
|
14978
15348
|
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
14979
15349
|
var deleteSubscriptionTimeBasedRenewalInputSchema = external_exports.undefined();
|
|
14980
15350
|
var deleteSubscriptionTimeBasedRenewalResponseSchema = import_sdk_js_global_types10.emptyResponseSchema;
|
|
14981
|
-
var DeleteSubscriptionTimeBasedRenewal = class extends
|
|
15351
|
+
var DeleteSubscriptionTimeBasedRenewal = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
14982
15352
|
constructor(renewalId) {
|
|
14983
15353
|
super(void 0);
|
|
14984
15354
|
this.method = "DELETE";
|
|
@@ -14996,10 +15366,10 @@ var DeleteSubscriptionTimeBasedRenewal = class extends import_sdk_js_core31.Abst
|
|
|
14996
15366
|
};
|
|
14997
15367
|
|
|
14998
15368
|
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewalDetails.ts
|
|
14999
|
-
var
|
|
15369
|
+
var import_sdk_js_core41 = require("@deliverart/sdk-js-core");
|
|
15000
15370
|
var getSubscriptionTimeBasedRenewalDetailsInputSchema = external_exports.undefined();
|
|
15001
15371
|
var getSubscriptionTimeBasedRenewalDetailsResponseSchema = subscriptionTimeBasedRenewalDetailsSchema;
|
|
15002
|
-
var GetSubscriptionTimeBasedRenewalDetails = class extends
|
|
15372
|
+
var GetSubscriptionTimeBasedRenewalDetails = class extends import_sdk_js_core41.AbstractApiRequest {
|
|
15003
15373
|
constructor(renewalId) {
|
|
15004
15374
|
super(void 0);
|
|
15005
15375
|
this.method = "GET";
|
|
@@ -15017,9 +15387,9 @@ var GetSubscriptionTimeBasedRenewalDetails = class extends import_sdk_js_core32.
|
|
|
15017
15387
|
};
|
|
15018
15388
|
|
|
15019
15389
|
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewals.ts
|
|
15020
|
-
var
|
|
15390
|
+
var import_sdk_js_core42 = require("@deliverart/sdk-js-core");
|
|
15021
15391
|
var getSubscriptionTimeBasedRenewalsInputSchema = external_exports.undefined();
|
|
15022
|
-
var GetSubscriptionTimeBasedRenewals = class extends
|
|
15392
|
+
var GetSubscriptionTimeBasedRenewals = class extends import_sdk_js_core42.AbstractApiRequest {
|
|
15023
15393
|
constructor(options) {
|
|
15024
15394
|
super(void 0, options);
|
|
15025
15395
|
this.method = "GET";
|
|
@@ -15038,9 +15408,9 @@ var GetSubscriptionTimeBasedRenewals = class extends import_sdk_js_core33.Abstra
|
|
|
15038
15408
|
};
|
|
15039
15409
|
|
|
15040
15410
|
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased.ts
|
|
15041
|
-
var
|
|
15411
|
+
var import_sdk_js_core43 = require("@deliverart/sdk-js-core");
|
|
15042
15412
|
var getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema = external_exports.undefined();
|
|
15043
|
-
var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends
|
|
15413
|
+
var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends import_sdk_js_core43.AbstractApiRequest {
|
|
15044
15414
|
constructor(subscriptionId, options) {
|
|
15045
15415
|
super(void 0, options);
|
|
15046
15416
|
this.method = "GET";
|
|
@@ -15059,12 +15429,54 @@ var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends im
|
|
|
15059
15429
|
}
|
|
15060
15430
|
};
|
|
15061
15431
|
|
|
15432
|
+
// src/requests/subscription-time-based-renewals/PaySubscriptionTimeBasedRenewal.ts
|
|
15433
|
+
var import_sdk_js_core44 = require("@deliverart/sdk-js-core");
|
|
15434
|
+
var paySubscriptionTimeBasedRenewalInputSchema = paySubscriptionRenewalInputSchema;
|
|
15435
|
+
var paySubscriptionTimeBasedRenewalResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
15436
|
+
var PaySubscriptionTimeBasedRenewal = class extends import_sdk_js_core44.AbstractApiRequest {
|
|
15437
|
+
constructor(renewalId, method) {
|
|
15438
|
+
super({ method });
|
|
15439
|
+
this.method = "POST";
|
|
15440
|
+
this.contentType = "application/json";
|
|
15441
|
+
this.accept = "application/json";
|
|
15442
|
+
this.inputSchema = paySubscriptionTimeBasedRenewalInputSchema;
|
|
15443
|
+
this.outputSchema = paySubscriptionTimeBasedRenewalResponseSchema;
|
|
15444
|
+
this.querySchema = void 0;
|
|
15445
|
+
this.headersSchema = void 0;
|
|
15446
|
+
this.renewalId = renewalId;
|
|
15447
|
+
}
|
|
15448
|
+
getPath() {
|
|
15449
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/pay`;
|
|
15450
|
+
}
|
|
15451
|
+
};
|
|
15452
|
+
|
|
15453
|
+
// src/requests/subscription-time-based-renewals/ResolveSubscriptionTimeBasedRenewalPayment.ts
|
|
15454
|
+
var import_sdk_js_core45 = require("@deliverart/sdk-js-core");
|
|
15455
|
+
var resolveSubscriptionTimeBasedRenewalPaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
15456
|
+
var resolveSubscriptionTimeBasedRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
15457
|
+
var ResolveSubscriptionTimeBasedRenewalPayment = class extends import_sdk_js_core45.AbstractApiRequest {
|
|
15458
|
+
constructor(renewalId, input) {
|
|
15459
|
+
super(input);
|
|
15460
|
+
this.method = "POST";
|
|
15461
|
+
this.contentType = "application/json";
|
|
15462
|
+
this.accept = "application/json";
|
|
15463
|
+
this.inputSchema = resolveSubscriptionTimeBasedRenewalPaymentInputSchema;
|
|
15464
|
+
this.outputSchema = resolveSubscriptionTimeBasedRenewalPaymentResponseSchema;
|
|
15465
|
+
this.querySchema = void 0;
|
|
15466
|
+
this.headersSchema = void 0;
|
|
15467
|
+
this.renewalId = renewalId;
|
|
15468
|
+
}
|
|
15469
|
+
getPath() {
|
|
15470
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/resolve_payment`;
|
|
15471
|
+
}
|
|
15472
|
+
};
|
|
15473
|
+
|
|
15062
15474
|
// src/requests/subscriptions/DeleteSubscription.ts
|
|
15063
|
-
var
|
|
15475
|
+
var import_sdk_js_core46 = require("@deliverart/sdk-js-core");
|
|
15064
15476
|
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
15065
15477
|
var deleteSubscriptionInputSchema = external_exports.undefined();
|
|
15066
15478
|
var deleteSubscriptionResponseSchema = import_sdk_js_global_types11.emptyResponseSchema;
|
|
15067
|
-
var DeleteSubscription = class extends
|
|
15479
|
+
var DeleteSubscription = class extends import_sdk_js_core46.AbstractApiRequest {
|
|
15068
15480
|
constructor(subscriptionId) {
|
|
15069
15481
|
super(void 0);
|
|
15070
15482
|
this.method = "DELETE";
|
|
@@ -15082,10 +15494,10 @@ var DeleteSubscription = class extends import_sdk_js_core35.AbstractApiRequest {
|
|
|
15082
15494
|
};
|
|
15083
15495
|
|
|
15084
15496
|
// src/requests/subscriptions/GetSubscriptionDetails.ts
|
|
15085
|
-
var
|
|
15497
|
+
var import_sdk_js_core47 = require("@deliverart/sdk-js-core");
|
|
15086
15498
|
var getSubscriptionDetailsInputSchema = external_exports.undefined();
|
|
15087
15499
|
var getSubscriptionDetailsResponseSchema = subscriptionDetailsSchema;
|
|
15088
|
-
var GetSubscriptionDetails = class extends
|
|
15500
|
+
var GetSubscriptionDetails = class extends import_sdk_js_core47.AbstractApiRequest {
|
|
15089
15501
|
constructor(subscriptionId) {
|
|
15090
15502
|
super(void 0);
|
|
15091
15503
|
this.method = "GET";
|
|
@@ -15103,10 +15515,10 @@ var GetSubscriptionDetails = class extends import_sdk_js_core36.AbstractApiReque
|
|
|
15103
15515
|
};
|
|
15104
15516
|
|
|
15105
15517
|
// src/requests/subscriptions/GetSubscriptionOverviewFromPointOfSale.ts
|
|
15106
|
-
var
|
|
15518
|
+
var import_sdk_js_core48 = require("@deliverart/sdk-js-core");
|
|
15107
15519
|
var getSubscriptionOverviewFromPointOfSaleInputSchema = external_exports.undefined();
|
|
15108
15520
|
var getSubscriptionOverviewFromPointOfSaleResponseSchema = subscriptionOverviewResponseSchema;
|
|
15109
|
-
var GetSubscriptionOverviewFromPointOfSale = class extends
|
|
15521
|
+
var GetSubscriptionOverviewFromPointOfSale = class extends import_sdk_js_core48.AbstractApiRequest {
|
|
15110
15522
|
constructor(pointOfSaleId) {
|
|
15111
15523
|
super(void 0);
|
|
15112
15524
|
this.method = "GET";
|
|
@@ -15124,9 +15536,9 @@ var GetSubscriptionOverviewFromPointOfSale = class extends import_sdk_js_core37.
|
|
|
15124
15536
|
};
|
|
15125
15537
|
|
|
15126
15538
|
// src/requests/subscriptions/GetSubscriptions.ts
|
|
15127
|
-
var
|
|
15539
|
+
var import_sdk_js_core49 = require("@deliverart/sdk-js-core");
|
|
15128
15540
|
var getSubscriptionsInputSchema = external_exports.undefined();
|
|
15129
|
-
var GetSubscriptions = class extends
|
|
15541
|
+
var GetSubscriptions = class extends import_sdk_js_core49.AbstractApiRequest {
|
|
15130
15542
|
constructor(options) {
|
|
15131
15543
|
super(void 0, options);
|
|
15132
15544
|
this.method = "GET";
|
|
@@ -15145,10 +15557,10 @@ var GetSubscriptions = class extends import_sdk_js_core38.AbstractApiRequest {
|
|
|
15145
15557
|
};
|
|
15146
15558
|
|
|
15147
15559
|
// src/requests/subscriptions/GetSubscriptionsFromPointOfSale.ts
|
|
15148
|
-
var
|
|
15560
|
+
var import_sdk_js_core50 = require("@deliverart/sdk-js-core");
|
|
15149
15561
|
var getSubscriptionsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
15150
15562
|
var getSubscriptionsFromPointOfSaleResponseSchema = external_exports.array(subscriptionSchema);
|
|
15151
|
-
var GetSubscriptionsFromPointOfSale = class extends
|
|
15563
|
+
var GetSubscriptionsFromPointOfSale = class extends import_sdk_js_core50.AbstractApiRequest {
|
|
15152
15564
|
constructor(pointOfSaleId, options) {
|
|
15153
15565
|
super(void 0, options);
|
|
15154
15566
|
this.method = "GET";
|
|
@@ -15168,12 +15580,12 @@ var GetSubscriptionsFromPointOfSale = class extends import_sdk_js_core39.Abstrac
|
|
|
15168
15580
|
};
|
|
15169
15581
|
|
|
15170
15582
|
// src/requests/subscriptions/UpdateSubscription.ts
|
|
15171
|
-
var
|
|
15583
|
+
var import_sdk_js_core51 = require("@deliverart/sdk-js-core");
|
|
15172
15584
|
var updateSubscriptionInputSchema = writableSubscriptionCommonSchema.omit({
|
|
15173
15585
|
pointOfSale: true
|
|
15174
15586
|
}).partial();
|
|
15175
15587
|
var updateSubscriptionResponseSchema = subscriptionDetailsSchema;
|
|
15176
|
-
var UpdateSubscription = class extends
|
|
15588
|
+
var UpdateSubscription = class extends import_sdk_js_core51.AbstractApiRequest {
|
|
15177
15589
|
constructor(subscriptionId, input) {
|
|
15178
15590
|
super(input);
|
|
15179
15591
|
this.method = "PATCH";
|
|
@@ -15195,6 +15607,7 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15195
15607
|
CreateSubscriptionConsumption,
|
|
15196
15608
|
CreateSubscriptionConsumptionRenewal,
|
|
15197
15609
|
CreateSubscriptionInfinite,
|
|
15610
|
+
CreateSubscriptionPlan,
|
|
15198
15611
|
CreateSubscriptionPrice,
|
|
15199
15612
|
CreateSubscriptionTimeBased,
|
|
15200
15613
|
CreateSubscriptionTimeBasedRenewal,
|
|
@@ -15203,6 +15616,7 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15203
15616
|
DeleteSubscriptionConsumption,
|
|
15204
15617
|
DeleteSubscriptionConsumptionRenewal,
|
|
15205
15618
|
DeleteSubscriptionInfinite,
|
|
15619
|
+
DeleteSubscriptionPlan,
|
|
15206
15620
|
DeleteSubscriptionPrice,
|
|
15207
15621
|
DeleteSubscriptionTimeBased,
|
|
15208
15622
|
DeleteSubscriptionTimeBasedRenewal,
|
|
@@ -15218,6 +15632,10 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15218
15632
|
GetSubscriptionInfiniteDetails,
|
|
15219
15633
|
GetSubscriptionInfiniteList,
|
|
15220
15634
|
GetSubscriptionOverviewFromPointOfSale,
|
|
15635
|
+
GetSubscriptionPlanCatalog,
|
|
15636
|
+
GetSubscriptionPlanCatalogDetails,
|
|
15637
|
+
GetSubscriptionPlanDetails,
|
|
15638
|
+
GetSubscriptionPlans,
|
|
15221
15639
|
GetSubscriptionPriceDetails,
|
|
15222
15640
|
GetSubscriptionPrices,
|
|
15223
15641
|
GetSubscriptionTimeBasedDetails,
|
|
@@ -15227,8 +15645,13 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15227
15645
|
GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased,
|
|
15228
15646
|
GetSubscriptions,
|
|
15229
15647
|
GetSubscriptionsFromPointOfSale,
|
|
15648
|
+
PaySubscriptionConsumptionRenewal,
|
|
15649
|
+
PaySubscriptionTimeBasedRenewal,
|
|
15650
|
+
ResolveSubscriptionConsumptionRenewalPayment,
|
|
15651
|
+
ResolveSubscriptionTimeBasedRenewalPayment,
|
|
15230
15652
|
UpdateSubscription,
|
|
15231
15653
|
UpdateSubscriptionConsumption,
|
|
15654
|
+
UpdateSubscriptionPlan,
|
|
15232
15655
|
UpdateSubscriptionPrice,
|
|
15233
15656
|
UpdateSubscriptionTimeBased,
|
|
15234
15657
|
adjustSubscriptionConsumptionCreditsInputSchema,
|
|
@@ -15241,6 +15664,8 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15241
15664
|
createSubscriptionConsumptionResponseSchema,
|
|
15242
15665
|
createSubscriptionInfiniteInputSchema,
|
|
15243
15666
|
createSubscriptionInfiniteResponseSchema,
|
|
15667
|
+
createSubscriptionPlanInputSchema,
|
|
15668
|
+
createSubscriptionPlanResponseSchema,
|
|
15244
15669
|
createSubscriptionPriceInputSchema,
|
|
15245
15670
|
createSubscriptionPriceResponseSchema,
|
|
15246
15671
|
createSubscriptionTimeBasedInputSchema,
|
|
@@ -15263,6 +15688,8 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15263
15688
|
deleteSubscriptionInfiniteInputSchema,
|
|
15264
15689
|
deleteSubscriptionInfiniteResponseSchema,
|
|
15265
15690
|
deleteSubscriptionInputSchema,
|
|
15691
|
+
deleteSubscriptionPlanInputSchema,
|
|
15692
|
+
deleteSubscriptionPlanResponseSchema,
|
|
15266
15693
|
deleteSubscriptionPriceInputSchema,
|
|
15267
15694
|
deleteSubscriptionPriceResponseSchema,
|
|
15268
15695
|
deleteSubscriptionResponseSchema,
|
|
@@ -15293,6 +15720,14 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15293
15720
|
getSubscriptionInfiniteListResponseSchema,
|
|
15294
15721
|
getSubscriptionOverviewFromPointOfSaleInputSchema,
|
|
15295
15722
|
getSubscriptionOverviewFromPointOfSaleResponseSchema,
|
|
15723
|
+
getSubscriptionPlanCatalogDetailsInputSchema,
|
|
15724
|
+
getSubscriptionPlanCatalogDetailsResponseSchema,
|
|
15725
|
+
getSubscriptionPlanCatalogInputSchema,
|
|
15726
|
+
getSubscriptionPlanCatalogResponseSchema,
|
|
15727
|
+
getSubscriptionPlanDetailsInputSchema,
|
|
15728
|
+
getSubscriptionPlanDetailsResponseSchema,
|
|
15729
|
+
getSubscriptionPlansInputSchema,
|
|
15730
|
+
getSubscriptionPlansResponseSchema,
|
|
15296
15731
|
getSubscriptionPriceDetailsInputSchema,
|
|
15297
15732
|
getSubscriptionPriceDetailsResponseSchema,
|
|
15298
15733
|
getSubscriptionPricesInputSchema,
|
|
@@ -15310,8 +15745,26 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15310
15745
|
getSubscriptionsFromPointOfSaleResponseSchema,
|
|
15311
15746
|
getSubscriptionsInputSchema,
|
|
15312
15747
|
getSubscriptionsResponseSchema,
|
|
15748
|
+
paySubscriptionConsumptionRenewalInputSchema,
|
|
15749
|
+
paySubscriptionConsumptionRenewalResponseSchema,
|
|
15750
|
+
paySubscriptionRenewalInputSchema,
|
|
15751
|
+
paySubscriptionTimeBasedRenewalInputSchema,
|
|
15752
|
+
paySubscriptionTimeBasedRenewalResponseSchema,
|
|
15753
|
+
paymentIriSchema,
|
|
15754
|
+
paymentMethodSchema,
|
|
15755
|
+
paymentMethods,
|
|
15756
|
+
paymentNullableIriSchema,
|
|
15757
|
+
paymentStatusSchema,
|
|
15758
|
+
paymentStatuses,
|
|
15313
15759
|
renewalStatusSchema,
|
|
15314
15760
|
renewalStatuses,
|
|
15761
|
+
resolvableRenewalPaymentStatusSchema,
|
|
15762
|
+
resolvableRenewalPaymentStatuses,
|
|
15763
|
+
resolveSubscriptionConsumptionRenewalPaymentInputSchema,
|
|
15764
|
+
resolveSubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
15765
|
+
resolveSubscriptionRenewalPaymentInputSchema,
|
|
15766
|
+
resolveSubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
15767
|
+
resolveSubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
15315
15768
|
subscriptionAvailabilityReasonSchema,
|
|
15316
15769
|
subscriptionAvailabilityReasons,
|
|
15317
15770
|
subscriptionConsumptionDetailsSchema,
|
|
@@ -15332,13 +15785,21 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15332
15785
|
subscriptionIriSchema,
|
|
15333
15786
|
subscriptionNullableIriSchema,
|
|
15334
15787
|
subscriptionOperationQuoteSchema,
|
|
15788
|
+
subscriptionOverviewPlanSchema,
|
|
15335
15789
|
subscriptionOverviewResponseSchema,
|
|
15336
15790
|
subscriptionOverviewSubscriptionSchema,
|
|
15791
|
+
subscriptionPlanIriSchema,
|
|
15792
|
+
subscriptionPlanNullableIriSchema,
|
|
15793
|
+
subscriptionPlanPriceOptionSchema,
|
|
15794
|
+
subscriptionPlanSchema,
|
|
15795
|
+
subscriptionPlanSummarySchema,
|
|
15796
|
+
subscriptionPlansQuerySchema,
|
|
15337
15797
|
subscriptionPriceIriSchema,
|
|
15338
15798
|
subscriptionPriceNullableIriSchema,
|
|
15339
15799
|
subscriptionPriceSchema,
|
|
15340
15800
|
subscriptionPricesQuerySchema,
|
|
15341
15801
|
subscriptionQuerySchema,
|
|
15802
|
+
subscriptionRenewalPaymentInfoSchema,
|
|
15342
15803
|
subscriptionSchema,
|
|
15343
15804
|
subscriptionStatusSchema,
|
|
15344
15805
|
subscriptionStatuses,
|
|
@@ -15357,6 +15818,8 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15357
15818
|
updateSubscriptionConsumptionInputSchema,
|
|
15358
15819
|
updateSubscriptionConsumptionResponseSchema,
|
|
15359
15820
|
updateSubscriptionInputSchema,
|
|
15821
|
+
updateSubscriptionPlanInputSchema,
|
|
15822
|
+
updateSubscriptionPlanResponseSchema,
|
|
15360
15823
|
updateSubscriptionPriceInputSchema,
|
|
15361
15824
|
updateSubscriptionPriceResponseSchema,
|
|
15362
15825
|
updateSubscriptionResponseSchema,
|
|
@@ -15366,6 +15829,7 @@ var UpdateSubscription = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
|
15366
15829
|
writableSubscriptionConsumptionRenewalSchema,
|
|
15367
15830
|
writableSubscriptionConsumptionSchema,
|
|
15368
15831
|
writableSubscriptionInfiniteSchema,
|
|
15832
|
+
writableSubscriptionPlanSchema,
|
|
15369
15833
|
writableSubscriptionPriceSchema,
|
|
15370
15834
|
writableSubscriptionTimeBasedRenewalSchema,
|
|
15371
15835
|
writableSubscriptionTimeBasedSchema
|