protobuf-platform 1.2.663 → 1.2.664

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.663",
3
+ "version": "1.2.664",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -44,6 +44,7 @@ service Payment {
44
44
  rpc readListWithdrawals(PaginationRequest) returns (WithdrawalItemsResponse);
45
45
  rpc readSingleWithdrawal(GetWithdrawalRequest) returns (WithdrawalResponse);
46
46
  rpc processingWithdrawalWebHook(WithdrawalWebHookRequest) returns (ProcessedWithdrawalResponse);
47
+ rpc readListPaymentLifecycleStatuses(PaginationRequest) returns (PaymentLifecycleStatusItemsResponse);
47
48
  //Deposit Statuses
48
49
  rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
49
50
  //User
@@ -133,6 +134,7 @@ message PaymentSearchRequest {
133
134
  optional string created_at_to = 23;
134
135
  optional string completed_at_from = 24;
135
136
  optional string completed_at_to = 25;
137
+ repeated string canonical_status = 26;
136
138
  }
137
139
  message ItemsBunchRequest {
138
140
  repeated int32 ids = 1;
@@ -344,6 +346,7 @@ message OperationItem {
344
346
  string external_ref = 9;
345
347
  string created = 10;
346
348
  optional string origin = 11;
349
+ optional string canonical_status = 12;
347
350
  }
348
351
  message OperationItemsResponse {
349
352
  repeated OperationItem items = 1;
@@ -390,6 +393,7 @@ message OperationDetailsItem {
390
393
  optional string provider_code = 18;
391
394
  optional ProviderOutcome provider_outcome = 19;
392
395
  optional string origin = 20;
396
+ optional string canonical_status = 21;
393
397
  }
394
398
  message OperationLedgerItem {
395
399
  int32 id = 1;
@@ -500,6 +504,8 @@ message DepositResponse {
500
504
  optional float provider_amount_attempt = 17;
501
505
  optional float provider_amount_paid = 18;
502
506
  optional string provider_currency = 19;
507
+ optional string canonical_status = 20;
508
+ repeated string allowed_status_actions = 21;
503
509
  }
504
510
  message DepositItem {
505
511
  int32 id = 1;
@@ -529,6 +535,8 @@ message DepositItem {
529
535
  optional float provider_amount_attempt = 25;
530
536
  optional float provider_amount_paid = 26;
531
537
  optional string provider_currency = 27;
538
+ optional string canonical_status = 28;
539
+ repeated string allowed_status_actions = 29;
532
540
  }
533
541
  message DepositItemsResponse {
534
542
  repeated DepositItem items = 1;
@@ -632,6 +640,8 @@ message WithdrawalResponse {
632
640
  optional string payment_method_image = 19;
633
641
  optional string payment_method_image_cdn = 20;
634
642
  optional string origin = 21;
643
+ optional string canonical_status = 22;
644
+ repeated string allowed_status_actions = 23;
635
645
  }
636
646
  message WithdrawalItem {
637
647
  int32 id = 1;
@@ -656,6 +666,8 @@ message WithdrawalItem {
656
666
  optional string payment_method_image_cdn = 20;
657
667
  optional string completed_at = 21;
658
668
  optional string origin = 22;
669
+ optional string canonical_status = 23;
670
+ repeated string allowed_status_actions = 24;
659
671
  }
660
672
  message WithdrawalItemsResponse {
661
673
  repeated WithdrawalItem items = 1;
@@ -676,6 +688,7 @@ message DepositStatus {
676
688
  string title = 2;
677
689
  optional string description = 3;
678
690
  optional int32 is_active = 4;
691
+ optional string canonical_code = 5;
679
692
  }
680
693
  message DepositStatusItemsResponse {
681
694
  repeated DepositStatus items = 1;
@@ -1418,3 +1431,15 @@ message PrepareGameplayPrecisionCommandResponse {
1418
1431
  GameplayPrecisionResult committed_result = 3;
1419
1432
  string reason_key = 4;
1420
1433
  }
1434
+
1435
+ // Canonical codes: created, pending, processing, completed, declined.
1436
+ // Existing status fields retain legacy representations.
1437
+ message PaymentLifecycleStatus {
1438
+ string code = 1;
1439
+ string title = 2;
1440
+ }
1441
+ message PaymentLifecycleStatusItemsResponse {
1442
+ repeated PaymentLifecycleStatus items = 1;
1443
+ optional int32 total_pages = 2;
1444
+ optional int32 total_items = 3;
1445
+ }
@@ -719,6 +719,17 @@ function deserialize_payment_PaginationRequest(buffer_arg) {
719
719
  return payment_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
720
720
  }
721
721
 
722
+ function serialize_payment_PaymentLifecycleStatusItemsResponse(arg) {
723
+ if (!(arg instanceof payment_pb.PaymentLifecycleStatusItemsResponse)) {
724
+ throw new Error('Expected argument of type payment.PaymentLifecycleStatusItemsResponse');
725
+ }
726
+ return Buffer.from(arg.serializeBinary());
727
+ }
728
+
729
+ function deserialize_payment_PaymentLifecycleStatusItemsResponse(buffer_arg) {
730
+ return payment_pb.PaymentLifecycleStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
731
+ }
732
+
722
733
  function serialize_payment_PaymentMethodConfigRequest(arg) {
723
734
  if (!(arg instanceof payment_pb.PaymentMethodConfigRequest)) {
724
735
  throw new Error('Expected argument of type payment.PaymentMethodConfigRequest');
@@ -1486,6 +1497,17 @@ attemptWithdrawal: {
1486
1497
  responseSerialize: serialize_payment_ProcessedWithdrawalResponse,
1487
1498
  responseDeserialize: deserialize_payment_ProcessedWithdrawalResponse,
1488
1499
  },
1500
+ readListPaymentLifecycleStatuses: {
1501
+ path: '/payment.Payment/readListPaymentLifecycleStatuses',
1502
+ requestStream: false,
1503
+ responseStream: false,
1504
+ requestType: payment_pb.PaginationRequest,
1505
+ responseType: payment_pb.PaymentLifecycleStatusItemsResponse,
1506
+ requestSerialize: serialize_payment_PaginationRequest,
1507
+ requestDeserialize: deserialize_payment_PaginationRequest,
1508
+ responseSerialize: serialize_payment_PaymentLifecycleStatusItemsResponse,
1509
+ responseDeserialize: deserialize_payment_PaymentLifecycleStatusItemsResponse,
1510
+ },
1489
1511
  // Deposit Statuses
1490
1512
  readListDepositStatuses: {
1491
1513
  path: '/payment.Payment/readListDepositStatuses',