protobuf-platform 1.2.662 → 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 +1 -1
- package/payment/payment.proto +42 -0
- package/payment/payment_grpc_pb.js +77 -0
- package/payment/payment_pb.js +1811 -13
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -38,10 +38,13 @@ service Payment {
|
|
|
38
38
|
rpc getRedirectPaymentForm(DepositRedirectFormRequest) returns (DepositRedirectFormResponse);
|
|
39
39
|
//Withdrawal
|
|
40
40
|
rpc attemptWithdrawal(AttemptWithdrawalRequest) returns (WithdrawalResponse);
|
|
41
|
+
rpc prepareManualWithdrawal(PrepareManualWithdrawalRequest) returns (PreparedManualWithdrawalResponse);
|
|
42
|
+
rpc executeManualWithdrawal(ExecuteManualWithdrawalRequest) returns (WithdrawalResponse);
|
|
41
43
|
rpc changeWithdrawalStatus(GetWithdrawalRequest) returns (WithdrawalResponse);
|
|
42
44
|
rpc readListWithdrawals(PaginationRequest) returns (WithdrawalItemsResponse);
|
|
43
45
|
rpc readSingleWithdrawal(GetWithdrawalRequest) returns (WithdrawalResponse);
|
|
44
46
|
rpc processingWithdrawalWebHook(WithdrawalWebHookRequest) returns (ProcessedWithdrawalResponse);
|
|
47
|
+
rpc readListPaymentLifecycleStatuses(PaginationRequest) returns (PaymentLifecycleStatusItemsResponse);
|
|
45
48
|
//Deposit Statuses
|
|
46
49
|
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
|
47
50
|
//User
|
|
@@ -131,6 +134,7 @@ message PaymentSearchRequest {
|
|
|
131
134
|
optional string created_at_to = 23;
|
|
132
135
|
optional string completed_at_from = 24;
|
|
133
136
|
optional string completed_at_to = 25;
|
|
137
|
+
repeated string canonical_status = 26;
|
|
134
138
|
}
|
|
135
139
|
message ItemsBunchRequest {
|
|
136
140
|
repeated int32 ids = 1;
|
|
@@ -341,6 +345,8 @@ message OperationItem {
|
|
|
341
345
|
string currency = 8;
|
|
342
346
|
string external_ref = 9;
|
|
343
347
|
string created = 10;
|
|
348
|
+
optional string origin = 11;
|
|
349
|
+
optional string canonical_status = 12;
|
|
344
350
|
}
|
|
345
351
|
message OperationItemsResponse {
|
|
346
352
|
repeated OperationItem items = 1;
|
|
@@ -386,6 +392,8 @@ message OperationDetailsItem {
|
|
|
386
392
|
optional string comment = 17;
|
|
387
393
|
optional string provider_code = 18;
|
|
388
394
|
optional ProviderOutcome provider_outcome = 19;
|
|
395
|
+
optional string origin = 20;
|
|
396
|
+
optional string canonical_status = 21;
|
|
389
397
|
}
|
|
390
398
|
message OperationLedgerItem {
|
|
391
399
|
int32 id = 1;
|
|
@@ -496,6 +504,8 @@ message DepositResponse {
|
|
|
496
504
|
optional float provider_amount_attempt = 17;
|
|
497
505
|
optional float provider_amount_paid = 18;
|
|
498
506
|
optional string provider_currency = 19;
|
|
507
|
+
optional string canonical_status = 20;
|
|
508
|
+
repeated string allowed_status_actions = 21;
|
|
499
509
|
}
|
|
500
510
|
message DepositItem {
|
|
501
511
|
int32 id = 1;
|
|
@@ -525,6 +535,8 @@ message DepositItem {
|
|
|
525
535
|
optional float provider_amount_attempt = 25;
|
|
526
536
|
optional float provider_amount_paid = 26;
|
|
527
537
|
optional string provider_currency = 27;
|
|
538
|
+
optional string canonical_status = 28;
|
|
539
|
+
repeated string allowed_status_actions = 29;
|
|
528
540
|
}
|
|
529
541
|
message DepositItemsResponse {
|
|
530
542
|
repeated DepositItem items = 1;
|
|
@@ -546,6 +558,17 @@ message DepositRedirectFormResponse {
|
|
|
546
558
|
string content = 1;
|
|
547
559
|
}
|
|
548
560
|
//Withdrawal
|
|
561
|
+
message PrepareManualWithdrawalRequest {
|
|
562
|
+
AttemptWithdrawalRequest withdrawal = 1;
|
|
563
|
+
string reason = 2;
|
|
564
|
+
}
|
|
565
|
+
message PreparedManualWithdrawalResponse {
|
|
566
|
+
string action_reference = 1;
|
|
567
|
+
}
|
|
568
|
+
message ExecuteManualWithdrawalRequest {
|
|
569
|
+
string action_reference = 1;
|
|
570
|
+
int32 user_id = 2;
|
|
571
|
+
}
|
|
549
572
|
message AttemptWithdrawalRequest {
|
|
550
573
|
int32 payment_method_id = 1;
|
|
551
574
|
int32 user_id = 2;
|
|
@@ -616,6 +639,9 @@ message WithdrawalResponse {
|
|
|
616
639
|
optional string payment_provider_image_cdn = 18;
|
|
617
640
|
optional string payment_method_image = 19;
|
|
618
641
|
optional string payment_method_image_cdn = 20;
|
|
642
|
+
optional string origin = 21;
|
|
643
|
+
optional string canonical_status = 22;
|
|
644
|
+
repeated string allowed_status_actions = 23;
|
|
619
645
|
}
|
|
620
646
|
message WithdrawalItem {
|
|
621
647
|
int32 id = 1;
|
|
@@ -639,6 +665,9 @@ message WithdrawalItem {
|
|
|
639
665
|
optional string payment_method_image = 19;
|
|
640
666
|
optional string payment_method_image_cdn = 20;
|
|
641
667
|
optional string completed_at = 21;
|
|
668
|
+
optional string origin = 22;
|
|
669
|
+
optional string canonical_status = 23;
|
|
670
|
+
repeated string allowed_status_actions = 24;
|
|
642
671
|
}
|
|
643
672
|
message WithdrawalItemsResponse {
|
|
644
673
|
repeated WithdrawalItem items = 1;
|
|
@@ -659,6 +688,7 @@ message DepositStatus {
|
|
|
659
688
|
string title = 2;
|
|
660
689
|
optional string description = 3;
|
|
661
690
|
optional int32 is_active = 4;
|
|
691
|
+
optional string canonical_code = 5;
|
|
662
692
|
}
|
|
663
693
|
message DepositStatusItemsResponse {
|
|
664
694
|
repeated DepositStatus items = 1;
|
|
@@ -1401,3 +1431,15 @@ message PrepareGameplayPrecisionCommandResponse {
|
|
|
1401
1431
|
GameplayPrecisionResult committed_result = 3;
|
|
1402
1432
|
string reason_key = 4;
|
|
1403
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
|
+
}
|
|
@@ -323,6 +323,17 @@ function deserialize_payment_ExecuteGameplayPrecisionCommandRequest(buffer_arg)
|
|
|
323
323
|
return payment_pb.ExecuteGameplayPrecisionCommandRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
function serialize_payment_ExecuteManualWithdrawalRequest(arg) {
|
|
327
|
+
if (!(arg instanceof payment_pb.ExecuteManualWithdrawalRequest)) {
|
|
328
|
+
throw new Error('Expected argument of type payment.ExecuteManualWithdrawalRequest');
|
|
329
|
+
}
|
|
330
|
+
return Buffer.from(arg.serializeBinary());
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function deserialize_payment_ExecuteManualWithdrawalRequest(buffer_arg) {
|
|
334
|
+
return payment_pb.ExecuteManualWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
335
|
+
}
|
|
336
|
+
|
|
326
337
|
function serialize_payment_File(arg) {
|
|
327
338
|
if (!(arg instanceof payment_pb.File)) {
|
|
328
339
|
throw new Error('Expected argument of type payment.File');
|
|
@@ -708,6 +719,17 @@ function deserialize_payment_PaginationRequest(buffer_arg) {
|
|
|
708
719
|
return payment_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
709
720
|
}
|
|
710
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
|
+
|
|
711
733
|
function serialize_payment_PaymentMethodConfigRequest(arg) {
|
|
712
734
|
if (!(arg instanceof payment_pb.PaymentMethodConfigRequest)) {
|
|
713
735
|
throw new Error('Expected argument of type payment.PaymentMethodConfigRequest');
|
|
@@ -807,6 +829,28 @@ function deserialize_payment_PrepareGameplayPrecisionCommandResponse(buffer_arg)
|
|
|
807
829
|
return payment_pb.PrepareGameplayPrecisionCommandResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
808
830
|
}
|
|
809
831
|
|
|
832
|
+
function serialize_payment_PrepareManualWithdrawalRequest(arg) {
|
|
833
|
+
if (!(arg instanceof payment_pb.PrepareManualWithdrawalRequest)) {
|
|
834
|
+
throw new Error('Expected argument of type payment.PrepareManualWithdrawalRequest');
|
|
835
|
+
}
|
|
836
|
+
return Buffer.from(arg.serializeBinary());
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
function deserialize_payment_PrepareManualWithdrawalRequest(buffer_arg) {
|
|
840
|
+
return payment_pb.PrepareManualWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
function serialize_payment_PreparedManualWithdrawalResponse(arg) {
|
|
844
|
+
if (!(arg instanceof payment_pb.PreparedManualWithdrawalResponse)) {
|
|
845
|
+
throw new Error('Expected argument of type payment.PreparedManualWithdrawalResponse');
|
|
846
|
+
}
|
|
847
|
+
return Buffer.from(arg.serializeBinary());
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
function deserialize_payment_PreparedManualWithdrawalResponse(buffer_arg) {
|
|
851
|
+
return payment_pb.PreparedManualWithdrawalResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
852
|
+
}
|
|
853
|
+
|
|
810
854
|
function serialize_payment_ProcessedDepositResponse(arg) {
|
|
811
855
|
if (!(arg instanceof payment_pb.ProcessedDepositResponse)) {
|
|
812
856
|
throw new Error('Expected argument of type payment.ProcessedDepositResponse');
|
|
@@ -1387,6 +1431,28 @@ attemptWithdrawal: {
|
|
|
1387
1431
|
responseSerialize: serialize_payment_WithdrawalResponse,
|
|
1388
1432
|
responseDeserialize: deserialize_payment_WithdrawalResponse,
|
|
1389
1433
|
},
|
|
1434
|
+
prepareManualWithdrawal: {
|
|
1435
|
+
path: '/payment.Payment/prepareManualWithdrawal',
|
|
1436
|
+
requestStream: false,
|
|
1437
|
+
responseStream: false,
|
|
1438
|
+
requestType: payment_pb.PrepareManualWithdrawalRequest,
|
|
1439
|
+
responseType: payment_pb.PreparedManualWithdrawalResponse,
|
|
1440
|
+
requestSerialize: serialize_payment_PrepareManualWithdrawalRequest,
|
|
1441
|
+
requestDeserialize: deserialize_payment_PrepareManualWithdrawalRequest,
|
|
1442
|
+
responseSerialize: serialize_payment_PreparedManualWithdrawalResponse,
|
|
1443
|
+
responseDeserialize: deserialize_payment_PreparedManualWithdrawalResponse,
|
|
1444
|
+
},
|
|
1445
|
+
executeManualWithdrawal: {
|
|
1446
|
+
path: '/payment.Payment/executeManualWithdrawal',
|
|
1447
|
+
requestStream: false,
|
|
1448
|
+
responseStream: false,
|
|
1449
|
+
requestType: payment_pb.ExecuteManualWithdrawalRequest,
|
|
1450
|
+
responseType: payment_pb.WithdrawalResponse,
|
|
1451
|
+
requestSerialize: serialize_payment_ExecuteManualWithdrawalRequest,
|
|
1452
|
+
requestDeserialize: deserialize_payment_ExecuteManualWithdrawalRequest,
|
|
1453
|
+
responseSerialize: serialize_payment_WithdrawalResponse,
|
|
1454
|
+
responseDeserialize: deserialize_payment_WithdrawalResponse,
|
|
1455
|
+
},
|
|
1390
1456
|
changeWithdrawalStatus: {
|
|
1391
1457
|
path: '/payment.Payment/changeWithdrawalStatus',
|
|
1392
1458
|
requestStream: false,
|
|
@@ -1431,6 +1497,17 @@ attemptWithdrawal: {
|
|
|
1431
1497
|
responseSerialize: serialize_payment_ProcessedWithdrawalResponse,
|
|
1432
1498
|
responseDeserialize: deserialize_payment_ProcessedWithdrawalResponse,
|
|
1433
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
|
+
},
|
|
1434
1511
|
// Deposit Statuses
|
|
1435
1512
|
readListDepositStatuses: {
|
|
1436
1513
|
path: '/payment.Payment/readListDepositStatuses',
|