@blocklet/payment-types 1.13.168 → 1.13.169
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 +4 -16
- package/lib/types.d.ts +1 -1
- package/package.json +2 -2
package/lib/subscription.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
|
|
|
48
48
|
schedule_id?: string;
|
|
49
49
|
ended_at?: number;
|
|
50
50
|
start_date: number;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
trial_end?: number;
|
|
52
|
+
trial_start?: number;
|
|
53
|
+
trial_settings?: {
|
|
54
54
|
end_behavior: {
|
|
55
55
|
missing_payment_method: LiteralUnion<'cancel' | 'pause' | 'create_invoice', string>;
|
|
56
56
|
};
|
|
@@ -176,18 +176,6 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
|
|
|
176
176
|
type: DataTypes.IntegerDataTypeConstructor;
|
|
177
177
|
allowNull: boolean;
|
|
178
178
|
};
|
|
179
|
-
trail_end: {
|
|
180
|
-
type: DataTypes.IntegerDataTypeConstructor;
|
|
181
|
-
allowNull: boolean;
|
|
182
|
-
};
|
|
183
|
-
trail_start: {
|
|
184
|
-
type: DataTypes.IntegerDataTypeConstructor;
|
|
185
|
-
allowNull: boolean;
|
|
186
|
-
};
|
|
187
|
-
trail_settings: {
|
|
188
|
-
type: DataTypes.AbstractDataTypeConstructor;
|
|
189
|
-
allowNull: boolean;
|
|
190
|
-
};
|
|
191
179
|
payment_details: {
|
|
192
180
|
type: DataTypes.AbstractDataTypeConstructor;
|
|
193
181
|
allowNull: boolean;
|
|
@@ -212,7 +200,7 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
|
|
|
212
200
|
isImmutable(): boolean;
|
|
213
201
|
isActive(): boolean;
|
|
214
202
|
isScheduledToCancel(): boolean;
|
|
215
|
-
start(): Promise<
|
|
203
|
+
start(): Promise<boolean>;
|
|
216
204
|
}
|
|
217
205
|
export type TSubscription = InferAttributes<Subscription>;
|
|
218
206
|
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.13.
|
|
3
|
+
"version": "1.13.169",
|
|
4
4
|
"description": "Typings for Payment Kit SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sequelize": "^6.36.0",
|
|
49
49
|
"type-fest": "^4.10.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "77c7dea2d2c9dda8754c29fec007ffbc4ba0d442"
|
|
52
52
|
}
|