@aepstore-dev/contracts 1.79.0 → 1.80.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 +8 -0
- package/gen/payments.ts +8 -0
- package/package.json +1 -1
- package/proto/payments.proto +13 -1
package/gen/payments.d.ts
CHANGED
|
@@ -95,6 +95,14 @@ export interface GetMyPurchasesRequest {
|
|
|
95
95
|
userId: string;
|
|
96
96
|
page: number;
|
|
97
97
|
limit: number;
|
|
98
|
+
search: string;
|
|
99
|
+
categoryIds: string[];
|
|
100
|
+
applicationIds: string[];
|
|
101
|
+
tags: string[];
|
|
102
|
+
minPrice: string;
|
|
103
|
+
maxPrice: string;
|
|
104
|
+
sortBy: string;
|
|
105
|
+
sortOrder: string;
|
|
98
106
|
}
|
|
99
107
|
export interface PurchasesListResponse {
|
|
100
108
|
items: Purchase[];
|
package/gen/payments.ts
CHANGED
|
@@ -113,6 +113,14 @@ export interface GetMyPurchasesRequest {
|
|
|
113
113
|
userId: string;
|
|
114
114
|
page: number;
|
|
115
115
|
limit: number;
|
|
116
|
+
search: string;
|
|
117
|
+
categoryIds: string[];
|
|
118
|
+
applicationIds: string[];
|
|
119
|
+
tags: string[];
|
|
120
|
+
minPrice: string;
|
|
121
|
+
maxPrice: string;
|
|
122
|
+
sortBy: string;
|
|
123
|
+
sortOrder: string;
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
export interface PurchasesListResponse {
|
package/package.json
CHANGED
package/proto/payments.proto
CHANGED
|
@@ -152,7 +152,19 @@ message CheckoutResponse {
|
|
|
152
152
|
string intent_id = 5; // poll via GetPaymentIntent for TOPUP / bind-card flows
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
message GetMyPurchasesRequest {
|
|
155
|
+
message GetMyPurchasesRequest {
|
|
156
|
+
string user_id = 1;
|
|
157
|
+
int32 page = 2;
|
|
158
|
+
int32 limit = 3;
|
|
159
|
+
string search = 4;
|
|
160
|
+
repeated string category_ids = 5;
|
|
161
|
+
repeated string application_ids = 6;
|
|
162
|
+
repeated string tags = 7;
|
|
163
|
+
string min_price = 8;
|
|
164
|
+
string max_price = 9;
|
|
165
|
+
string sort_by = 10;
|
|
166
|
+
string sort_order = 11;
|
|
167
|
+
}
|
|
156
168
|
message PurchasesListResponse { repeated Purchase items = 1; int32 total = 2; int32 page = 3; int32 limit = 4; }
|
|
157
169
|
message GetPurchaseRequest { string id = 1; string user_id = 2; }
|
|
158
170
|
message RefundPurchaseRequest { string purchase_id = 1; string actor_user_id = 2; bool is_admin = 3; string reason = 4; }
|