@flashbacktech/flashbackclient 0.2.4 → 0.2.6
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.
|
@@ -1,21 +1,32 @@
|
|
|
1
|
+
import { PeriodType } from "./quota";
|
|
1
2
|
export interface SubscriptionPeriodResponse {
|
|
2
3
|
id: string;
|
|
3
4
|
subscriptionId: string;
|
|
4
5
|
periodType: string;
|
|
5
6
|
price: number;
|
|
6
7
|
}
|
|
8
|
+
export interface SubscriptionCapability {
|
|
9
|
+
id: string;
|
|
10
|
+
code: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: string;
|
|
13
|
+
price: number;
|
|
14
|
+
periodType: PeriodType;
|
|
15
|
+
value: number;
|
|
16
|
+
}
|
|
7
17
|
export interface SubscriptionResponse {
|
|
8
18
|
id: string;
|
|
9
19
|
name: string;
|
|
10
20
|
description: string;
|
|
11
21
|
periods: SubscriptionPeriodResponse[];
|
|
22
|
+
capabilities: SubscriptionCapability[];
|
|
12
23
|
}
|
|
13
24
|
export interface BuySubscriptionRequest {
|
|
14
25
|
subscriptionPeriodId: string;
|
|
15
26
|
}
|
|
16
27
|
export interface BuySubscriptionResponse {
|
|
17
28
|
success: boolean;
|
|
18
|
-
|
|
29
|
+
checkoutUrl?: string;
|
|
19
30
|
sessionId?: string;
|
|
20
31
|
message?: string;
|
|
21
32
|
error_code?: string;
|