@metamask/subscription-controller 8.1.0 → 9.0.1
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/CHANGELOG.md +26 -1
- package/dist/{SubscriptionController-method-action-types.d.mts → SubscriptionController-method-action-types.d.ts} +2 -2
- package/dist/SubscriptionController-method-action-types.d.ts.map +1 -0
- package/dist/{SubscriptionController-method-action-types.mjs → SubscriptionController-method-action-types.js} +1 -1
- package/dist/SubscriptionController-method-action-types.js.map +1 -0
- package/dist/{SubscriptionController.d.mts → SubscriptionController.d.ts} +18 -18
- package/dist/SubscriptionController.d.ts.map +1 -0
- package/dist/{SubscriptionController.mjs → SubscriptionController.js} +371 -274
- package/dist/SubscriptionController.js.map +1 -0
- package/dist/{SubscriptionService-method-action-types.d.cts → SubscriptionService-method-action-types.d.ts} +2 -2
- package/dist/SubscriptionService-method-action-types.d.ts.map +1 -0
- package/dist/{SubscriptionService-method-action-types.mjs → SubscriptionService-method-action-types.js} +1 -1
- package/dist/SubscriptionService-method-action-types.js.map +1 -0
- package/dist/{SubscriptionService-structs.d.cts → SubscriptionService-structs.d.ts} +164 -164
- package/dist/SubscriptionService-structs.d.ts.map +1 -0
- package/dist/{SubscriptionService-structs.mjs → SubscriptionService-structs.js} +4 -4
- package/dist/SubscriptionService-structs.js.map +1 -0
- package/dist/{SubscriptionService.d.cts → SubscriptionService.d.ts} +10 -10
- package/dist/SubscriptionService.d.ts.map +1 -0
- package/dist/{SubscriptionService.mjs → SubscriptionService.js} +141 -143
- package/dist/SubscriptionService.js.map +1 -0
- package/dist/{constants.d.cts → constants.d.ts} +1 -1
- package/dist/constants.d.ts.map +1 -0
- package/dist/{constants.mjs → constants.js} +3 -3
- package/dist/constants.js.map +1 -0
- package/dist/{errors.d.cts → errors.d.ts} +2 -2
- package/dist/errors.d.ts.map +1 -0
- package/dist/{errors.mjs → errors.js} +5 -1
- package/dist/errors.js.map +1 -0
- package/dist/{index.d.cts → index.d.ts} +12 -12
- package/dist/index.d.ts.map +1 -0
- package/dist/{index.mjs → index.js} +7 -7
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +5 -0
- package/dist/logger.js.map +1 -0
- package/dist/{selectors.d.mts → selectors.d.ts} +3 -3
- package/dist/selectors.d.ts.map +1 -0
- package/dist/{selectors.mjs → selectors.js} +2 -2
- package/dist/selectors.js.map +1 -0
- package/dist/{types.d.mts → types.d.ts} +47 -47
- package/dist/types.d.ts.map +1 -0
- package/dist/{types.mjs → types.js} +1 -1
- package/dist/types.js.map +1 -0
- package/package.json +19 -23
- package/dist/SubscriptionController-method-action-types.cjs +0 -7
- package/dist/SubscriptionController-method-action-types.cjs.map +0 -1
- package/dist/SubscriptionController-method-action-types.d.cts +0 -261
- package/dist/SubscriptionController-method-action-types.d.cts.map +0 -1
- package/dist/SubscriptionController-method-action-types.d.mts.map +0 -1
- package/dist/SubscriptionController-method-action-types.mjs.map +0 -1
- package/dist/SubscriptionController.cjs +0 -844
- package/dist/SubscriptionController.cjs.map +0 -1
- package/dist/SubscriptionController.d.cts +0 -268
- package/dist/SubscriptionController.d.cts.map +0 -1
- package/dist/SubscriptionController.d.mts.map +0 -1
- package/dist/SubscriptionController.mjs.map +0 -1
- package/dist/SubscriptionService-method-action-types.cjs +0 -7
- package/dist/SubscriptionService-method-action-types.cjs.map +0 -1
- package/dist/SubscriptionService-method-action-types.d.cts.map +0 -1
- package/dist/SubscriptionService-method-action-types.d.mts +0 -164
- package/dist/SubscriptionService-method-action-types.d.mts.map +0 -1
- package/dist/SubscriptionService-method-action-types.mjs.map +0 -1
- package/dist/SubscriptionService-structs.cjs +0 -209
- package/dist/SubscriptionService-structs.cjs.map +0 -1
- package/dist/SubscriptionService-structs.d.cts.map +0 -1
- package/dist/SubscriptionService-structs.d.mts +0 -889
- package/dist/SubscriptionService-structs.d.mts.map +0 -1
- package/dist/SubscriptionService-structs.mjs.map +0 -1
- package/dist/SubscriptionService.cjs +0 -497
- package/dist/SubscriptionService.cjs.map +0 -1
- package/dist/SubscriptionService.d.cts.map +0 -1
- package/dist/SubscriptionService.d.mts +0 -155
- package/dist/SubscriptionService.d.mts.map +0 -1
- package/dist/SubscriptionService.mjs.map +0 -1
- package/dist/constants.cjs +0 -74
- package/dist/constants.cjs.map +0 -1
- package/dist/constants.d.cts.map +0 -1
- package/dist/constants.d.mts +0 -50
- package/dist/constants.d.mts.map +0 -1
- package/dist/constants.mjs.map +0 -1
- package/dist/errors.cjs +0 -72
- package/dist/errors.cjs.map +0 -1
- package/dist/errors.d.cts.map +0 -1
- package/dist/errors.d.mts +0 -34
- package/dist/errors.d.mts.map +0 -1
- package/dist/errors.mjs.map +0 -1
- package/dist/index.cjs +0 -35
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -12
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/logger.cjs +0 -8
- package/dist/logger.cjs.map +0 -1
- package/dist/logger.d.cts +0 -5
- package/dist/logger.d.cts.map +0 -1
- package/dist/logger.d.mts +0 -5
- package/dist/logger.d.mts.map +0 -1
- package/dist/logger.mjs +0 -5
- package/dist/logger.mjs.map +0 -1
- package/dist/selectors.cjs +0 -52
- package/dist/selectors.cjs.map +0 -1
- package/dist/selectors.d.cts +0 -38
- package/dist/selectors.d.cts.map +0 -1
- package/dist/selectors.d.mts.map +0 -1
- package/dist/selectors.mjs.map +0 -1
- package/dist/types.cjs +0 -100
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -645
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/types.mjs.map +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type { Struct } from
|
|
2
|
-
import type { TokenPaymentInfo } from
|
|
1
|
+
import type { Struct } from '@metamask/superstruct';
|
|
2
|
+
import type { TokenPaymentInfo } from './types.js';
|
|
3
3
|
export declare const SubscriptionStruct: Struct<{
|
|
4
4
|
id: string;
|
|
5
5
|
products: {
|
|
6
|
-
name: "
|
|
6
|
+
name: "money_account_plus" | "shield";
|
|
7
7
|
currency: "usd";
|
|
8
8
|
unitAmount: number;
|
|
9
9
|
unitDecimals: number;
|
|
10
10
|
}[];
|
|
11
11
|
currentPeriodStart: string;
|
|
12
12
|
currentPeriodEnd: string;
|
|
13
|
-
|
|
13
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
14
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
14
15
|
interval: "month" | "year";
|
|
15
16
|
paymentMethod: {
|
|
16
17
|
type: "card";
|
|
@@ -22,38 +23,37 @@ export declare const SubscriptionStruct: Struct<{
|
|
|
22
23
|
} | {
|
|
23
24
|
type: "crypto";
|
|
24
25
|
crypto: {
|
|
25
|
-
chainId: `0x${string}`;
|
|
26
26
|
payerAddress: `0x${string}`;
|
|
27
|
+
chainId: `0x${string}`;
|
|
27
28
|
tokenSymbol: string;
|
|
28
|
-
error?: "
|
|
29
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
|
-
cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
|
|
32
|
-
isEligibleForSupport: boolean;
|
|
33
|
-
billingCycles?: number | undefined;
|
|
34
|
-
cancelAtPeriodEnd?: boolean | undefined;
|
|
35
32
|
trialPeriodDays?: number | undefined;
|
|
36
33
|
trialStart?: string | undefined;
|
|
37
34
|
trialEnd?: string | undefined;
|
|
38
35
|
endDate?: string | undefined;
|
|
39
36
|
canceledAt?: string | undefined;
|
|
37
|
+
cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
|
|
40
38
|
inactiveAt?: string | undefined;
|
|
39
|
+
isEligibleForSupport: boolean;
|
|
40
|
+
billingCycles?: number | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
id: Struct<string, null>;
|
|
43
43
|
products: Struct<{
|
|
44
|
-
name: "
|
|
44
|
+
name: "money_account_plus" | "shield";
|
|
45
45
|
currency: "usd";
|
|
46
46
|
unitAmount: number;
|
|
47
47
|
unitDecimals: number;
|
|
48
48
|
}[], Struct<{
|
|
49
|
-
name: "
|
|
49
|
+
name: "money_account_plus" | "shield";
|
|
50
50
|
currency: "usd";
|
|
51
51
|
unitAmount: number;
|
|
52
52
|
unitDecimals: number;
|
|
53
53
|
}, {
|
|
54
|
-
name: Struct<"
|
|
55
|
-
shield: "shield";
|
|
54
|
+
name: Struct<"money_account_plus" | "shield", {
|
|
56
55
|
money_account_plus: "money_account_plus";
|
|
56
|
+
shield: "shield";
|
|
57
57
|
}>;
|
|
58
58
|
currency: Struct<"usd", {
|
|
59
59
|
usd: "usd";
|
|
@@ -64,16 +64,16 @@ export declare const SubscriptionStruct: Struct<{
|
|
|
64
64
|
currentPeriodStart: Struct<string, null>;
|
|
65
65
|
currentPeriodEnd: Struct<string, null>;
|
|
66
66
|
cancelAtPeriodEnd: Struct<boolean | undefined, null>;
|
|
67
|
-
status: Struct<"
|
|
67
|
+
status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
|
|
68
|
+
active: "active";
|
|
69
|
+
canceled: "canceled";
|
|
68
70
|
incomplete: "incomplete";
|
|
69
71
|
incomplete_expired: "incomplete_expired";
|
|
72
|
+
past_due: "past_due";
|
|
73
|
+
paused: "paused";
|
|
70
74
|
provisional: "provisional";
|
|
71
75
|
trialing: "trialing";
|
|
72
|
-
active: "active";
|
|
73
|
-
past_due: "past_due";
|
|
74
76
|
unpaid: "unpaid";
|
|
75
|
-
canceled: "canceled";
|
|
76
|
-
paused: "paused";
|
|
77
77
|
}>;
|
|
78
78
|
interval: Struct<"month" | "year", {
|
|
79
79
|
month: "month";
|
|
@@ -89,10 +89,10 @@ export declare const SubscriptionStruct: Struct<{
|
|
|
89
89
|
} | {
|
|
90
90
|
type: "crypto";
|
|
91
91
|
crypto: {
|
|
92
|
-
chainId: `0x${string}`;
|
|
93
92
|
payerAddress: `0x${string}`;
|
|
93
|
+
chainId: `0x${string}`;
|
|
94
94
|
tokenSymbol: string;
|
|
95
|
-
error?: "
|
|
95
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
96
96
|
};
|
|
97
97
|
}, null>;
|
|
98
98
|
trialPeriodDays: Struct<number | undefined, null>;
|
|
@@ -100,9 +100,9 @@ export declare const SubscriptionStruct: Struct<{
|
|
|
100
100
|
trialEnd: Struct<string | undefined, null>;
|
|
101
101
|
endDate: Struct<string | undefined, null>;
|
|
102
102
|
canceledAt: Struct<string | undefined, null>;
|
|
103
|
-
cancelType: Struct<"
|
|
104
|
-
allowed_immediate: "allowed_immediate";
|
|
103
|
+
cancelType: Struct<"allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification", {
|
|
105
104
|
allowed_at_period_end: "allowed_at_period_end";
|
|
105
|
+
allowed_immediate: "allowed_immediate";
|
|
106
106
|
not_allowed: "not_allowed";
|
|
107
107
|
not_allowed_pending_verification: "not_allowed_pending_verification";
|
|
108
108
|
}>;
|
|
@@ -111,17 +111,19 @@ export declare const SubscriptionStruct: Struct<{
|
|
|
111
111
|
billingCycles: Struct<number | undefined, null>;
|
|
112
112
|
}>;
|
|
113
113
|
export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
114
|
+
customerId?: string | undefined;
|
|
114
115
|
subscriptions: {
|
|
115
116
|
id: string;
|
|
116
117
|
products: {
|
|
117
|
-
name: "
|
|
118
|
+
name: "money_account_plus" | "shield";
|
|
118
119
|
currency: "usd";
|
|
119
120
|
unitAmount: number;
|
|
120
121
|
unitDecimals: number;
|
|
121
122
|
}[];
|
|
122
123
|
currentPeriodStart: string;
|
|
123
124
|
currentPeriodEnd: string;
|
|
124
|
-
|
|
125
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
126
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
125
127
|
interval: "month" | "year";
|
|
126
128
|
paymentMethod: {
|
|
127
129
|
type: "card";
|
|
@@ -133,25 +135,23 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
133
135
|
} | {
|
|
134
136
|
type: "crypto";
|
|
135
137
|
crypto: {
|
|
136
|
-
chainId: `0x${string}`;
|
|
137
138
|
payerAddress: `0x${string}`;
|
|
139
|
+
chainId: `0x${string}`;
|
|
138
140
|
tokenSymbol: string;
|
|
139
|
-
error?: "
|
|
141
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
140
142
|
};
|
|
141
143
|
};
|
|
142
|
-
cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
|
|
143
|
-
isEligibleForSupport: boolean;
|
|
144
|
-
billingCycles?: number | undefined;
|
|
145
|
-
cancelAtPeriodEnd?: boolean | undefined;
|
|
146
144
|
trialPeriodDays?: number | undefined;
|
|
147
145
|
trialStart?: string | undefined;
|
|
148
146
|
trialEnd?: string | undefined;
|
|
149
147
|
endDate?: string | undefined;
|
|
150
148
|
canceledAt?: string | undefined;
|
|
149
|
+
cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
|
|
151
150
|
inactiveAt?: string | undefined;
|
|
151
|
+
isEligibleForSupport: boolean;
|
|
152
|
+
billingCycles?: number | undefined;
|
|
152
153
|
}[];
|
|
153
|
-
trialedProducts: ("
|
|
154
|
-
customerId?: string | undefined;
|
|
154
|
+
trialedProducts: ("money_account_plus" | "shield")[];
|
|
155
155
|
productEntitlements?: {
|
|
156
156
|
shield?: {
|
|
157
157
|
entitlements: {
|
|
@@ -160,26 +160,27 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
160
160
|
};
|
|
161
161
|
} | undefined;
|
|
162
162
|
money_account_plus?: {
|
|
163
|
+
plan: string;
|
|
163
164
|
entitlements: {
|
|
164
165
|
swapFeeWaiver: boolean;
|
|
165
166
|
perpsFeeWaiver: boolean;
|
|
166
167
|
predictFreeTx: boolean;
|
|
167
168
|
premiumApy: boolean;
|
|
168
169
|
};
|
|
169
|
-
plan: string;
|
|
170
170
|
} | undefined;
|
|
171
171
|
} | undefined;
|
|
172
172
|
lastSubscription?: {
|
|
173
173
|
id: string;
|
|
174
174
|
products: {
|
|
175
|
-
name: "
|
|
175
|
+
name: "money_account_plus" | "shield";
|
|
176
176
|
currency: "usd";
|
|
177
177
|
unitAmount: number;
|
|
178
178
|
unitDecimals: number;
|
|
179
179
|
}[];
|
|
180
180
|
currentPeriodStart: string;
|
|
181
181
|
currentPeriodEnd: string;
|
|
182
|
-
|
|
182
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
183
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
183
184
|
interval: "month" | "year";
|
|
184
185
|
paymentMethod: {
|
|
185
186
|
type: "card";
|
|
@@ -191,22 +192,21 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
191
192
|
} | {
|
|
192
193
|
type: "crypto";
|
|
193
194
|
crypto: {
|
|
194
|
-
chainId: `0x${string}`;
|
|
195
195
|
payerAddress: `0x${string}`;
|
|
196
|
+
chainId: `0x${string}`;
|
|
196
197
|
tokenSymbol: string;
|
|
197
|
-
error?: "
|
|
198
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
198
199
|
};
|
|
199
200
|
};
|
|
200
|
-
cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
|
|
201
|
-
isEligibleForSupport: boolean;
|
|
202
|
-
billingCycles?: number | undefined;
|
|
203
|
-
cancelAtPeriodEnd?: boolean | undefined;
|
|
204
201
|
trialPeriodDays?: number | undefined;
|
|
205
202
|
trialStart?: string | undefined;
|
|
206
203
|
trialEnd?: string | undefined;
|
|
207
204
|
endDate?: string | undefined;
|
|
208
205
|
canceledAt?: string | undefined;
|
|
206
|
+
cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
|
|
209
207
|
inactiveAt?: string | undefined;
|
|
208
|
+
isEligibleForSupport: boolean;
|
|
209
|
+
billingCycles?: number | undefined;
|
|
210
210
|
} | undefined;
|
|
211
211
|
rewardAccountId?: `${string}:${string}:${string}` | undefined;
|
|
212
212
|
}, {
|
|
@@ -214,14 +214,15 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
214
214
|
subscriptions: Struct<{
|
|
215
215
|
id: string;
|
|
216
216
|
products: {
|
|
217
|
-
name: "
|
|
217
|
+
name: "money_account_plus" | "shield";
|
|
218
218
|
currency: "usd";
|
|
219
219
|
unitAmount: number;
|
|
220
220
|
unitDecimals: number;
|
|
221
221
|
}[];
|
|
222
222
|
currentPeriodStart: string;
|
|
223
223
|
currentPeriodEnd: string;
|
|
224
|
-
|
|
224
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
225
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
225
226
|
interval: "month" | "year";
|
|
226
227
|
paymentMethod: {
|
|
227
228
|
type: "card";
|
|
@@ -233,33 +234,33 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
233
234
|
} | {
|
|
234
235
|
type: "crypto";
|
|
235
236
|
crypto: {
|
|
236
|
-
chainId: `0x${string}`;
|
|
237
237
|
payerAddress: `0x${string}`;
|
|
238
|
+
chainId: `0x${string}`;
|
|
238
239
|
tokenSymbol: string;
|
|
239
|
-
error?: "
|
|
240
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
240
241
|
};
|
|
241
242
|
};
|
|
242
|
-
cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
|
|
243
|
-
isEligibleForSupport: boolean;
|
|
244
|
-
billingCycles?: number | undefined;
|
|
245
|
-
cancelAtPeriodEnd?: boolean | undefined;
|
|
246
243
|
trialPeriodDays?: number | undefined;
|
|
247
244
|
trialStart?: string | undefined;
|
|
248
245
|
trialEnd?: string | undefined;
|
|
249
246
|
endDate?: string | undefined;
|
|
250
247
|
canceledAt?: string | undefined;
|
|
248
|
+
cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
|
|
251
249
|
inactiveAt?: string | undefined;
|
|
250
|
+
isEligibleForSupport: boolean;
|
|
251
|
+
billingCycles?: number | undefined;
|
|
252
252
|
}[], Struct<{
|
|
253
253
|
id: string;
|
|
254
254
|
products: {
|
|
255
|
-
name: "
|
|
255
|
+
name: "money_account_plus" | "shield";
|
|
256
256
|
currency: "usd";
|
|
257
257
|
unitAmount: number;
|
|
258
258
|
unitDecimals: number;
|
|
259
259
|
}[];
|
|
260
260
|
currentPeriodStart: string;
|
|
261
261
|
currentPeriodEnd: string;
|
|
262
|
-
|
|
262
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
263
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
263
264
|
interval: "month" | "year";
|
|
264
265
|
paymentMethod: {
|
|
265
266
|
type: "card";
|
|
@@ -271,38 +272,37 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
271
272
|
} | {
|
|
272
273
|
type: "crypto";
|
|
273
274
|
crypto: {
|
|
274
|
-
chainId: `0x${string}`;
|
|
275
275
|
payerAddress: `0x${string}`;
|
|
276
|
+
chainId: `0x${string}`;
|
|
276
277
|
tokenSymbol: string;
|
|
277
|
-
error?: "
|
|
278
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
278
279
|
};
|
|
279
280
|
};
|
|
280
|
-
cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
|
|
281
|
-
isEligibleForSupport: boolean;
|
|
282
|
-
billingCycles?: number | undefined;
|
|
283
|
-
cancelAtPeriodEnd?: boolean | undefined;
|
|
284
281
|
trialPeriodDays?: number | undefined;
|
|
285
282
|
trialStart?: string | undefined;
|
|
286
283
|
trialEnd?: string | undefined;
|
|
287
284
|
endDate?: string | undefined;
|
|
288
285
|
canceledAt?: string | undefined;
|
|
286
|
+
cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
|
|
289
287
|
inactiveAt?: string | undefined;
|
|
288
|
+
isEligibleForSupport: boolean;
|
|
289
|
+
billingCycles?: number | undefined;
|
|
290
290
|
}, {
|
|
291
291
|
id: Struct<string, null>;
|
|
292
292
|
products: Struct<{
|
|
293
|
-
name: "
|
|
293
|
+
name: "money_account_plus" | "shield";
|
|
294
294
|
currency: "usd";
|
|
295
295
|
unitAmount: number;
|
|
296
296
|
unitDecimals: number;
|
|
297
297
|
}[], Struct<{
|
|
298
|
-
name: "
|
|
298
|
+
name: "money_account_plus" | "shield";
|
|
299
299
|
currency: "usd";
|
|
300
300
|
unitAmount: number;
|
|
301
301
|
unitDecimals: number;
|
|
302
302
|
}, {
|
|
303
|
-
name: Struct<"
|
|
304
|
-
shield: "shield";
|
|
303
|
+
name: Struct<"money_account_plus" | "shield", {
|
|
305
304
|
money_account_plus: "money_account_plus";
|
|
305
|
+
shield: "shield";
|
|
306
306
|
}>;
|
|
307
307
|
currency: Struct<"usd", {
|
|
308
308
|
usd: "usd";
|
|
@@ -313,16 +313,16 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
313
313
|
currentPeriodStart: Struct<string, null>;
|
|
314
314
|
currentPeriodEnd: Struct<string, null>;
|
|
315
315
|
cancelAtPeriodEnd: Struct<boolean | undefined, null>;
|
|
316
|
-
status: Struct<"
|
|
316
|
+
status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
|
|
317
|
+
active: "active";
|
|
318
|
+
canceled: "canceled";
|
|
317
319
|
incomplete: "incomplete";
|
|
318
320
|
incomplete_expired: "incomplete_expired";
|
|
321
|
+
past_due: "past_due";
|
|
322
|
+
paused: "paused";
|
|
319
323
|
provisional: "provisional";
|
|
320
324
|
trialing: "trialing";
|
|
321
|
-
active: "active";
|
|
322
|
-
past_due: "past_due";
|
|
323
325
|
unpaid: "unpaid";
|
|
324
|
-
canceled: "canceled";
|
|
325
|
-
paused: "paused";
|
|
326
326
|
}>;
|
|
327
327
|
interval: Struct<"month" | "year", {
|
|
328
328
|
month: "month";
|
|
@@ -338,10 +338,10 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
338
338
|
} | {
|
|
339
339
|
type: "crypto";
|
|
340
340
|
crypto: {
|
|
341
|
-
chainId: `0x${string}`;
|
|
342
341
|
payerAddress: `0x${string}`;
|
|
342
|
+
chainId: `0x${string}`;
|
|
343
343
|
tokenSymbol: string;
|
|
344
|
-
error?: "
|
|
344
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
345
345
|
};
|
|
346
346
|
}, null>;
|
|
347
347
|
trialPeriodDays: Struct<number | undefined, null>;
|
|
@@ -349,9 +349,9 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
349
349
|
trialEnd: Struct<string | undefined, null>;
|
|
350
350
|
endDate: Struct<string | undefined, null>;
|
|
351
351
|
canceledAt: Struct<string | undefined, null>;
|
|
352
|
-
cancelType: Struct<"
|
|
353
|
-
allowed_immediate: "allowed_immediate";
|
|
352
|
+
cancelType: Struct<"allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification", {
|
|
354
353
|
allowed_at_period_end: "allowed_at_period_end";
|
|
354
|
+
allowed_immediate: "allowed_immediate";
|
|
355
355
|
not_allowed: "not_allowed";
|
|
356
356
|
not_allowed_pending_verification: "not_allowed_pending_verification";
|
|
357
357
|
}>;
|
|
@@ -359,9 +359,9 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
359
359
|
isEligibleForSupport: Struct<boolean, null>;
|
|
360
360
|
billingCycles: Struct<number | undefined, null>;
|
|
361
361
|
}>>;
|
|
362
|
-
trialedProducts: Struct<("
|
|
363
|
-
shield: "shield";
|
|
362
|
+
trialedProducts: Struct<("money_account_plus" | "shield")[], Struct<"money_account_plus" | "shield", {
|
|
364
363
|
money_account_plus: "money_account_plus";
|
|
364
|
+
shield: "shield";
|
|
365
365
|
}>>;
|
|
366
366
|
productEntitlements: Struct<{
|
|
367
367
|
shield?: {
|
|
@@ -371,13 +371,13 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
371
371
|
};
|
|
372
372
|
} | undefined;
|
|
373
373
|
money_account_plus?: {
|
|
374
|
+
plan: string;
|
|
374
375
|
entitlements: {
|
|
375
376
|
swapFeeWaiver: boolean;
|
|
376
377
|
perpsFeeWaiver: boolean;
|
|
377
378
|
predictFreeTx: boolean;
|
|
378
379
|
premiumApy: boolean;
|
|
379
380
|
};
|
|
380
|
-
plan: string;
|
|
381
381
|
} | undefined;
|
|
382
382
|
} | undefined, {
|
|
383
383
|
shield: Struct<{
|
|
@@ -395,13 +395,13 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
395
395
|
}>;
|
|
396
396
|
}>;
|
|
397
397
|
money_account_plus: Struct<{
|
|
398
|
+
plan: string;
|
|
398
399
|
entitlements: {
|
|
399
400
|
swapFeeWaiver: boolean;
|
|
400
401
|
perpsFeeWaiver: boolean;
|
|
401
402
|
predictFreeTx: boolean;
|
|
402
403
|
premiumApy: boolean;
|
|
403
404
|
};
|
|
404
|
-
plan: string;
|
|
405
405
|
} | undefined, {
|
|
406
406
|
plan: Struct<string, null>;
|
|
407
407
|
entitlements: Struct<{
|
|
@@ -420,14 +420,15 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
420
420
|
lastSubscription: Struct<{
|
|
421
421
|
id: string;
|
|
422
422
|
products: {
|
|
423
|
-
name: "
|
|
423
|
+
name: "money_account_plus" | "shield";
|
|
424
424
|
currency: "usd";
|
|
425
425
|
unitAmount: number;
|
|
426
426
|
unitDecimals: number;
|
|
427
427
|
}[];
|
|
428
428
|
currentPeriodStart: string;
|
|
429
429
|
currentPeriodEnd: string;
|
|
430
|
-
|
|
430
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
431
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
431
432
|
interval: "month" | "year";
|
|
432
433
|
paymentMethod: {
|
|
433
434
|
type: "card";
|
|
@@ -439,38 +440,37 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
439
440
|
} | {
|
|
440
441
|
type: "crypto";
|
|
441
442
|
crypto: {
|
|
442
|
-
chainId: `0x${string}`;
|
|
443
443
|
payerAddress: `0x${string}`;
|
|
444
|
+
chainId: `0x${string}`;
|
|
444
445
|
tokenSymbol: string;
|
|
445
|
-
error?: "
|
|
446
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
446
447
|
};
|
|
447
448
|
};
|
|
448
|
-
cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
|
|
449
|
-
isEligibleForSupport: boolean;
|
|
450
|
-
billingCycles?: number | undefined;
|
|
451
|
-
cancelAtPeriodEnd?: boolean | undefined;
|
|
452
449
|
trialPeriodDays?: number | undefined;
|
|
453
450
|
trialStart?: string | undefined;
|
|
454
451
|
trialEnd?: string | undefined;
|
|
455
452
|
endDate?: string | undefined;
|
|
456
453
|
canceledAt?: string | undefined;
|
|
454
|
+
cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
|
|
457
455
|
inactiveAt?: string | undefined;
|
|
456
|
+
isEligibleForSupport: boolean;
|
|
457
|
+
billingCycles?: number | undefined;
|
|
458
458
|
} | undefined, {
|
|
459
459
|
id: Struct<string, null>;
|
|
460
460
|
products: Struct<{
|
|
461
|
-
name: "
|
|
461
|
+
name: "money_account_plus" | "shield";
|
|
462
462
|
currency: "usd";
|
|
463
463
|
unitAmount: number;
|
|
464
464
|
unitDecimals: number;
|
|
465
465
|
}[], Struct<{
|
|
466
|
-
name: "
|
|
466
|
+
name: "money_account_plus" | "shield";
|
|
467
467
|
currency: "usd";
|
|
468
468
|
unitAmount: number;
|
|
469
469
|
unitDecimals: number;
|
|
470
470
|
}, {
|
|
471
|
-
name: Struct<"
|
|
472
|
-
shield: "shield";
|
|
471
|
+
name: Struct<"money_account_plus" | "shield", {
|
|
473
472
|
money_account_plus: "money_account_plus";
|
|
473
|
+
shield: "shield";
|
|
474
474
|
}>;
|
|
475
475
|
currency: Struct<"usd", {
|
|
476
476
|
usd: "usd";
|
|
@@ -481,16 +481,16 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
481
481
|
currentPeriodStart: Struct<string, null>;
|
|
482
482
|
currentPeriodEnd: Struct<string, null>;
|
|
483
483
|
cancelAtPeriodEnd: Struct<boolean | undefined, null>;
|
|
484
|
-
status: Struct<"
|
|
484
|
+
status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
|
|
485
|
+
active: "active";
|
|
486
|
+
canceled: "canceled";
|
|
485
487
|
incomplete: "incomplete";
|
|
486
488
|
incomplete_expired: "incomplete_expired";
|
|
489
|
+
past_due: "past_due";
|
|
490
|
+
paused: "paused";
|
|
487
491
|
provisional: "provisional";
|
|
488
492
|
trialing: "trialing";
|
|
489
|
-
active: "active";
|
|
490
|
-
past_due: "past_due";
|
|
491
493
|
unpaid: "unpaid";
|
|
492
|
-
canceled: "canceled";
|
|
493
|
-
paused: "paused";
|
|
494
494
|
}>;
|
|
495
495
|
interval: Struct<"month" | "year", {
|
|
496
496
|
month: "month";
|
|
@@ -506,10 +506,10 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
506
506
|
} | {
|
|
507
507
|
type: "crypto";
|
|
508
508
|
crypto: {
|
|
509
|
-
chainId: `0x${string}`;
|
|
510
509
|
payerAddress: `0x${string}`;
|
|
510
|
+
chainId: `0x${string}`;
|
|
511
511
|
tokenSymbol: string;
|
|
512
|
-
error?: "
|
|
512
|
+
error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
|
|
513
513
|
};
|
|
514
514
|
}, null>;
|
|
515
515
|
trialPeriodDays: Struct<number | undefined, null>;
|
|
@@ -517,9 +517,9 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
517
517
|
trialEnd: Struct<string | undefined, null>;
|
|
518
518
|
endDate: Struct<string | undefined, null>;
|
|
519
519
|
canceledAt: Struct<string | undefined, null>;
|
|
520
|
-
cancelType: Struct<"
|
|
521
|
-
allowed_immediate: "allowed_immediate";
|
|
520
|
+
cancelType: Struct<"allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification", {
|
|
522
521
|
allowed_at_period_end: "allowed_at_period_end";
|
|
522
|
+
allowed_immediate: "allowed_immediate";
|
|
523
523
|
not_allowed: "not_allowed";
|
|
524
524
|
not_allowed_pending_verification: "not_allowed_pending_verification";
|
|
525
525
|
}>;
|
|
@@ -530,65 +530,65 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
|
|
|
530
530
|
rewardAccountId: Struct<`${string}:${string}:${string}` | undefined, null>;
|
|
531
531
|
}>;
|
|
532
532
|
export declare const SubscriptionBenefitsResponseStruct: Struct<{
|
|
533
|
+
eligible: boolean;
|
|
534
|
+
billingPeriodId: string | null;
|
|
533
535
|
products: {
|
|
534
536
|
swaps: {
|
|
535
537
|
feeBips: string | null;
|
|
536
|
-
remainingMicroUsd: number | null;
|
|
537
|
-
exhausted: boolean;
|
|
538
538
|
capMicroUsd?: number | undefined;
|
|
539
539
|
consumedMicroUsd?: number | undefined;
|
|
540
|
-
};
|
|
541
|
-
perps: {
|
|
542
540
|
remainingMicroUsd: number | null;
|
|
543
541
|
exhausted: boolean;
|
|
542
|
+
};
|
|
543
|
+
perps: {
|
|
544
544
|
builderFeeBips: string | null;
|
|
545
545
|
builderCode: string | null;
|
|
546
546
|
capMicroUsd?: number | undefined;
|
|
547
547
|
consumedMicroUsd?: number | undefined;
|
|
548
|
+
remainingMicroUsd: number | null;
|
|
549
|
+
exhausted: boolean;
|
|
548
550
|
};
|
|
549
551
|
predict: {
|
|
550
|
-
exhausted: boolean;
|
|
551
552
|
builderCode: string | null;
|
|
552
|
-
remainingTxCount: number | null;
|
|
553
553
|
capTxCount?: number | undefined;
|
|
554
554
|
consumedTxCount?: number | undefined;
|
|
555
|
+
remainingTxCount: number | null;
|
|
556
|
+
exhausted: boolean;
|
|
555
557
|
};
|
|
556
558
|
};
|
|
557
|
-
eligible: boolean;
|
|
558
|
-
billingPeriodId: string | null;
|
|
559
559
|
}, {
|
|
560
560
|
eligible: Struct<boolean, null>;
|
|
561
561
|
billingPeriodId: Struct<string | null, null>;
|
|
562
562
|
products: Struct<{
|
|
563
563
|
swaps: {
|
|
564
564
|
feeBips: string | null;
|
|
565
|
-
remainingMicroUsd: number | null;
|
|
566
|
-
exhausted: boolean;
|
|
567
565
|
capMicroUsd?: number | undefined;
|
|
568
566
|
consumedMicroUsd?: number | undefined;
|
|
569
|
-
};
|
|
570
|
-
perps: {
|
|
571
567
|
remainingMicroUsd: number | null;
|
|
572
568
|
exhausted: boolean;
|
|
569
|
+
};
|
|
570
|
+
perps: {
|
|
573
571
|
builderFeeBips: string | null;
|
|
574
572
|
builderCode: string | null;
|
|
575
573
|
capMicroUsd?: number | undefined;
|
|
576
574
|
consumedMicroUsd?: number | undefined;
|
|
575
|
+
remainingMicroUsd: number | null;
|
|
576
|
+
exhausted: boolean;
|
|
577
577
|
};
|
|
578
578
|
predict: {
|
|
579
|
-
exhausted: boolean;
|
|
580
579
|
builderCode: string | null;
|
|
581
|
-
remainingTxCount: number | null;
|
|
582
580
|
capTxCount?: number | undefined;
|
|
583
581
|
consumedTxCount?: number | undefined;
|
|
582
|
+
remainingTxCount: number | null;
|
|
583
|
+
exhausted: boolean;
|
|
584
584
|
};
|
|
585
585
|
}, {
|
|
586
586
|
swaps: Struct<{
|
|
587
587
|
feeBips: string | null;
|
|
588
|
-
remainingMicroUsd: number | null;
|
|
589
|
-
exhausted: boolean;
|
|
590
588
|
capMicroUsd?: number | undefined;
|
|
591
589
|
consumedMicroUsd?: number | undefined;
|
|
590
|
+
remainingMicroUsd: number | null;
|
|
591
|
+
exhausted: boolean;
|
|
592
592
|
}, {
|
|
593
593
|
feeBips: Struct<string | null, null>;
|
|
594
594
|
capMicroUsd: Struct<number | undefined, null>;
|
|
@@ -597,12 +597,12 @@ export declare const SubscriptionBenefitsResponseStruct: Struct<{
|
|
|
597
597
|
exhausted: Struct<boolean, null>;
|
|
598
598
|
}>;
|
|
599
599
|
perps: Struct<{
|
|
600
|
-
remainingMicroUsd: number | null;
|
|
601
|
-
exhausted: boolean;
|
|
602
600
|
builderFeeBips: string | null;
|
|
603
601
|
builderCode: string | null;
|
|
604
602
|
capMicroUsd?: number | undefined;
|
|
605
603
|
consumedMicroUsd?: number | undefined;
|
|
604
|
+
remainingMicroUsd: number | null;
|
|
605
|
+
exhausted: boolean;
|
|
606
606
|
}, {
|
|
607
607
|
builderFeeBips: Struct<string | null, null>;
|
|
608
608
|
builderCode: Struct<string | null, null>;
|
|
@@ -612,11 +612,11 @@ export declare const SubscriptionBenefitsResponseStruct: Struct<{
|
|
|
612
612
|
exhausted: Struct<boolean, null>;
|
|
613
613
|
}>;
|
|
614
614
|
predict: Struct<{
|
|
615
|
-
exhausted: boolean;
|
|
616
615
|
builderCode: string | null;
|
|
617
|
-
remainingTxCount: number | null;
|
|
618
616
|
capTxCount?: number | undefined;
|
|
619
617
|
consumedTxCount?: number | undefined;
|
|
618
|
+
remainingTxCount: number | null;
|
|
619
|
+
exhausted: boolean;
|
|
620
620
|
}, {
|
|
621
621
|
builderCode: Struct<string | null, null>;
|
|
622
622
|
capTxCount: Struct<number | undefined, null>;
|
|
@@ -632,20 +632,20 @@ export declare const StartSubscriptionResponseStruct: Struct<{
|
|
|
632
632
|
checkoutSessionUrl: Struct<string, null>;
|
|
633
633
|
}>;
|
|
634
634
|
export declare const StartCryptoSubscriptionResponseStruct: Struct<{
|
|
635
|
-
status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
|
|
636
635
|
subscriptionId: string;
|
|
636
|
+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
|
|
637
637
|
}, {
|
|
638
638
|
subscriptionId: Struct<string, null>;
|
|
639
|
-
status: Struct<"
|
|
639
|
+
status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
|
|
640
|
+
active: "active";
|
|
641
|
+
canceled: "canceled";
|
|
640
642
|
incomplete: "incomplete";
|
|
641
643
|
incomplete_expired: "incomplete_expired";
|
|
644
|
+
past_due: "past_due";
|
|
645
|
+
paused: "paused";
|
|
642
646
|
provisional: "provisional";
|
|
643
647
|
trialing: "trialing";
|
|
644
|
-
active: "active";
|
|
645
|
-
past_due: "past_due";
|
|
646
648
|
unpaid: "unpaid";
|
|
647
|
-
canceled: "canceled";
|
|
648
|
-
paused: "paused";
|
|
649
649
|
}>;
|
|
650
650
|
}>;
|
|
651
651
|
export declare const UpdatePaymentMethodCardResponseStruct: Struct<{
|
|
@@ -667,12 +667,12 @@ export declare const SubscriptionApiGeneralResponseStruct: Struct<{
|
|
|
667
667
|
}>;
|
|
668
668
|
export declare const PricingResponseStruct: Struct<{
|
|
669
669
|
products: {
|
|
670
|
-
name: "
|
|
670
|
+
name: "money_account_plus" | "shield";
|
|
671
671
|
prices: {
|
|
672
|
-
|
|
672
|
+
interval: "month" | "year";
|
|
673
673
|
unitAmount: number;
|
|
674
674
|
unitDecimals: number;
|
|
675
|
-
|
|
675
|
+
currency: "usd";
|
|
676
676
|
trialPeriodDays: number;
|
|
677
677
|
minBillingCycles: number;
|
|
678
678
|
minBillingCyclesForBalance: number;
|
|
@@ -680,60 +680,60 @@ export declare const PricingResponseStruct: Struct<{
|
|
|
680
680
|
}[];
|
|
681
681
|
paymentMethods: ({
|
|
682
682
|
type: "card";
|
|
683
|
-
products?: ("
|
|
683
|
+
products?: ("money_account_plus" | "shield")[] | undefined;
|
|
684
684
|
} | {
|
|
685
685
|
type: "crypto";
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
cryptoAuthMethod?: "delegation" | "erc20_approval" | undefined;
|
|
687
|
+
products?: ("money_account_plus" | "shield")[] | undefined;
|
|
688
688
|
chains?: {
|
|
689
689
|
chainId: `0x${string}`;
|
|
690
690
|
paymentAddress: `0x${string}`;
|
|
691
|
-
tokens: TokenPaymentInfo[];
|
|
692
691
|
delegateAddress?: `0x${string}` | undefined;
|
|
692
|
+
tokens: TokenPaymentInfo[];
|
|
693
693
|
isSponsorshipSupported?: boolean | undefined;
|
|
694
694
|
}[] | undefined;
|
|
695
695
|
})[];
|
|
696
696
|
}, {
|
|
697
697
|
products: Struct<{
|
|
698
|
-
name: "
|
|
698
|
+
name: "money_account_plus" | "shield";
|
|
699
699
|
prices: {
|
|
700
|
-
|
|
700
|
+
interval: "month" | "year";
|
|
701
701
|
unitAmount: number;
|
|
702
702
|
unitDecimals: number;
|
|
703
|
-
|
|
703
|
+
currency: "usd";
|
|
704
704
|
trialPeriodDays: number;
|
|
705
705
|
minBillingCycles: number;
|
|
706
706
|
minBillingCyclesForBalance: number;
|
|
707
707
|
}[];
|
|
708
708
|
}[], Struct<{
|
|
709
|
-
name: "
|
|
709
|
+
name: "money_account_plus" | "shield";
|
|
710
710
|
prices: {
|
|
711
|
-
|
|
711
|
+
interval: "month" | "year";
|
|
712
712
|
unitAmount: number;
|
|
713
713
|
unitDecimals: number;
|
|
714
|
-
|
|
714
|
+
currency: "usd";
|
|
715
715
|
trialPeriodDays: number;
|
|
716
716
|
minBillingCycles: number;
|
|
717
717
|
minBillingCyclesForBalance: number;
|
|
718
718
|
}[];
|
|
719
719
|
}, {
|
|
720
|
-
name: Struct<"
|
|
721
|
-
shield: "shield";
|
|
720
|
+
name: Struct<"money_account_plus" | "shield", {
|
|
722
721
|
money_account_plus: "money_account_plus";
|
|
722
|
+
shield: "shield";
|
|
723
723
|
}>;
|
|
724
724
|
prices: Struct<{
|
|
725
|
-
|
|
725
|
+
interval: "month" | "year";
|
|
726
726
|
unitAmount: number;
|
|
727
727
|
unitDecimals: number;
|
|
728
|
-
|
|
728
|
+
currency: "usd";
|
|
729
729
|
trialPeriodDays: number;
|
|
730
730
|
minBillingCycles: number;
|
|
731
731
|
minBillingCyclesForBalance: number;
|
|
732
732
|
}[], Struct<{
|
|
733
|
-
|
|
733
|
+
interval: "month" | "year";
|
|
734
734
|
unitAmount: number;
|
|
735
735
|
unitDecimals: number;
|
|
736
|
-
|
|
736
|
+
currency: "usd";
|
|
737
737
|
trialPeriodDays: number;
|
|
738
738
|
minBillingCycles: number;
|
|
739
739
|
minBillingCyclesForBalance: number;
|
|
@@ -754,52 +754,52 @@ export declare const PricingResponseStruct: Struct<{
|
|
|
754
754
|
}>>;
|
|
755
755
|
paymentMethods: Struct<({
|
|
756
756
|
type: "card";
|
|
757
|
-
products?: ("
|
|
757
|
+
products?: ("money_account_plus" | "shield")[] | undefined;
|
|
758
758
|
} | {
|
|
759
759
|
type: "crypto";
|
|
760
|
-
|
|
761
|
-
|
|
760
|
+
cryptoAuthMethod?: "delegation" | "erc20_approval" | undefined;
|
|
761
|
+
products?: ("money_account_plus" | "shield")[] | undefined;
|
|
762
762
|
chains?: {
|
|
763
763
|
chainId: `0x${string}`;
|
|
764
764
|
paymentAddress: `0x${string}`;
|
|
765
|
-
tokens: TokenPaymentInfo[];
|
|
766
765
|
delegateAddress?: `0x${string}` | undefined;
|
|
766
|
+
tokens: TokenPaymentInfo[];
|
|
767
767
|
isSponsorshipSupported?: boolean | undefined;
|
|
768
768
|
}[] | undefined;
|
|
769
769
|
})[], Struct<{
|
|
770
770
|
type: "card";
|
|
771
|
-
products?: ("
|
|
771
|
+
products?: ("money_account_plus" | "shield")[] | undefined;
|
|
772
772
|
} | {
|
|
773
773
|
type: "crypto";
|
|
774
|
-
|
|
775
|
-
|
|
774
|
+
cryptoAuthMethod?: "delegation" | "erc20_approval" | undefined;
|
|
775
|
+
products?: ("money_account_plus" | "shield")[] | undefined;
|
|
776
776
|
chains?: {
|
|
777
777
|
chainId: `0x${string}`;
|
|
778
778
|
paymentAddress: `0x${string}`;
|
|
779
|
-
tokens: TokenPaymentInfo[];
|
|
780
779
|
delegateAddress?: `0x${string}` | undefined;
|
|
780
|
+
tokens: TokenPaymentInfo[];
|
|
781
781
|
isSponsorshipSupported?: boolean | undefined;
|
|
782
782
|
}[] | undefined;
|
|
783
783
|
}, null>>;
|
|
784
784
|
}>;
|
|
785
785
|
export declare const SubscriptionEligibilityStruct: Struct<{
|
|
786
|
-
product: "
|
|
786
|
+
product: "money_account_plus" | "shield";
|
|
787
787
|
canSubscribe?: boolean | undefined;
|
|
788
788
|
canViewEntryModal?: boolean | undefined;
|
|
789
789
|
modalType?: "A" | "B" | undefined;
|
|
790
790
|
cohorts?: {
|
|
791
|
-
eligible: boolean;
|
|
792
791
|
cohort: string;
|
|
793
792
|
eligibilityRate: number;
|
|
794
793
|
priority: number;
|
|
794
|
+
eligible: boolean;
|
|
795
795
|
}[] | undefined;
|
|
796
796
|
assignedCohort?: string | null | undefined;
|
|
797
797
|
assignedAt?: string | undefined;
|
|
798
798
|
hasAssignedCohortExpired?: boolean | undefined;
|
|
799
799
|
}, {
|
|
800
|
-
product: Struct<"
|
|
801
|
-
shield: "shield";
|
|
800
|
+
product: Struct<"money_account_plus" | "shield", {
|
|
802
801
|
money_account_plus: "money_account_plus";
|
|
802
|
+
shield: "shield";
|
|
803
803
|
}>;
|
|
804
804
|
canSubscribe: Struct<boolean | undefined, null>;
|
|
805
805
|
canViewEntryModal: Struct<boolean | undefined, null>;
|
|
@@ -808,15 +808,15 @@ export declare const SubscriptionEligibilityStruct: Struct<{
|
|
|
808
808
|
B: "B";
|
|
809
809
|
}>;
|
|
810
810
|
cohorts: Struct<{
|
|
811
|
-
eligible: boolean;
|
|
812
811
|
cohort: string;
|
|
813
812
|
eligibilityRate: number;
|
|
814
813
|
priority: number;
|
|
815
|
-
}[] | undefined, Struct<{
|
|
816
814
|
eligible: boolean;
|
|
815
|
+
}[] | undefined, Struct<{
|
|
817
816
|
cohort: string;
|
|
818
817
|
eligibilityRate: number;
|
|
819
818
|
priority: number;
|
|
819
|
+
eligible: boolean;
|
|
820
820
|
}, {
|
|
821
821
|
cohort: Struct<string, null>;
|
|
822
822
|
eligibilityRate: Struct<number, null>;
|
|
@@ -828,37 +828,37 @@ export declare const SubscriptionEligibilityStruct: Struct<{
|
|
|
828
828
|
hasAssignedCohortExpired: Struct<boolean | undefined, null>;
|
|
829
829
|
}>;
|
|
830
830
|
export declare const SubscriptionEligibilityArrayStruct: Struct<{
|
|
831
|
-
product: "
|
|
831
|
+
product: "money_account_plus" | "shield";
|
|
832
832
|
canSubscribe?: boolean | undefined;
|
|
833
833
|
canViewEntryModal?: boolean | undefined;
|
|
834
834
|
modalType?: "A" | "B" | undefined;
|
|
835
835
|
cohorts?: {
|
|
836
|
-
eligible: boolean;
|
|
837
836
|
cohort: string;
|
|
838
837
|
eligibilityRate: number;
|
|
839
838
|
priority: number;
|
|
839
|
+
eligible: boolean;
|
|
840
840
|
}[] | undefined;
|
|
841
841
|
assignedCohort?: string | null | undefined;
|
|
842
842
|
assignedAt?: string | undefined;
|
|
843
843
|
hasAssignedCohortExpired?: boolean | undefined;
|
|
844
844
|
}[], Struct<{
|
|
845
|
-
product: "
|
|
845
|
+
product: "money_account_plus" | "shield";
|
|
846
846
|
canSubscribe?: boolean | undefined;
|
|
847
847
|
canViewEntryModal?: boolean | undefined;
|
|
848
848
|
modalType?: "A" | "B" | undefined;
|
|
849
849
|
cohorts?: {
|
|
850
|
-
eligible: boolean;
|
|
851
850
|
cohort: string;
|
|
852
851
|
eligibilityRate: number;
|
|
853
852
|
priority: number;
|
|
853
|
+
eligible: boolean;
|
|
854
854
|
}[] | undefined;
|
|
855
855
|
assignedCohort?: string | null | undefined;
|
|
856
856
|
assignedAt?: string | undefined;
|
|
857
857
|
hasAssignedCohortExpired?: boolean | undefined;
|
|
858
858
|
}, {
|
|
859
|
-
product: Struct<"
|
|
860
|
-
shield: "shield";
|
|
859
|
+
product: Struct<"money_account_plus" | "shield", {
|
|
861
860
|
money_account_plus: "money_account_plus";
|
|
861
|
+
shield: "shield";
|
|
862
862
|
}>;
|
|
863
863
|
canSubscribe: Struct<boolean | undefined, null>;
|
|
864
864
|
canViewEntryModal: Struct<boolean | undefined, null>;
|
|
@@ -867,15 +867,15 @@ export declare const SubscriptionEligibilityArrayStruct: Struct<{
|
|
|
867
867
|
B: "B";
|
|
868
868
|
}>;
|
|
869
869
|
cohorts: Struct<{
|
|
870
|
-
eligible: boolean;
|
|
871
870
|
cohort: string;
|
|
872
871
|
eligibilityRate: number;
|
|
873
872
|
priority: number;
|
|
874
|
-
}[] | undefined, Struct<{
|
|
875
873
|
eligible: boolean;
|
|
874
|
+
}[] | undefined, Struct<{
|
|
876
875
|
cohort: string;
|
|
877
876
|
eligibilityRate: number;
|
|
878
877
|
priority: number;
|
|
878
|
+
eligible: boolean;
|
|
879
879
|
}, {
|
|
880
880
|
cohort: Struct<string, null>;
|
|
881
881
|
eligibilityRate: Struct<number, null>;
|
|
@@ -886,4 +886,4 @@ export declare const SubscriptionEligibilityArrayStruct: Struct<{
|
|
|
886
886
|
assignedAt: Struct<string | undefined, null>;
|
|
887
887
|
hasAssignedCohortExpired: Struct<boolean | undefined, null>;
|
|
888
888
|
}>>;
|
|
889
|
-
//# sourceMappingURL=SubscriptionService-structs.d.
|
|
889
|
+
//# sourceMappingURL=SubscriptionService-structs.d.ts.map
|