protobuf-platform 1.2.480 → 1.2.483
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 +71 -0
- package/payment/payment_grpc_pb.js +78 -0
- package/payment/payment_pb.js +10238 -7488
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -63,6 +63,10 @@ service Payment {
|
|
|
63
63
|
rpc readListCurrencies(PaginationRequest) returns (CurrencyItemsResponse);
|
|
64
64
|
rpc updateSingleCurrency(UpdateCurrencyRequest) returns (CurrencyResponse);
|
|
65
65
|
rpc syncCurrencies(SyncCurrenciesRequest) returns (PaymentStatusResponse);
|
|
66
|
+
// BackOffice internal financial operations
|
|
67
|
+
rpc createManualDeposit(ManualDepositRequest) returns (FinancialOperationResponse);
|
|
68
|
+
rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
|
|
69
|
+
rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
|
|
66
70
|
}
|
|
67
71
|
//Technical
|
|
68
72
|
message PingRequest { string ping = 1; }
|
|
@@ -441,6 +445,29 @@ message AttemptWithdrawalRequest {
|
|
|
441
445
|
optional string destination_type = 14;
|
|
442
446
|
optional string destination_details = 15;
|
|
443
447
|
optional string token_id = 16;
|
|
448
|
+
optional string user_birthday = 17;
|
|
449
|
+
optional string card_number = 18;
|
|
450
|
+
optional string card_holder = 19;
|
|
451
|
+
optional string card_expire_month = 20;
|
|
452
|
+
optional string card_expire_year = 21;
|
|
453
|
+
optional string country = 22;
|
|
454
|
+
optional string phone_number = 23;
|
|
455
|
+
optional string country_code = 24;
|
|
456
|
+
optional string zip_code = 25;
|
|
457
|
+
optional string document_id = 26;
|
|
458
|
+
optional string nationality = 27;
|
|
459
|
+
optional string address = 28;
|
|
460
|
+
optional string city = 29;
|
|
461
|
+
optional string state = 30;
|
|
462
|
+
optional string beneficiary_name = 31;
|
|
463
|
+
optional string bank_name = 32;
|
|
464
|
+
optional string bank_account = 33;
|
|
465
|
+
optional string iban = 34;
|
|
466
|
+
optional string bank_code = 35;
|
|
467
|
+
optional string bank_branch = 36;
|
|
468
|
+
optional string ifsc = 37;
|
|
469
|
+
optional string crypto_wallet = 38;
|
|
470
|
+
optional string request_currency = 39;
|
|
444
471
|
}
|
|
445
472
|
message GetWithdrawalRequest {
|
|
446
473
|
int32 id = 1;
|
|
@@ -804,4 +831,48 @@ message CurrencyItemsResponse {
|
|
|
804
831
|
repeated CurrencyItem items = 1;
|
|
805
832
|
optional int32 total_pages = 2;
|
|
806
833
|
optional int32 total_items = 3;
|
|
834
|
+
}
|
|
835
|
+
// BackOffice internal financial operations
|
|
836
|
+
message ManualDepositRequest {
|
|
837
|
+
int32 user_id = 1;
|
|
838
|
+
int64 amount_minor = 2;
|
|
839
|
+
string currency = 3;
|
|
840
|
+
string wager_multiplier = 4;
|
|
841
|
+
string reason = 5;
|
|
842
|
+
string idempotency_id = 6;
|
|
843
|
+
}
|
|
844
|
+
message CompensationRequest {
|
|
845
|
+
int32 user_id = 1;
|
|
846
|
+
int64 amount_minor = 2;
|
|
847
|
+
string currency = 3;
|
|
848
|
+
string wager_multiplier = 4;
|
|
849
|
+
string reason = 5;
|
|
850
|
+
string idempotency_id = 6;
|
|
851
|
+
}
|
|
852
|
+
message ConfiscationRequest {
|
|
853
|
+
int32 user_id = 1;
|
|
854
|
+
int64 amount_minor = 2;
|
|
855
|
+
string currency = 3;
|
|
856
|
+
string reason = 4;
|
|
857
|
+
string idempotency_id = 5;
|
|
858
|
+
}
|
|
859
|
+
message FinancialOperationResponse {
|
|
860
|
+
int32 operation_id = 1;
|
|
861
|
+
string operation_public_id = 2;
|
|
862
|
+
string operation_type = 3;
|
|
863
|
+
string status_code = 4;
|
|
864
|
+
int32 user_id = 5;
|
|
865
|
+
int64 amount_minor = 6;
|
|
866
|
+
string currency = 7;
|
|
867
|
+
int32 currency_scale = 8;
|
|
868
|
+
int64 balance_before_minor = 9;
|
|
869
|
+
int64 balance_after_minor = 10;
|
|
870
|
+
string reason = 11;
|
|
871
|
+
string idempotency_id = 12;
|
|
872
|
+
optional int32 deposit_id = 13;
|
|
873
|
+
optional string wager_bucket_id = 14;
|
|
874
|
+
optional string wager_multiplier = 15;
|
|
875
|
+
optional int64 required_wager_minor = 16;
|
|
876
|
+
optional string created_at = 17;
|
|
877
|
+
optional string completed_at = 18;
|
|
807
878
|
}
|
|
@@ -70,6 +70,28 @@ function deserialize_payment_CheckFastDepositResponse(buffer_arg) {
|
|
|
70
70
|
return payment_pb.CheckFastDepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_payment_CompensationRequest(arg) {
|
|
74
|
+
if (!(arg instanceof payment_pb.CompensationRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type payment.CompensationRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_payment_CompensationRequest(buffer_arg) {
|
|
81
|
+
return payment_pb.CompensationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function serialize_payment_ConfiscationRequest(arg) {
|
|
85
|
+
if (!(arg instanceof payment_pb.ConfiscationRequest)) {
|
|
86
|
+
throw new Error('Expected argument of type payment.ConfiscationRequest');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_payment_ConfiscationRequest(buffer_arg) {
|
|
92
|
+
return payment_pb.ConfiscationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function serialize_payment_CurrenciesMetadataResponse(arg) {
|
|
74
96
|
if (!(arg instanceof payment_pb.CurrenciesMetadataResponse)) {
|
|
75
97
|
throw new Error('Expected argument of type payment.CurrenciesMetadataResponse');
|
|
@@ -191,6 +213,17 @@ function deserialize_payment_File(buffer_arg) {
|
|
|
191
213
|
return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
214
|
}
|
|
193
215
|
|
|
216
|
+
function serialize_payment_FinancialOperationResponse(arg) {
|
|
217
|
+
if (!(arg instanceof payment_pb.FinancialOperationResponse)) {
|
|
218
|
+
throw new Error('Expected argument of type payment.FinancialOperationResponse');
|
|
219
|
+
}
|
|
220
|
+
return Buffer.from(arg.serializeBinary());
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function deserialize_payment_FinancialOperationResponse(buffer_arg) {
|
|
224
|
+
return payment_pb.FinancialOperationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
225
|
+
}
|
|
226
|
+
|
|
194
227
|
function serialize_payment_GetCurrenciesMetadataRequest(arg) {
|
|
195
228
|
if (!(arg instanceof payment_pb.GetCurrenciesMetadataRequest)) {
|
|
196
229
|
throw new Error('Expected argument of type payment.GetCurrenciesMetadataRequest');
|
|
@@ -400,6 +433,17 @@ function deserialize_payment_ItemsBunchRequest(buffer_arg) {
|
|
|
400
433
|
return payment_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
401
434
|
}
|
|
402
435
|
|
|
436
|
+
function serialize_payment_ManualDepositRequest(arg) {
|
|
437
|
+
if (!(arg instanceof payment_pb.ManualDepositRequest)) {
|
|
438
|
+
throw new Error('Expected argument of type payment.ManualDepositRequest');
|
|
439
|
+
}
|
|
440
|
+
return Buffer.from(arg.serializeBinary());
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
function deserialize_payment_ManualDepositRequest(buffer_arg) {
|
|
444
|
+
return payment_pb.ManualDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
445
|
+
}
|
|
446
|
+
|
|
403
447
|
function serialize_payment_MethodItemsResponse(arg) {
|
|
404
448
|
if (!(arg instanceof payment_pb.MethodItemsResponse)) {
|
|
405
449
|
throw new Error('Expected argument of type payment.MethodItemsResponse');
|
|
@@ -1314,6 +1358,40 @@ readSingleCurrency: {
|
|
|
1314
1358
|
responseSerialize: serialize_payment_PaymentStatusResponse,
|
|
1315
1359
|
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
|
1316
1360
|
},
|
|
1361
|
+
// BackOffice internal financial operations
|
|
1362
|
+
createManualDeposit: {
|
|
1363
|
+
path: '/payment.Payment/createManualDeposit',
|
|
1364
|
+
requestStream: false,
|
|
1365
|
+
responseStream: false,
|
|
1366
|
+
requestType: payment_pb.ManualDepositRequest,
|
|
1367
|
+
responseType: payment_pb.FinancialOperationResponse,
|
|
1368
|
+
requestSerialize: serialize_payment_ManualDepositRequest,
|
|
1369
|
+
requestDeserialize: deserialize_payment_ManualDepositRequest,
|
|
1370
|
+
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1371
|
+
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1372
|
+
},
|
|
1373
|
+
createCompensation: {
|
|
1374
|
+
path: '/payment.Payment/createCompensation',
|
|
1375
|
+
requestStream: false,
|
|
1376
|
+
responseStream: false,
|
|
1377
|
+
requestType: payment_pb.CompensationRequest,
|
|
1378
|
+
responseType: payment_pb.FinancialOperationResponse,
|
|
1379
|
+
requestSerialize: serialize_payment_CompensationRequest,
|
|
1380
|
+
requestDeserialize: deserialize_payment_CompensationRequest,
|
|
1381
|
+
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1382
|
+
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1383
|
+
},
|
|
1384
|
+
createConfiscation: {
|
|
1385
|
+
path: '/payment.Payment/createConfiscation',
|
|
1386
|
+
requestStream: false,
|
|
1387
|
+
responseStream: false,
|
|
1388
|
+
requestType: payment_pb.ConfiscationRequest,
|
|
1389
|
+
responseType: payment_pb.FinancialOperationResponse,
|
|
1390
|
+
requestSerialize: serialize_payment_ConfiscationRequest,
|
|
1391
|
+
requestDeserialize: deserialize_payment_ConfiscationRequest,
|
|
1392
|
+
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1393
|
+
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1394
|
+
},
|
|
1317
1395
|
};
|
|
1318
1396
|
|
|
1319
1397
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');
|