@blocklet/payment-types 1.14.20 → 1.14.22
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/lib/subscription.d.ts +3 -0
- package/lib/types.d.ts +1 -0
- package/package.json +2 -2
package/lib/subscription.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
|
|
|
62
62
|
proration_behavior?: LiteralUnion<'always_invoice' | 'create_prorations' | 'none', string>;
|
|
63
63
|
payment_behavior?: LiteralUnion<'allow_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete', string>;
|
|
64
64
|
service_actions?: ServiceAction[];
|
|
65
|
+
recovered_from?: string;
|
|
65
66
|
created_at: CreationOptional<Date>;
|
|
66
67
|
updated_at: CreationOptional<Date>;
|
|
67
68
|
static readonly GENESIS_ATTRIBUTES: {
|
|
@@ -205,6 +206,8 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
|
|
|
205
206
|
isScheduledToCancel(): boolean;
|
|
206
207
|
start(): Promise<boolean>;
|
|
207
208
|
static getSummary(livemode?: boolean, field?: string): Promise<Subscription[]>;
|
|
209
|
+
static getToSubscriptions(subscriptionId: string): Promise<string[]>;
|
|
210
|
+
static getFromSubscriptions(subscriptionId: string): Promise<string[]>;
|
|
208
211
|
}
|
|
209
212
|
export type TSubscription = InferAttributes<Subscription>;
|
|
210
213
|
export declare function getSubscriptionEventType(current: TSubscription, previous: Partial<TSubscription>): "" | "paused" | "resumed";
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-types",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.22",
|
|
4
4
|
"description": "Typings for Payment Kit SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sequelize": "^6.37.3",
|
|
49
49
|
"type-fest": "^4.23.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1fabd8f359e12e8ac68b20bd2d0d04b7928d16f3"
|
|
52
52
|
}
|