@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 CHANGED
@@ -98,30 +98,14 @@ export interface PaymentMethodItem {
98
98
  /** История платежей пользователя */
99
99
  export interface GetUserPaymentsRequest {
100
100
  userId: string;
101
- /** фильтр по статусу (опционально) */
102
- status?:
103
- | PaymentStatus
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barumetric/contracts",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -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 limit = 3; // количество записей (по умолчанию 20, максимум 100)
97
- optional int32 offset = 4; // смещение для пагинации (по умолчанию 0)
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
- int64 amount = 2; // сумма в минимальных единицах (копейки)
107
+ int32 amount = 2; // сумма в минимальных единицах (копейки)
111
108
  PaymentStatus status = 3;
112
109
  google.protobuf.Timestamp created_at = 4;
113
110
  }