protobuf-platform 1.2.337 → 1.2.339

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.337",
3
+ "version": "1.2.339",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,6 +45,7 @@ service Payment {
45
45
  rpc userPaymentsInfo(GetUserPaymentsInfoRequest) returns (UserPaymentsInfoResponse);
46
46
  rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
47
47
  rpc userWithdrawalHistory(GetUserPaymentsInfoRequest) returns (UserWithdrawalItemsResponse);
48
+ rpc userPaymentHistory(GetUserPaymentsInfoRequest) returns (UserPaymentHistoryItemsResponse);
48
49
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
49
50
  //Segmentation
50
51
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
@@ -300,6 +301,14 @@ message AttemptDepositRequest {
300
301
  optional string user_public_id = 13;
301
302
  optional string token_id = 14;
302
303
  optional string user_agent = 15;
304
+ optional int32 screen_width = 16;
305
+ optional int32 screen_height = 17;
306
+ optional int32 time_zone = 18;
307
+ optional int32 color_depth = 19;
308
+ optional int32 java_enabled = 20;
309
+ optional int32 javascript_enabled = 21;
310
+ optional string accept_language = 22;
311
+ optional string accept_header = 23;
303
312
  }
304
313
  message GetDepositRequest {
305
314
  int32 id = 1;
@@ -503,6 +512,30 @@ message UserWithdrawalItemsResponse {
503
512
  optional int32 total_pages = 2;
504
513
  optional int32 total_items = 3;
505
514
  }
515
+ message UserPaymentHistoryItem {
516
+ string transaction_type = 1;
517
+ int32 transaction_id = 2;
518
+ float amount = 3;
519
+ optional float amount_attempt = 4;
520
+ optional float amount_paid = 5;
521
+ optional float fee = 6;
522
+ string currency = 7;
523
+ optional string payment_method_title = 8;
524
+ optional string payment_provider_image = 9;
525
+ optional string payment_provider_image_cdn = 10;
526
+ optional string payment_provider_title = 11;
527
+ optional int32 status_id = 12;
528
+ optional string created = 13;
529
+ optional string status = 14;
530
+ optional string destination = 15;
531
+ optional string destination_type = 16;
532
+ optional string external_ref = 17;
533
+ }
534
+ message UserPaymentHistoryItemsResponse {
535
+ repeated UserPaymentHistoryItem items = 1;
536
+ optional int32 total_pages = 2;
537
+ optional int32 total_items = 3;
538
+ }
506
539
  //Users
507
540
  message UserPaymentMethodItem {
508
541
  int32 method_id = 1;
@@ -543,6 +543,17 @@ function deserialize_payment_UserDepositItemsResponse(buffer_arg) {
543
543
  return payment_pb.UserDepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
544
544
  }
545
545
 
546
+ function serialize_payment_UserPaymentHistoryItemsResponse(arg) {
547
+ if (!(arg instanceof payment_pb.UserPaymentHistoryItemsResponse)) {
548
+ throw new Error('Expected argument of type payment.UserPaymentHistoryItemsResponse');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_payment_UserPaymentHistoryItemsResponse(buffer_arg) {
554
+ return payment_pb.UserPaymentHistoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
546
557
  function serialize_payment_UserPaymentMethodsResponse(arg) {
547
558
  if (!(arg instanceof payment_pb.UserPaymentMethodsResponse)) {
548
559
  throw new Error('Expected argument of type payment.UserPaymentMethodsResponse');
@@ -1003,6 +1014,17 @@ userPaymentsInfo: {
1003
1014
  responseSerialize: serialize_payment_UserWithdrawalItemsResponse,
1004
1015
  responseDeserialize: deserialize_payment_UserWithdrawalItemsResponse,
1005
1016
  },
1017
+ userPaymentHistory: {
1018
+ path: '/payment.Payment/userPaymentHistory',
1019
+ requestStream: false,
1020
+ responseStream: false,
1021
+ requestType: payment_pb.GetUserPaymentsInfoRequest,
1022
+ responseType: payment_pb.UserPaymentHistoryItemsResponse,
1023
+ requestSerialize: serialize_payment_GetUserPaymentsInfoRequest,
1024
+ requestDeserialize: deserialize_payment_GetUserPaymentsInfoRequest,
1025
+ responseSerialize: serialize_payment_UserPaymentHistoryItemsResponse,
1026
+ responseDeserialize: deserialize_payment_UserPaymentHistoryItemsResponse,
1027
+ },
1006
1028
  getPaymentMethodsForUser: {
1007
1029
  path: '/payment.Payment/getPaymentMethodsForUser',
1008
1030
  requestStream: false,