@sniipwebmaster/payment-methods-client-grpcweb-ts 25.3.6429 → 25.3.6446

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.
@@ -900,6 +900,49 @@ export class SniipPaymentMethodsServiceAPIServiceClient {
900
900
  this.methodDescriptorGetPaymentMethods);
901
901
  }
902
902
 
903
+ methodDescriptorGetPaymentMethodsByPaymentMethodId = new grpcWeb.MethodDescriptor(
904
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodsByPaymentMethodId',
905
+ grpcWeb.MethodType.UNARY,
906
+ service_pb.GetPaymentMethodByPaymentMethodIdRequest,
907
+ service_pb.GetPaymentMethodByPaymentMethodIdResponse,
908
+ (request: service_pb.GetPaymentMethodByPaymentMethodIdRequest) => {
909
+ return request.serializeBinary();
910
+ },
911
+ service_pb.GetPaymentMethodByPaymentMethodIdResponse.deserializeBinary
912
+ );
913
+
914
+ getPaymentMethodsByPaymentMethodId(
915
+ request: service_pb.GetPaymentMethodByPaymentMethodIdRequest,
916
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.GetPaymentMethodByPaymentMethodIdResponse>;
917
+
918
+ getPaymentMethodsByPaymentMethodId(
919
+ request: service_pb.GetPaymentMethodByPaymentMethodIdRequest,
920
+ metadata: grpcWeb.Metadata | null,
921
+ callback: (err: grpcWeb.RpcError,
922
+ response: service_pb.GetPaymentMethodByPaymentMethodIdResponse) => void): grpcWeb.ClientReadableStream<service_pb.GetPaymentMethodByPaymentMethodIdResponse>;
923
+
924
+ getPaymentMethodsByPaymentMethodId(
925
+ request: service_pb.GetPaymentMethodByPaymentMethodIdRequest,
926
+ metadata?: grpcWeb.Metadata | null,
927
+ callback?: (err: grpcWeb.RpcError,
928
+ response: service_pb.GetPaymentMethodByPaymentMethodIdResponse) => void) {
929
+ if (callback !== undefined) {
930
+ return this.client_.rpcCall(
931
+ this.hostname_ +
932
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodsByPaymentMethodId',
933
+ request,
934
+ metadata || {},
935
+ this.methodDescriptorGetPaymentMethodsByPaymentMethodId,
936
+ callback);
937
+ }
938
+ return this.client_.unaryCall(
939
+ this.hostname_ +
940
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodsByPaymentMethodId',
941
+ request,
942
+ metadata || {},
943
+ this.methodDescriptorGetPaymentMethodsByPaymentMethodId);
944
+ }
945
+
903
946
  methodDescriptorGetPaymentMethodsByPaymentMethodIdInternal = new grpcWeb.MethodDescriptor(
904
947
  '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodsByPaymentMethodIdInternal',
905
948
  grpcWeb.MethodType.UNARY,
@@ -1268,6 +1268,24 @@ export namespace GetPaymentMethodsByPaymentMethodIdInternalRequest {
1268
1268
  }
1269
1269
  }
1270
1270
 
1271
+ export class GetPaymentMethodByPaymentMethodIdRequest extends jspb.Message {
1272
+ getPaymentmethodid(): number;
1273
+ setPaymentmethodid(value: number): GetPaymentMethodByPaymentMethodIdRequest;
1274
+
1275
+ serializeBinary(): Uint8Array;
1276
+ toObject(includeInstance?: boolean): GetPaymentMethodByPaymentMethodIdRequest.AsObject;
1277
+ static toObject(includeInstance: boolean, msg: GetPaymentMethodByPaymentMethodIdRequest): GetPaymentMethodByPaymentMethodIdRequest.AsObject;
1278
+ static serializeBinaryToWriter(message: GetPaymentMethodByPaymentMethodIdRequest, writer: jspb.BinaryWriter): void;
1279
+ static deserializeBinary(bytes: Uint8Array): GetPaymentMethodByPaymentMethodIdRequest;
1280
+ static deserializeBinaryFromReader(message: GetPaymentMethodByPaymentMethodIdRequest, reader: jspb.BinaryReader): GetPaymentMethodByPaymentMethodIdRequest;
1281
+ }
1282
+
1283
+ export namespace GetPaymentMethodByPaymentMethodIdRequest {
1284
+ export type AsObject = {
1285
+ paymentmethodid: number,
1286
+ }
1287
+ }
1288
+
1271
1289
  export class GetPaymentMethodsForAuditInternalRequest extends jspb.Message {
1272
1290
  getData(): PaymentMethodsForAuditRequest | undefined;
1273
1291
  setData(value?: PaymentMethodsForAuditRequest): GetPaymentMethodsForAuditInternalRequest;
@@ -2366,6 +2384,32 @@ export namespace PaymentMethodsResponse {
2366
2384
  }
2367
2385
  }
2368
2386
 
2387
+ export class GetPaymentMethodByPaymentMethodIdResponse extends jspb.Message {
2388
+ getPaymentmethod(): PaymentMethod | undefined;
2389
+ setPaymentmethod(value?: PaymentMethod): GetPaymentMethodByPaymentMethodIdResponse;
2390
+ hasPaymentmethod(): boolean;
2391
+ clearPaymentmethod(): GetPaymentMethodByPaymentMethodIdResponse;
2392
+
2393
+ getResponsecode(): ResponseCode | undefined;
2394
+ setResponsecode(value?: ResponseCode): GetPaymentMethodByPaymentMethodIdResponse;
2395
+ hasResponsecode(): boolean;
2396
+ clearResponsecode(): GetPaymentMethodByPaymentMethodIdResponse;
2397
+
2398
+ serializeBinary(): Uint8Array;
2399
+ toObject(includeInstance?: boolean): GetPaymentMethodByPaymentMethodIdResponse.AsObject;
2400
+ static toObject(includeInstance: boolean, msg: GetPaymentMethodByPaymentMethodIdResponse): GetPaymentMethodByPaymentMethodIdResponse.AsObject;
2401
+ static serializeBinaryToWriter(message: GetPaymentMethodByPaymentMethodIdResponse, writer: jspb.BinaryWriter): void;
2402
+ static deserializeBinary(bytes: Uint8Array): GetPaymentMethodByPaymentMethodIdResponse;
2403
+ static deserializeBinaryFromReader(message: GetPaymentMethodByPaymentMethodIdResponse, reader: jspb.BinaryReader): GetPaymentMethodByPaymentMethodIdResponse;
2404
+ }
2405
+
2406
+ export namespace GetPaymentMethodByPaymentMethodIdResponse {
2407
+ export type AsObject = {
2408
+ paymentmethod?: PaymentMethod.AsObject,
2409
+ responsecode?: ResponseCode.AsObject,
2410
+ }
2411
+ }
2412
+
2369
2413
  export class RemovePaymentMethodRequest extends jspb.Message {
2370
2414
  getData(): PaymentMethodDeleteRequest | undefined;
2371
2415
  setData(value?: PaymentMethodDeleteRequest): RemovePaymentMethodRequest;
@@ -57,6 +57,8 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashRequest', null
57
57
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest', null, global);
58
58
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
59
59
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetDigitalPaymentMethodsInfoRequest', null, global);
60
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest', null, global);
61
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse', null, global);
60
62
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest', null, global);
61
63
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest', null, global);
62
64
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
@@ -1000,6 +1002,27 @@ if (goog.DEBUG && !COMPILED) {
1000
1002
  */
1001
1003
  proto.sniippaymentmethodsserviceapi.GetPaymentMethodsByPaymentMethodIdInternalRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodsByPaymentMethodIdInternalRequest';
1002
1004
  }
1005
+ /**
1006
+ * Generated by JsPbCodeGenerator.
1007
+ * @param {Array=} opt_data Optional initial data array, typically from a
1008
+ * server response, or constructed directly in Javascript. The array is used
1009
+ * in place and becomes part of the constructed object. It is not cloned.
1010
+ * If no data is provided, the constructed object will be empty, but still
1011
+ * valid.
1012
+ * @extends {jspb.Message}
1013
+ * @constructor
1014
+ */
1015
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest = function(opt_data) {
1016
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1017
+ };
1018
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest, jspb.Message);
1019
+ if (goog.DEBUG && !COMPILED) {
1020
+ /**
1021
+ * @public
1022
+ * @override
1023
+ */
1024
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest';
1025
+ }
1003
1026
  /**
1004
1027
  * Generated by JsPbCodeGenerator.
1005
1028
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1630,6 +1653,27 @@ if (goog.DEBUG && !COMPILED) {
1630
1653
  */
1631
1654
  proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse';
1632
1655
  }
