@barumetric/contracts 1.3.12 → 1.3.14
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/ts/payment.ts +3 -19
- package/package.json +1 -1
- package/proto/payment.proto +5 -8
package/gen/ts/payment.ts
CHANGED
|
@@ -98,30 +98,14 @@ export interface PaymentMethodItem {
|
|
|
98
98
|
/** История платежей пользователя */
|
|
99
99
|
export interface GetUserPaymentsRequest {
|
|
100
100
|
userId: string;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
| undefined;
|
|
105
|
-
/** количество записей (по умолчанию 20, максимум 100) */
|
|
106
|
-
limit?:
|
|
107
|
-
| number
|
|
108
|
-
| undefined;
|
|
109
|
-
/** смещение для пагинации (по умолчанию 0) */
|
|
110
|
-
offset?:
|
|
111
|
-
| number
|
|
112
|
-
| undefined;
|
|
113
|
-
/** курсор для курсорной пагинации (альтернатива offset) */
|
|
114
|
-
cursor?: string | undefined;
|
|
101
|
+
status?: PaymentStatus | undefined;
|
|
102
|
+
take?: number | undefined;
|
|
103
|
+
skip?: number | undefined;
|
|
115
104
|
}
|
|
116
105
|
|
|
117
106
|
export interface GetUserPaymentsResponse {
|
|
118
107
|
payments: PaymentItem[];
|
|
119
|
-
/** общее количество платежей */
|
|
120
108
|
total: number;
|
|
121
|
-
/** есть ли еще записи */
|
|
122
|
-
hasMore: boolean;
|
|
123
|
-
/** курсор для следующей страницы */
|
|
124
|
-
nextCursor?: string | undefined;
|
|
125
109
|
}
|
|
126
110
|
|
|
127
111
|
export interface PaymentItem {
|
package/package.json
CHANGED
package/proto/payment.proto
CHANGED
|
@@ -92,22 +92,19 @@ message PaymentMethodItem {
|
|
|
92
92
|
// История платежей пользователя
|
|
93
93
|
message GetUserPaymentsRequest {
|
|
94
94
|
string user_id = 1;
|
|
95
|
-
optional PaymentStatus status = 2;
|
|
96
|
-
optional int32
|
|
97
|
-
optional int32
|
|
98
|
-
optional string cursor = 5; // курсор для курсорной пагинации (альтернатива offset)
|
|
95
|
+
optional PaymentStatus status = 2;
|
|
96
|
+
optional int32 take = 3;
|
|
97
|
+
optional int32 skip = 4;
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
message GetUserPaymentsResponse {
|
|
102
101
|
repeated PaymentItem payments = 1;
|
|
103
|
-
int32 total = 2;
|
|
104
|
-
bool has_more = 3; // есть ли еще записи
|
|
105
|
-
optional string next_cursor = 4; // курсор для следующей страницы
|
|
102
|
+
int32 total = 2;
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
message PaymentItem {
|
|
109
106
|
string id = 1;
|
|
110
|
-
|
|
107
|
+
int32 amount = 2; // сумма в минимальных единицах (копейки)
|
|
111
108
|
PaymentStatus status = 3;
|
|
112
109
|
google.protobuf.Timestamp created_at = 4;
|
|
113
110
|
}
|