protobuf-platform 1.2.663 → 1.2.666
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 +1 -1
- package/payment/payment.proto +31 -0
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +1329 -15
- package/user/user.proto +2 -0
- package/user/user_pb.js +98 -2
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -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;
|
|
@@ -214,6 +216,7 @@ message MethodItem {
|
|
|
214
216
|
optional string provider_image_cdn = 12;
|
|
215
217
|
optional string code = 13;
|
|
216
218
|
optional string currency_type = 14;
|
|
219
|
+
optional bool is_test = 15;
|
|
217
220
|
}
|
|
218
221
|
message MethodRequest {
|
|
219
222
|
oneof request {
|
|
@@ -231,6 +234,7 @@ message MethodItemRequest {
|
|
|
231
234
|
optional string processing_type = 8;
|
|
232
235
|
optional string code = 9;
|
|
233
236
|
optional string currency_type = 10;
|
|
237
|
+
optional bool is_test = 11;
|
|
234
238
|
}
|
|
235
239
|
message GetMethodRequest {
|
|
236
240
|
int32 id = 1;
|
|
@@ -344,6 +348,7 @@ message OperationItem {
|
|
|
344
348
|
string external_ref = 9;
|
|
345
349
|
string created = 10;
|
|
346
350
|
optional string origin = 11;
|
|
351
|
+
optional string canonical_status = 12;
|
|
347
352
|
}
|
|
348
353
|
message OperationItemsResponse {
|
|
349
354
|
repeated OperationItem items = 1;
|
|
@@ -390,6 +395,7 @@ message OperationDetailsItem {
|
|
|
390
395
|
optional string provider_code = 18;
|
|
391
396
|
optional ProviderOutcome provider_outcome = 19;
|
|
392
397
|
optional string origin = 20;
|
|
398
|
+
optional string canonical_status = 21;
|
|
393
399
|
}
|
|
394
400
|
message OperationLedgerItem {
|
|
395
401
|
int32 id = 1;
|
|
@@ -500,6 +506,8 @@ message DepositResponse {
|
|
|
500
506
|
optional float provider_amount_attempt = 17;
|
|
501
507
|
optional float provider_amount_paid = 18;
|
|
502
508
|
optional string provider_currency = 19;
|
|
509
|
+
optional string canonical_status = 20;
|
|
510
|
+
repeated string allowed_status_actions = 21;
|
|
503
511
|
}
|
|
504
512
|
message DepositItem {
|
|
505
513
|
int32 id = 1;
|
|
@@ -529,6 +537,8 @@ message DepositItem {
|
|
|
529
537
|
optional float provider_amount_attempt = 25;
|
|
530
538
|
optional float provider_amount_paid = 26;
|
|
531
539
|
optional string provider_currency = 27;
|
|
540
|
+
optional string canonical_status = 28;
|
|
541
|
+
repeated string allowed_status_actions = 29;
|
|
532
542
|
}
|
|
533
543
|
message DepositItemsResponse {
|
|
534
544
|
repeated DepositItem items = 1;
|
|
@@ -632,6 +642,8 @@ message WithdrawalResponse {
|
|
|
632
642
|
optional string payment_method_image = 19;
|
|
633
643
|
optional string payment_method_image_cdn = 20;
|
|
634
644
|
optional string origin = 21;
|
|
645
|
+
optional string canonical_status = 22;
|
|
646
|
+
repeated string allowed_status_actions = 23;
|
|
635
647
|
}
|
|
636
648
|
message WithdrawalItem {
|
|
637
649
|
int32 id = 1;
|
|
@@ -656,6 +668,8 @@ message WithdrawalItem {
|
|
|
656
668
|
optional string payment_method_image_cdn = 20;
|
|
657
669
|
optional string completed_at = 21;
|
|
658
670
|
optional string origin = 22;
|
|
671
|
+
optional string canonical_status = 23;
|
|
672
|
+
repeated string allowed_status_actions = 24;
|
|
659
673
|
}
|
|
660
674
|
message WithdrawalItemsResponse {
|
|
661
675
|
repeated WithdrawalItem items = 1;
|
|
@@ -676,6 +690,7 @@ message DepositStatus {
|
|
|
676
690
|
string title = 2;
|
|
677
691
|
optional string description = 3;
|
|
678
692
|
optional int32 is_active = 4;
|
|
693
|
+
optional string canonical_code = 5;
|
|
679
694
|
}
|
|
680
695
|
message DepositStatusItemsResponse {
|
|
681
696
|
repeated DepositStatus items = 1;
|
|
@@ -1418,3 +1433,19 @@ message PrepareGameplayPrecisionCommandResponse {
|
|
|
1418
1433
|
GameplayPrecisionResult committed_result = 3;
|
|
1419
1434
|
string reason_key = 4;
|
|
1420
1435
|
}
|
|
1436
|
+
|
|
1437
|
+
// Canonical codes: created, pending, processing, completed, declined.
|
|
1438
|
+
// Existing status fields retain legacy representations.
|
|
1439
|
+
message PaymentLifecycleStatus {
|
|
1440
|
+
string code = 1;
|
|
1441
|
+
string title = 2;
|
|
1442
|
+
optional string description = 3;
|
|
1443
|
+
optional int32 is_active = 4;
|
|
1444
|
+
}
|
|
1445
|
+
message PaymentLifecycleStatusItemsResponse {
|
|
1446
|
+
repeated PaymentLifecycleStatus items = 1;
|
|
1447
|
+
optional int32 total_pages = 2;
|
|
1448
|
+
optional int32 total_items = 3;
|
|
1449
|
+
// Compatibility catalog supplied by payment; canonical items remain five-state.
|
|
1450
|
+
repeated PaymentLifecycleStatus legacy_withdrawal_items = 4;
|
|
1451
|
+
}
|
|
@@ -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',
|