protobuf-platform 1.2.77 → 1.2.78
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 +7 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +304 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -29,6 +29,7 @@ service Payment {
|
|
|
29
29
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
|
30
30
|
rpc readListDeposits(PaginationRequest) returns (DepositItemsResponse);
|
|
31
31
|
rpc processingDepositWebHook(DepositWebHookRequest) returns (ProcessedDepositResponse);
|
|
32
|
+
rpc getRedirectPaymentForm(DepositRedirectFormRequest) returns (DepositRedirectFormResponse);
|
|
32
33
|
//Deposit Statuses
|
|
33
34
|
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
|
34
35
|
//User
|
|
@@ -256,6 +257,12 @@ message DepositWebHookRequest {
|
|
|
256
257
|
message ProcessedDepositResponse {
|
|
257
258
|
string status = 1;
|
|
258
259
|
}
|
|
260
|
+
message DepositRedirectFormRequest {
|
|
261
|
+
string transaction_hash = 1;
|
|
262
|
+
}
|
|
263
|
+
message DepositRedirectFormResponse {
|
|
264
|
+
string content = 1;
|
|
265
|
+
}
|
|
259
266
|
//Deposit Status
|
|
260
267
|
message DepositStatus {
|
|
261
268
|
int32 id = 1;
|
|
@@ -26,6 +26,28 @@ function deserialize_payment_DepositItemsResponse(buffer_arg) {
|
|
|
26
26
|
return payment_pb.DepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
function serialize_payment_DepositRedirectFormRequest(arg) {
|
|
30
|
+
if (!(arg instanceof payment_pb.DepositRedirectFormRequest)) {
|
|
31
|
+
throw new Error('Expected argument of type payment.DepositRedirectFormRequest');
|
|
32
|
+
}
|
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function deserialize_payment_DepositRedirectFormRequest(buffer_arg) {
|
|
37
|
+
return payment_pb.DepositRedirectFormRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function serialize_payment_DepositRedirectFormResponse(arg) {
|
|
41
|
+
if (!(arg instanceof payment_pb.DepositRedirectFormResponse)) {
|
|
42
|
+
throw new Error('Expected argument of type payment.DepositRedirectFormResponse');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_payment_DepositRedirectFormResponse(buffer_arg) {
|
|
48
|
+
return payment_pb.DepositRedirectFormResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
29
51
|
function serialize_payment_DepositResponse(arg) {
|
|
30
52
|
if (!(arg instanceof payment_pb.DepositResponse)) {
|
|
31
53
|
throw new Error('Expected argument of type payment.DepositResponse');
|
|
@@ -636,6 +658,17 @@ attemptDeposit: {
|
|
|
636
658
|
responseSerialize: serialize_payment_ProcessedDepositResponse,
|
|
637
659
|
responseDeserialize: deserialize_payment_ProcessedDepositResponse,
|
|
638
660
|
},
|
|
661
|
+
getRedirectPaymentForm: {
|
|
662
|
+
path: '/payment.Payment/getRedirectPaymentForm',
|
|
663
|
+
requestStream: false,
|
|
664
|
+
responseStream: false,
|
|
665
|
+
requestType: payment_pb.DepositRedirectFormRequest,
|
|
666
|
+
responseType: payment_pb.DepositRedirectFormResponse,
|
|
667
|
+
requestSerialize: serialize_payment_DepositRedirectFormRequest,
|
|
668
|
+
requestDeserialize: deserialize_payment_DepositRedirectFormRequest,
|
|
669
|
+
responseSerialize: serialize_payment_DepositRedirectFormResponse,
|
|
670
|
+
responseDeserialize: deserialize_payment_DepositRedirectFormResponse,
|
|
671
|
+
},
|
|
639
672
|
// Deposit Statuses
|
|
640
673
|
readListDepositStatuses: {
|
|
641
674
|
path: '/payment.Payment/readListDepositStatuses',
|
package/payment/payment_pb.js
CHANGED
|
@@ -24,6 +24,8 @@ var global = (function() {
|
|
|
24
24
|
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.payment.DepositItem', null, global);
|
|
26
26
|
goog.exportSymbol('proto.payment.DepositItemsResponse', null, global);
|
|
27
|
+
goog.exportSymbol('proto.payment.DepositRedirectFormRequest', null, global);
|
|
28
|
+
goog.exportSymbol('proto.payment.DepositRedirectFormResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.payment.DepositResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.payment.DepositStatus', null, global);
|
|
29
31
|
goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
|
|
@@ -781,6 +783,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
781
783
|
*/
|
|
782
784
|
proto.payment.ProcessedDepositResponse.displayName = 'proto.payment.ProcessedDepositResponse';
|
|
783
785
|
}
|
|
786
|
+
/**
|
|
787
|
+
* Generated by JsPbCodeGenerator.
|
|
788
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
789
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
790
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
791
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
792
|
+
* valid.
|
|
793
|
+
* @extends {jspb.Message}
|
|
794
|
+
* @constructor
|
|
795
|
+
*/
|
|
796
|
+
proto.payment.DepositRedirectFormRequest = function(opt_data) {
|
|
797
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
798
|
+
};
|
|
799
|
+
goog.inherits(proto.payment.DepositRedirectFormRequest, jspb.Message);
|
|
800
|
+
if (goog.DEBUG && !COMPILED) {
|
|
801
|
+
/**
|
|
802
|
+
* @public
|
|
803
|
+
* @override
|
|
804
|
+
*/
|
|
805
|
+
proto.payment.DepositRedirectFormRequest.displayName = 'proto.payment.DepositRedirectFormRequest';
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Generated by JsPbCodeGenerator.
|
|
809
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
810
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
811
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
812
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
813
|
+
* valid.
|
|
814
|
+
* @extends {jspb.Message}
|
|
815
|
+
* @constructor
|
|
816
|
+
*/
|
|
817
|
+
proto.payment.DepositRedirectFormResponse = function(opt_data) {
|
|
818
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
819
|
+
};
|
|
820
|
+
goog.inherits(proto.payment.DepositRedirectFormResponse, jspb.Message);
|
|
821
|
+
if (goog.DEBUG && !COMPILED) {
|
|
822
|
+
/**
|
|
823
|
+
* @public
|
|
824
|
+
* @override
|
|
825
|
+
*/
|
|
826
|
+
proto.payment.DepositRedirectFormResponse.displayName = 'proto.payment.DepositRedirectFormResponse';
|
|
827
|
+
}
|
|
784
828
|
/**
|
|
785
829
|
* Generated by JsPbCodeGenerator.
|
|
786
830
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -11179,6 +11223,266 @@ proto.payment.ProcessedDepositResponse.prototype.setStatus = function(value) {
|
|
|
11179
11223
|
|
|
11180
11224
|
|
|
11181
11225
|
|
|
11226
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11227
|
+
/**
|
|
11228
|
+
* Creates an object representation of this proto.
|
|
11229
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11230
|
+
* Optional fields that are not set will be set to undefined.
|
|
11231
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11232
|
+
* For the list of reserved names please see:
|
|
11233
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11234
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11235
|
+
* JSPB instance for transitional soy proto support:
|
|
11236
|
+
* http://goto/soy-param-migration
|
|
11237
|
+
* @return {!Object}
|
|
11238
|
+
*/
|
|
11239
|
+
proto.payment.DepositRedirectFormRequest.prototype.toObject = function(opt_includeInstance) {
|
|
11240
|
+
return proto.payment.DepositRedirectFormRequest.toObject(opt_includeInstance, this);
|
|
11241
|
+
};
|
|
11242
|
+
|
|
11243
|
+
|
|
11244
|
+
/**
|
|
11245
|
+
* Static version of the {@see toObject} method.
|
|
11246
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11247
|
+
* the JSPB instance for transitional soy proto support:
|
|
11248
|
+
* http://goto/soy-param-migration
|
|
11249
|
+
* @param {!proto.payment.DepositRedirectFormRequest} msg The msg instance to transform.
|
|
11250
|
+
* @return {!Object}
|
|
11251
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11252
|
+
*/
|
|
11253
|
+
proto.payment.DepositRedirectFormRequest.toObject = function(includeInstance, msg) {
|
|
11254
|
+
var f, obj = {
|
|
11255
|
+
transactionHash: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
11256
|
+
};
|
|
11257
|
+
|
|
11258
|
+
if (includeInstance) {
|
|
11259
|
+
obj.$jspbMessageInstance = msg;
|
|
11260
|
+
}
|
|
11261
|
+
return obj;
|
|
11262
|
+
};
|
|
11263
|
+
}
|
|
11264
|
+
|
|
11265
|
+
|
|
11266
|
+
/**
|
|
11267
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11268
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11269
|
+
* @return {!proto.payment.DepositRedirectFormRequest}
|
|
11270
|
+
*/
|
|
11271
|
+
proto.payment.DepositRedirectFormRequest.deserializeBinary = function(bytes) {
|
|
11272
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11273
|
+
var msg = new proto.payment.DepositRedirectFormRequest;
|
|
11274
|
+
return proto.payment.DepositRedirectFormRequest.deserializeBinaryFromReader(msg, reader);
|
|
11275
|
+
};
|
|
11276
|
+
|
|
11277
|
+
|
|
11278
|
+
/**
|
|
11279
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11280
|
+
* given reader into the given message object.
|
|
11281
|
+
* @param {!proto.payment.DepositRedirectFormRequest} msg The message object to deserialize into.
|
|
11282
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11283
|
+
* @return {!proto.payment.DepositRedirectFormRequest}
|
|
11284
|
+
*/
|
|
11285
|
+
proto.payment.DepositRedirectFormRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
11286
|
+
while (reader.nextField()) {
|
|
11287
|
+
if (reader.isEndGroup()) {
|
|
11288
|
+
break;
|
|
11289
|
+
}
|
|
11290
|
+
var field = reader.getFieldNumber();
|
|
11291
|
+
switch (field) {
|
|
11292
|
+
case 1:
|
|
11293
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11294
|
+
msg.setTransactionHash(value);
|
|
11295
|
+
break;
|
|
11296
|
+
default:
|
|
11297
|
+
reader.skipField();
|
|
11298
|
+
break;
|
|
11299
|
+
}
|
|
11300
|
+
}
|
|
11301
|
+
return msg;
|
|
11302
|
+
};
|
|
11303
|
+
|
|
11304
|
+
|
|
11305
|
+
/**
|
|
11306
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11307
|
+
* @return {!Uint8Array}
|
|
11308
|
+
*/
|
|
11309
|
+
proto.payment.DepositRedirectFormRequest.prototype.serializeBinary = function() {
|
|
11310
|
+
var writer = new jspb.BinaryWriter();
|
|
11311
|
+
proto.payment.DepositRedirectFormRequest.serializeBinaryToWriter(this, writer);
|
|
11312
|
+
return writer.getResultBuffer();
|
|
11313
|
+
};
|
|
11314
|
+
|
|
11315
|
+
|
|
11316
|
+
/**
|
|
11317
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11318
|
+
* format), writing to the given BinaryWriter.
|
|
11319
|
+
* @param {!proto.payment.DepositRedirectFormRequest} message
|
|
11320
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11321
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11322
|
+
*/
|
|
11323
|
+
proto.payment.DepositRedirectFormRequest.serializeBinaryToWriter = function(message, writer) {
|
|
11324
|
+
var f = undefined;
|
|
11325
|
+
f = message.getTransactionHash();
|
|
11326
|
+
if (f.length > 0) {
|
|
11327
|
+
writer.writeString(
|
|
11328
|
+
1,
|
|
11329
|
+
f
|
|
11330
|
+
);
|
|
11331
|
+
}
|
|
11332
|
+
};
|
|
11333
|
+
|
|
11334
|
+
|
|
11335
|
+
/**
|
|
11336
|
+
* optional string transaction_hash = 1;
|
|
11337
|
+
* @return {string}
|
|
11338
|
+
*/
|
|
11339
|
+
proto.payment.DepositRedirectFormRequest.prototype.getTransactionHash = function() {
|
|
11340
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
11341
|
+
};
|
|
11342
|
+
|
|
11343
|
+
|
|
11344
|
+
/**
|
|
11345
|
+
* @param {string} value
|
|
11346
|
+
* @return {!proto.payment.DepositRedirectFormRequest} returns this
|
|
11347
|
+
*/
|
|
11348
|
+
proto.payment.DepositRedirectFormRequest.prototype.setTransactionHash = function(value) {
|
|
11349
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
11350
|
+
};
|
|
11351
|
+
|
|
11352
|
+
|
|
11353
|
+
|
|
11354
|
+
|
|
11355
|
+
|
|
11356
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11357
|
+
/**
|
|
11358
|
+
* Creates an object representation of this proto.
|
|
11359
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11360
|
+
* Optional fields that are not set will be set to undefined.
|
|
11361
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11362
|
+
* For the list of reserved names please see:
|
|
11363
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11364
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11365
|
+
* JSPB instance for transitional soy proto support:
|
|
11366
|
+
* http://goto/soy-param-migration
|
|
11367
|
+
* @return {!Object}
|
|
11368
|
+
*/
|
|
11369
|
+
proto.payment.DepositRedirectFormResponse.prototype.toObject = function(opt_includeInstance) {
|
|
11370
|
+
return proto.payment.DepositRedirectFormResponse.toObject(opt_includeInstance, this);
|
|
11371
|
+
};
|
|
11372
|
+
|
|
11373
|
+
|
|
11374
|
+
/**
|
|
11375
|
+
* Static version of the {@see toObject} method.
|
|
11376
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11377
|
+
* the JSPB instance for transitional soy proto support:
|
|
11378
|
+
* http://goto/soy-param-migration
|
|
11379
|
+
* @param {!proto.payment.DepositRedirectFormResponse} msg The msg instance to transform.
|
|
11380
|
+
* @return {!Object}
|
|
11381
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11382
|
+
*/
|
|
11383
|
+
proto.payment.DepositRedirectFormResponse.toObject = function(includeInstance, msg) {
|
|
11384
|
+
var f, obj = {
|
|
11385
|
+
content: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
11386
|
+
};
|
|
11387
|
+
|
|
11388
|
+
if (includeInstance) {
|
|
11389
|
+
obj.$jspbMessageInstance = msg;
|
|
11390
|
+
}
|
|
11391
|
+
return obj;
|
|
11392
|
+
};
|
|
11393
|
+
}
|
|
11394
|
+
|
|
11395
|
+
|
|
11396
|
+
/**
|
|
11397
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11398
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11399
|
+
* @return {!proto.payment.DepositRedirectFormResponse}
|
|
11400
|
+
*/
|
|
11401
|
+
proto.payment.DepositRedirectFormResponse.deserializeBinary = function(bytes) {
|
|
11402
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11403
|
+
var msg = new proto.payment.DepositRedirectFormResponse;
|
|
11404
|
+
return proto.payment.DepositRedirectFormResponse.deserializeBinaryFromReader(msg, reader);
|
|
11405
|
+
};
|
|
11406
|
+
|
|
11407
|
+
|
|
11408
|
+
/**
|
|
11409
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11410
|
+
* given reader into the given message object.
|
|
11411
|
+
* @param {!proto.payment.DepositRedirectFormResponse} msg The message object to deserialize into.
|
|
11412
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11413
|
+
* @return {!proto.payment.DepositRedirectFormResponse}
|
|
11414
|
+
*/
|
|
11415
|
+
proto.payment.DepositRedirectFormResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
11416
|
+
while (reader.nextField()) {
|
|
11417
|
+
if (reader.isEndGroup()) {
|
|
11418
|
+
break;
|
|
11419
|
+
}
|
|
11420
|
+
var field = reader.getFieldNumber();
|
|
11421
|
+
switch (field) {
|
|
11422
|
+
case 1:
|
|
11423
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11424
|
+
msg.setContent(value);
|
|
11425
|
+
break;
|
|
11426
|
+
default:
|
|
11427
|
+
reader.skipField();
|
|
11428
|
+
break;
|
|
11429
|
+
}
|
|
11430
|
+
}
|
|
11431
|
+
return msg;
|
|
11432
|
+
};
|
|
11433
|
+
|
|
11434
|
+
|
|
11435
|
+
/**
|
|
11436
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11437
|
+
* @return {!Uint8Array}
|
|
11438
|
+
*/
|
|
11439
|
+
proto.payment.DepositRedirectFormResponse.prototype.serializeBinary = function() {
|
|
11440
|
+
var writer = new jspb.BinaryWriter();
|
|
11441
|
+
proto.payment.DepositRedirectFormResponse.serializeBinaryToWriter(this, writer);
|
|
11442
|
+
return writer.getResultBuffer();
|
|
11443
|
+
};
|
|
11444
|
+
|
|
11445
|
+
|
|
11446
|
+
/**
|
|
11447
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11448
|
+
* format), writing to the given BinaryWriter.
|
|
11449
|
+
* @param {!proto.payment.DepositRedirectFormResponse} message
|
|
11450
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11451
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11452
|
+
*/
|
|
11453
|
+
proto.payment.DepositRedirectFormResponse.serializeBinaryToWriter = function(message, writer) {
|
|
11454
|
+
var f = undefined;
|
|
11455
|
+
f = message.getContent();
|
|
11456
|
+
if (f.length > 0) {
|
|
11457
|
+
writer.writeString(
|
|
11458
|
+
1,
|
|
11459
|
+
f
|
|
11460
|
+
);
|
|
11461
|
+
}
|
|
11462
|
+
};
|
|
11463
|
+
|
|
11464
|
+
|
|
11465
|
+
/**
|
|
11466
|
+
* optional string content = 1;
|
|
11467
|
+
* @return {string}
|
|
11468
|
+
*/
|
|
11469
|
+
proto.payment.DepositRedirectFormResponse.prototype.getContent = function() {
|
|
11470
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
11471
|
+
};
|
|
11472
|
+
|
|
11473
|
+
|
|
11474
|
+
/**
|
|
11475
|
+
* @param {string} value
|
|
11476
|
+
* @return {!proto.payment.DepositRedirectFormResponse} returns this
|
|
11477
|
+
*/
|
|
11478
|
+
proto.payment.DepositRedirectFormResponse.prototype.setContent = function(value) {
|
|
11479
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
11480
|
+
};
|
|
11481
|
+
|
|
11482
|
+
|
|
11483
|
+
|
|
11484
|
+
|
|
11485
|
+
|
|
11182
11486
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11183
11487
|
/**
|
|
11184
11488
|
* Creates an object representation of this proto.
|