@aepstore-dev/contracts 1.79.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 +20 -0
- package/gen/payments.ts +22 -0
- package/package.json +1 -1
- package/proto/payments.proto +32 -6
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
|
}
|
|
@@ -95,6 +107,14 @@ export interface GetMyPurchasesRequest {
|
|
|
95
107
|
userId: string;
|
|
96
108
|
page: number;
|
|
97
109
|
limit: number;
|
|
110
|
+
search: string;
|
|
111
|
+
categoryIds: string[];
|
|
112
|
+
applicationIds: string[];
|
|
113
|
+
tags: string[];
|
|
114
|
+
minPrice: string;
|
|
115
|
+
maxPrice: string;
|
|
116
|
+
sortBy: string;
|
|
117
|
+
sortOrder: string;
|
|
98
118
|
}
|
|
99
119
|
export interface PurchasesListResponse {
|
|
100
120
|
items: Purchase[];
|
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
|
}
|
|
@@ -113,6 +127,14 @@ export interface GetMyPurchasesRequest {
|
|
|
113
127
|
userId: string;
|
|
114
128
|
page: number;
|
|
115
129
|
limit: number;
|
|
130
|
+
search: string;
|
|
131
|
+
categoryIds: string[];
|
|
132
|
+
applicationIds: string[];
|
|
133
|
+
tags: string[];
|
|
134
|
+
minPrice: string;
|
|
135
|
+
maxPrice: string;
|
|
136
|
+
sortBy: string;
|
|
137
|
+
sortOrder: string;
|
|
116
138
|
}
|
|
117
139
|
|
|
118
140
|
export interface PurchasesListResponse {
|
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
|
|
|
@@ -152,7 +166,19 @@ message CheckoutResponse {
|
|
|
152
166
|
string intent_id = 5; // poll via GetPaymentIntent for TOPUP / bind-card flows
|
|
153
167
|
}
|
|
154
168
|
|
|
155
|
-
message GetMyPurchasesRequest {
|
|
169
|
+
message GetMyPurchasesRequest {
|
|
170
|
+
string user_id = 1;
|
|
171
|
+
int32 page = 2;
|
|
172
|
+
int32 limit = 3;
|
|
173
|
+
string search = 4;
|
|
174
|
+
repeated string category_ids = 5;
|
|
175
|
+
repeated string application_ids = 6;
|
|
176
|
+
repeated string tags = 7;
|
|
177
|
+
string min_price = 8;
|
|
178
|
+
string max_price = 9;
|
|
179
|
+
string sort_by = 10;
|
|
180
|
+
string sort_order = 11;
|
|
181
|
+
}
|
|
156
182
|
message PurchasesListResponse { repeated Purchase items = 1; int32 total = 2; int32 page = 3; int32 limit = 4; }
|
|
157
183
|
message GetPurchaseRequest { string id = 1; string user_id = 2; }
|
|
158
184
|
message RefundPurchaseRequest { string purchase_id = 1; string actor_user_id = 2; bool is_admin = 3; string reason = 4; }
|