protobuf-platform 1.2.661 → 1.2.663
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 +53 -0
- package/payment/payment_grpc_pb.js +111 -0
- package/payment/payment_pb.js +3113 -1272
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -38,6 +38,8 @@ 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);
|
|
@@ -83,6 +85,9 @@ service Payment {
|
|
|
83
85
|
rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
|
|
84
86
|
rpc createAdjustment(AdjustmentRequest) returns (FinancialOperationResponse);
|
|
85
87
|
rpc readListAdjustments(PaginationRequest) returns (AdjustmentItemsResponse);
|
|
88
|
+
// Internal Bonus lifecycle monetary materialization.
|
|
89
|
+
rpc issueBonusBalanceReward(BonusBalanceRewardIssueRequest) returns (BonusBalanceRewardOperationResponse);
|
|
90
|
+
rpc reverseBonusBalanceReward(BonusBalanceRewardReversalRequest) returns (BonusBalanceRewardOperationResponse);
|
|
86
91
|
rpc prepareGameplayPrecisionCommand(PrepareGameplayPrecisionCommandRequest)
|
|
87
92
|
returns (PrepareGameplayPrecisionCommandResponse);
|
|
88
93
|
}
|
|
@@ -338,6 +343,7 @@ message OperationItem {
|
|
|
338
343
|
string currency = 8;
|
|
339
344
|
string external_ref = 9;
|
|
340
345
|
string created = 10;
|
|
346
|
+
optional string origin = 11;
|
|
341
347
|
}
|
|
342
348
|
message OperationItemsResponse {
|
|
343
349
|
repeated OperationItem items = 1;
|
|
@@ -383,6 +389,7 @@ message OperationDetailsItem {
|
|
|
383
389
|
optional string comment = 17;
|
|
384
390
|
optional string provider_code = 18;
|
|
385
391
|
optional ProviderOutcome provider_outcome = 19;
|
|
392
|
+
optional string origin = 20;
|
|
386
393
|
}
|
|
387
394
|
message OperationLedgerItem {
|
|
388
395
|
int32 id = 1;
|
|
@@ -543,6 +550,17 @@ message DepositRedirectFormResponse {
|
|
|
543
550
|
string content = 1;
|
|
544
551
|
}
|
|
545
552
|
//Withdrawal
|
|
553
|
+
message PrepareManualWithdrawalRequest {
|
|
554
|
+
AttemptWithdrawalRequest withdrawal = 1;
|
|
555
|
+
string reason = 2;
|
|
556
|
+
}
|
|
557
|
+
message PreparedManualWithdrawalResponse {
|
|
558
|
+
string action_reference = 1;
|
|
559
|
+
}
|
|
560
|
+
message ExecuteManualWithdrawalRequest {
|
|
561
|
+
string action_reference = 1;
|
|
562
|
+
int32 user_id = 2;
|
|
563
|
+
}
|
|
546
564
|
message AttemptWithdrawalRequest {
|
|
547
565
|
int32 payment_method_id = 1;
|
|
548
566
|
int32 user_id = 2;
|
|
@@ -613,6 +631,7 @@ message WithdrawalResponse {
|
|
|
613
631
|
optional string payment_provider_image_cdn = 18;
|
|
614
632
|
optional string payment_method_image = 19;
|
|
615
633
|
optional string payment_method_image_cdn = 20;
|
|
634
|
+
optional string origin = 21;
|
|
616
635
|
}
|
|
617
636
|
message WithdrawalItem {
|
|
618
637
|
int32 id = 1;
|
|
@@ -636,6 +655,7 @@ message WithdrawalItem {
|
|
|
636
655
|
optional string payment_method_image = 19;
|
|
637
656
|
optional string payment_method_image_cdn = 20;
|
|
638
657
|
optional string completed_at = 21;
|
|
658
|
+
optional string origin = 22;
|
|
639
659
|
}
|
|
640
660
|
message WithdrawalItemsResponse {
|
|
641
661
|
repeated WithdrawalItem items = 1;
|
|
@@ -1237,6 +1257,39 @@ message FinancialOperationResponse {
|
|
|
1237
1257
|
optional string completed_at = 18;
|
|
1238
1258
|
}
|
|
1239
1259
|
|
|
1260
|
+
message BonusBalanceRewardIssueRequest {
|
|
1261
|
+
int32 user_id = 1;
|
|
1262
|
+
int32 user_bonus_id = 2;
|
|
1263
|
+
int32 bonus_template_id = 3;
|
|
1264
|
+
string currency = 4;
|
|
1265
|
+
// Exact positive major-unit decimal configured on the Bonus template.
|
|
1266
|
+
string amount = 5;
|
|
1267
|
+
string grant_source = 6;
|
|
1268
|
+
string grant_id = 7;
|
|
1269
|
+
}
|
|
1270
|
+
message BonusBalanceRewardReversalRequest {
|
|
1271
|
+
int32 user_id = 1;
|
|
1272
|
+
int32 user_bonus_id = 2;
|
|
1273
|
+
int32 bonus_template_id = 3;
|
|
1274
|
+
string currency = 4;
|
|
1275
|
+
// Must match the original issued amount.
|
|
1276
|
+
string amount = 5;
|
|
1277
|
+
string grant_source = 6;
|
|
1278
|
+
string grant_id = 7;
|
|
1279
|
+
string reason = 8;
|
|
1280
|
+
}
|
|
1281
|
+
message BonusBalanceRewardOperationResponse {
|
|
1282
|
+
string operation_id = 1;
|
|
1283
|
+
string operation_public_id = 2;
|
|
1284
|
+
string operation_type = 3;
|
|
1285
|
+
string status_code = 4;
|
|
1286
|
+
string currency = 5;
|
|
1287
|
+
int32 currency_scale = 6;
|
|
1288
|
+
string amount_minor = 7;
|
|
1289
|
+
repeated string ledger_entry_ids = 8;
|
|
1290
|
+
bool idempotent_replay = 9;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1240
1293
|
// Exact money and identifiers are decimal strings, never floating-point values.
|
|
1241
1294
|
message RegisterGameplayPrecisionSessionRequest {
|
|
1242
1295
|
string user_id = 1;
|
|
@@ -48,6 +48,39 @@ function deserialize_payment_AttemptWithdrawalRequest(buffer_arg) {
|
|
|
48
48
|
return payment_pb.AttemptWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
function serialize_payment_BonusBalanceRewardIssueRequest(arg) {
|
|
52
|
+
if (!(arg instanceof payment_pb.BonusBalanceRewardIssueRequest)) {
|
|
53
|
+
throw new Error('Expected argument of type payment.BonusBalanceRewardIssueRequest');
|
|
54
|
+
}
|
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function deserialize_payment_BonusBalanceRewardIssueRequest(buffer_arg) {
|
|
59
|
+
return payment_pb.BonusBalanceRewardIssueRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function serialize_payment_BonusBalanceRewardOperationResponse(arg) {
|
|
63
|
+
if (!(arg instanceof payment_pb.BonusBalanceRewardOperationResponse)) {
|
|
64
|
+
throw new Error('Expected argument of type payment.BonusBalanceRewardOperationResponse');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_payment_BonusBalanceRewardOperationResponse(buffer_arg) {
|
|
70
|
+
return payment_pb.BonusBalanceRewardOperationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function serialize_payment_BonusBalanceRewardReversalRequest(arg) {
|
|
74
|
+
if (!(arg instanceof payment_pb.BonusBalanceRewardReversalRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type payment.BonusBalanceRewardReversalRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_payment_BonusBalanceRewardReversalRequest(buffer_arg) {
|
|
81
|
+
return payment_pb.BonusBalanceRewardReversalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
51
84
|
function serialize_payment_CashierFieldItemsResponse(arg) {
|
|
52
85
|
if (!(arg instanceof payment_pb.CashierFieldItemsResponse)) {
|
|
53
86
|
throw new Error('Expected argument of type payment.CashierFieldItemsResponse');
|
|
@@ -290,6 +323,17 @@ function deserialize_payment_ExecuteGameplayPrecisionCommandRequest(buffer_arg)
|
|
|
290
323
|
return payment_pb.ExecuteGameplayPrecisionCommandRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
291
324
|
}
|
|
292
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
|
+
|
|
293
337
|
function serialize_payment_File(arg) {
|
|
294
338
|
if (!(arg instanceof payment_pb.File)) {
|
|
295
339
|
throw new Error('Expected argument of type payment.File');
|
|
@@ -774,6 +818,28 @@ function deserialize_payment_PrepareGameplayPrecisionCommandResponse(buffer_arg)
|
|
|
774
818
|
return payment_pb.PrepareGameplayPrecisionCommandResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
775
819
|
}
|
|
776
820
|
|
|
821
|
+
function serialize_payment_PrepareManualWithdrawalRequest(arg) {
|
|
822
|
+
if (!(arg instanceof payment_pb.PrepareManualWithdrawalRequest)) {
|
|
823
|
+
throw new Error('Expected argument of type payment.PrepareManualWithdrawalRequest');
|
|
824
|
+
}
|
|
825
|
+
return Buffer.from(arg.serializeBinary());
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
function deserialize_payment_PrepareManualWithdrawalRequest(buffer_arg) {
|
|
829
|
+
return payment_pb.PrepareManualWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
function serialize_payment_PreparedManualWithdrawalResponse(arg) {
|
|
833
|
+
if (!(arg instanceof payment_pb.PreparedManualWithdrawalResponse)) {
|
|
834
|
+
throw new Error('Expected argument of type payment.PreparedManualWithdrawalResponse');
|
|
835
|
+
}
|
|
836
|
+
return Buffer.from(arg.serializeBinary());
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
function deserialize_payment_PreparedManualWithdrawalResponse(buffer_arg) {
|
|
840
|
+
return payment_pb.PreparedManualWithdrawalResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
841
|
+
}
|
|
842
|
+
|
|
777
843
|
function serialize_payment_ProcessedDepositResponse(arg) {
|
|
778
844
|
if (!(arg instanceof payment_pb.ProcessedDepositResponse)) {
|
|
779
845
|
throw new Error('Expected argument of type payment.ProcessedDepositResponse');
|
|
@@ -1354,6 +1420,28 @@ attemptWithdrawal: {
|
|
|
1354
1420
|
responseSerialize: serialize_payment_WithdrawalResponse,
|
|
1355
1421
|
responseDeserialize: deserialize_payment_WithdrawalResponse,
|
|
1356
1422
|
},
|
|
1423
|
+
prepareManualWithdrawal: {
|
|
1424
|
+
path: '/payment.Payment/prepareManualWithdrawal',
|
|
1425
|
+
requestStream: false,
|
|
1426
|
+
responseStream: false,
|
|
1427
|
+
requestType: payment_pb.PrepareManualWithdrawalRequest,
|
|
1428
|
+
responseType: payment_pb.PreparedManualWithdrawalResponse,
|
|
1429
|
+
requestSerialize: serialize_payment_PrepareManualWithdrawalRequest,
|
|
1430
|
+
requestDeserialize: deserialize_payment_PrepareManualWithdrawalRequest,
|
|
1431
|
+
responseSerialize: serialize_payment_PreparedManualWithdrawalResponse,
|
|
1432
|
+
responseDeserialize: deserialize_payment_PreparedManualWithdrawalResponse,
|
|
1433
|
+
},
|
|
1434
|
+
executeManualWithdrawal: {
|
|
1435
|
+
path: '/payment.Payment/executeManualWithdrawal',
|
|
1436
|
+
requestStream: false,
|
|
1437
|
+
responseStream: false,
|
|
1438
|
+
requestType: payment_pb.ExecuteManualWithdrawalRequest,
|
|
1439
|
+
responseType: payment_pb.WithdrawalResponse,
|
|
1440
|
+
requestSerialize: serialize_payment_ExecuteManualWithdrawalRequest,
|
|
1441
|
+
requestDeserialize: deserialize_payment_ExecuteManualWithdrawalRequest,
|
|
1442
|
+
responseSerialize: serialize_payment_WithdrawalResponse,
|
|
1443
|
+
responseDeserialize: deserialize_payment_WithdrawalResponse,
|
|
1444
|
+
},
|
|
1357
1445
|
changeWithdrawalStatus: {
|
|
1358
1446
|
path: '/payment.Payment/changeWithdrawalStatus',
|
|
1359
1447
|
requestStream: false,
|
|
@@ -1779,6 +1867,29 @@ createManualDeposit: {
|
|
|
1779
1867
|
responseSerialize: serialize_payment_AdjustmentItemsResponse,
|
|
1780
1868
|
responseDeserialize: deserialize_payment_AdjustmentItemsResponse,
|
|
1781
1869
|
},
|
|
1870
|
+
// Internal Bonus lifecycle monetary materialization.
|
|
1871
|
+
issueBonusBalanceReward: {
|
|
1872
|
+
path: '/payment.Payment/issueBonusBalanceReward',
|
|
1873
|
+
requestStream: false,
|
|
1874
|
+
responseStream: false,
|
|
1875
|
+
requestType: payment_pb.BonusBalanceRewardIssueRequest,
|
|
1876
|
+
responseType: payment_pb.BonusBalanceRewardOperationResponse,
|
|
1877
|
+
requestSerialize: serialize_payment_BonusBalanceRewardIssueRequest,
|
|
1878
|
+
requestDeserialize: deserialize_payment_BonusBalanceRewardIssueRequest,
|
|
1879
|
+
responseSerialize: serialize_payment_BonusBalanceRewardOperationResponse,
|
|
1880
|
+
responseDeserialize: deserialize_payment_BonusBalanceRewardOperationResponse,
|
|
1881
|
+
},
|
|
1882
|
+
reverseBonusBalanceReward: {
|
|
1883
|
+
path: '/payment.Payment/reverseBonusBalanceReward',
|
|
1884
|
+
requestStream: false,
|
|
1885
|
+
responseStream: false,
|
|
1886
|
+
requestType: payment_pb.BonusBalanceRewardReversalRequest,
|
|
1887
|
+
responseType: payment_pb.BonusBalanceRewardOperationResponse,
|
|
1888
|
+
requestSerialize: serialize_payment_BonusBalanceRewardReversalRequest,
|
|
1889
|
+
requestDeserialize: deserialize_payment_BonusBalanceRewardReversalRequest,
|
|
1890
|
+
responseSerialize: serialize_payment_BonusBalanceRewardOperationResponse,
|
|
1891
|
+
responseDeserialize: deserialize_payment_BonusBalanceRewardOperationResponse,
|
|
1892
|
+
},
|
|
1782
1893
|
prepareGameplayPrecisionCommand: {
|
|
1783
1894
|
path: '/payment.Payment/prepareGameplayPrecisionCommand',
|
|
1784
1895
|
requestStream: false,
|