@aepstore-dev/contracts 1.58.0 → 1.59.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/gen/users.d.ts +18 -1
- package/gen/users.ts +23 -2
- package/package.json +1 -1
- package/proto/users.proto +20 -1
package/gen/users.d.ts
CHANGED
|
@@ -305,9 +305,26 @@ export interface PremiumStateResponse {
|
|
|
305
305
|
/** ISO 8601 */
|
|
306
306
|
expiresAt: string;
|
|
307
307
|
autoRenew: boolean;
|
|
308
|
-
hasSavedPaymentMethod: boolean;
|
|
309
308
|
/** null when not active */
|
|
310
309
|
plan: PremiumPlanInfo | undefined;
|
|
310
|
+
/** null when no premium payment method preference */
|
|
311
|
+
savedPaymentMethod: PremiumSavedPaymentMethod | undefined;
|
|
312
|
+
}
|
|
313
|
+
export interface PremiumSavedPaymentMethod {
|
|
314
|
+
/** BALANCE | YOOKASSA | SAVED_CARD */
|
|
315
|
+
method: string;
|
|
316
|
+
/** null unless method=SAVED_CARD */
|
|
317
|
+
card: PremiumSavedPaymentCard | undefined;
|
|
318
|
+
}
|
|
319
|
+
export interface PremiumSavedPaymentCard {
|
|
320
|
+
id: string;
|
|
321
|
+
brand: string;
|
|
322
|
+
last4: string;
|
|
323
|
+
expMonth: number;
|
|
324
|
+
expYear: number;
|
|
325
|
+
isDefault: boolean;
|
|
326
|
+
nickname: string;
|
|
327
|
+
createdAt: string;
|
|
311
328
|
}
|
|
312
329
|
export interface SetPremiumAutoRenewRequest {
|
|
313
330
|
userId: string;
|
package/gen/users.ts
CHANGED
|
@@ -352,9 +352,30 @@ export interface PremiumStateResponse {
|
|
|
352
352
|
/** ISO 8601 */
|
|
353
353
|
expiresAt: string;
|
|
354
354
|
autoRenew: boolean;
|
|
355
|
-
hasSavedPaymentMethod: boolean;
|
|
356
355
|
/** null when not active */
|
|
357
|
-
plan:
|
|
356
|
+
plan:
|
|
357
|
+
| PremiumPlanInfo
|
|
358
|
+
| undefined;
|
|
359
|
+
/** null when no premium payment method preference */
|
|
360
|
+
savedPaymentMethod: PremiumSavedPaymentMethod | undefined;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface PremiumSavedPaymentMethod {
|
|
364
|
+
/** BALANCE | YOOKASSA | SAVED_CARD */
|
|
365
|
+
method: string;
|
|
366
|
+
/** null unless method=SAVED_CARD */
|
|
367
|
+
card: PremiumSavedPaymentCard | undefined;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface PremiumSavedPaymentCard {
|
|
371
|
+
id: string;
|
|
372
|
+
brand: string;
|
|
373
|
+
last4: string;
|
|
374
|
+
expMonth: number;
|
|
375
|
+
expYear: number;
|
|
376
|
+
isDefault: boolean;
|
|
377
|
+
nickname: string;
|
|
378
|
+
createdAt: string;
|
|
358
379
|
}
|
|
359
380
|
|
|
360
381
|
export interface SetPremiumAutoRenewRequest {
|
package/package.json
CHANGED
package/proto/users.proto
CHANGED
|
@@ -404,8 +404,27 @@ message PremiumStateResponse {
|
|
|
404
404
|
string started_at = 4; // ISO 8601, empty when never purchased
|
|
405
405
|
string expires_at = 5; // ISO 8601
|
|
406
406
|
bool auto_renew = 6;
|
|
407
|
-
bool has_saved_payment_method = 7;
|
|
408
407
|
PremiumPlanInfo plan = 8; // null when not active
|
|
408
|
+
PremiumSavedPaymentMethod saved_payment_method = 9; // null when no premium payment method preference
|
|
409
|
+
|
|
410
|
+
reserved 7;
|
|
411
|
+
reserved "has_saved_payment_method";
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
message PremiumSavedPaymentMethod {
|
|
415
|
+
string method = 1; // BALANCE | YOOKASSA | SAVED_CARD
|
|
416
|
+
PremiumSavedPaymentCard card = 2; // null unless method=SAVED_CARD
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
message PremiumSavedPaymentCard {
|
|
420
|
+
string id = 1;
|
|
421
|
+
string brand = 2;
|
|
422
|
+
string last4 = 3;
|
|
423
|
+
int32 exp_month = 4;
|
|
424
|
+
int32 exp_year = 5;
|
|
425
|
+
bool is_default = 6;
|
|
426
|
+
string nickname = 7;
|
|
427
|
+
string created_at = 8;
|
|
409
428
|
}
|
|
410
429
|
|
|
411
430
|
message SetPremiumAutoRenewRequest {
|