@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.js
CHANGED
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
createPaginatedSchema,
|
|
11
11
|
creditTransactionTypeSchema as creditTransactionTypeSchema2,
|
|
12
12
|
datetimeSchema,
|
|
13
|
+
paymentMethodSchema as paymentMethodSchema2,
|
|
14
|
+
paymentStatusSchema as paymentStatusSchema2,
|
|
13
15
|
renewalStatusSchema as renewalStatusSchema2,
|
|
14
16
|
sortDirSchema,
|
|
15
17
|
subscriptionStatusSchema as subscriptionStatusSchema2,
|
|
@@ -13791,6 +13793,10 @@ import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
|
13791
13793
|
import {
|
|
13792
13794
|
creditTransactionTypes,
|
|
13793
13795
|
creditTransactionTypeSchema,
|
|
13796
|
+
paymentMethods,
|
|
13797
|
+
paymentMethodSchema,
|
|
13798
|
+
paymentStatuses,
|
|
13799
|
+
paymentStatusSchema,
|
|
13794
13800
|
renewalStatuses,
|
|
13795
13801
|
renewalStatusSchema,
|
|
13796
13802
|
subscriptionStatuses,
|
|
@@ -13813,6 +13819,8 @@ var subscriptionAvailabilityReasons = [
|
|
|
13813
13819
|
"operation_not_allowed"
|
|
13814
13820
|
];
|
|
13815
13821
|
var subscriptionAvailabilityReasonSchema = external_exports.enum(subscriptionAvailabilityReasons);
|
|
13822
|
+
var resolvableRenewalPaymentStatuses = ["paid", "failed", "canceled"];
|
|
13823
|
+
var resolvableRenewalPaymentStatusSchema = external_exports.enum(resolvableRenewalPaymentStatuses);
|
|
13816
13824
|
var subscriptionIriSchema = iriSchema("/subscriptions/:id");
|
|
13817
13825
|
var subscriptionNullableIriSchema = iriNullableSchema("/subscriptions/:id");
|
|
13818
13826
|
var subscriptionInfiniteIriSchema = iriSchema("/subscriptions/infinite/:id");
|
|
@@ -13829,6 +13837,8 @@ var subscriptionTimeBasedNullableIriSchema = iriNullableSchema(
|
|
|
13829
13837
|
);
|
|
13830
13838
|
var subscriptionPriceIriSchema = iriSchema("/subscriptions/prices/:id");
|
|
13831
13839
|
var subscriptionPriceNullableIriSchema = iriNullableSchema("/subscriptions/prices/:id");
|
|
13840
|
+
var subscriptionPlanIriSchema = iriSchema("/subscription_plans/:id");
|
|
13841
|
+
var subscriptionPlanNullableIriSchema = iriNullableSchema("/subscription_plans/:id");
|
|
13832
13842
|
var subscriptionConsumptionRenewalIriSchema = iriSchema(
|
|
13833
13843
|
"/subscriptions/consumption/renewals/:id"
|
|
13834
13844
|
);
|
|
@@ -13841,6 +13851,8 @@ var subscriptionTimeBasedRenewalIriSchema = iriSchema(
|
|
|
13841
13851
|
var subscriptionTimeBasedRenewalNullableIriSchema = iriNullableSchema(
|
|
13842
13852
|
"/subscriptions/time_based/renewals/:id"
|
|
13843
13853
|
);
|
|
13854
|
+
var paymentIriSchema = iriSchema("/payments/:id");
|
|
13855
|
+
var paymentNullableIriSchema = iriNullableSchema("/payments/:id");
|
|
13844
13856
|
var creditUsageLogIriSchema = iriSchema("/credit_usage_logs/:id");
|
|
13845
13857
|
var creditUsageLogNullableIriSchema = iriNullableSchema("/credit_usage_logs/:id");
|
|
13846
13858
|
|
|
@@ -13854,12 +13866,59 @@ var integerRangeFilterShape = {
|
|
|
13854
13866
|
"[lte]": external_exports.coerce.number().optional()
|
|
13855
13867
|
};
|
|
13856
13868
|
var jsonContextSchema = external_exports.union([external_exports.array(external_exports.unknown()), external_exports.record(external_exports.string(), external_exports.unknown())]);
|
|
13869
|
+
var subscriptionPlanSummarySchema = external_exports.object({
|
|
13870
|
+
id: external_exports.string(),
|
|
13871
|
+
code: external_exports.string(),
|
|
13872
|
+
name: external_exports.string(),
|
|
13873
|
+
type: subscriptionTypeSchema2,
|
|
13874
|
+
isActive: external_exports.boolean(),
|
|
13875
|
+
isPurchasable: external_exports.boolean(),
|
|
13876
|
+
isAdminOnly: external_exports.boolean()
|
|
13877
|
+
});
|
|
13878
|
+
var subscriptionOverviewPlanSchema = external_exports.object({
|
|
13879
|
+
id: external_exports.string(),
|
|
13880
|
+
iri: subscriptionPlanIriSchema,
|
|
13881
|
+
code: external_exports.string(),
|
|
13882
|
+
name: external_exports.string(),
|
|
13883
|
+
type: subscriptionTypeSchema2,
|
|
13884
|
+
active: external_exports.boolean(),
|
|
13885
|
+
purchasable: external_exports.boolean(),
|
|
13886
|
+
adminOnly: external_exports.boolean()
|
|
13887
|
+
});
|
|
13888
|
+
var subscriptionPlanPriceOptionSchema = external_exports.object({
|
|
13889
|
+
id: external_exports.string(),
|
|
13890
|
+
iri: subscriptionPriceIriSchema,
|
|
13891
|
+
threshold: external_exports.coerce.number().int().nonnegative(),
|
|
13892
|
+
unitPrice: external_exports.string()
|
|
13893
|
+
});
|
|
13894
|
+
var subscriptionPlanSchema = external_exports.object({
|
|
13895
|
+
id: external_exports.string(),
|
|
13896
|
+
code: external_exports.string(),
|
|
13897
|
+
name: external_exports.string(),
|
|
13898
|
+
description: external_exports.string().nullable(),
|
|
13899
|
+
type: subscriptionTypeSchema2,
|
|
13900
|
+
isActive: external_exports.boolean(),
|
|
13901
|
+
isPurchasable: external_exports.boolean(),
|
|
13902
|
+
isAdminOnly: external_exports.boolean(),
|
|
13903
|
+
defaultAutoRenewal: external_exports.boolean(),
|
|
13904
|
+
includedCredits: external_exports.coerce.number().int().positive().nullable(),
|
|
13905
|
+
renewalCredits: external_exports.coerce.number().int().positive().nullable(),
|
|
13906
|
+
renewalThreshold: external_exports.coerce.number().int().nonnegative().nullable(),
|
|
13907
|
+
durationDays: external_exports.coerce.number().int().positive().nullable(),
|
|
13908
|
+
renewalDays: external_exports.coerce.number().int().positive().nullable(),
|
|
13909
|
+
renewalOffsetDays: external_exports.coerce.number().int().nonnegative().nullable(),
|
|
13910
|
+
operationCosts: external_exports.record(external_exports.string(), external_exports.coerce.number().int().nonnegative()),
|
|
13911
|
+
priceOptions: external_exports.array(subscriptionPlanPriceOptionSchema).default([]),
|
|
13912
|
+
createdAt: datetimeSchema,
|
|
13913
|
+
updatedAt: datetimeSchema
|
|
13914
|
+
});
|
|
13857
13915
|
var subscriptionBaseSchema = external_exports.object({
|
|
13858
13916
|
id: external_exports.string(),
|
|
13859
13917
|
status: subscriptionStatusSchema2,
|
|
13860
13918
|
autoRenewal: external_exports.boolean(),
|
|
13861
13919
|
startsAt: subscriptionDateSchema,
|
|
13862
13920
|
customUnitPrice: external_exports.string().nullable(),
|
|
13921
|
+
plan: subscriptionPlanSummarySchema.nullable().optional(),
|
|
13863
13922
|
createdAt: datetimeSchema,
|
|
13864
13923
|
updatedAt: datetimeSchema
|
|
13865
13924
|
});
|
|
@@ -13917,6 +13976,7 @@ var renewalBaseSchema = external_exports.object({
|
|
|
13917
13976
|
updatedAt: datetimeSchema
|
|
13918
13977
|
});
|
|
13919
13978
|
var subscriptionConsumptionRenewalSchema = renewalBaseSchema.extend({
|
|
13979
|
+
payment: paymentNullableIriSchema,
|
|
13920
13980
|
credits: external_exports.coerce.number().int(),
|
|
13921
13981
|
pricePerCredit: external_exports.coerce.number()
|
|
13922
13982
|
});
|
|
@@ -13924,6 +13984,7 @@ var subscriptionConsumptionRenewalDetailsSchema = subscriptionConsumptionRenewal
|
|
|
13924
13984
|
subscription: subscriptionConsumptionIriSchema
|
|
13925
13985
|
});
|
|
13926
13986
|
var subscriptionTimeBasedRenewalSchema = renewalBaseSchema.extend({
|
|
13987
|
+
payment: paymentNullableIriSchema,
|
|
13927
13988
|
days: external_exports.coerce.number().int(),
|
|
13928
13989
|
previousExpiresDate: subscriptionDateSchema,
|
|
13929
13990
|
newExpiresDate: subscriptionDateSchema,
|
|
@@ -13935,6 +13996,7 @@ var subscriptionTimeBasedRenewalDetailsSchema = subscriptionTimeBasedRenewalSche
|
|
|
13935
13996
|
var subscriptionPriceSchema = external_exports.object({
|
|
13936
13997
|
id: external_exports.string(),
|
|
13937
13998
|
type: subscriptionTypeSchema2,
|
|
13999
|
+
plan: subscriptionPlanNullableIriSchema.nullable().optional(),
|
|
13938
14000
|
threshold: external_exports.coerce.number().int(),
|
|
13939
14001
|
unitPrice: external_exports.string(),
|
|
13940
14002
|
createdAt: datetimeSchema,
|
|
@@ -13969,6 +14031,42 @@ var adjustSubscriptionConsumptionCreditsInputSchema = external_exports.object({
|
|
|
13969
14031
|
});
|
|
13970
14032
|
}
|
|
13971
14033
|
});
|
|
14034
|
+
var paySubscriptionRenewalInputSchema = external_exports.object({
|
|
14035
|
+
method: paymentMethodSchema2
|
|
14036
|
+
});
|
|
14037
|
+
var paymentInfoBaseSchema = external_exports.object({
|
|
14038
|
+
id: external_exports.string(),
|
|
14039
|
+
method: paymentMethodSchema2,
|
|
14040
|
+
status: paymentStatusSchema2,
|
|
14041
|
+
amount: external_exports.string()
|
|
14042
|
+
});
|
|
14043
|
+
var subscriptionRenewalPaymentInfoSchema = external_exports.discriminatedUnion("method", [
|
|
14044
|
+
paymentInfoBaseSchema.extend({
|
|
14045
|
+
method: external_exports.literal("stripe"),
|
|
14046
|
+
sessionUrl: external_exports.string(),
|
|
14047
|
+
expiresAt: datetimeSchema
|
|
14048
|
+
}),
|
|
14049
|
+
paymentInfoBaseSchema.extend({
|
|
14050
|
+
method: external_exports.literal("bank_transfer"),
|
|
14051
|
+
iban: external_exports.string(),
|
|
14052
|
+
bic: external_exports.string(),
|
|
14053
|
+
accountHolder: external_exports.string(),
|
|
14054
|
+
bankName: external_exports.string(),
|
|
14055
|
+
bankAddress: external_exports.string().nullable(),
|
|
14056
|
+
currency: external_exports.string(),
|
|
14057
|
+
description: external_exports.string()
|
|
14058
|
+
}),
|
|
14059
|
+
paymentInfoBaseSchema.extend({
|
|
14060
|
+
method: external_exports.literal("cash")
|
|
14061
|
+
}),
|
|
14062
|
+
paymentInfoBaseSchema.extend({
|
|
14063
|
+
method: external_exports.literal("credit_card")
|
|
14064
|
+
})
|
|
14065
|
+
]);
|
|
14066
|
+
var resolveSubscriptionRenewalPaymentInputSchema = external_exports.object({
|
|
14067
|
+
status: resolvableRenewalPaymentStatusSchema,
|
|
14068
|
+
response: external_exports.string().max(65535).optional()
|
|
14069
|
+
});
|
|
13972
14070
|
var subscriptionOverviewSubscriptionIriSchema = external_exports.union([
|
|
13973
14071
|
subscriptionInfiniteIriSchema,
|
|
13974
14072
|
subscriptionConsumptionIriSchema,
|
|
@@ -13977,6 +14075,7 @@ var subscriptionOverviewSubscriptionIriSchema = external_exports.union([
|
|
|
13977
14075
|
var subscriptionOverviewSubscriptionSchema = external_exports.object({
|
|
13978
14076
|
id: external_exports.string(),
|
|
13979
14077
|
iri: subscriptionOverviewSubscriptionIriSchema,
|
|
14078
|
+
plan: subscriptionOverviewPlanSchema.nullable(),
|
|
13980
14079
|
type: subscriptionTypeSchema2,
|
|
13981
14080
|
status: subscriptionStatusSchema2,
|
|
13982
14081
|
startsAt: subscriptionDateSchema,
|
|
@@ -14025,9 +14124,27 @@ var writableSubscriptionTimeBasedSchema = writableSubscriptionCommonSchema.exten
|
|
|
14025
14124
|
});
|
|
14026
14125
|
var writableSubscriptionPriceSchema = external_exports.object({
|
|
14027
14126
|
type: subscriptionTypeSchema2,
|
|
14127
|
+
plan: subscriptionPlanNullableIriSchema.nullable().optional(),
|
|
14028
14128
|
threshold: external_exports.coerce.number().int().nonnegative(),
|
|
14029
14129
|
unitPrice: external_exports.string()
|
|
14030
14130
|
});
|
|
14131
|
+
var writableSubscriptionPlanSchema = external_exports.object({
|
|
14132
|
+
code: external_exports.string().min(1).max(100),
|
|
14133
|
+
name: external_exports.string().min(1).max(255),
|
|
14134
|
+
description: external_exports.string().optional().nullable(),
|
|
14135
|
+
type: subscriptionTypeSchema2,
|
|
14136
|
+
isActive: external_exports.boolean().optional(),
|
|
14137
|
+
isPurchasable: external_exports.boolean().optional(),
|
|
14138
|
+
isAdminOnly: external_exports.boolean().optional(),
|
|
14139
|
+
defaultAutoRenewal: external_exports.boolean().optional(),
|
|
14140
|
+
includedCredits: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14141
|
+
renewalCredits: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14142
|
+
renewalThreshold: external_exports.coerce.number().int().nonnegative().optional().nullable(),
|
|
14143
|
+
durationDays: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14144
|
+
renewalDays: external_exports.coerce.number().int().positive().optional().nullable(),
|
|
14145
|
+
renewalOffsetDays: external_exports.coerce.number().int().nonnegative().optional().nullable(),
|
|
14146
|
+
operationCosts: external_exports.record(external_exports.string(), external_exports.coerce.number().int().nonnegative()).optional()
|
|
14147
|
+
});
|
|
14031
14148
|
var writableSubscriptionConsumptionRenewalSchema = external_exports.object({
|
|
14032
14149
|
subscription: subscriptionConsumptionIriSchema,
|
|
14033
14150
|
credits: external_exports.coerce.number().int().positive()
|
|
@@ -14109,9 +14226,26 @@ var subscriptionTimeBasedRenewalsQuerySchema = renewalQueryBaseSchema.extend({
|
|
|
14109
14226
|
"days[lt]": integerRangeFilterShape["[lt]"],
|
|
14110
14227
|
"days[lte]": integerRangeFilterShape["[lte]"]
|
|
14111
14228
|
});
|
|
14229
|
+
var subscriptionPlansQuerySchema = external_exports.object({
|
|
14230
|
+
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14231
|
+
code: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14232
|
+
name: external_exports.string().optional(),
|
|
14233
|
+
type: external_exports.union([subscriptionTypeSchema2, external_exports.array(subscriptionTypeSchema2)]).optional(),
|
|
14234
|
+
isActive: booleanSchema.optional(),
|
|
14235
|
+
isPurchasable: booleanSchema.optional(),
|
|
14236
|
+
isAdminOnly: booleanSchema.optional(),
|
|
14237
|
+
defaultAutoRenewal: booleanSchema.optional(),
|
|
14238
|
+
"order[name]": sortDirSchema.optional(),
|
|
14239
|
+
"order[code]": sortDirSchema.optional(),
|
|
14240
|
+
"order[createdAt]": sortDirSchema.optional(),
|
|
14241
|
+
"order[updatedAt]": sortDirSchema.optional(),
|
|
14242
|
+
page: external_exports.coerce.number().optional()
|
|
14243
|
+
}).extend(timestampsFilterSchema.shape);
|
|
14112
14244
|
var subscriptionPricesQuerySchema = external_exports.object({
|
|
14113
14245
|
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14114
14246
|
type: external_exports.union([subscriptionTypeSchema2, external_exports.array(subscriptionTypeSchema2)]).optional(),
|
|
14247
|
+
"plan.id": external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14248
|
+
"plan.code": external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
14115
14249
|
"threshold[between]": external_exports.coerce.number().optional(),
|
|
14116
14250
|
"threshold[gt]": external_exports.coerce.number().optional(),
|
|
14117
14251
|
"threshold[gte]": external_exports.coerce.number().optional(),
|
|
@@ -14150,6 +14284,7 @@ var getSubscriptionTimeBasedListResponseSchema = createPaginatedSchema(
|
|
|
14150
14284
|
var getSubscriptionInfiniteListResponseSchema = createPaginatedSchema(
|
|
14151
14285
|
subscriptionInfiniteSchema
|
|
14152
14286
|
);
|
|
14287
|
+
var getSubscriptionPlansResponseSchema = createPaginatedSchema(subscriptionPlanSchema);
|
|
14153
14288
|
var getSubscriptionPricesResponseSchema = createPaginatedSchema(subscriptionPriceSchema);
|
|
14154
14289
|
var getCreditUsageLogsResponseSchema = createPaginatedSchema(creditUsageLogSchema);
|
|
14155
14290
|
var getSubscriptionConsumptionRenewalsResponseSchema = createPaginatedSchema(
|
|
@@ -14158,6 +14293,7 @@ var getSubscriptionConsumptionRenewalsResponseSchema = createPaginatedSchema(
|
|
|
14158
14293
|
var getSubscriptionTimeBasedRenewalsResponseSchema = createPaginatedSchema(
|
|
14159
14294
|
subscriptionTimeBasedRenewalSchema
|
|
14160
14295
|
);
|
|
14296
|
+
var getSubscriptionPlanCatalogResponseSchema = external_exports.array(subscriptionPlanSchema);
|
|
14161
14297
|
|
|
14162
14298
|
// src/requests/credit-usage-logs/DeleteCreditUsageLog.ts
|
|
14163
14299
|
import { AbstractApiRequest } from "@deliverart/sdk-js-core";
|
|
@@ -14479,11 +14615,53 @@ var GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption = class extend
|
|
|
14479
14615
|
}
|
|
14480
14616
|
};
|
|
14481
14617
|
|
|
14482
|
-
// src/requests/subscription-
|
|
14618
|
+
// src/requests/subscription-consumption-renewals/PaySubscriptionConsumptionRenewal.ts
|
|
14483
14619
|
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
14620
|
+
var paySubscriptionConsumptionRenewalInputSchema = paySubscriptionRenewalInputSchema;
|
|
14621
|
+
var paySubscriptionConsumptionRenewalResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
14622
|
+
var PaySubscriptionConsumptionRenewal = class extends AbstractApiRequest16 {
|
|
14623
|
+
constructor(renewalId, method) {
|
|
14624
|
+
super({ method });
|
|
14625
|
+
this.method = "POST";
|
|
14626
|
+
this.contentType = "application/json";
|
|
14627
|
+
this.accept = "application/json";
|
|
14628
|
+
this.inputSchema = paySubscriptionConsumptionRenewalInputSchema;
|
|
14629
|
+
this.outputSchema = paySubscriptionConsumptionRenewalResponseSchema;
|
|
14630
|
+
this.querySchema = void 0;
|
|
14631
|
+
this.headersSchema = void 0;
|
|
14632
|
+
this.renewalId = renewalId;
|
|
14633
|
+
}
|
|
14634
|
+
getPath() {
|
|
14635
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/pay`;
|
|
14636
|
+
}
|
|
14637
|
+
};
|
|
14638
|
+
|
|
14639
|
+
// src/requests/subscription-consumption-renewals/ResolveSubscriptionConsumptionRenewalPayment.ts
|
|
14640
|
+
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
14641
|
+
var resolveSubscriptionConsumptionRenewalPaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
14642
|
+
var resolveSubscriptionConsumptionRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
14643
|
+
var ResolveSubscriptionConsumptionRenewalPayment = class extends AbstractApiRequest17 {
|
|
14644
|
+
constructor(renewalId, input) {
|
|
14645
|
+
super(input);
|
|
14646
|
+
this.method = "POST";
|
|
14647
|
+
this.contentType = "application/json";
|
|
14648
|
+
this.accept = "application/json";
|
|
14649
|
+
this.inputSchema = resolveSubscriptionConsumptionRenewalPaymentInputSchema;
|
|
14650
|
+
this.outputSchema = resolveSubscriptionConsumptionRenewalPaymentResponseSchema;
|
|
14651
|
+
this.querySchema = void 0;
|
|
14652
|
+
this.headersSchema = void 0;
|
|
14653
|
+
this.renewalId = renewalId;
|
|
14654
|
+
}
|
|
14655
|
+
getPath() {
|
|
14656
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/resolve_payment`;
|
|
14657
|
+
}
|
|
14658
|
+
};
|
|
14659
|
+
|
|
14660
|
+
// src/requests/subscription-infinite/CreateSubscriptionInfinite.ts
|
|
14661
|
+
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
14484
14662
|
var createSubscriptionInfiniteInputSchema = writableSubscriptionInfiniteSchema;
|
|
14485
14663
|
var createSubscriptionInfiniteResponseSchema = subscriptionInfiniteDetailsSchema;
|
|
14486
|
-
var CreateSubscriptionInfinite = class extends
|
|
14664
|
+
var CreateSubscriptionInfinite = class extends AbstractApiRequest18 {
|
|
14487
14665
|
constructor(input) {
|
|
14488
14666
|
super(input);
|
|
14489
14667
|
this.method = "POST";
|
|
@@ -14500,11 +14678,11 @@ var CreateSubscriptionInfinite = class extends AbstractApiRequest16 {
|
|
|
14500
14678
|
};
|
|
14501
14679
|
|
|
14502
14680
|
// src/requests/subscription-infinite/DeleteSubscriptionInfinite.ts
|
|
14503
|
-
import { AbstractApiRequest as
|
|
14681
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
14504
14682
|
import { emptyResponseSchema as emptyResponseSchema4 } from "@deliverart/sdk-js-global-types";
|
|
14505
14683
|
var deleteSubscriptionInfiniteInputSchema = external_exports.undefined();
|
|
14506
14684
|
var deleteSubscriptionInfiniteResponseSchema = emptyResponseSchema4;
|
|
14507
|
-
var DeleteSubscriptionInfinite = class extends
|
|
14685
|
+
var DeleteSubscriptionInfinite = class extends AbstractApiRequest19 {
|
|
14508
14686
|
constructor(subscriptionId) {
|
|
14509
14687
|
super(void 0);
|
|
14510
14688
|
this.method = "DELETE";
|
|
@@ -14522,10 +14700,10 @@ var DeleteSubscriptionInfinite = class extends AbstractApiRequest17 {
|
|
|
14522
14700
|
};
|
|
14523
14701
|
|
|
14524
14702
|
// src/requests/subscription-infinite/GetSubscriptionInfiniteDetails.ts
|
|
14525
|
-
import { AbstractApiRequest as
|
|
14703
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
14526
14704
|
var getSubscriptionInfiniteDetailsInputSchema = external_exports.undefined();
|
|
14527
14705
|
var getSubscriptionInfiniteDetailsResponseSchema = subscriptionInfiniteDetailsSchema;
|
|
14528
|
-
var GetSubscriptionInfiniteDetails = class extends
|
|
14706
|
+
var GetSubscriptionInfiniteDetails = class extends AbstractApiRequest20 {
|
|
14529
14707
|
constructor(subscriptionId) {
|
|
14530
14708
|
super(void 0);
|
|
14531
14709
|
this.method = "GET";
|
|
@@ -14543,9 +14721,9 @@ var GetSubscriptionInfiniteDetails = class extends AbstractApiRequest18 {
|
|
|
14543
14721
|
};
|
|
14544
14722
|
|
|
14545
14723
|
// src/requests/subscription-infinite/GetSubscriptionInfiniteList.ts
|
|
14546
|
-
import { AbstractApiRequest as
|
|
14724
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
14547
14725
|
var getSubscriptionInfiniteListInputSchema = external_exports.undefined();
|
|
14548
|
-
var GetSubscriptionInfiniteList = class extends
|
|
14726
|
+
var GetSubscriptionInfiniteList = class extends AbstractApiRequest21 {
|
|
14549
14727
|
constructor(options) {
|
|
14550
14728
|
super(void 0, options);
|
|
14551
14729
|
this.method = "GET";
|
|
@@ -14563,11 +14741,157 @@ var GetSubscriptionInfiniteList = class extends AbstractApiRequest19 {
|
|
|
14563
14741
|
}
|
|
14564
14742
|
};
|
|
14565
14743
|
|
|
14744
|
+
// src/requests/subscription-plans/CreateSubscriptionPlan.ts
|
|
14745
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
14746
|
+
var createSubscriptionPlanInputSchema = writableSubscriptionPlanSchema.required();
|
|
14747
|
+
var createSubscriptionPlanResponseSchema = subscriptionPlanSchema;
|
|
14748
|
+
var CreateSubscriptionPlan = class extends AbstractApiRequest22 {
|
|
14749
|
+
constructor(input) {
|
|
14750
|
+
super(input);
|
|
14751
|
+
this.method = "POST";
|
|
14752
|
+
this.contentType = "application/json";
|
|
14753
|
+
this.accept = "application/json";
|
|
14754
|
+
this.inputSchema = createSubscriptionPlanInputSchema;
|
|
14755
|
+
this.outputSchema = createSubscriptionPlanResponseSchema;
|
|
14756
|
+
this.querySchema = void 0;
|
|
14757
|
+
this.headersSchema = void 0;
|
|
14758
|
+
}
|
|
14759
|
+
getPath() {
|
|
14760
|
+
return "/subscription_plans";
|
|
14761
|
+
}
|
|
14762
|
+
};
|
|
14763
|
+
|
|
14764
|
+
// src/requests/subscription-plans/DeleteSubscriptionPlan.ts
|
|
14765
|
+
import { AbstractApiRequest as AbstractApiRequest23 } from "@deliverart/sdk-js-core";
|
|
14766
|
+
var deleteSubscriptionPlanInputSchema = external_exports.undefined();
|
|
14767
|
+
var deleteSubscriptionPlanResponseSchema = external_exports.undefined();
|
|
14768
|
+
var DeleteSubscriptionPlan = class extends AbstractApiRequest23 {
|
|
14769
|
+
constructor(subscriptionPlanId) {
|
|
14770
|
+
super(void 0);
|
|
14771
|
+
this.method = "DELETE";
|
|
14772
|
+
this.contentType = "application/json";
|
|
14773
|
+
this.accept = "application/json";
|
|
14774
|
+
this.inputSchema = deleteSubscriptionPlanInputSchema;
|
|
14775
|
+
this.outputSchema = deleteSubscriptionPlanResponseSchema;
|
|
14776
|
+
this.querySchema = void 0;
|
|
14777
|
+
this.headersSchema = void 0;
|
|
14778
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
14779
|
+
}
|
|
14780
|
+
getPath() {
|
|
14781
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
14782
|
+
}
|
|
14783
|
+
};
|
|
14784
|
+
|
|
14785
|
+
// src/requests/subscription-plans/GetSubscriptionPlanCatalog.ts
|
|
14786
|
+
import { AbstractApiRequest as AbstractApiRequest24 } from "@deliverart/sdk-js-core";
|
|
14787
|
+
var getSubscriptionPlanCatalogInputSchema = external_exports.undefined();
|
|
14788
|
+
var GetSubscriptionPlanCatalog = class extends AbstractApiRequest24 {
|
|
14789
|
+
constructor() {
|
|
14790
|
+
super(void 0);
|
|
14791
|
+
this.method = "GET";
|
|
14792
|
+
this.contentType = "application/json";
|
|
14793
|
+
this.accept = "application/json";
|
|
14794
|
+
this.inputSchema = getSubscriptionPlanCatalogInputSchema;
|
|
14795
|
+
this.outputSchema = getSubscriptionPlanCatalogResponseSchema;
|
|
14796
|
+
this.querySchema = void 0;
|
|
14797
|
+
this.headersSchema = void 0;
|
|
14798
|
+
this.listItemSchema = subscriptionPlanSchema;
|
|
14799
|
+
this.paginationDefaultEnabled = false;
|
|
14800
|
+
}
|
|
14801
|
+
getPath() {
|
|
14802
|
+
return "/subscriptions/catalog/plans";
|
|
14803
|
+
}
|
|
14804
|
+
};
|
|
14805
|
+
|
|
14806
|
+
// src/requests/subscription-plans/GetSubscriptionPlanCatalogDetails.ts
|
|
14807
|
+
import { AbstractApiRequest as AbstractApiRequest25 } from "@deliverart/sdk-js-core";
|
|
14808
|
+
var getSubscriptionPlanCatalogDetailsInputSchema = external_exports.undefined();
|
|
14809
|
+
var getSubscriptionPlanCatalogDetailsResponseSchema = subscriptionPlanSchema;
|
|
14810
|
+
var GetSubscriptionPlanCatalogDetails = class extends AbstractApiRequest25 {
|
|
14811
|
+
constructor(subscriptionPlanId) {
|
|
14812
|
+
super(void 0);
|
|
14813
|
+
this.method = "GET";
|
|
14814
|
+
this.contentType = "application/json";
|
|
14815
|
+
this.accept = "application/json";
|
|
14816
|
+
this.inputSchema = getSubscriptionPlanCatalogDetailsInputSchema;
|
|
14817
|
+
this.outputSchema = getSubscriptionPlanCatalogDetailsResponseSchema;
|
|
14818
|
+
this.querySchema = void 0;
|
|
14819
|
+
this.headersSchema = void 0;
|
|
14820
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
14821
|
+
}
|
|
14822
|
+
getPath() {
|
|
14823
|
+
return `/subscriptions/catalog/plans/${this.subscriptionPlanId}`;
|
|
14824
|
+
}
|
|
14825
|
+
};
|
|
14826
|
+
|
|
14827
|
+
// src/requests/subscription-plans/GetSubscriptionPlanDetails.ts
|
|
14828
|
+
import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
|
|
14829
|
+
var getSubscriptionPlanDetailsInputSchema = external_exports.undefined();
|
|
14830
|
+
var getSubscriptionPlanDetailsResponseSchema = subscriptionPlanSchema;
|
|
14831
|
+
var GetSubscriptionPlanDetails = class extends AbstractApiRequest26 {
|
|
14832
|
+
constructor(subscriptionPlanId) {
|
|
14833
|
+
super(void 0);
|
|
14834
|
+
this.method = "GET";
|
|
14835
|
+
this.contentType = "application/json";
|
|
14836
|
+
this.accept = "application/json";
|
|
14837
|
+
this.inputSchema = getSubscriptionPlanDetailsInputSchema;
|
|
14838
|
+
this.outputSchema = getSubscriptionPlanDetailsResponseSchema;
|
|
14839
|
+
this.querySchema = void 0;
|
|
14840
|
+
this.headersSchema = void 0;
|
|
14841
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
14842
|
+
}
|
|
14843
|
+
getPath() {
|
|
14844
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
14845
|
+
}
|
|
14846
|
+
};
|
|
14847
|
+
|
|
14848
|
+
// src/requests/subscription-plans/GetSubscriptionPlans.ts
|
|
14849
|
+
import { AbstractApiRequest as AbstractApiRequest27 } from "@deliverart/sdk-js-core";
|
|
14850
|
+
var getSubscriptionPlansInputSchema = external_exports.undefined();
|
|
14851
|
+
var GetSubscriptionPlans = class extends AbstractApiRequest27 {
|
|
14852
|
+
constructor(options) {
|
|
14853
|
+
super(void 0, options);
|
|
14854
|
+
this.method = "GET";
|
|
14855
|
+
this.contentType = "application/json";
|
|
14856
|
+
this.accept = "application/json";
|
|
14857
|
+
this.inputSchema = getSubscriptionPlansInputSchema;
|
|
14858
|
+
this.outputSchema = getSubscriptionPlansResponseSchema;
|
|
14859
|
+
this.querySchema = subscriptionPlansQuerySchema;
|
|
14860
|
+
this.headersSchema = void 0;
|
|
14861
|
+
this.listItemSchema = subscriptionPlanSchema;
|
|
14862
|
+
this.paginationDefaultEnabled = true;
|
|
14863
|
+
}
|
|
14864
|
+
getPath() {
|
|
14865
|
+
return "/subscription_plans";
|
|
14866
|
+
}
|
|
14867
|
+
};
|
|
14868
|
+
|
|
14869
|
+
// src/requests/subscription-plans/UpdateSubscriptionPlan.ts
|
|
14870
|
+
import { AbstractApiRequest as AbstractApiRequest28 } from "@deliverart/sdk-js-core";
|
|
14871
|
+
var updateSubscriptionPlanInputSchema = writableSubscriptionPlanSchema.partial();
|
|
14872
|
+
var updateSubscriptionPlanResponseSchema = subscriptionPlanSchema;
|
|
14873
|
+
var UpdateSubscriptionPlan = class extends AbstractApiRequest28 {
|
|
14874
|
+
constructor(subscriptionPlanId, input) {
|
|
14875
|
+
super(input);
|
|
14876
|
+
this.method = "PATCH";
|
|
14877
|
+
this.contentType = "application/merge-patch+json";
|
|
14878
|
+
this.accept = "application/json";
|
|
14879
|
+
this.inputSchema = updateSubscriptionPlanInputSchema;
|
|
14880
|
+
this.outputSchema = updateSubscriptionPlanResponseSchema;
|
|
14881
|
+
this.querySchema = void 0;
|
|
14882
|
+
this.headersSchema = void 0;
|
|
14883
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
14884
|
+
}
|
|
14885
|
+
getPath() {
|
|
14886
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
14887
|
+
}
|
|
14888
|
+
};
|
|
14889
|
+
|
|
14566
14890
|
// src/requests/subscription-prices/CreateSubscriptionPrice.ts
|
|
14567
|
-
import { AbstractApiRequest as
|
|
14891
|
+
import { AbstractApiRequest as AbstractApiRequest29 } from "@deliverart/sdk-js-core";
|
|
14568
14892
|
var createSubscriptionPriceInputSchema = writableSubscriptionPriceSchema.required();
|
|
14569
14893
|
var createSubscriptionPriceResponseSchema = subscriptionPriceSchema;
|
|
14570
|
-
var CreateSubscriptionPrice = class extends
|
|
14894
|
+
var CreateSubscriptionPrice = class extends AbstractApiRequest29 {
|
|
14571
14895
|
constructor(input) {
|
|
14572
14896
|
super(input);
|
|
14573
14897
|
this.method = "POST";
|
|
@@ -14584,11 +14908,11 @@ var CreateSubscriptionPrice = class extends AbstractApiRequest20 {
|
|
|
14584
14908
|
};
|
|
14585
14909
|
|
|
14586
14910
|
// src/requests/subscription-prices/DeleteSubscriptionPrice.ts
|
|
14587
|
-
import { AbstractApiRequest as
|
|
14911
|
+
import { AbstractApiRequest as AbstractApiRequest30 } from "@deliverart/sdk-js-core";
|
|
14588
14912
|
import { emptyResponseSchema as emptyResponseSchema5 } from "@deliverart/sdk-js-global-types";
|
|
14589
14913
|
var deleteSubscriptionPriceInputSchema = external_exports.undefined();
|
|
14590
14914
|
var deleteSubscriptionPriceResponseSchema = emptyResponseSchema5;
|
|
14591
|
-
var DeleteSubscriptionPrice = class extends
|
|
14915
|
+
var DeleteSubscriptionPrice = class extends AbstractApiRequest30 {
|
|
14592
14916
|
constructor(priceId) {
|
|
14593
14917
|
super(void 0);
|
|
14594
14918
|
this.method = "DELETE";
|
|
@@ -14606,10 +14930,10 @@ var DeleteSubscriptionPrice = class extends AbstractApiRequest21 {
|
|
|
14606
14930
|
};
|
|
14607
14931
|
|
|
14608
14932
|
// src/requests/subscription-prices/GetSubscriptionPriceDetails.ts
|
|
14609
|
-
import { AbstractApiRequest as
|
|
14933
|
+
import { AbstractApiRequest as AbstractApiRequest31 } from "@deliverart/sdk-js-core";
|
|
14610
14934
|
var getSubscriptionPriceDetailsInputSchema = external_exports.undefined();
|
|
14611
14935
|
var getSubscriptionPriceDetailsResponseSchema = subscriptionPriceSchema;
|
|
14612
|
-
var GetSubscriptionPriceDetails = class extends
|
|
14936
|
+
var GetSubscriptionPriceDetails = class extends AbstractApiRequest31 {
|
|
14613
14937
|
constructor(priceId) {
|
|
14614
14938
|
super(void 0);
|
|
14615
14939
|
this.method = "GET";
|
|
@@ -14627,9 +14951,9 @@ var GetSubscriptionPriceDetails = class extends AbstractApiRequest22 {
|
|
|
14627
14951
|
};
|
|
14628
14952
|
|
|
14629
14953
|
// src/requests/subscription-prices/GetSubscriptionPrices.ts
|
|
14630
|
-
import { AbstractApiRequest as
|
|
14954
|
+
import { AbstractApiRequest as AbstractApiRequest32 } from "@deliverart/sdk-js-core";
|
|
14631
14955
|
var getSubscriptionPricesInputSchema = external_exports.undefined();
|
|
14632
|
-
var GetSubscriptionPrices = class extends
|
|
14956
|
+
var GetSubscriptionPrices = class extends AbstractApiRequest32 {
|
|
14633
14957
|
constructor(options) {
|
|
14634
14958
|
super(void 0, options);
|
|
14635
14959
|
this.method = "GET";
|
|
@@ -14648,10 +14972,10 @@ var GetSubscriptionPrices = class extends AbstractApiRequest23 {
|
|
|
14648
14972
|
};
|
|
14649
14973
|
|
|
14650
14974
|
// src/requests/subscription-prices/UpdateSubscriptionPrice.ts
|
|
14651
|
-
import { AbstractApiRequest as
|
|
14975
|
+
import { AbstractApiRequest as AbstractApiRequest33 } from "@deliverart/sdk-js-core";
|
|
14652
14976
|
var updateSubscriptionPriceInputSchema = writableSubscriptionPriceSchema.partial();
|
|
14653
14977
|
var updateSubscriptionPriceResponseSchema = subscriptionPriceSchema;
|
|
14654
|
-
var UpdateSubscriptionPrice = class extends
|
|
14978
|
+
var UpdateSubscriptionPrice = class extends AbstractApiRequest33 {
|
|
14655
14979
|
constructor(priceId, input) {
|
|
14656
14980
|
super(input);
|
|
14657
14981
|
this.method = "PATCH";
|
|
@@ -14669,10 +14993,10 @@ var UpdateSubscriptionPrice = class extends AbstractApiRequest24 {
|
|
|
14669
14993
|
};
|
|
14670
14994
|
|
|
14671
14995
|
// src/requests/subscription-time-based/CreateSubscriptionTimeBased.ts
|
|
14672
|
-
import { AbstractApiRequest as
|
|
14996
|
+
import { AbstractApiRequest as AbstractApiRequest34 } from "@deliverart/sdk-js-core";
|
|
14673
14997
|
var createSubscriptionTimeBasedInputSchema = writableSubscriptionTimeBasedSchema;
|
|
14674
14998
|
var createSubscriptionTimeBasedResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
14675
|
-
var CreateSubscriptionTimeBased = class extends
|
|
14999
|
+
var CreateSubscriptionTimeBased = class extends AbstractApiRequest34 {
|
|
14676
15000
|
constructor(input) {
|
|
14677
15001
|
super(input);
|
|
14678
15002
|
this.method = "POST";
|
|
@@ -14689,11 +15013,11 @@ var CreateSubscriptionTimeBased = class extends AbstractApiRequest25 {
|
|
|
14689
15013
|
};
|
|
14690
15014
|
|
|
14691
15015
|
// src/requests/subscription-time-based/DeleteSubscriptionTimeBased.ts
|
|
14692
|
-
import { AbstractApiRequest as
|
|
15016
|
+
import { AbstractApiRequest as AbstractApiRequest35 } from "@deliverart/sdk-js-core";
|
|
14693
15017
|
import { emptyResponseSchema as emptyResponseSchema6 } from "@deliverart/sdk-js-global-types";
|
|
14694
15018
|
var deleteSubscriptionTimeBasedInputSchema = external_exports.undefined();
|
|
14695
15019
|
var deleteSubscriptionTimeBasedResponseSchema = emptyResponseSchema6;
|
|
14696
|
-
var DeleteSubscriptionTimeBased = class extends
|
|
15020
|
+
var DeleteSubscriptionTimeBased = class extends AbstractApiRequest35 {
|
|
14697
15021
|
constructor(subscriptionId) {
|
|
14698
15022
|
super(void 0);
|
|
14699
15023
|
this.method = "DELETE";
|
|
@@ -14711,10 +15035,10 @@ var DeleteSubscriptionTimeBased = class extends AbstractApiRequest26 {
|
|
|
14711
15035
|
};
|
|
14712
15036
|
|
|
14713
15037
|
// src/requests/subscription-time-based/GetSubscriptionTimeBasedDetails.ts
|
|
14714
|
-
import { AbstractApiRequest as
|
|
15038
|
+
import { AbstractApiRequest as AbstractApiRequest36 } from "@deliverart/sdk-js-core";
|
|
14715
15039
|
var getSubscriptionTimeBasedDetailsInputSchema = external_exports.undefined();
|
|
14716
15040
|
var getSubscriptionTimeBasedDetailsResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
14717
|
-
var GetSubscriptionTimeBasedDetails = class extends
|
|
15041
|
+
var GetSubscriptionTimeBasedDetails = class extends AbstractApiRequest36 {
|
|
14718
15042
|
constructor(subscriptionId) {
|
|
14719
15043
|
super(void 0);
|
|
14720
15044
|
this.method = "GET";
|
|
@@ -14732,9 +15056,9 @@ var GetSubscriptionTimeBasedDetails = class extends AbstractApiRequest27 {
|
|
|
14732
15056
|
};
|
|
14733
15057
|
|
|
14734
15058
|
// src/requests/subscription-time-based/GetSubscriptionTimeBasedList.ts
|
|
14735
|
-
import { AbstractApiRequest as
|
|
15059
|
+
import { AbstractApiRequest as AbstractApiRequest37 } from "@deliverart/sdk-js-core";
|
|
14736
15060
|
var getSubscriptionTimeBasedListInputSchema = external_exports.undefined();
|
|
14737
|
-
var GetSubscriptionTimeBasedList = class extends
|
|
15061
|
+
var GetSubscriptionTimeBasedList = class extends AbstractApiRequest37 {
|
|
14738
15062
|
constructor(options) {
|
|
14739
15063
|
super(void 0, options);
|
|
14740
15064
|
this.method = "GET";
|
|
@@ -14753,12 +15077,12 @@ var GetSubscriptionTimeBasedList = class extends AbstractApiRequest28 {
|
|
|
14753
15077
|
};
|
|
14754
15078
|
|
|
14755
15079
|
// src/requests/subscription-time-based/UpdateSubscriptionTimeBased.ts
|
|
14756
|
-
import { AbstractApiRequest as
|
|
15080
|
+
import { AbstractApiRequest as AbstractApiRequest38 } from "@deliverart/sdk-js-core";
|
|
14757
15081
|
var updateSubscriptionTimeBasedInputSchema = writableSubscriptionTimeBasedSchema.omit({
|
|
14758
15082
|
pointOfSale: true
|
|
14759
15083
|
}).partial();
|
|
14760
15084
|
var updateSubscriptionTimeBasedResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
14761
|
-
var UpdateSubscriptionTimeBased = class extends
|
|
15085
|
+
var UpdateSubscriptionTimeBased = class extends AbstractApiRequest38 {
|
|
14762
15086
|
constructor(subscriptionId, input) {
|
|
14763
15087
|
super(input);
|
|
14764
15088
|
this.method = "PATCH";
|
|
@@ -14776,10 +15100,10 @@ var UpdateSubscriptionTimeBased = class extends AbstractApiRequest29 {
|
|
|
14776
15100
|
};
|
|
14777
15101
|
|
|
14778
15102
|
// src/requests/subscription-time-based-renewals/CreateSubscriptionTimeBasedRenewal.ts
|
|
14779
|
-
import { AbstractApiRequest as
|
|
15103
|
+
import { AbstractApiRequest as AbstractApiRequest39 } from "@deliverart/sdk-js-core";
|
|
14780
15104
|
var createSubscriptionTimeBasedRenewalInputSchema = writableSubscriptionTimeBasedRenewalSchema.required();
|
|
14781
15105
|
var createSubscriptionTimeBasedRenewalResponseSchema = subscriptionTimeBasedRenewalDetailsSchema;
|
|
14782
|
-
var CreateSubscriptionTimeBasedRenewal = class extends
|
|
15106
|
+
var CreateSubscriptionTimeBasedRenewal = class extends AbstractApiRequest39 {
|
|
14783
15107
|
constructor(input) {
|
|
14784
15108
|
super(input);
|
|
14785
15109
|
this.method = "POST";
|
|
@@ -14796,11 +15120,11 @@ var CreateSubscriptionTimeBasedRenewal = class extends AbstractApiRequest30 {
|
|
|
14796
15120
|
};
|
|
14797
15121
|
|
|
14798
15122
|
// src/requests/subscription-time-based-renewals/DeleteSubscriptionTimeBasedRenewal.ts
|
|
14799
|
-
import { AbstractApiRequest as
|
|
15123
|
+
import { AbstractApiRequest as AbstractApiRequest40 } from "@deliverart/sdk-js-core";
|
|
14800
15124
|
import { emptyResponseSchema as emptyResponseSchema7 } from "@deliverart/sdk-js-global-types";
|
|
14801
15125
|
var deleteSubscriptionTimeBasedRenewalInputSchema = external_exports.undefined();
|
|
14802
15126
|
var deleteSubscriptionTimeBasedRenewalResponseSchema = emptyResponseSchema7;
|
|
14803
|
-
var DeleteSubscriptionTimeBasedRenewal = class extends
|
|
15127
|
+
var DeleteSubscriptionTimeBasedRenewal = class extends AbstractApiRequest40 {
|
|
14804
15128
|
constructor(renewalId) {
|
|
14805
15129
|
super(void 0);
|
|
14806
15130
|
this.method = "DELETE";
|
|
@@ -14818,10 +15142,10 @@ var DeleteSubscriptionTimeBasedRenewal = class extends AbstractApiRequest31 {
|
|
|
14818
15142
|
};
|
|
14819
15143
|
|
|
14820
15144
|
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewalDetails.ts
|
|
14821
|
-
import { AbstractApiRequest as
|
|
15145
|
+
import { AbstractApiRequest as AbstractApiRequest41 } from "@deliverart/sdk-js-core";
|
|
14822
15146
|
var getSubscriptionTimeBasedRenewalDetailsInputSchema = external_exports.undefined();
|
|
14823
15147
|
var getSubscriptionTimeBasedRenewalDetailsResponseSchema = subscriptionTimeBasedRenewalDetailsSchema;
|
|
14824
|
-
var GetSubscriptionTimeBasedRenewalDetails = class extends
|
|
15148
|
+
var GetSubscriptionTimeBasedRenewalDetails = class extends AbstractApiRequest41 {
|
|
14825
15149
|
constructor(renewalId) {
|
|
14826
15150
|
super(void 0);
|
|
14827
15151
|
this.method = "GET";
|
|
@@ -14839,9 +15163,9 @@ var GetSubscriptionTimeBasedRenewalDetails = class extends AbstractApiRequest32
|
|
|
14839
15163
|
};
|
|
14840
15164
|
|
|
14841
15165
|
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewals.ts
|
|
14842
|
-
import { AbstractApiRequest as
|
|
15166
|
+
import { AbstractApiRequest as AbstractApiRequest42 } from "@deliverart/sdk-js-core";
|
|
14843
15167
|
var getSubscriptionTimeBasedRenewalsInputSchema = external_exports.undefined();
|
|
14844
|
-
var GetSubscriptionTimeBasedRenewals = class extends
|
|
15168
|
+
var GetSubscriptionTimeBasedRenewals = class extends AbstractApiRequest42 {
|
|
14845
15169
|
constructor(options) {
|
|
14846
15170
|
super(void 0, options);
|
|
14847
15171
|
this.method = "GET";
|
|
@@ -14860,9 +15184,9 @@ var GetSubscriptionTimeBasedRenewals = class extends AbstractApiRequest33 {
|
|
|
14860
15184
|
};
|
|
14861
15185
|
|
|
14862
15186
|
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased.ts
|
|
14863
|
-
import { AbstractApiRequest as
|
|
15187
|
+
import { AbstractApiRequest as AbstractApiRequest43 } from "@deliverart/sdk-js-core";
|
|
14864
15188
|
var getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema = external_exports.undefined();
|
|
14865
|
-
var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends
|
|
15189
|
+
var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends AbstractApiRequest43 {
|
|
14866
15190
|
constructor(subscriptionId, options) {
|
|
14867
15191
|
super(void 0, options);
|
|
14868
15192
|
this.method = "GET";
|
|
@@ -14881,12 +15205,54 @@ var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends Ab
|
|
|
14881
15205
|
}
|
|
14882
15206
|
};
|
|
14883
15207
|
|
|
15208
|
+
// src/requests/subscription-time-based-renewals/PaySubscriptionTimeBasedRenewal.ts
|
|
15209
|
+
import { AbstractApiRequest as AbstractApiRequest44 } from "@deliverart/sdk-js-core";
|
|
15210
|
+
var paySubscriptionTimeBasedRenewalInputSchema = paySubscriptionRenewalInputSchema;
|
|
15211
|
+
var paySubscriptionTimeBasedRenewalResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
15212
|
+
var PaySubscriptionTimeBasedRenewal = class extends AbstractApiRequest44 {
|
|
15213
|
+
constructor(renewalId, method) {
|
|
15214
|
+
super({ method });
|
|
15215
|
+
this.method = "POST";
|
|
15216
|
+
this.contentType = "application/json";
|
|
15217
|
+
this.accept = "application/json";
|
|
15218
|
+
this.inputSchema = paySubscriptionTimeBasedRenewalInputSchema;
|
|
15219
|
+
this.outputSchema = paySubscriptionTimeBasedRenewalResponseSchema;
|
|
15220
|
+
this.querySchema = void 0;
|
|
15221
|
+
this.headersSchema = void 0;
|
|
15222
|
+
this.renewalId = renewalId;
|
|
15223
|
+
}
|
|
15224
|
+
getPath() {
|
|
15225
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/pay`;
|
|
15226
|
+
}
|
|
15227
|
+
};
|
|
15228
|
+
|
|
15229
|
+
// src/requests/subscription-time-based-renewals/ResolveSubscriptionTimeBasedRenewalPayment.ts
|
|
15230
|
+
import { AbstractApiRequest as AbstractApiRequest45 } from "@deliverart/sdk-js-core";
|
|
15231
|
+
var resolveSubscriptionTimeBasedRenewalPaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
15232
|
+
var resolveSubscriptionTimeBasedRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
15233
|
+
var ResolveSubscriptionTimeBasedRenewalPayment = class extends AbstractApiRequest45 {
|
|
15234
|
+
constructor(renewalId, input) {
|
|
15235
|
+
super(input);
|
|
15236
|
+
this.method = "POST";
|
|
15237
|
+
this.contentType = "application/json";
|
|
15238
|
+
this.accept = "application/json";
|
|
15239
|
+
this.inputSchema = resolveSubscriptionTimeBasedRenewalPaymentInputSchema;
|
|
15240
|
+
this.outputSchema = resolveSubscriptionTimeBasedRenewalPaymentResponseSchema;
|
|
15241
|
+
this.querySchema = void 0;
|
|
15242
|
+
this.headersSchema = void 0;
|
|
15243
|
+
this.renewalId = renewalId;
|
|
15244
|
+
}
|
|
15245
|
+
getPath() {
|
|
15246
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/resolve_payment`;
|
|
15247
|
+
}
|
|
15248
|
+
};
|
|
15249
|
+
|
|
14884
15250
|
// src/requests/subscriptions/DeleteSubscription.ts
|
|
14885
|
-
import { AbstractApiRequest as
|
|
15251
|
+
import { AbstractApiRequest as AbstractApiRequest46 } from "@deliverart/sdk-js-core";
|
|
14886
15252
|
import { emptyResponseSchema as emptyResponseSchema8 } from "@deliverart/sdk-js-global-types";
|
|
14887
15253
|
var deleteSubscriptionInputSchema = external_exports.undefined();
|
|
14888
15254
|
var deleteSubscriptionResponseSchema = emptyResponseSchema8;
|
|
14889
|
-
var DeleteSubscription = class extends
|
|
15255
|
+
var DeleteSubscription = class extends AbstractApiRequest46 {
|
|
14890
15256
|
constructor(subscriptionId) {
|
|
14891
15257
|
super(void 0);
|
|
14892
15258
|
this.method = "DELETE";
|
|
@@ -14904,10 +15270,10 @@ var DeleteSubscription = class extends AbstractApiRequest35 {
|
|
|
14904
15270
|
};
|
|
14905
15271
|
|
|
14906
15272
|
// src/requests/subscriptions/GetSubscriptionDetails.ts
|
|
14907
|
-
import { AbstractApiRequest as
|
|
15273
|
+
import { AbstractApiRequest as AbstractApiRequest47 } from "@deliverart/sdk-js-core";
|
|
14908
15274
|
var getSubscriptionDetailsInputSchema = external_exports.undefined();
|
|
14909
15275
|
var getSubscriptionDetailsResponseSchema = subscriptionDetailsSchema;
|
|
14910
|
-
var GetSubscriptionDetails = class extends
|
|
15276
|
+
var GetSubscriptionDetails = class extends AbstractApiRequest47 {
|
|
14911
15277
|
constructor(subscriptionId) {
|
|
14912
15278
|
super(void 0);
|
|
14913
15279
|
this.method = "GET";
|
|
@@ -14925,10 +15291,10 @@ var GetSubscriptionDetails = class extends AbstractApiRequest36 {
|
|
|
14925
15291
|
};
|
|
14926
15292
|
|
|
14927
15293
|
// src/requests/subscriptions/GetSubscriptionOverviewFromPointOfSale.ts
|
|
14928
|
-
import { AbstractApiRequest as
|
|
15294
|
+
import { AbstractApiRequest as AbstractApiRequest48 } from "@deliverart/sdk-js-core";
|
|
14929
15295
|
var getSubscriptionOverviewFromPointOfSaleInputSchema = external_exports.undefined();
|
|
14930
15296
|
var getSubscriptionOverviewFromPointOfSaleResponseSchema = subscriptionOverviewResponseSchema;
|
|
14931
|
-
var GetSubscriptionOverviewFromPointOfSale = class extends
|
|
15297
|
+
var GetSubscriptionOverviewFromPointOfSale = class extends AbstractApiRequest48 {
|
|
14932
15298
|
constructor(pointOfSaleId) {
|
|
14933
15299
|
super(void 0);
|
|
14934
15300
|
this.method = "GET";
|
|
@@ -14946,9 +15312,9 @@ var GetSubscriptionOverviewFromPointOfSale = class extends AbstractApiRequest37
|
|
|
14946
15312
|
};
|
|
14947
15313
|
|
|
14948
15314
|
// src/requests/subscriptions/GetSubscriptions.ts
|
|
14949
|
-
import { AbstractApiRequest as
|
|
15315
|
+
import { AbstractApiRequest as AbstractApiRequest49 } from "@deliverart/sdk-js-core";
|
|
14950
15316
|
var getSubscriptionsInputSchema = external_exports.undefined();
|
|
14951
|
-
var GetSubscriptions = class extends
|
|
15317
|
+
var GetSubscriptions = class extends AbstractApiRequest49 {
|
|
14952
15318
|
constructor(options) {
|
|
14953
15319
|
super(void 0, options);
|
|
14954
15320
|
this.method = "GET";
|
|
@@ -14967,10 +15333,10 @@ var GetSubscriptions = class extends AbstractApiRequest38 {
|
|
|
14967
15333
|
};
|
|
14968
15334
|
|
|
14969
15335
|
// src/requests/subscriptions/GetSubscriptionsFromPointOfSale.ts
|
|
14970
|
-
import { AbstractApiRequest as
|
|
15336
|
+
import { AbstractApiRequest as AbstractApiRequest50 } from "@deliverart/sdk-js-core";
|
|
14971
15337
|
var getSubscriptionsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
14972
15338
|
var getSubscriptionsFromPointOfSaleResponseSchema = external_exports.array(subscriptionSchema);
|
|
14973
|
-
var GetSubscriptionsFromPointOfSale = class extends
|
|
15339
|
+
var GetSubscriptionsFromPointOfSale = class extends AbstractApiRequest50 {
|
|
14974
15340
|
constructor(pointOfSaleId, options) {
|
|
14975
15341
|
super(void 0, options);
|
|
14976
15342
|
this.method = "GET";
|
|
@@ -14990,12 +15356,12 @@ var GetSubscriptionsFromPointOfSale = class extends AbstractApiRequest39 {
|
|
|
14990
15356
|
};
|
|
14991
15357
|
|
|
14992
15358
|
// src/requests/subscriptions/UpdateSubscription.ts
|
|
14993
|
-
import { AbstractApiRequest as
|
|
15359
|
+
import { AbstractApiRequest as AbstractApiRequest51 } from "@deliverart/sdk-js-core";
|
|
14994
15360
|
var updateSubscriptionInputSchema = writableSubscriptionCommonSchema.omit({
|
|
14995
15361
|
pointOfSale: true
|
|
14996
15362
|
}).partial();
|
|
14997
15363
|
var updateSubscriptionResponseSchema = subscriptionDetailsSchema;
|
|
14998
|
-
var UpdateSubscription = class extends
|
|
15364
|
+
var UpdateSubscription = class extends AbstractApiRequest51 {
|
|
14999
15365
|
constructor(subscriptionId, input) {
|
|
15000
15366
|
super(input);
|
|
15001
15367
|
this.method = "PATCH";
|
|
@@ -15016,6 +15382,7 @@ export {
|
|
|
15016
15382
|
CreateSubscriptionConsumption,
|
|
15017
15383
|
CreateSubscriptionConsumptionRenewal,
|
|
15018
15384
|
CreateSubscriptionInfinite,
|
|
15385
|
+
CreateSubscriptionPlan,
|
|
15019
15386
|
CreateSubscriptionPrice,
|
|
15020
15387
|
CreateSubscriptionTimeBased,
|
|
15021
15388
|
CreateSubscriptionTimeBasedRenewal,
|
|
@@ -15024,6 +15391,7 @@ export {
|
|
|
15024
15391
|
DeleteSubscriptionConsumption,
|
|
15025
15392
|
DeleteSubscriptionConsumptionRenewal,
|
|
15026
15393
|
DeleteSubscriptionInfinite,
|
|
15394
|
+
DeleteSubscriptionPlan,
|
|
15027
15395
|
DeleteSubscriptionPrice,
|
|
15028
15396
|
DeleteSubscriptionTimeBased,
|
|
15029
15397
|
DeleteSubscriptionTimeBasedRenewal,
|
|
@@ -15039,6 +15407,10 @@ export {
|
|
|
15039
15407
|
GetSubscriptionInfiniteDetails,
|
|
15040
15408
|
GetSubscriptionInfiniteList,
|
|
15041
15409
|
GetSubscriptionOverviewFromPointOfSale,
|
|
15410
|
+
GetSubscriptionPlanCatalog,
|
|
15411
|
+
GetSubscriptionPlanCatalogDetails,
|
|
15412
|
+
GetSubscriptionPlanDetails,
|
|
15413
|
+
GetSubscriptionPlans,
|
|
15042
15414
|
GetSubscriptionPriceDetails,
|
|
15043
15415
|
GetSubscriptionPrices,
|
|
15044
15416
|
GetSubscriptionTimeBasedDetails,
|
|
@@ -15048,8 +15420,13 @@ export {
|
|
|
15048
15420
|
GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased,
|
|
15049
15421
|
GetSubscriptions,
|
|
15050
15422
|
GetSubscriptionsFromPointOfSale,
|
|
15423
|
+
PaySubscriptionConsumptionRenewal,
|
|
15424
|
+
PaySubscriptionTimeBasedRenewal,
|
|
15425
|
+
ResolveSubscriptionConsumptionRenewalPayment,
|
|
15426
|
+
ResolveSubscriptionTimeBasedRenewalPayment,
|
|
15051
15427
|
UpdateSubscription,
|
|
15052
15428
|
UpdateSubscriptionConsumption,
|
|
15429
|
+
UpdateSubscriptionPlan,
|
|
15053
15430
|
UpdateSubscriptionPrice,
|
|
15054
15431
|
UpdateSubscriptionTimeBased,
|
|
15055
15432
|
adjustSubscriptionConsumptionCreditsInputSchema,
|
|
@@ -15062,6 +15439,8 @@ export {
|
|
|
15062
15439
|
createSubscriptionConsumptionResponseSchema,
|
|
15063
15440
|
createSubscriptionInfiniteInputSchema,
|
|
15064
15441
|
createSubscriptionInfiniteResponseSchema,
|
|
15442
|
+
createSubscriptionPlanInputSchema,
|
|
15443
|
+
createSubscriptionPlanResponseSchema,
|
|
15065
15444
|
createSubscriptionPriceInputSchema,
|
|
15066
15445
|
createSubscriptionPriceResponseSchema,
|
|
15067
15446
|
createSubscriptionTimeBasedInputSchema,
|
|
@@ -15084,6 +15463,8 @@ export {
|
|
|
15084
15463
|
deleteSubscriptionInfiniteInputSchema,
|
|
15085
15464
|
deleteSubscriptionInfiniteResponseSchema,
|
|
15086
15465
|
deleteSubscriptionInputSchema,
|
|
15466
|
+
deleteSubscriptionPlanInputSchema,
|
|
15467
|
+
deleteSubscriptionPlanResponseSchema,
|
|
15087
15468
|
deleteSubscriptionPriceInputSchema,
|
|
15088
15469
|
deleteSubscriptionPriceResponseSchema,
|
|
15089
15470
|
deleteSubscriptionResponseSchema,
|
|
@@ -15114,6 +15495,14 @@ export {
|
|
|
15114
15495
|
getSubscriptionInfiniteListResponseSchema,
|
|
15115
15496
|
getSubscriptionOverviewFromPointOfSaleInputSchema,
|
|
15116
15497
|
getSubscriptionOverviewFromPointOfSaleResponseSchema,
|
|
15498
|
+
getSubscriptionPlanCatalogDetailsInputSchema,
|
|
15499
|
+
getSubscriptionPlanCatalogDetailsResponseSchema,
|
|
15500
|
+
getSubscriptionPlanCatalogInputSchema,
|
|
15501
|
+
getSubscriptionPlanCatalogResponseSchema,
|
|
15502
|
+
getSubscriptionPlanDetailsInputSchema,
|
|
15503
|
+
getSubscriptionPlanDetailsResponseSchema,
|
|
15504
|
+
getSubscriptionPlansInputSchema,
|
|
15505
|
+
getSubscriptionPlansResponseSchema,
|
|
15117
15506
|
getSubscriptionPriceDetailsInputSchema,
|
|
15118
15507
|
getSubscriptionPriceDetailsResponseSchema,
|
|
15119
15508
|
getSubscriptionPricesInputSchema,
|
|
@@ -15131,8 +15520,26 @@ export {
|
|
|
15131
15520
|
getSubscriptionsFromPointOfSaleResponseSchema,
|
|
15132
15521
|
getSubscriptionsInputSchema,
|
|
15133
15522
|
getSubscriptionsResponseSchema,
|
|
15523
|
+
paySubscriptionConsumptionRenewalInputSchema,
|
|
15524
|
+
paySubscriptionConsumptionRenewalResponseSchema,
|
|
15525
|
+
paySubscriptionRenewalInputSchema,
|
|
15526
|
+
paySubscriptionTimeBasedRenewalInputSchema,
|
|
15527
|
+
paySubscriptionTimeBasedRenewalResponseSchema,
|
|
15528
|
+
paymentIriSchema,
|
|
15529
|
+
paymentMethodSchema,
|
|
15530
|
+
paymentMethods,
|
|
15531
|
+
paymentNullableIriSchema,
|
|
15532
|
+
paymentStatusSchema,
|
|
15533
|
+
paymentStatuses,
|
|
15134
15534
|
renewalStatusSchema,
|
|
15135
15535
|
renewalStatuses,
|
|
15536
|
+
resolvableRenewalPaymentStatusSchema,
|
|
15537
|
+
resolvableRenewalPaymentStatuses,
|
|
15538
|
+
resolveSubscriptionConsumptionRenewalPaymentInputSchema,
|
|
15539
|
+
resolveSubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
15540
|
+
resolveSubscriptionRenewalPaymentInputSchema,
|
|
15541
|
+
resolveSubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
15542
|
+
resolveSubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
15136
15543
|
subscriptionAvailabilityReasonSchema,
|
|
15137
15544
|
subscriptionAvailabilityReasons,
|
|
15138
15545
|
subscriptionConsumptionDetailsSchema,
|
|
@@ -15153,13 +15560,21 @@ export {
|
|
|
15153
15560
|
subscriptionIriSchema,
|
|
15154
15561
|
subscriptionNullableIriSchema,
|
|
15155
15562
|
subscriptionOperationQuoteSchema,
|
|
15563
|
+
subscriptionOverviewPlanSchema,
|
|
15156
15564
|
subscriptionOverviewResponseSchema,
|
|
15157
15565
|
subscriptionOverviewSubscriptionSchema,
|
|
15566
|
+
subscriptionPlanIriSchema,
|
|
15567
|
+
subscriptionPlanNullableIriSchema,
|
|
15568
|
+
subscriptionPlanPriceOptionSchema,
|
|
15569
|
+
subscriptionPlanSchema,
|
|
15570
|
+
subscriptionPlanSummarySchema,
|
|
15571
|
+
subscriptionPlansQuerySchema,
|
|
15158
15572
|
subscriptionPriceIriSchema,
|
|
15159
15573
|
subscriptionPriceNullableIriSchema,
|
|
15160
15574
|
subscriptionPriceSchema,
|
|
15161
15575
|
subscriptionPricesQuerySchema,
|
|
15162
15576
|
subscriptionQuerySchema,
|
|
15577
|
+
subscriptionRenewalPaymentInfoSchema,
|
|
15163
15578
|
subscriptionSchema,
|
|
15164
15579
|
subscriptionStatusSchema,
|
|
15165
15580
|
subscriptionStatuses,
|
|
@@ -15178,6 +15593,8 @@ export {
|
|
|
15178
15593
|
updateSubscriptionConsumptionInputSchema,
|
|
15179
15594
|
updateSubscriptionConsumptionResponseSchema,
|
|
15180
15595
|
updateSubscriptionInputSchema,
|
|
15596
|
+
updateSubscriptionPlanInputSchema,
|
|
15597
|
+
updateSubscriptionPlanResponseSchema,
|
|
15181
15598
|
updateSubscriptionPriceInputSchema,
|
|
15182
15599
|
updateSubscriptionPriceResponseSchema,
|
|
15183
15600
|
updateSubscriptionResponseSchema,
|
|
@@ -15187,6 +15604,7 @@ export {
|
|
|
15187
15604
|
writableSubscriptionConsumptionRenewalSchema,
|
|
15188
15605
|
writableSubscriptionConsumptionSchema,
|
|
15189
15606
|
writableSubscriptionInfiniteSchema,
|
|
15607
|
+
writableSubscriptionPlanSchema,
|
|
15190
15608
|
writableSubscriptionPriceSchema,
|
|
15191
15609
|
writableSubscriptionTimeBasedRenewalSchema,
|
|
15192
15610
|
writableSubscriptionTimeBasedSchema
|