@aepstore-dev/contracts 1.80.0 → 1.81.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/payments.d.ts +12 -0
- package/gen/payments.ts +14 -0
- package/package.json +1 -1
- package/proto/payments.proto +19 -5
package/gen/payments.d.ts
CHANGED
|
@@ -8,6 +8,15 @@ export interface Ok {
|
|
|
8
8
|
* Purchase / checkout / topup
|
|
9
9
|
* ---------------------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
|
+
export interface PurchaseProductUser {
|
|
12
|
+
id: string;
|
|
13
|
+
username: string;
|
|
14
|
+
avatarUrl: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PurchaseProductCategory {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
11
20
|
export interface Purchase {
|
|
12
21
|
id: string;
|
|
13
22
|
productId: string;
|
|
@@ -28,6 +37,9 @@ export interface Purchase {
|
|
|
28
37
|
listingCurrency: string;
|
|
29
38
|
/** Decimal as string, in listing_currency */
|
|
30
39
|
listingPrice: string;
|
|
40
|
+
preview: string;
|
|
41
|
+
user: PurchaseProductUser | undefined;
|
|
42
|
+
categories: PurchaseProductCategory[];
|
|
31
43
|
/** listing→RUB rate used (Decimal as string) */
|
|
32
44
|
fxRate: string;
|
|
33
45
|
}
|
package/gen/payments.ts
CHANGED
|
@@ -19,6 +19,17 @@ export interface Ok {
|
|
|
19
19
|
* Purchase / checkout / topup
|
|
20
20
|
* ---------------------------------------------------------------------------
|
|
21
21
|
*/
|
|
22
|
+
export interface PurchaseProductUser {
|
|
23
|
+
id: string;
|
|
24
|
+
username: string;
|
|
25
|
+
avatarUrl: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface PurchaseProductCategory {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
22
33
|
export interface Purchase {
|
|
23
34
|
id: string;
|
|
24
35
|
productId: string;
|
|
@@ -39,6 +50,9 @@ export interface Purchase {
|
|
|
39
50
|
listingCurrency: string;
|
|
40
51
|
/** Decimal as string, in listing_currency */
|
|
41
52
|
listingPrice: string;
|
|
53
|
+
preview: string;
|
|
54
|
+
user: PurchaseProductUser | undefined;
|
|
55
|
+
categories: PurchaseProductCategory[];
|
|
42
56
|
/** listing→RUB rate used (Decimal as string) */
|
|
43
57
|
fxRate: string;
|
|
44
58
|
}
|
package/package.json
CHANGED
package/proto/payments.proto
CHANGED
|
@@ -79,10 +79,21 @@ service PaymentsService {
|
|
|
79
79
|
|
|
80
80
|
message Ok { bool ok = 1; }
|
|
81
81
|
|
|
82
|
-
// ---------------------------------------------------------------------------
|
|
83
|
-
// Purchase / checkout / topup
|
|
84
|
-
// ---------------------------------------------------------------------------
|
|
85
|
-
message
|
|
82
|
+
// ---------------------------------------------------------------------------
|
|
83
|
+
// Purchase / checkout / topup
|
|
84
|
+
// ---------------------------------------------------------------------------
|
|
85
|
+
message PurchaseProductUser {
|
|
86
|
+
string id = 1;
|
|
87
|
+
string username = 2;
|
|
88
|
+
string avatar_url = 3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message PurchaseProductCategory {
|
|
92
|
+
string id = 1;
|
|
93
|
+
string name = 2;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message Purchase {
|
|
86
97
|
string id = 1;
|
|
87
98
|
string product_id = 2;
|
|
88
99
|
string product_name = 3;
|
|
@@ -97,7 +108,10 @@ message Purchase {
|
|
|
97
108
|
string completed_at = 12;
|
|
98
109
|
// FX snapshot at checkout (empty for legacy RUB purchases).
|
|
99
110
|
string listing_currency = 13; // RUB | USD | EUR
|
|
100
|
-
string listing_price = 14; // Decimal as string, in listing_currency
|
|
111
|
+
string listing_price = 14; // Decimal as string, in listing_currency
|
|
112
|
+
string preview = 16;
|
|
113
|
+
PurchaseProductUser user = 17;
|
|
114
|
+
repeated PurchaseProductCategory categories = 18;
|
|
101
115
|
string fx_rate = 15; // listing→RUB rate used (Decimal as string)
|
|
102
116
|
}
|
|
103
117
|
|