1656
+ /**
1657
+ * Generated by JsPbCodeGenerator.
1658
+ * @param {Array=} opt_data Optional initial data array, typically from a
1659
+ * server response, or constructed directly in Javascript. The array is used
1660
+ * in place and becomes part of the constructed object. It is not cloned.
1661
+ * If no data is provided, the constructed object will be empty, but still
1662
+ * valid.
1663
+ * @extends {jspb.Message}
1664
+ * @constructor
1665
+ */
1666
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse = function(opt_data) {
1667
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1668
+ };
1669
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse, jspb.Message);
1670
+ if (goog.DEBUG && !COMPILED) {
1671
+ /**
1672
+ * @public
1673
+ * @override
1674
+ */
1675
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse';
1676
+ }
1633
1677
  /**
1634
1678
  * Generated by JsPbCodeGenerator.
1635
1679
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11644,6 +11688,136 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsByPaymentMethodIdInternalRe
11644
11688
 
11645
11689
 
11646
11690
 
11691
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11692
+ /**
11693
+ * Creates an object representation of this proto.
11694
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11695
+ * Optional fields that are not set will be set to undefined.
11696
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11697
+ * For the list of reserved names please see:
11698
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11699
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11700
+ * JSPB instance for transitional soy proto support:
11701
+ * http://goto/soy-param-migration
11702
+ * @return {!Object}
11703
+ */
11704
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.prototype.toObject = function(opt_includeInstance) {
11705
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.toObject(opt_includeInstance, this);
11706
+ };
11707
+
11708
+
11709
+ /**
11710
+ * Static version of the {@see toObject} method.
11711
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11712
+ * the JSPB instance for transitional soy proto support:
11713
+ * http://goto/soy-param-migration
11714
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest} msg The msg instance to transform.
11715
+ * @return {!Object}
11716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11717
+ */
11718
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.toObject = function(includeInstance, msg) {
11719
+ var f, obj = {
11720
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, 0)
11721
+ };
11722
+
11723
+ if (includeInstance) {
11724
+ obj.$jspbMessageInstance = msg;
11725
+ }
11726
+ return obj;
11727
+ };
11728
+ }
11729
+
11730
+
11731
+ /**
11732
+ * Deserializes binary data (in protobuf wire format).
11733
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11734
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest}
11735
+ */
11736
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.deserializeBinary = function(bytes) {
11737
+ var reader = new jspb.BinaryReader(bytes);
11738
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest;
11739
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.deserializeBinaryFromReader(msg, reader);
11740
+ };
11741
+
11742
+
11743
+ /**
11744
+ * Deserializes binary data (in protobuf wire format) from the
11745
+ * given reader into the given message object.
11746
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest} msg The message object to deserialize into.
11747
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11748
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest}
11749
+ */
11750
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.deserializeBinaryFromReader = function(msg, reader) {
11751
+ while (reader.nextField()) {
11752
+ if (reader.isEndGroup()) {
11753
+ break;
11754
+ }
11755
+ var field = reader.getFieldNumber();
11756
+ switch (field) {
11757
+ case 1:
11758
+ var value = /** @type {number} */ (reader.readInt64());
11759
+ msg.setPaymentmethodid(value);
11760
+ break;
11761
+ default:
11762
+ reader.skipField();
11763
+ break;
11764
+ }
11765
+ }
11766
+ return msg;
11767
+ };
11768
+
11769
+
11770
+ /**
11771
+ * Serializes the message to binary data (in protobuf wire format).
11772
+ * @return {!Uint8Array}
11773
+ */
11774
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.prototype.serializeBinary = function() {
11775
+ var writer = new jspb.BinaryWriter();
11776
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.serializeBinaryToWriter(this, writer);
11777
+ return writer.getResultBuffer();
11778
+ };
11779
+
11780
+
11781
+ /**
11782
+ * Serializes the given message to binary data (in protobuf wire
11783
+ * format), writing to the given BinaryWriter.
11784
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest} message
11785
+ * @param {!jspb.BinaryWriter} writer
11786
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11787
+ */
11788
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.serializeBinaryToWriter = function(message, writer) {
11789
+ var f = undefined;
11790
+ f = message.getPaymentmethodid();
11791
+ if (f !== 0) {
11792
+ writer.writeInt64(
11793
+ 1,
11794
+ f
11795
+ );
11796
+ }
11797
+ };
11798
+
11799
+
11800
+ /**
11801
+ * optional int64 paymentMethodId = 1;
11802
+ * @return {number}
11803
+ */
11804
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.prototype.getPaymentmethodid = function() {
11805
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
11806
+ };
11807
+
11808
+
11809
+ /**
11810
+ * @param {number} value
11811
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest} returns this
11812
+ */
11813
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest.prototype.setPaymentmethodid = function(value) {
11814
+ return jspb.Message.setProto3IntField(this, 1, value);
11815
+ };
11816
+
11817
+
11818
+
11819
+
11820
+
11647
11821
  if (jspb.Message.GENERATE_TO_OBJECT) {
11648
11822
  /**
11649
11823
  * Creates an object representation of this proto.
@@ -20038,6 +20212,208 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse.prototype.clearColour
20038
20212
 
20039
20213
 
20040
20214
 
20215
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20216
+ /**
20217
+ * Creates an object representation of this proto.
20218
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20219
+ * Optional fields that are not set will be set to undefined.
20220
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20221
+ * For the list of reserved names please see:
20222
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20223
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20224
+ * JSPB instance for transitional soy proto support:
20225
+ * http://goto/soy-param-migration
20226
+ * @return {!Object}
20227
+ */
20228
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.toObject = function(opt_includeInstance) {
20229
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.toObject(opt_includeInstance, this);
20230
+ };
20231
+
20232
+
20233
+ /**
20234
+ * Static version of the {@see toObject} method.
20235
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20236
+ * the JSPB instance for transitional soy proto support:
20237
+ * http://goto/soy-param-migration
20238
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} msg The msg instance to transform.
20239
+ * @return {!Object}
20240
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20241
+ */
20242
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.toObject = function(includeInstance, msg) {
20243
+ var f, obj = {
20244
+ paymentmethod: (f = msg.getPaymentmethod()) && proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(includeInstance, f),
20245
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f)
20246
+ };
20247
+
20248
+ if (includeInstance) {
20249
+ obj.$jspbMessageInstance = msg;
20250
+ }
20251
+ return obj;
20252
+ };
20253
+ }
20254
+
20255
+
20256
+ /**
20257
+ * Deserializes binary data (in protobuf wire format).
20258
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20259
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse}
20260
+ */
20261
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.deserializeBinary = function(bytes) {
20262
+ var reader = new jspb.BinaryReader(bytes);
20263
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse;
20264
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.deserializeBinaryFromReader(msg, reader);
20265
+ };
20266
+
20267
+
20268
+ /**
20269
+ * Deserializes binary data (in protobuf wire format) from the
20270
+ * given reader into the given message object.
20271
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} msg The message object to deserialize into.
20272
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20273
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse}
20274
+ */
20275
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.deserializeBinaryFromReader = function(msg, reader) {
20276
+ while (reader.nextField()) {
20277
+ if (reader.isEndGroup()) {
20278
+ break;
20279
+ }
20280
+ var field = reader.getFieldNumber();
20281
+ switch (field) {
20282
+ case 1:
20283
+ var value = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
20284
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader);
20285
+ msg.setPaymentmethod(value);
20286
+ break;
20287
+ case 2:
20288
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
20289
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
20290
+ msg.setResponsecode(value);
20291
+ break;
20292
+ default:
20293
+ reader.skipField();
20294
+ break;
20295
+ }
20296
+ }
20297
+ return msg;
20298
+ };
20299
+
20300
+
20301
+ /**
20302
+ * Serializes the message to binary data (in protobuf wire format).
20303
+ * @return {!Uint8Array}
20304
+ */
20305
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.serializeBinary = function() {
20306
+ var writer = new jspb.BinaryWriter();
20307
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.serializeBinaryToWriter(this, writer);
20308
+ return writer.getResultBuffer();
20309
+ };
20310
+
20311
+
20312
+ /**
20313
+ * Serializes the given message to binary data (in protobuf wire
20314
+ * format), writing to the given BinaryWriter.
20315
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} message
20316
+ * @param {!jspb.BinaryWriter} writer
20317
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20318
+ */
20319
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.serializeBinaryToWriter = function(message, writer) {
20320
+ var f = undefined;
20321
+ f = message.getPaymentmethod();
20322
+ if (f != null) {
20323
+ writer.writeMessage(
20324
+ 1,
20325
+ f,
20326
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter
20327
+ );
20328
+ }
20329
+ f = message.getResponsecode();
20330
+ if (f != null) {
20331
+ writer.writeMessage(
20332
+ 2,
20333
+ f,
20334
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
20335
+ );
20336
+ }
20337
+ };
20338
+
20339
+
20340
+ /**
20341
+ * optional PaymentMethod paymentMethod = 1;
20342
+ * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethod}
20343
+ */
20344
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.getPaymentmethod = function() {
20345
+ return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethod} */ (
20346
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethod, 1));
20347
+ };
20348
+
20349
+
20350
+ /**
20351
+ * @param {?proto.sniippaymentmethodsserviceapi.PaymentMethod|undefined} value
20352
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} returns this
20353
+ */
20354
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.setPaymentmethod = function(value) {
20355
+ return jspb.Message.setWrapperField(this, 1, value);
20356
+ };
20357
+
20358
+
20359
+ /**
20360
+ * Clears the message field making it undefined.
20361
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} returns this
20362
+ */
20363
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.clearPaymentmethod = function() {
20364
+ return this.setPaymentmethod(undefined);
20365
+ };
20366
+
20367
+
20368
+ /**
20369
+ * Returns whether this field is set.
20370
+ * @return {boolean}
20371
+ */
20372
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.hasPaymentmethod = function() {
20373
+ return jspb.Message.getField(this, 1) != null;
20374
+ };
20375
+
20376
+
20377
+ /**
20378
+ * optional ResponseCode responseCode = 2;
20379
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
20380
+ */
20381
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.getResponsecode = function() {
20382
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
20383
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 2));
20384
+ };
20385
+
20386
+
20387
+ /**
20388
+ * @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value
20389
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} returns this
20390
+ */
20391
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.setResponsecode = function(value) {
20392
+ return jspb.Message.setWrapperField(this, 2, value);
20393
+ };
20394
+
20395
+
20396
+ /**
20397
+ * Clears the message field making it undefined.
20398
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse} returns this
20399
+ */
20400
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.clearResponsecode = function() {
20401
+ return this.setResponsecode(undefined);
20402
+ };
20403
+
20404
+
20405
+ /**
20406
+ * Returns whether this field is set.
20407
+ * @return {boolean}
20408
+ */
20409
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse.prototype.hasResponsecode = function() {
20410
+ return jspb.Message.getField(this, 2) != null;
20411
+ };
20412
+
20413
+
20414
+
20415
+
20416
+
20041
20417
  if (jspb.Message.GENERATE_TO_OBJECT) {
20042
20418
  /**
20043
20419
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb-ts",
3
- "version": "25.3.6429",
3
+ "version": "25.3.6446",
4
4
  "description": "payment-methods-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",