protobuf-platform 1.0.264 → 1.0.266
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 +22 -0
- package/payment/payment_grpc_pb.js +44 -0
- package/payment/payment_pb.js +940 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -18,6 +18,8 @@ service Payment {
|
|
18
18
|
rpc deleteSingleMethod(GetMethodRequest) returns (PaymentStatusResponse);
|
19
19
|
rpc readListMethods(PaginationRequest) returns (MethodItemsResponse);
|
20
20
|
rpc readListPoorMethods(PoorMethodsRequest) returns (MethodItemsResponse);
|
21
|
+
rpc setPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentStatusResponse);
|
22
|
+
rpc readPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentMethodConfigResponse);
|
21
23
|
//Deposit
|
22
24
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
23
25
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
@@ -126,6 +128,26 @@ message MethodItemsResponse {
|
|
126
128
|
message PoorMethodsRequest {
|
127
129
|
repeated int32 method_ids = 1;
|
128
130
|
}
|
131
|
+
message PaymentMethodConfigRequest {
|
132
|
+
int32 method_id = 1;
|
133
|
+
string country = 2;
|
134
|
+
string currency = 3;
|
135
|
+
optional int32 is_active = 4;
|
136
|
+
optional float min_amount = 5;
|
137
|
+
optional float max_amount = 6;
|
138
|
+
optional string type = 7;
|
139
|
+
optional string config = 8;
|
140
|
+
}
|
141
|
+
message PaymentMethodConfigResponse {
|
142
|
+
int32 method_id = 1;
|
143
|
+
optional string country = 2;
|
144
|
+
optional string currency = 3;
|
145
|
+
optional int32 is_active = 4;
|
146
|
+
optional float min_amount = 5;
|
147
|
+
optional float max_amount = 6;
|
148
|
+
optional string type = 7;
|
149
|
+
optional string config = 8;
|
150
|
+
}
|
129
151
|
//Deposit
|
130
152
|
message AttemptDepositRequest {
|
131
153
|
int32 payment_method_id = 1;
|
@@ -158,6 +158,28 @@ function deserialize_payment_PaginationRequest(buffer_arg) {
|
|
158
158
|
return payment_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
159
159
|
}
|
160
160
|
|
161
|
+
function serialize_payment_PaymentMethodConfigRequest(arg) {
|
162
|
+
if (!(arg instanceof payment_pb.PaymentMethodConfigRequest)) {
|
163
|
+
throw new Error('Expected argument of type payment.PaymentMethodConfigRequest');
|
164
|
+
}
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
166
|
+
}
|
167
|
+
|
168
|
+
function deserialize_payment_PaymentMethodConfigRequest(buffer_arg) {
|
169
|
+
return payment_pb.PaymentMethodConfigRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
170
|
+
}
|
171
|
+
|
172
|
+
function serialize_payment_PaymentMethodConfigResponse(arg) {
|
173
|
+
if (!(arg instanceof payment_pb.PaymentMethodConfigResponse)) {
|
174
|
+
throw new Error('Expected argument of type payment.PaymentMethodConfigResponse');
|
175
|
+
}
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
177
|
+
}
|
178
|
+
|
179
|
+
function deserialize_payment_PaymentMethodConfigResponse(buffer_arg) {
|
180
|
+
return payment_pb.PaymentMethodConfigResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
181
|
+
}
|
182
|
+
|
161
183
|
function serialize_payment_PaymentStatusResponse(arg) {
|
162
184
|
if (!(arg instanceof payment_pb.PaymentStatusResponse)) {
|
163
185
|
throw new Error('Expected argument of type payment.PaymentStatusResponse');
|
@@ -404,6 +426,28 @@ createSingleMethod: {
|
|
404
426
|
responseSerialize: serialize_payment_MethodItemsResponse,
|
405
427
|
responseDeserialize: deserialize_payment_MethodItemsResponse,
|
406
428
|
},
|
429
|
+
setPaymentMethodConfig: {
|
430
|
+
path: '/payment.Payment/setPaymentMethodConfig',
|
431
|
+
requestStream: false,
|
432
|
+
responseStream: false,
|
433
|
+
requestType: payment_pb.PaymentMethodConfigRequest,
|
434
|
+
responseType: payment_pb.PaymentStatusResponse,
|
435
|
+
requestSerialize: serialize_payment_PaymentMethodConfigRequest,
|
436
|
+
requestDeserialize: deserialize_payment_PaymentMethodConfigRequest,
|
437
|
+
responseSerialize: serialize_payment_PaymentStatusResponse,
|
438
|
+
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
439
|
+
},
|
440
|
+
readPaymentMethodConfig: {
|
441
|
+
path: '/payment.Payment/readPaymentMethodConfig',
|
442
|
+
requestStream: false,
|
443
|
+
responseStream: false,
|
444
|
+
requestType: payment_pb.PaymentMethodConfigRequest,
|
445
|
+
responseType: payment_pb.PaymentMethodConfigResponse,
|
446
|
+
requestSerialize: serialize_payment_PaymentMethodConfigRequest,
|
447
|
+
requestDeserialize: deserialize_payment_PaymentMethodConfigRequest,
|
448
|
+
responseSerialize: serialize_payment_PaymentMethodConfigResponse,
|
449
|
+
responseDeserialize: deserialize_payment_PaymentMethodConfigResponse,
|
450
|
+
},
|
407
451
|
// Deposit
|
408
452
|
attemptDeposit: {
|
409
453
|
path: '/payment.Payment/attemptDeposit',
|
package/payment/payment_pb.js
CHANGED
@@ -40,6 +40,8 @@ goog.exportSymbol('proto.payment.MethodRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.payment.MethodRequest.RequestCase', null, global);
|
41
41
|
goog.exportSymbol('proto.payment.MethodResponse', null, global);
|
42
42
|
goog.exportSymbol('proto.payment.PaginationRequest', null, global);
|
43
|
+
goog.exportSymbol('proto.payment.PaymentMethodConfigRequest', null, global);
|
44
|
+
goog.exportSymbol('proto.payment.PaymentMethodConfigResponse', null, global);
|
43
45
|
goog.exportSymbol('proto.payment.PaymentSearchRequest', null, global);
|
44
46
|
goog.exportSymbol('proto.payment.PaymentStatusResponse', null, global);
|
45
47
|
goog.exportSymbol('proto.payment.PingRequest', null, global);
|
@@ -474,6 +476,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
474
476
|
*/
|
475
477
|
proto.payment.PoorMethodsRequest.displayName = 'proto.payment.PoorMethodsRequest';
|
476
478
|
}
|
479
|
+
/**
|
480
|
+
* Generated by JsPbCodeGenerator.
|
481
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
482
|
+
* server response, or constructed directly in Javascript. The array is used
|
483
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
484
|
+
* If no data is provided, the constructed object will be empty, but still
|
485
|
+
* valid.
|
486
|
+
* @extends {jspb.Message}
|
487
|
+
* @constructor
|
488
|
+
*/
|
489
|
+
proto.payment.PaymentMethodConfigRequest = function(opt_data) {
|
490
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
491
|
+
};
|
492
|
+
goog.inherits(proto.payment.PaymentMethodConfigRequest, jspb.Message);
|
493
|
+
if (goog.DEBUG && !COMPILED) {
|
494
|
+
/**
|
495
|
+
* @public
|
496
|
+
* @override
|
497
|
+
*/
|
498
|
+
proto.payment.PaymentMethodConfigRequest.displayName = 'proto.payment.PaymentMethodConfigRequest';
|
499
|
+
}
|
500
|
+
/**
|
501
|
+
* Generated by JsPbCodeGenerator.
|
502
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
503
|
+
* server response, or constructed directly in Javascript. The array is used
|
504
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
505
|
+
* If no data is provided, the constructed object will be empty, but still
|
506
|
+
* valid.
|
507
|
+
* @extends {jspb.Message}
|
508
|
+
* @constructor
|
509
|
+
*/
|
510
|
+
proto.payment.PaymentMethodConfigResponse = function(opt_data) {
|
511
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
512
|
+
};
|
513
|
+
goog.inherits(proto.payment.PaymentMethodConfigResponse, jspb.Message);
|
514
|
+
if (goog.DEBUG && !COMPILED) {
|
515
|
+
/**
|
516
|
+
* @public
|
517
|
+
* @override
|
518
|
+
*/
|
519
|
+
proto.payment.PaymentMethodConfigResponse.displayName = 'proto.payment.PaymentMethodConfigResponse';
|
520
|
+
}
|
477
521
|
/**
|
478
522
|
* Generated by JsPbCodeGenerator.
|
479
523
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5668,6 +5712,902 @@ proto.payment.PoorMethodsRequest.prototype.clearMethodIdsList = function() {
|
|
5668
5712
|
|
5669
5713
|
|
5670
5714
|
|
5715
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5716
|
+
/**
|
5717
|
+
* Creates an object representation of this proto.
|
5718
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5719
|
+
* Optional fields that are not set will be set to undefined.
|
5720
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5721
|
+
* For the list of reserved names please see:
|
5722
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5723
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5724
|
+
* JSPB instance for transitional soy proto support:
|
5725
|
+
* http://goto/soy-param-migration
|
5726
|
+
* @return {!Object}
|
5727
|
+
*/
|
5728
|
+
proto.payment.PaymentMethodConfigRequest.prototype.toObject = function(opt_includeInstance) {
|
5729
|
+
return proto.payment.PaymentMethodConfigRequest.toObject(opt_includeInstance, this);
|
5730
|
+
};
|
5731
|
+
|
5732
|
+
|
5733
|
+
/**
|
5734
|
+
* Static version of the {@see toObject} method.
|
5735
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5736
|
+
* the JSPB instance for transitional soy proto support:
|
5737
|
+
* http://goto/soy-param-migration
|
5738
|
+
* @param {!proto.payment.PaymentMethodConfigRequest} msg The msg instance to transform.
|
5739
|
+
* @return {!Object}
|
5740
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5741
|
+
*/
|
5742
|
+
proto.payment.PaymentMethodConfigRequest.toObject = function(includeInstance, msg) {
|
5743
|
+
var f, obj = {
|
5744
|
+
methodId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5745
|
+
country: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5746
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
5747
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
5748
|
+
minAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
5749
|
+
maxAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
5750
|
+
type: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
5751
|
+
config: jspb.Message.getFieldWithDefault(msg, 8, "")
|
5752
|
+
};
|
5753
|
+
|
5754
|
+
if (includeInstance) {
|
5755
|
+
obj.$jspbMessageInstance = msg;
|
5756
|
+
}
|
5757
|
+
return obj;
|
5758
|
+
};
|
5759
|
+
}
|
5760
|
+
|
5761
|
+
|
5762
|
+
/**
|
5763
|
+
* Deserializes binary data (in protobuf wire format).
|
5764
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5765
|
+
* @return {!proto.payment.PaymentMethodConfigRequest}
|
5766
|
+
*/
|
5767
|
+
proto.payment.PaymentMethodConfigRequest.deserializeBinary = function(bytes) {
|
5768
|
+
var reader = new jspb.BinaryReader(bytes);
|
5769
|
+
var msg = new proto.payment.PaymentMethodConfigRequest;
|
5770
|
+
return proto.payment.PaymentMethodConfigRequest.deserializeBinaryFromReader(msg, reader);
|
5771
|
+
};
|
5772
|
+
|
5773
|
+
|
5774
|
+
/**
|
5775
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5776
|
+
* given reader into the given message object.
|
5777
|
+
* @param {!proto.payment.PaymentMethodConfigRequest} msg The message object to deserialize into.
|
5778
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5779
|
+
* @return {!proto.payment.PaymentMethodConfigRequest}
|
5780
|
+
*/
|
5781
|
+
proto.payment.PaymentMethodConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5782
|
+
while (reader.nextField()) {
|
5783
|
+
if (reader.isEndGroup()) {
|
5784
|
+
break;
|
5785
|
+
}
|
5786
|
+
var field = reader.getFieldNumber();
|
5787
|
+
switch (field) {
|
5788
|
+
case 1:
|
5789
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5790
|
+
msg.setMethodId(value);
|
5791
|
+
break;
|
5792
|
+
case 2:
|
5793
|
+
var value = /** @type {string} */ (reader.readString());
|
5794
|
+
msg.setCountry(value);
|
5795
|
+
break;
|
5796
|
+
case 3:
|
5797
|
+
var value = /** @type {string} */ (reader.readString());
|
5798
|
+
msg.setCurrency(value);
|
5799
|
+
break;
|
5800
|
+
case 4:
|
5801
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5802
|
+
msg.setIsActive(value);
|
5803
|
+
break;
|
5804
|
+
case 5:
|
5805
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5806
|
+
msg.setMinAmount(value);
|
5807
|
+
break;
|
5808
|
+
case 6:
|
5809
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5810
|
+
msg.setMaxAmount(value);
|
5811
|
+
break;
|
5812
|
+
case 7:
|
5813
|
+
var value = /** @type {string} */ (reader.readString());
|
5814
|
+
msg.setType(value);
|
5815
|
+
break;
|
5816
|
+
case 8:
|
5817
|
+
var value = /** @type {string} */ (reader.readString());
|
5818
|
+
msg.setConfig(value);
|
5819
|
+
break;
|
5820
|
+
default:
|
5821
|
+
reader.skipField();
|
5822
|
+
break;
|
5823
|
+
}
|
5824
|
+
}
|
5825
|
+
return msg;
|
5826
|
+
};
|
5827
|
+
|
5828
|
+
|
5829
|
+
/**
|
5830
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5831
|
+
* @return {!Uint8Array}
|
5832
|
+
*/
|
5833
|
+
proto.payment.PaymentMethodConfigRequest.prototype.serializeBinary = function() {
|
5834
|
+
var writer = new jspb.BinaryWriter();
|
5835
|
+
proto.payment.PaymentMethodConfigRequest.serializeBinaryToWriter(this, writer);
|
5836
|
+
return writer.getResultBuffer();
|
5837
|
+
};
|
5838
|
+
|
5839
|
+
|
5840
|
+
/**
|
5841
|
+
* Serializes the given message to binary data (in protobuf wire
|
5842
|
+
* format), writing to the given BinaryWriter.
|
5843
|
+
* @param {!proto.payment.PaymentMethodConfigRequest} message
|
5844
|
+
* @param {!jspb.BinaryWriter} writer
|
5845
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5846
|
+
*/
|
5847
|
+
proto.payment.PaymentMethodConfigRequest.serializeBinaryToWriter = function(message, writer) {
|
5848
|
+
var f = undefined;
|
5849
|
+
f = message.getMethodId();
|
5850
|
+
if (f !== 0) {
|
5851
|
+
writer.writeInt32(
|
5852
|
+
1,
|
5853
|
+
f
|
5854
|
+
);
|
5855
|
+
}
|
5856
|
+
f = message.getCountry();
|
5857
|
+
if (f.length > 0) {
|
5858
|
+
writer.writeString(
|
5859
|
+
2,
|
5860
|
+
f
|
5861
|
+
);
|
5862
|
+
}
|
5863
|
+
f = message.getCurrency();
|
5864
|
+
if (f.length > 0) {
|
5865
|
+
writer.writeString(
|
5866
|
+
3,
|
5867
|
+
f
|
5868
|
+
);
|
5869
|
+
}
|
5870
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5871
|
+
if (f != null) {
|
5872
|
+
writer.writeInt32(
|
5873
|
+
4,
|
5874
|
+
f
|
5875
|
+
);
|
5876
|
+
}
|
5877
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
5878
|
+
if (f != null) {
|
5879
|
+
writer.writeFloat(
|
5880
|
+
5,
|
5881
|
+
f
|
5882
|
+
);
|
5883
|
+
}
|
5884
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
5885
|
+
if (f != null) {
|
5886
|
+
writer.writeFloat(
|
5887
|
+
6,
|
5888
|
+
f
|
5889
|
+
);
|
5890
|
+
}
|
5891
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
5892
|
+
if (f != null) {
|
5893
|
+
writer.writeString(
|
5894
|
+
7,
|
5895
|
+
f
|
5896
|
+
);
|
5897
|
+
}
|
5898
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
5899
|
+
if (f != null) {
|
5900
|
+
writer.writeString(
|
5901
|
+
8,
|
5902
|
+
f
|
5903
|
+
);
|
5904
|
+
}
|
5905
|
+
};
|
5906
|
+
|
5907
|
+
|
5908
|
+
/**
|
5909
|
+
* optional int32 method_id = 1;
|
5910
|
+
* @return {number}
|
5911
|
+
*/
|
5912
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getMethodId = function() {
|
5913
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5914
|
+
};
|
5915
|
+
|
5916
|
+
|
5917
|
+
/**
|
5918
|
+
* @param {number} value
|
5919
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
5920
|
+
*/
|
5921
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setMethodId = function(value) {
|
5922
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5923
|
+
};
|
5924
|
+
|
5925
|
+
|
5926
|
+
/**
|
5927
|
+
* optional string country = 2;
|
5928
|
+
* @return {string}
|
5929
|
+
*/
|
5930
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getCountry = function() {
|
5931
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5932
|
+
};
|
5933
|
+
|
5934
|
+
|
5935
|
+
/**
|
5936
|
+
* @param {string} value
|
5937
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
5938
|
+
*/
|
5939
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setCountry = function(value) {
|
5940
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5941
|
+
};
|
5942
|
+
|
5943
|
+
|
5944
|
+
/**
|
5945
|
+
* optional string currency = 3;
|
5946
|
+
* @return {string}
|
5947
|
+
*/
|
5948
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getCurrency = function() {
|
5949
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5950
|
+
};
|
5951
|
+
|
5952
|
+
|
5953
|
+
/**
|
5954
|
+
* @param {string} value
|
5955
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
5956
|
+
*/
|
5957
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setCurrency = function(value) {
|
5958
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
5959
|
+
};
|
5960
|
+
|
5961
|
+
|
5962
|
+
/**
|
5963
|
+
* optional int32 is_active = 4;
|
5964
|
+
* @return {number}
|
5965
|
+
*/
|
5966
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getIsActive = function() {
|
5967
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5968
|
+
};
|
5969
|
+
|
5970
|
+
|
5971
|
+
/**
|
5972
|
+
* @param {number} value
|
5973
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
5974
|
+
*/
|
5975
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setIsActive = function(value) {
|
5976
|
+
return jspb.Message.setField(this, 4, value);
|
5977
|
+
};
|
5978
|
+
|
5979
|
+
|
5980
|
+
/**
|
5981
|
+
* Clears the field making it undefined.
|
5982
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
5983
|
+
*/
|
5984
|
+
proto.payment.PaymentMethodConfigRequest.prototype.clearIsActive = function() {
|
5985
|
+
return jspb.Message.setField(this, 4, undefined);
|
5986
|
+
};
|
5987
|
+
|
5988
|
+
|
5989
|
+
/**
|
5990
|
+
* Returns whether this field is set.
|
5991
|
+
* @return {boolean}
|
5992
|
+
*/
|
5993
|
+
proto.payment.PaymentMethodConfigRequest.prototype.hasIsActive = function() {
|
5994
|
+
return jspb.Message.getField(this, 4) != null;
|
5995
|
+
};
|
5996
|
+
|
5997
|
+
|
5998
|
+
/**
|
5999
|
+
* optional float min_amount = 5;
|
6000
|
+
* @return {number}
|
6001
|
+
*/
|
6002
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getMinAmount = function() {
|
6003
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
6004
|
+
};
|
6005
|
+
|
6006
|
+
|
6007
|
+
/**
|
6008
|
+
* @param {number} value
|
6009
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6010
|
+
*/
|
6011
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setMinAmount = function(value) {
|
6012
|
+
return jspb.Message.setField(this, 5, value);
|
6013
|
+
};
|
6014
|
+
|
6015
|
+
|
6016
|
+
/**
|
6017
|
+
* Clears the field making it undefined.
|
6018
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6019
|
+
*/
|
6020
|
+
proto.payment.PaymentMethodConfigRequest.prototype.clearMinAmount = function() {
|
6021
|
+
return jspb.Message.setField(this, 5, undefined);
|
6022
|
+
};
|
6023
|
+
|
6024
|
+
|
6025
|
+
/**
|
6026
|
+
* Returns whether this field is set.
|
6027
|
+
* @return {boolean}
|
6028
|
+
*/
|
6029
|
+
proto.payment.PaymentMethodConfigRequest.prototype.hasMinAmount = function() {
|
6030
|
+
return jspb.Message.getField(this, 5) != null;
|
6031
|
+
};
|
6032
|
+
|
6033
|
+
|
6034
|
+
/**
|
6035
|
+
* optional float max_amount = 6;
|
6036
|
+
* @return {number}
|
6037
|
+
*/
|
6038
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getMaxAmount = function() {
|
6039
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
6040
|
+
};
|
6041
|
+
|
6042
|
+
|
6043
|
+
/**
|
6044
|
+
* @param {number} value
|
6045
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6046
|
+
*/
|
6047
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setMaxAmount = function(value) {
|
6048
|
+
return jspb.Message.setField(this, 6, value);
|
6049
|
+
};
|
6050
|
+
|
6051
|
+
|
6052
|
+
/**
|
6053
|
+
* Clears the field making it undefined.
|
6054
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6055
|
+
*/
|
6056
|
+
proto.payment.PaymentMethodConfigRequest.prototype.clearMaxAmount = function() {
|
6057
|
+
return jspb.Message.setField(this, 6, undefined);
|
6058
|
+
};
|
6059
|
+
|
6060
|
+
|
6061
|
+
/**
|
6062
|
+
* Returns whether this field is set.
|
6063
|
+
* @return {boolean}
|
6064
|
+
*/
|
6065
|
+
proto.payment.PaymentMethodConfigRequest.prototype.hasMaxAmount = function() {
|
6066
|
+
return jspb.Message.getField(this, 6) != null;
|
6067
|
+
};
|
6068
|
+
|
6069
|
+
|
6070
|
+
/**
|
6071
|
+
* optional string type = 7;
|
6072
|
+
* @return {string}
|
6073
|
+
*/
|
6074
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getType = function() {
|
6075
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
6076
|
+
};
|
6077
|
+
|
6078
|
+
|
6079
|
+
/**
|
6080
|
+
* @param {string} value
|
6081
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6082
|
+
*/
|
6083
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setType = function(value) {
|
6084
|
+
return jspb.Message.setField(this, 7, value);
|
6085
|
+
};
|
6086
|
+
|
6087
|
+
|
6088
|
+
/**
|
6089
|
+
* Clears the field making it undefined.
|
6090
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6091
|
+
*/
|
6092
|
+
proto.payment.PaymentMethodConfigRequest.prototype.clearType = function() {
|
6093
|
+
return jspb.Message.setField(this, 7, undefined);
|
6094
|
+
};
|
6095
|
+
|
6096
|
+
|
6097
|
+
/**
|
6098
|
+
* Returns whether this field is set.
|
6099
|
+
* @return {boolean}
|
6100
|
+
*/
|
6101
|
+
proto.payment.PaymentMethodConfigRequest.prototype.hasType = function() {
|
6102
|
+
return jspb.Message.getField(this, 7) != null;
|
6103
|
+
};
|
6104
|
+
|
6105
|
+
|
6106
|
+
/**
|
6107
|
+
* optional string config = 8;
|
6108
|
+
* @return {string}
|
6109
|
+
*/
|
6110
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getConfig = function() {
|
6111
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
6112
|
+
};
|
6113
|
+
|
6114
|
+
|
6115
|
+
/**
|
6116
|
+
* @param {string} value
|
6117
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6118
|
+
*/
|
6119
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setConfig = function(value) {
|
6120
|
+
return jspb.Message.setField(this, 8, value);
|
6121
|
+
};
|
6122
|
+
|
6123
|
+
|
6124
|
+
/**
|
6125
|
+
* Clears the field making it undefined.
|
6126
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
6127
|
+
*/
|
6128
|
+
proto.payment.PaymentMethodConfigRequest.prototype.clearConfig = function() {
|
6129
|
+
return jspb.Message.setField(this, 8, undefined);
|
6130
|
+
};
|
6131
|
+
|
6132
|
+
|
6133
|
+
/**
|
6134
|
+
* Returns whether this field is set.
|
6135
|
+
* @return {boolean}
|
6136
|
+
*/
|
6137
|
+
proto.payment.PaymentMethodConfigRequest.prototype.hasConfig = function() {
|
6138
|
+
return jspb.Message.getField(this, 8) != null;
|
6139
|
+
};
|
6140
|
+
|
6141
|
+
|
6142
|
+
|
6143
|
+
|
6144
|
+
|
6145
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6146
|
+
/**
|
6147
|
+
* Creates an object representation of this proto.
|
6148
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6149
|
+
* Optional fields that are not set will be set to undefined.
|
6150
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6151
|
+
* For the list of reserved names please see:
|
6152
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6153
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6154
|
+
* JSPB instance for transitional soy proto support:
|
6155
|
+
* http://goto/soy-param-migration
|
6156
|
+
* @return {!Object}
|
6157
|
+
*/
|
6158
|
+
proto.payment.PaymentMethodConfigResponse.prototype.toObject = function(opt_includeInstance) {
|
6159
|
+
return proto.payment.PaymentMethodConfigResponse.toObject(opt_includeInstance, this);
|
6160
|
+
};
|
6161
|
+
|
6162
|
+
|
6163
|
+
/**
|
6164
|
+
* Static version of the {@see toObject} method.
|
6165
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6166
|
+
* the JSPB instance for transitional soy proto support:
|
6167
|
+
* http://goto/soy-param-migration
|
6168
|
+
* @param {!proto.payment.PaymentMethodConfigResponse} msg The msg instance to transform.
|
6169
|
+
* @return {!Object}
|
6170
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6171
|
+
*/
|
6172
|
+
proto.payment.PaymentMethodConfigResponse.toObject = function(includeInstance, msg) {
|
6173
|
+
var f, obj = {
|
6174
|
+
methodId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6175
|
+
country: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
6176
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
6177
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
6178
|
+
minAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
6179
|
+
maxAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
6180
|
+
type: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
6181
|
+
config: jspb.Message.getFieldWithDefault(msg, 8, "")
|
6182
|
+
};
|
6183
|
+
|
6184
|
+
if (includeInstance) {
|
6185
|
+
obj.$jspbMessageInstance = msg;
|
6186
|
+
}
|
6187
|
+
return obj;
|
6188
|
+
};
|
6189
|
+
}
|
6190
|
+
|
6191
|
+
|
6192
|
+
/**
|
6193
|
+
* Deserializes binary data (in protobuf wire format).
|
6194
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6195
|
+
* @return {!proto.payment.PaymentMethodConfigResponse}
|
6196
|
+
*/
|
6197
|
+
proto.payment.PaymentMethodConfigResponse.deserializeBinary = function(bytes) {
|
6198
|
+
var reader = new jspb.BinaryReader(bytes);
|
6199
|
+
var msg = new proto.payment.PaymentMethodConfigResponse;
|
6200
|
+
return proto.payment.PaymentMethodConfigResponse.deserializeBinaryFromReader(msg, reader);
|
6201
|
+
};
|
6202
|
+
|
6203
|
+
|
6204
|
+
/**
|
6205
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6206
|
+
* given reader into the given message object.
|
6207
|
+
* @param {!proto.payment.PaymentMethodConfigResponse} msg The message object to deserialize into.
|
6208
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6209
|
+
* @return {!proto.payment.PaymentMethodConfigResponse}
|
6210
|
+
*/
|
6211
|
+
proto.payment.PaymentMethodConfigResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6212
|
+
while (reader.nextField()) {
|
6213
|
+
if (reader.isEndGroup()) {
|
6214
|
+
break;
|
6215
|
+
}
|
6216
|
+
var field = reader.getFieldNumber();
|
6217
|
+
switch (field) {
|
6218
|
+
case 1:
|
6219
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6220
|
+
msg.setMethodId(value);
|
6221
|
+
break;
|
6222
|
+
case 2:
|
6223
|
+
var value = /** @type {string} */ (reader.readString());
|
6224
|
+
msg.setCountry(value);
|
6225
|
+
break;
|
6226
|
+
case 3:
|
6227
|
+
var value = /** @type {string} */ (reader.readString());
|
6228
|
+
msg.setCurrency(value);
|
6229
|
+
break;
|
6230
|
+
case 4:
|
6231
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6232
|
+
msg.setIsActive(value);
|
6233
|
+
break;
|
6234
|
+
case 5:
|
6235
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6236
|
+
msg.setMinAmount(value);
|
6237
|
+
break;
|
6238
|
+
case 6:
|
6239
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6240
|
+
msg.setMaxAmount(value);
|
6241
|
+
break;
|
6242
|
+
case 7:
|
6243
|
+
var value = /** @type {string} */ (reader.readString());
|
6244
|
+
msg.setType(value);
|
6245
|
+
break;
|
6246
|
+
case 8:
|
6247
|
+
var value = /** @type {string} */ (reader.readString());
|
6248
|
+
msg.setConfig(value);
|
6249
|
+
break;
|
6250
|
+
default:
|
6251
|
+
reader.skipField();
|
6252
|
+
break;
|
6253
|
+
}
|
6254
|
+
}
|
6255
|
+
return msg;
|
6256
|
+
};
|
6257
|
+
|
6258
|
+
|
6259
|
+
/**
|
6260
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6261
|
+
* @return {!Uint8Array}
|
6262
|
+
*/
|
6263
|
+
proto.payment.PaymentMethodConfigResponse.prototype.serializeBinary = function() {
|
6264
|
+
var writer = new jspb.BinaryWriter();
|
6265
|
+
proto.payment.PaymentMethodConfigResponse.serializeBinaryToWriter(this, writer);
|
6266
|
+
return writer.getResultBuffer();
|
6267
|
+
};
|
6268
|
+
|
6269
|
+
|
6270
|
+
/**
|
6271
|
+
* Serializes the given message to binary data (in protobuf wire
|
6272
|
+
* format), writing to the given BinaryWriter.
|
6273
|
+
* @param {!proto.payment.PaymentMethodConfigResponse} message
|
6274
|
+
* @param {!jspb.BinaryWriter} writer
|
6275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6276
|
+
*/
|
6277
|
+
proto.payment.PaymentMethodConfigResponse.serializeBinaryToWriter = function(message, writer) {
|
6278
|
+
var f = undefined;
|
6279
|
+
f = message.getMethodId();
|
6280
|
+
if (f !== 0) {
|
6281
|
+
writer.writeInt32(
|
6282
|
+
1,
|
6283
|
+
f
|
6284
|
+
);
|
6285
|
+
}
|
6286
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
6287
|
+
if (f != null) {
|
6288
|
+
writer.writeString(
|
6289
|
+
2,
|
6290
|
+
f
|
6291
|
+
);
|
6292
|
+
}
|
6293
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
6294
|
+
if (f != null) {
|
6295
|
+
writer.writeString(
|
6296
|
+
3,
|
6297
|
+
f
|
6298
|
+
);
|
6299
|
+
}
|
6300
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
6301
|
+
if (f != null) {
|
6302
|
+
writer.writeInt32(
|
6303
|
+
4,
|
6304
|
+
f
|
6305
|
+
);
|
6306
|
+
}
|
6307
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
6308
|
+
if (f != null) {
|
6309
|
+
writer.writeFloat(
|
6310
|
+
5,
|
6311
|
+
f
|
6312
|
+
);
|
6313
|
+
}
|
6314
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
6315
|
+
if (f != null) {
|
6316
|
+
writer.writeFloat(
|
6317
|
+
6,
|
6318
|
+
f
|
6319
|
+
);
|
6320
|
+
}
|
6321
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
6322
|
+
if (f != null) {
|
6323
|
+
writer.writeString(
|
6324
|
+
7,
|
6325
|
+
f
|
6326
|
+
);
|
6327
|
+
}
|
6328
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
6329
|
+
if (f != null) {
|
6330
|
+
writer.writeString(
|
6331
|
+
8,
|
6332
|
+
f
|
6333
|
+
);
|
6334
|
+
}
|
6335
|
+
};
|
6336
|
+
|
6337
|
+
|
6338
|
+
/**
|
6339
|
+
* optional int32 method_id = 1;
|
6340
|
+
* @return {number}
|
6341
|
+
*/
|
6342
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getMethodId = function() {
|
6343
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6344
|
+
};
|
6345
|
+
|
6346
|
+
|
6347
|
+
/**
|
6348
|
+
* @param {number} value
|
6349
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6350
|
+
*/
|
6351
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setMethodId = function(value) {
|
6352
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6353
|
+
};
|
6354
|
+
|
6355
|
+
|
6356
|
+
/**
|
6357
|
+
* optional string country = 2;
|
6358
|
+
* @return {string}
|
6359
|
+
*/
|
6360
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getCountry = function() {
|
6361
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
6362
|
+
};
|
6363
|
+
|
6364
|
+
|
6365
|
+
/**
|
6366
|
+
* @param {string} value
|
6367
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6368
|
+
*/
|
6369
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setCountry = function(value) {
|
6370
|
+
return jspb.Message.setField(this, 2, value);
|
6371
|
+
};
|
6372
|
+
|
6373
|
+
|
6374
|
+
/**
|
6375
|
+
* Clears the field making it undefined.
|
6376
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6377
|
+
*/
|
6378
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearCountry = function() {
|
6379
|
+
return jspb.Message.setField(this, 2, undefined);
|
6380
|
+
};
|
6381
|
+
|
6382
|
+
|
6383
|
+
/**
|
6384
|
+
* Returns whether this field is set.
|
6385
|
+
* @return {boolean}
|
6386
|
+
*/
|
6387
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasCountry = function() {
|
6388
|
+
return jspb.Message.getField(this, 2) != null;
|
6389
|
+
};
|
6390
|
+
|
6391
|
+
|
6392
|
+
/**
|
6393
|
+
* optional string currency = 3;
|
6394
|
+
* @return {string}
|
6395
|
+
*/
|
6396
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getCurrency = function() {
|
6397
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
6398
|
+
};
|
6399
|
+
|
6400
|
+
|
6401
|
+
/**
|
6402
|
+
* @param {string} value
|
6403
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6404
|
+
*/
|
6405
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setCurrency = function(value) {
|
6406
|
+
return jspb.Message.setField(this, 3, value);
|
6407
|
+
};
|
6408
|
+
|
6409
|
+
|
6410
|
+
/**
|
6411
|
+
* Clears the field making it undefined.
|
6412
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6413
|
+
*/
|
6414
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearCurrency = function() {
|
6415
|
+
return jspb.Message.setField(this, 3, undefined);
|
6416
|
+
};
|
6417
|
+
|
6418
|
+
|
6419
|
+
/**
|
6420
|
+
* Returns whether this field is set.
|
6421
|
+
* @return {boolean}
|
6422
|
+
*/
|
6423
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasCurrency = function() {
|
6424
|
+
return jspb.Message.getField(this, 3) != null;
|
6425
|
+
};
|
6426
|
+
|
6427
|
+
|
6428
|
+
/**
|
6429
|
+
* optional int32 is_active = 4;
|
6430
|
+
* @return {number}
|
6431
|
+
*/
|
6432
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getIsActive = function() {
|
6433
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
6434
|
+
};
|
6435
|
+
|
6436
|
+
|
6437
|
+
/**
|
6438
|
+
* @param {number} value
|
6439
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6440
|
+
*/
|
6441
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setIsActive = function(value) {
|
6442
|
+
return jspb.Message.setField(this, 4, value);
|
6443
|
+
};
|
6444
|
+
|
6445
|
+
|
6446
|
+
/**
|
6447
|
+
* Clears the field making it undefined.
|
6448
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6449
|
+
*/
|
6450
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearIsActive = function() {
|
6451
|
+
return jspb.Message.setField(this, 4, undefined);
|
6452
|
+
};
|
6453
|
+
|
6454
|
+
|
6455
|
+
/**
|
6456
|
+
* Returns whether this field is set.
|
6457
|
+
* @return {boolean}
|
6458
|
+
*/
|
6459
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasIsActive = function() {
|
6460
|
+
return jspb.Message.getField(this, 4) != null;
|
6461
|
+
};
|
6462
|
+
|
6463
|
+
|
6464
|
+
/**
|
6465
|
+
* optional float min_amount = 5;
|
6466
|
+
* @return {number}
|
6467
|
+
*/
|
6468
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getMinAmount = function() {
|
6469
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
6470
|
+
};
|
6471
|
+
|
6472
|
+
|
6473
|
+
/**
|
6474
|
+
* @param {number} value
|
6475
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6476
|
+
*/
|
6477
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setMinAmount = function(value) {
|
6478
|
+
return jspb.Message.setField(this, 5, value);
|
6479
|
+
};
|
6480
|
+
|
6481
|
+
|
6482
|
+
/**
|
6483
|
+
* Clears the field making it undefined.
|
6484
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6485
|
+
*/
|
6486
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearMinAmount = function() {
|
6487
|
+
return jspb.Message.setField(this, 5, undefined);
|
6488
|
+
};
|
6489
|
+
|
6490
|
+
|
6491
|
+
/**
|
6492
|
+
* Returns whether this field is set.
|
6493
|
+
* @return {boolean}
|
6494
|
+
*/
|
6495
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasMinAmount = function() {
|
6496
|
+
return jspb.Message.getField(this, 5) != null;
|
6497
|
+
};
|
6498
|
+
|
6499
|
+
|
6500
|
+
/**
|
6501
|
+
* optional float max_amount = 6;
|
6502
|
+
* @return {number}
|
6503
|
+
*/
|
6504
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getMaxAmount = function() {
|
6505
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
6506
|
+
};
|
6507
|
+
|
6508
|
+
|
6509
|
+
/**
|
6510
|
+
* @param {number} value
|
6511
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6512
|
+
*/
|
6513
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setMaxAmount = function(value) {
|
6514
|
+
return jspb.Message.setField(this, 6, value);
|
6515
|
+
};
|
6516
|
+
|
6517
|
+
|
6518
|
+
/**
|
6519
|
+
* Clears the field making it undefined.
|
6520
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6521
|
+
*/
|
6522
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearMaxAmount = function() {
|
6523
|
+
return jspb.Message.setField(this, 6, undefined);
|
6524
|
+
};
|
6525
|
+
|
6526
|
+
|
6527
|
+
/**
|
6528
|
+
* Returns whether this field is set.
|
6529
|
+
* @return {boolean}
|
6530
|
+
*/
|
6531
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasMaxAmount = function() {
|
6532
|
+
return jspb.Message.getField(this, 6) != null;
|
6533
|
+
};
|
6534
|
+
|
6535
|
+
|
6536
|
+
/**
|
6537
|
+
* optional string type = 7;
|
6538
|
+
* @return {string}
|
6539
|
+
*/
|
6540
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getType = function() {
|
6541
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
6542
|
+
};
|
6543
|
+
|
6544
|
+
|
6545
|
+
/**
|
6546
|
+
* @param {string} value
|
6547
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6548
|
+
*/
|
6549
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setType = function(value) {
|
6550
|
+
return jspb.Message.setField(this, 7, value);
|
6551
|
+
};
|
6552
|
+
|
6553
|
+
|
6554
|
+
/**
|
6555
|
+
* Clears the field making it undefined.
|
6556
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6557
|
+
*/
|
6558
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearType = function() {
|
6559
|
+
return jspb.Message.setField(this, 7, undefined);
|
6560
|
+
};
|
6561
|
+
|
6562
|
+
|
6563
|
+
/**
|
6564
|
+
* Returns whether this field is set.
|
6565
|
+
* @return {boolean}
|
6566
|
+
*/
|
6567
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasType = function() {
|
6568
|
+
return jspb.Message.getField(this, 7) != null;
|
6569
|
+
};
|
6570
|
+
|
6571
|
+
|
6572
|
+
/**
|
6573
|
+
* optional string config = 8;
|
6574
|
+
* @return {string}
|
6575
|
+
*/
|
6576
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getConfig = function() {
|
6577
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
6578
|
+
};
|
6579
|
+
|
6580
|
+
|
6581
|
+
/**
|
6582
|
+
* @param {string} value
|
6583
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6584
|
+
*/
|
6585
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setConfig = function(value) {
|
6586
|
+
return jspb.Message.setField(this, 8, value);
|
6587
|
+
};
|
6588
|
+
|
6589
|
+
|
6590
|
+
/**
|
6591
|
+
* Clears the field making it undefined.
|
6592
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
6593
|
+
*/
|
6594
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearConfig = function() {
|
6595
|
+
return jspb.Message.setField(this, 8, undefined);
|
6596
|
+
};
|
6597
|
+
|
6598
|
+
|
6599
|
+
/**
|
6600
|
+
* Returns whether this field is set.
|
6601
|
+
* @return {boolean}
|
6602
|
+
*/
|
6603
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasConfig = function() {
|
6604
|
+
return jspb.Message.getField(this, 8) != null;
|
6605
|
+
};
|
6606
|
+
|
6607
|
+
|
6608
|
+
|
6609
|
+
|
6610
|
+
|
5671
6611
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5672
6612
|
/**
|
5673
6613
|
* Creates an object representation of this proto.
|