protobuf-platform 1.2.107 → 1.2.108

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/cms/cms.proto CHANGED
@@ -63,6 +63,13 @@ service CMS {
63
63
  rpc readListFooterMainText (PaginationRequest) returns (FooterMainTextItemsResponse);
64
64
  rpc setFooterMainTextTranslation (FooterMainTextTranslationRequest) returns (FooterMainTextStatusResponse);
65
65
  rpc getFooterMainTextTranslation (GetFooterMainTextTranslationRequest) returns (FooterMainTextTranslationResponse);
66
+ // Footer: Payments
67
+ rpc createSingleFooterPayments (FooterPaymentsItemRequest) returns (FooterPaymentsResponse);
68
+ rpc readSingleFooterPayments (GetFooterPaymentsRequest) returns (FooterPaymentsResponse);
69
+ rpc updateSingleFooterPayments (FooterPaymentsItemRequest) returns (FooterPaymentsResponse);
70
+ rpc deleteSingleFooterPayments (GetFooterPaymentsRequest) returns (FooterPaymentsStatusResponse);
71
+ rpc readListFooterPayments (PaginationRequest) returns (FooterPaymentsItemsResponse);
72
+ rpc updateFooterPaymentsInBunch (ItemsBunchRequest) returns (FooterPaymentsStatusResponse);
66
73
  //Game Widgets
67
74
  rpc createSingleGameWidget(stream GameWidgetRequest) returns (GameWidgetResponse);
68
75
  rpc readSingleGameWidget(GetGameWidgetRequest) returns (GameWidgetResponse);
@@ -547,3 +554,55 @@ message GetFooterMainTextTranslationRequest {
547
554
  message FooterMainTextTranslationResponse {
548
555
  optional string content = 1; // localized WYSIWYG
549
556
  }
557
+ // ===================== Footer: Payments (CRUD) =====================
558
+ // Storage: payment_ids only (IDs from Payment service).
559
+ // Responses: enriched with 'payments' (id, title, image) fetched by CMS via RPC.
560
+
561
+ /** Single fetch by id */
562
+ message GetFooterPaymentsRequest {
563
+ int32 id = 1;
564
+ optional bool admin_side = 2;
565
+ }
566
+
567
+ /** Create/Update request payload */
568
+ message FooterPaymentsItemRequest {
569
+ optional int32 id = 1; // present for update
570
+ optional string geo = 2; // ISO country, e.g. "DE"
571
+ optional string title = 3; // BO label
572
+ optional int32 is_active = 4; // 1|0; use -1 to "not set" on update
573
+ repeated int32 payment_ids = 5; // IDs from the Payment service
574
+ }
575
+
576
+ /** Enriched payment brief for responses */
577
+ message FooterPaymentBrief {
578
+ int32 id = 1;
579
+ string title = 2;
580
+ string image = 3; // absolute URL; may be empty
581
+ }
582
+
583
+ /** Full entity returned by CMS (enriched) */
584
+ message FooterPaymentsItem {
585
+ optional int32 id = 1;
586
+ optional string geo = 2;
587
+ optional string title = 3;
588
+ optional int32 is_active = 4;
589
+ repeated int32 payment_ids = 5; // raw IDs stored in CMS
590
+ repeated FooterPaymentBrief payments = 6; // enriched data for UI
591
+ }
592
+
593
+ /** Single entity response */
594
+ message FooterPaymentsResponse {
595
+ FooterPaymentsItem data = 1;
596
+ }
597
+
598
+ /** Status-only response */
599
+ message FooterPaymentsStatusResponse {
600
+ string status = 1; // "OK"
601
+ }
602
+
603
+ /** List response */
604
+ message FooterPaymentsItemsResponse {
605
+ repeated FooterPaymentsItem items = 1;
606
+ optional int32 total_pages = 2;
607
+ optional int32 total_items = 3;
608
+ }
@@ -224,6 +224,50 @@ function deserialize_cms_FooterPartnersStatusResponse(buffer_arg) {
224
224
  return cms_pb.FooterPartnersStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
225
  }
226
226
 
227
+ function serialize_cms_FooterPaymentsItemRequest(arg) {
228
+ if (!(arg instanceof cms_pb.FooterPaymentsItemRequest)) {
229
+ throw new Error('Expected argument of type cms.FooterPaymentsItemRequest');
230
+ }
231
+ return Buffer.from(arg.serializeBinary());
232
+ }
233
+
234
+ function deserialize_cms_FooterPaymentsItemRequest(buffer_arg) {
235
+ return cms_pb.FooterPaymentsItemRequest.deserializeBinary(new Uint8Array(buffer_arg));
236
+ }
237
+
238
+ function serialize_cms_FooterPaymentsItemsResponse(arg) {
239
+ if (!(arg instanceof cms_pb.FooterPaymentsItemsResponse)) {
240
+ throw new Error('Expected argument of type cms.FooterPaymentsItemsResponse');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_cms_FooterPaymentsItemsResponse(buffer_arg) {
246
+ return cms_pb.FooterPaymentsItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_cms_FooterPaymentsResponse(arg) {
250
+ if (!(arg instanceof cms_pb.FooterPaymentsResponse)) {
251
+ throw new Error('Expected argument of type cms.FooterPaymentsResponse');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_cms_FooterPaymentsResponse(buffer_arg) {
257
+ return cms_pb.FooterPaymentsResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
260
+ function serialize_cms_FooterPaymentsStatusResponse(arg) {
261
+ if (!(arg instanceof cms_pb.FooterPaymentsStatusResponse)) {
262
+ throw new Error('Expected argument of type cms.FooterPaymentsStatusResponse');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_cms_FooterPaymentsStatusResponse(buffer_arg) {
268
+ return cms_pb.FooterPaymentsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
227
271
  function serialize_cms_GameWidgetRequest(arg) {
228
272
  if (!(arg instanceof cms_pb.GameWidgetRequest)) {
229
273
  throw new Error('Expected argument of type cms.GameWidgetRequest');
@@ -345,6 +389,17 @@ function deserialize_cms_GetFooterPartnersRequest(buffer_arg) {
345
389
  return cms_pb.GetFooterPartnersRequest.deserializeBinary(new Uint8Array(buffer_arg));
346
390
  }
347
391
 
392
+ function serialize_cms_GetFooterPaymentsRequest(arg) {
393
+ if (!(arg instanceof cms_pb.GetFooterPaymentsRequest)) {
394
+ throw new Error('Expected argument of type cms.GetFooterPaymentsRequest');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_cms_GetFooterPaymentsRequest(buffer_arg) {
400
+ return cms_pb.GetFooterPaymentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
348
403
  function serialize_cms_GetGameWidgetRequest(arg) {
349
404
  if (!(arg instanceof cms_pb.GetGameWidgetRequest)) {
350
405
  throw new Error('Expected argument of type cms.GetGameWidgetRequest');
@@ -1256,6 +1311,73 @@ createSingleFooterMainText: {
1256
1311
  responseSerialize: serialize_cms_FooterMainTextTranslationResponse,
1257
1312
  responseDeserialize: deserialize_cms_FooterMainTextTranslationResponse,
1258
1313
  },
1314
+ // Footer: Payments
1315
+ createSingleFooterPayments: {
1316
+ path: '/cms.CMS/createSingleFooterPayments',
1317
+ requestStream: false,
1318
+ responseStream: false,
1319
+ requestType: cms_pb.FooterPaymentsItemRequest,
1320
+ responseType: cms_pb.FooterPaymentsResponse,
1321
+ requestSerialize: serialize_cms_FooterPaymentsItemRequest,
1322
+ requestDeserialize: deserialize_cms_FooterPaymentsItemRequest,
1323
+ responseSerialize: serialize_cms_FooterPaymentsResponse,
1324
+ responseDeserialize: deserialize_cms_FooterPaymentsResponse,
1325
+ },
1326
+ readSingleFooterPayments: {
1327
+ path: '/cms.CMS/readSingleFooterPayments',
1328
+ requestStream: false,
1329
+ responseStream: false,
1330
+ requestType: cms_pb.GetFooterPaymentsRequest,
1331
+ responseType: cms_pb.FooterPaymentsResponse,
1332
+ requestSerialize: serialize_cms_GetFooterPaymentsRequest,
1333
+ requestDeserialize: deserialize_cms_GetFooterPaymentsRequest,
1334
+ responseSerialize: serialize_cms_FooterPaymentsResponse,
1335
+ responseDeserialize: deserialize_cms_FooterPaymentsResponse,
1336
+ },
1337
+ updateSingleFooterPayments: {
1338
+ path: '/cms.CMS/updateSingleFooterPayments',
1339
+ requestStream: false,
1340
+ responseStream: false,
1341
+ requestType: cms_pb.FooterPaymentsItemRequest,
1342
+ responseType: cms_pb.FooterPaymentsResponse,
1343
+ requestSerialize: serialize_cms_FooterPaymentsItemRequest,
1344
+ requestDeserialize: deserialize_cms_FooterPaymentsItemRequest,
1345
+ responseSerialize: serialize_cms_FooterPaymentsResponse,
1346
+ responseDeserialize: deserialize_cms_FooterPaymentsResponse,
1347
+ },
1348
+ deleteSingleFooterPayments: {
1349
+ path: '/cms.CMS/deleteSingleFooterPayments',
1350
+ requestStream: false,
1351
+ responseStream: false,
1352
+ requestType: cms_pb.GetFooterPaymentsRequest,
1353
+ responseType: cms_pb.FooterPaymentsStatusResponse,
1354
+ requestSerialize: serialize_cms_GetFooterPaymentsRequest,
1355
+ requestDeserialize: deserialize_cms_GetFooterPaymentsRequest,
1356
+ responseSerialize: serialize_cms_FooterPaymentsStatusResponse,
1357
+ responseDeserialize: deserialize_cms_FooterPaymentsStatusResponse,
1358
+ },
1359
+ readListFooterPayments: {
1360
+ path: '/cms.CMS/readListFooterPayments',
1361
+ requestStream: false,
1362
+ responseStream: false,
1363
+ requestType: cms_pb.PaginationRequest,
1364
+ responseType: cms_pb.FooterPaymentsItemsResponse,
1365
+ requestSerialize: serialize_cms_PaginationRequest,
1366
+ requestDeserialize: deserialize_cms_PaginationRequest,
1367
+ responseSerialize: serialize_cms_FooterPaymentsItemsResponse,
1368
+ responseDeserialize: deserialize_cms_FooterPaymentsItemsResponse,
1369
+ },
1370
+ updateFooterPaymentsInBunch: {
1371
+ path: '/cms.CMS/updateFooterPaymentsInBunch',
1372
+ requestStream: false,
1373
+ responseStream: false,
1374
+ requestType: cms_pb.ItemsBunchRequest,
1375
+ responseType: cms_pb.FooterPaymentsStatusResponse,
1376
+ requestSerialize: serialize_cms_ItemsBunchRequest,
1377
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
1378
+ responseSerialize: serialize_cms_FooterPaymentsStatusResponse,
1379
+ responseDeserialize: deserialize_cms_FooterPaymentsStatusResponse,
1380
+ },
1259
1381
  // Game Widgets
1260
1382
  createSingleGameWidget: {
1261
1383
  path: '/cms.CMS/createSingleGameWidget',