@deliverart/sdk-js-subscription 2.13.7 → 2.14.0
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 +10 -4
- package/dist/index.cjs +9 -13
- package/dist/index.d.cts +14 -849
- package/dist/index.d.ts +14 -849
- package/dist/index.js +7 -14
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
createPaginatedSchema,
|
|
11
11
|
creditTransactionTypeSchema as creditTransactionTypeSchema2,
|
|
12
12
|
datetimeSchema,
|
|
13
|
-
paymentMethodSchema as paymentMethodSchema2,
|
|
14
13
|
paymentStatusSchema as paymentStatusSchema2,
|
|
15
14
|
renewalStatusSchema as renewalStatusSchema2,
|
|
16
15
|
sortDirSchema,
|
|
@@ -13793,8 +13792,6 @@ import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
|
13793
13792
|
import {
|
|
13794
13793
|
creditTransactionTypes,
|
|
13795
13794
|
creditTransactionTypeSchema,
|
|
13796
|
-
paymentMethods,
|
|
13797
|
-
paymentMethodSchema,
|
|
13798
13795
|
paymentStatuses,
|
|
13799
13796
|
paymentStatusSchema,
|
|
13800
13797
|
renewalStatuses,
|
|
@@ -13804,6 +13801,8 @@ import {
|
|
|
13804
13801
|
subscriptionTypes,
|
|
13805
13802
|
subscriptionTypeSchema
|
|
13806
13803
|
} from "@deliverart/sdk-js-global-types";
|
|
13804
|
+
var subscriptionPaymentMethods = ["stripe", "bank_transfer"];
|
|
13805
|
+
var subscriptionPaymentMethodSchema = external_exports.enum(subscriptionPaymentMethods);
|
|
13807
13806
|
var adjustableCreditTransactionTypes = [
|
|
13808
13807
|
"gift",
|
|
13809
13808
|
"bonus",
|
|
@@ -14006,7 +14005,7 @@ var subscriptionPurchaseSchema = external_exports.object({
|
|
|
14006
14005
|
startsAt: subscriptionDateSchema,
|
|
14007
14006
|
threshold: external_exports.coerce.number().int().nonnegative(),
|
|
14008
14007
|
amount: external_exports.string(),
|
|
14009
|
-
paymentMethod:
|
|
14008
|
+
paymentMethod: subscriptionPaymentMethodSchema.nullable(),
|
|
14010
14009
|
paymentStatus: paymentStatusSchema2.nullable(),
|
|
14011
14010
|
createdAt: datetimeSchema,
|
|
14012
14011
|
updatedAt: datetimeSchema
|
|
@@ -14055,11 +14054,11 @@ var adjustSubscriptionConsumptionCreditsInputSchema = external_exports.object({
|
|
|
14055
14054
|
}
|
|
14056
14055
|
});
|
|
14057
14056
|
var paySubscriptionRenewalInputSchema = external_exports.object({
|
|
14058
|
-
method:
|
|
14057
|
+
method: subscriptionPaymentMethodSchema
|
|
14059
14058
|
});
|
|
14060
14059
|
var paymentInfoBaseSchema = external_exports.object({
|
|
14061
14060
|
id: external_exports.string(),
|
|
14062
|
-
method:
|
|
14061
|
+
method: subscriptionPaymentMethodSchema,
|
|
14063
14062
|
status: paymentStatusSchema2,
|
|
14064
14063
|
amount: external_exports.string()
|
|
14065
14064
|
});
|
|
@@ -14078,12 +14077,6 @@ var subscriptionRenewalPaymentInfoSchema = external_exports.discriminatedUnion("
|
|
|
14078
14077
|
bankAddress: external_exports.string().nullable(),
|
|
14079
14078
|
currency: external_exports.string(),
|
|
14080
14079
|
description: external_exports.string()
|
|
14081
|
-
}),
|
|
14082
|
-
paymentInfoBaseSchema.extend({
|
|
14083
|
-
method: external_exports.literal("cash")
|
|
14084
|
-
}),
|
|
14085
|
-
paymentInfoBaseSchema.extend({
|
|
14086
|
-
method: external_exports.literal("credit_card")
|
|
14087
14080
|
})
|
|
14088
14081
|
]);
|
|
14089
14082
|
var resolveSubscriptionRenewalPaymentInputSchema = external_exports.object({
|
|
@@ -16022,8 +16015,6 @@ export {
|
|
|
16022
16015
|
paySubscriptionTimeBasedRenewalInputSchema,
|
|
16023
16016
|
paySubscriptionTimeBasedRenewalResponseSchema,
|
|
16024
16017
|
paymentIriSchema,
|
|
16025
|
-
paymentMethodSchema,
|
|
16026
|
-
paymentMethods,
|
|
16027
16018
|
paymentNullableIriSchema,
|
|
16028
16019
|
paymentStatusSchema,
|
|
16029
16020
|
paymentStatuses,
|
|
@@ -16073,6 +16064,8 @@ export {
|
|
|
16073
16064
|
subscriptionOverviewPlanSchema,
|
|
16074
16065
|
subscriptionOverviewResponseSchema,
|
|
16075
16066
|
subscriptionOverviewSubscriptionSchema,
|
|
16067
|
+
subscriptionPaymentMethodSchema,
|
|
16068
|
+
subscriptionPaymentMethods,
|
|
16076
16069
|
subscriptionPlanIriSchema,
|
|
16077
16070
|
subscriptionPlanNullableIriSchema,
|
|
16078
16071
|
subscriptionPlanPriceOptionSchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-subscription",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Subscription Management",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.14.0",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.14.0",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.14.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|