@sniipwebmaster/payment-methods-client-grpcweb-ts 23.16.5343 → 24.5.5528

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.
@@ -1502,6 +1502,49 @@ export class SniipPaymentMethodsServiceAPIServiceClient {
1502
1502
  this.methodDescriptorUpdatePaymentMethodGroup);
1503
1503
  }
1504
1504
 
1505
+ methodDescriptorUpdateWexCard = new grpcWeb.MethodDescriptor(
1506
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdateWexCard',
1507
+ grpcWeb.MethodType.UNARY,
1508
+ service_pb.UpdateWexCardRequest,
1509
+ service_pb.ResponseCode,
1510
+ (request: service_pb.UpdateWexCardRequest) => {
1511
+ return request.serializeBinary();
1512
+ },
1513
+ service_pb.ResponseCode.deserializeBinary
1514
+ );
1515
+
1516
+ updateWexCard(
1517
+ request: service_pb.UpdateWexCardRequest,
1518
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
1519
+
1520
+ updateWexCard(
1521
+ request: service_pb.UpdateWexCardRequest,
1522
+ metadata: grpcWeb.Metadata | null,
1523
+ callback: (err: grpcWeb.RpcError,
1524
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
1525
+
1526
+ updateWexCard(
1527
+ request: service_pb.UpdateWexCardRequest,
1528
+ metadata: grpcWeb.Metadata | null,
1529
+ callback?: (err: grpcWeb.RpcError,
1530
+ response: service_pb.ResponseCode) => void) {
1531
+ if (callback !== undefined) {
1532
+ return this.client_.rpcCall(
1533
+ this.hostname_ +
1534
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdateWexCard',
1535
+ request,
1536
+ metadata || {},
1537
+ this.methodDescriptorUpdateWexCard,
1538
+ callback);
1539
+ }
1540
+ return this.client_.unaryCall(
1541
+ this.hostname_ +
1542
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdateWexCard',
1543
+ request,
1544
+ metadata || {},
1545
+ this.methodDescriptorUpdateWexCard);
1546
+ }
1547
+
1505
1548
  methodDescriptorValidatePaymentMethods = new grpcWeb.MethodDescriptor(
1506
1549
  '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/ValidatePaymentMethods',
1507
1550
  grpcWeb.MethodType.UNARY,
@@ -1642,6 +1642,11 @@ export class PaymentMethod extends jspb.Message {
1642
1642
  hasGooglepaydetail(): boolean;
1643
1643
  clearGooglepaydetail(): PaymentMethod;
1644
1644
 
1645
+ getWexcarddetail(): WexCardDetail | undefined;
1646
+ setWexcarddetail(value?: WexCardDetail): PaymentMethod;
1647
+ hasWexcarddetail(): boolean;
1648
+ clearWexcarddetail(): PaymentMethod;
1649
+
1645
1650
  serializeBinary(): Uint8Array;
1646
1651
  toObject(includeInstance?: boolean): PaymentMethod.AsObject;
1647
1652
  static toObject(includeInstance: boolean, msg: PaymentMethod): PaymentMethod.AsObject;
@@ -1659,6 +1664,7 @@ export namespace PaymentMethod {
1659
1664
  activationsList: Array<Activation.AsObject>,
1660
1665
  applepaydetail?: ApplePayDetail.AsObject,
1661
1666
  googlepaydetail?: GooglePayDetail.AsObject,
1667
+ wexcarddetail?: WexCardDetail.AsObject,
1662
1668
  }
1663
1669
  }
1664
1670
 
@@ -1774,6 +1780,11 @@ export class PaymentMethodForPaymentResponse extends jspb.Message {
1774
1780
  hasGooglepaydetail(): boolean;
1775
1781
  clearGooglepaydetail(): PaymentMethodForPaymentResponse;
1776
1782
 
1783
+ getWexcarddetail(): WexCardDetail | undefined;
1784
+ setWexcarddetail(value?: WexCardDetail): PaymentMethodForPaymentResponse;
1785
+ hasWexcarddetail(): boolean;
1786
+ clearWexcarddetail(): PaymentMethodForPaymentResponse;
1787
+
1777
1788
  serializeBinary(): Uint8Array;
1778
1789
  toObject(includeInstance?: boolean): PaymentMethodForPaymentResponse.AsObject;
1779
1790
  static toObject(includeInstance: boolean, msg: PaymentMethodForPaymentResponse): PaymentMethodForPaymentResponse.AsObject;
@@ -1791,6 +1802,7 @@ export namespace PaymentMethodForPaymentResponse {
1791
1802
  bankaccount?: BankAccount.AsObject,
1792
1803
  applepaydetail?: ApplePayDetail.AsObject,
1793
1804
  googlepaydetail?: GooglePayDetail.AsObject,
1805
+ wexcarddetail?: WexCardDetail.AsObject,
1794
1806
  }
1795
1807
  }
1796
1808
 
@@ -2386,6 +2398,36 @@ export namespace UpdatePaymentMethodRequest {
2386
2398
  }
2387
2399
  }
2388
2400
 
2401
+ export class UpdateWexCardRequest extends jspb.Message {
2402
+ getPaymentmethodid(): number;
2403
+ setPaymentmethodid(value: number): UpdateWexCardRequest;
2404
+
2405
+ getMaskedcardnumber(): string;
2406
+ setMaskedcardnumber(value: string): UpdateWexCardRequest;
2407
+
2408
+ getExpirydate(): string;
2409
+ setExpirydate(value: string): UpdateWexCardRequest;
2410
+
2411
+ getCardstatus(): string;
2412
+ setCardstatus(value: string): UpdateWexCardRequest;
2413
+
2414
+ serializeBinary(): Uint8Array;
2415
+ toObject(includeInstance?: boolean): UpdateWexCardRequest.AsObject;
2416
+ static toObject(includeInstance: boolean, msg: UpdateWexCardRequest): UpdateWexCardRequest.AsObject;
2417
+ static serializeBinaryToWriter(message: UpdateWexCardRequest, writer: jspb.BinaryWriter): void;
2418
+ static deserializeBinary(bytes: Uint8Array): UpdateWexCardRequest;
2419
+ static deserializeBinaryFromReader(message: UpdateWexCardRequest, reader: jspb.BinaryReader): UpdateWexCardRequest;
2420
+ }
2421
+
2422
+ export namespace UpdateWexCardRequest {
2423
+ export type AsObject = {
2424
+ paymentmethodid: number,
2425
+ maskedcardnumber: string,
2426
+ expirydate: string,
2427
+ cardstatus: string,
2428
+ }
2429
+ }
2430
+
2389
2431
  export class ValidateApplePayRequest extends jspb.Message {
2390
2432
  getIsapplepaycard(): boolean;
2391
2433
  setIsapplepaycard(value: boolean): ValidateApplePayRequest;
@@ -2560,6 +2602,46 @@ export namespace VerifyCreditCardRequest {
2560
2602
  }
2561
2603
  }
2562
2604
 
2605
+ export class WexCardDetail extends jspb.Message {
2606
+ getMaskedcardnumber(): string;
2607
+ setMaskedcardnumber(value: string): WexCardDetail;
2608
+
2609
+ getExpirydate(): string;
2610
+ setExpirydate(value: string): WexCardDetail;
2611
+
2612
+ getCardstatus(): string;
2613
+ setCardstatus(value: string): WexCardDetail;
2614
+
2615
+ getRedirecturl(): string;
2616
+ setRedirecturl(value: string): WexCardDetail;
2617
+
2618
+ getCardvariant(): string;
2619
+ setCardvariant(value: string): WexCardDetail;
2620
+
2621
+ getColourscheme(): ColourScheme | undefined;
2622
+ setColourscheme(value?: ColourScheme): WexCardDetail;
2623
+ hasColourscheme(): boolean;
2624
+ clearColourscheme(): WexCardDetail;
2625
+
2626
+ serializeBinary(): Uint8Array;
2627
+ toObject(includeInstance?: boolean): WexCardDetail.AsObject;
2628
+ static toObject(includeInstance: boolean, msg: WexCardDetail): WexCardDetail.AsObject;
2629
+ static serializeBinaryToWriter(message: WexCardDetail, writer: jspb.BinaryWriter): void;
2630
+ static deserializeBinary(bytes: Uint8Array): WexCardDetail;
2631
+ static deserializeBinaryFromReader(message: WexCardDetail, reader: jspb.BinaryReader): WexCardDetail;
2632
+ }
2633
+
2634
+ export namespace WexCardDetail {
2635
+ export type AsObject = {
2636
+ maskedcardnumber: string,
2637
+ expirydate: string,
2638
+ cardstatus: string,
2639
+ redirecturl: string,
2640
+ cardvariant: string,
2641
+ colourscheme?: ColourScheme.AsObject,
2642
+ }
2643
+ }
2644
+
2563
2645
  export class ZenithPaymentDetailsRequest extends jspb.Message {
2564
2646
  getUserid(): number;
2565
2647
  setUserid(value: number): ZenithPaymentDetailsRequest;
@@ -93,6 +93,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCard', null,
93
93
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateMasterBinLookupOverrideRequest', null, global);
94
94
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodGroupRequest', null, global);
95
95
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest', null, global);
96
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest', null, global);
96
97
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest', null, global);
97
98
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest', null, global);
98
99
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse', null, global);
@@ -100,6 +101,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsRe
100
101
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.VerifyBankAccountRequest', null, global);
101
102
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.VerifyCreditCardForUserRequest', null, global);
102
103
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.VerifyCreditCardRequest', null, global);
104
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.WexCardDetail', null, global);
103
105
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest', null, global);
104
106
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse', null, global);
105
107
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest', null, global);
@@ -1700,6 +1702,27 @@ if (goog.DEBUG && !COMPILED) {
1700
1702
  */
1701
1703
  proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest';
1702
1704
  }
1705
+ /**
1706
+ * Generated by JsPbCodeGenerator.
1707
+ * @param {Array=} opt_data Optional initial data array, typically from a
1708
+ * server response, or constructed directly in Javascript. The array is used
1709
+ * in place and becomes part of the constructed object. It is not cloned.
1710
+ * If no data is provided, the constructed object will be empty, but still
1711
+ * valid.
1712
+ * @extends {jspb.Message}
1713
+ * @constructor
1714
+ */
1715
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest = function(opt_data) {
1716
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1717
+ };
1718
+ goog.inherits(proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest, jspb.Message);
1719
+ if (goog.DEBUG && !COMPILED) {
1720
+ /**
1721
+ * @public
1722
+ * @override
1723
+ */
1724
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest';
1725
+ }
1703
1726
  /**
1704
1727
  * Generated by JsPbCodeGenerator.
1705
1728
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1847,6 +1870,27 @@ if (goog.DEBUG && !COMPILED) {
1847
1870
  */
1848
1871
  proto.sniippaymentmethodsserviceapi.VerifyCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.VerifyCreditCardRequest';
1849
1872
  }
1873
+ /**
1874
+ * Generated by JsPbCodeGenerator.
1875
+ * @param {Array=} opt_data Optional initial data array, typically from a
1876
+ * server response, or constructed directly in Javascript. The array is used
1877
+ * in place and becomes part of the constructed object. It is not cloned.
1878
+ * If no data is provided, the constructed object will be empty, but still
1879
+ * valid.
1880
+ * @extends {jspb.Message}
1881
+ * @constructor
1882
+ */
1883
+ proto.sniippaymentmethodsserviceapi.WexCardDetail = function(opt_data) {
1884
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1885
+ };
1886
+ goog.inherits(proto.sniippaymentmethodsserviceapi.WexCardDetail, jspb.Message);
1887
+ if (goog.DEBUG && !COMPILED) {
1888
+ /**
1889
+ * @public
1890
+ * @override
1891
+ */
1892
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.displayName = 'proto.sniippaymentmethodsserviceapi.WexCardDetail';
1893
+ }
1850
1894
  /**
1851
1895
  * Generated by JsPbCodeGenerator.
1852
1896
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -14033,7 +14077,8 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeIns
14033
14077
  activationsList: jspb.Message.toObjectList(msg.getActivationsList(),
14034
14078
  proto.sniippaymentmethodsserviceapi.Activation.toObject, includeInstance),
14035
14079
  applepaydetail: (f = msg.getApplepaydetail()) && proto.sniippaymentmethodsserviceapi.ApplePayDetail.toObject(includeInstance, f),
14036
- googlepaydetail: (f = msg.getGooglepaydetail()) && proto.sniippaymentmethodsserviceapi.GooglePayDetail.toObject(includeInstance, f)
14080
+ googlepaydetail: (f = msg.getGooglepaydetail()) && proto.sniippaymentmethodsserviceapi.GooglePayDetail.toObject(includeInstance, f),
14081
+ wexcarddetail: (f = msg.getWexcarddetail()) && proto.sniippaymentmethodsserviceapi.WexCardDetail.toObject(includeInstance, f)
14037
14082
  };
14038
14083
 
14039
14084
  if (includeInstance) {
@@ -14103,6 +14148,11 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader =
14103
14148
  reader.readMessage(value,proto.sniippaymentmethodsserviceapi.GooglePayDetail.deserializeBinaryFromReader);
14104
14149
  msg.setGooglepaydetail(value);
14105
14150
  break;
14151
+ case 10:
14152
+ var value = new proto.sniippaymentmethodsserviceapi.WexCardDetail;
14153
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.WexCardDetail.deserializeBinaryFromReader);
14154
+ msg.setWexcarddetail(value);
14155
+ break;
14106
14156
  default:
14107
14157
  reader.skipField();
14108
14158
  break;
@@ -14186,6 +14236,14 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = func
14186
14236
  proto.sniippaymentmethodsserviceapi.GooglePayDetail.serializeBinaryToWriter
14187
14237
  );
14188
14238
  }
14239
+ f = message.getWexcarddetail();
14240
+ if (f != null) {
14241
+ writer.writeMessage(
14242
+ 10,
14243
+ f,
14244
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.serializeBinaryToWriter
14245
+ );
14246
+ }
14189
14247
  };
14190
14248
 
14191
14249
 
@@ -14411,6 +14469,43 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasGooglepaydetail =
14411
14469
  };
14412
14470
 
14413
14471
 
14472
+ /**
14473
+ * optional WexCardDetail wexCardDetail = 10;
14474
+ * @return {?proto.sniippaymentmethodsserviceapi.WexCardDetail}
14475
+ */
14476
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getWexcarddetail = function() {
14477
+ return /** @type{?proto.sniippaymentmethodsserviceapi.WexCardDetail} */ (
14478
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.WexCardDetail, 10));
14479
+ };
14480
+
14481
+
14482
+ /**
14483
+ * @param {?proto.sniippaymentmethodsserviceapi.WexCardDetail|undefined} value
14484
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod} returns this
14485
+ */
14486
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setWexcarddetail = function(value) {
14487
+ return jspb.Message.setWrapperField(this, 10, value);
14488
+ };
14489
+
14490
+
14491
+ /**
14492
+ * Clears the message field making it undefined.
14493
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod} returns this
14494
+ */
14495
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearWexcarddetail = function() {
14496
+ return this.setWexcarddetail(undefined);
14497
+ };
14498
+
14499
+
14500
+ /**
14501
+ * Returns whether this field is set.
14502
+ * @return {boolean}
14503
+ */
14504
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasWexcarddetail = function() {
14505
+ return jspb.Message.getField(this, 10) != null;
14506
+ };
14507
+
14508
+
14414
14509
 
14415
14510
 
14416
14511
 
@@ -15045,7 +15140,8 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.toObject = f
15045
15140
  creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f),
15046
15141
  bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
15047
15142
  applepaydetail: (f = msg.getApplepaydetail()) && proto.sniippaymentmethodsserviceapi.ApplePayDetail.toObject(includeInstance, f),
15048
- googlepaydetail: (f = msg.getGooglepaydetail()) && proto.sniippaymentmethodsserviceapi.GooglePayDetail.toObject(includeInstance, f)
15143
+ googlepaydetail: (f = msg.getGooglepaydetail()) && proto.sniippaymentmethodsserviceapi.GooglePayDetail.toObject(includeInstance, f),
15144
+ wexcarddetail: (f = msg.getWexcarddetail()) && proto.sniippaymentmethodsserviceapi.WexCardDetail.toObject(includeInstance, f)
15049
15145
  };
15050
15146
 
15051
15147
  if (includeInstance) {
@@ -15115,6 +15211,11 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeB
15115
15211
  reader.readMessage(value,proto.sniippaymentmethodsserviceapi.GooglePayDetail.deserializeBinaryFromReader);
15116
15212
  msg.setGooglepaydetail(value);
15117
15213
  break;
15214
+ case 8:
15215
+ var value = new proto.sniippaymentmethodsserviceapi.WexCardDetail;
15216
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.WexCardDetail.deserializeBinaryFromReader);
15217
+ msg.setWexcarddetail(value);
15218
+ break;
15118
15219
  default:
15119
15220
  reader.skipField();
15120
15221
  break;
@@ -15198,6 +15299,14 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.serializeBin
15198
15299
  proto.sniippaymentmethodsserviceapi.GooglePayDetail.serializeBinaryToWriter
15199
15300
  );
15200
15301
  }
15302
+ f = message.getWexcarddetail();
15303
+ if (f != null) {
15304
+ writer.writeMessage(
15305
+ 8,
15306
+ f,
15307
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.serializeBinaryToWriter
15308
+ );
15309
+ }
15201
15310
  };
15202
15311
 
15203
15312
 
@@ -15422,6 +15531,43 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.ha
15422
15531
  };
15423
15532
 
15424
15533
 
15534
+ /**
15535
+ * optional WexCardDetail wexCardDetail = 8;
15536
+ * @return {?proto.sniippaymentmethodsserviceapi.WexCardDetail}
15537
+ */
15538
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getWexcarddetail = function() {
15539
+ return /** @type{?proto.sniippaymentmethodsserviceapi.WexCardDetail} */ (
15540
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.WexCardDetail, 8));
15541
+ };
15542
+
15543
+
15544
+ /**
15545
+ * @param {?proto.sniippaymentmethodsserviceapi.WexCardDetail|undefined} value
15546
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} returns this
15547
+ */
15548
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setWexcarddetail = function(value) {
15549
+ return jspb.Message.setWrapperField(this, 8, value);
15550
+ };
15551
+
15552
+
15553
+ /**
15554
+ * Clears the message field making it undefined.
15555
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} returns this
15556
+ */
15557
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearWexcarddetail = function() {
15558
+ return this.setWexcarddetail(undefined);
15559
+ };
15560
+
15561
+
15562
+ /**
15563
+ * Returns whether this field is set.
15564
+ * @return {boolean}
15565
+ */
15566
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasWexcarddetail = function() {
15567
+ return jspb.Message.getField(this, 8) != null;
15568
+ };
15569
+
15570
+
15425
15571
 
15426
15572
  /**
15427
15573
  * List of repeated fields within this message type.
@@ -19953,8 +20099,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
19953
20099
  * http://goto/soy-param-migration
19954
20100
  * @return {!Object}
19955
20101
  */
19956
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.toObject = function(opt_includeInstance) {
19957
- return proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject(opt_includeInstance, this);
20102
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.toObject = function(opt_includeInstance) {
20103
+ return proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.toObject(opt_includeInstance, this);
19958
20104
  };
19959
20105
 
19960
20106
 
@@ -19963,15 +20109,16 @@ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.toObject =
19963
20109
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19964
20110
  * the JSPB instance for transitional soy proto support:
19965
20111
  * http://goto/soy-param-migration
19966
- * @param {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} msg The msg instance to transform.
20112
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} msg The msg instance to transform.
19967
20113
  * @return {!Object}
19968
20114
  * @suppress {unusedLocalVariables} f is only used for nested messages
19969
20115
  */
19970
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject = function(includeInstance, msg) {
20116
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.toObject = function(includeInstance, msg) {
19971
20117
  var f, obj = {
19972
- isapplepaycard: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
19973
- paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
19974
- cardvariant: jspb.Message.getFieldWithDefault(msg, 3, "")
20118
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, 0),
20119
+ maskedcardnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
20120
+ expirydate: jspb.Message.getFieldWithDefault(msg, 3, ""),
20121
+ cardstatus: jspb.Message.getFieldWithDefault(msg, 4, "")
19975
20122
  };
19976
20123
 
19977
20124
  if (includeInstance) {
@@ -19985,23 +20132,23 @@ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject = function(
19985
20132
  /**
19986
20133
  * Deserializes binary data (in protobuf wire format).
19987
20134
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
19988
- * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest}
20135
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest}
19989
20136
  */
19990
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinary = function(bytes) {
20137
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.deserializeBinary = function(bytes) {
19991
20138
  var reader = new jspb.BinaryReader(bytes);
19992
- var msg = new proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest;
19993
- return proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFromReader(msg, reader);
20139
+ var msg = new proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest;
20140
+ return proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.deserializeBinaryFromReader(msg, reader);
19994
20141
  };
19995
20142
 
19996
20143
 
19997
20144
  /**
19998
20145
  * Deserializes binary data (in protobuf wire format) from the
19999
20146
  * given reader into the given message object.
20000
- * @param {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} msg The message object to deserialize into.
20147
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} msg The message object to deserialize into.
20001
20148
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20002
- * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest}
20149
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest}
20003
20150
  */
20004
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFromReader = function(msg, reader) {
20151
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.deserializeBinaryFromReader = function(msg, reader) {
20005
20152
  while (reader.nextField()) {
20006
20153
  if (reader.isEndGroup()) {
20007
20154
  break;
@@ -20009,16 +20156,20 @@ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFro
20009
20156
  var field = reader.getFieldNumber();
20010
20157
  switch (field) {
20011
20158
  case 1:
20012
- var value = /** @type {boolean} */ (reader.readBool());
20013
- msg.setIsapplepaycard(value);
20159
+ var value = /** @type {number} */ (reader.readInt64());
20160
+ msg.setPaymentmethodid(value);
20014
20161
  break;
20015
20162
  case 2:
20016
20163
  var value = /** @type {string} */ (reader.readString());
20017
- msg.setPaymenttype(value);
20164
+ msg.setMaskedcardnumber(value);
20018
20165
  break;
20019
20166
  case 3:
20020
20167
  var value = /** @type {string} */ (reader.readString());
20021
- msg.setCardvariant(value);
20168
+ msg.setExpirydate(value);
20169
+ break;
20170
+ case 4:
20171
+ var value = /** @type {string} */ (reader.readString());
20172
+ msg.setCardstatus(value);
20022
20173
  break;
20023
20174
  default:
20024
20175
  reader.skipField();
@@ -20033,9 +20184,9 @@ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFro
20033
20184
  * Serializes the message to binary data (in protobuf wire format).
20034
20185
  * @return {!Uint8Array}
20035
20186
  */
20036
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.serializeBinary = function() {
20187
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.serializeBinary = function() {
20037
20188
  var writer = new jspb.BinaryWriter();
20038
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.serializeBinaryToWriter(this, writer);
20189
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.serializeBinaryToWriter(this, writer);
20039
20190
  return writer.getResultBuffer();
20040
20191
  };
20041
20192
 
@@ -20043,97 +20194,115 @@ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.serializeB
20043
20194
  /**
20044
20195
  * Serializes the given message to binary data (in protobuf wire
20045
20196
  * format), writing to the given BinaryWriter.
20046
- * @param {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} message
20197
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} message
20047
20198
  * @param {!jspb.BinaryWriter} writer
20048
20199
  * @suppress {unusedLocalVariables} f is only used for nested messages
20049
20200
  */
20050
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.serializeBinaryToWriter = function(message, writer) {
20201
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.serializeBinaryToWriter = function(message, writer) {
20051
20202
  var f = undefined;
20052
- f = message.getIsapplepaycard();
20053
- if (f) {
20054
- writer.writeBool(
20203
+ f = message.getPaymentmethodid();
20204
+ if (f !== 0) {
20205
+ writer.writeInt64(
20055
20206
  1,
20056
20207
  f
20057
20208
  );
20058
20209
  }
20059
- f = message.getPaymenttype();
20210
+ f = message.getMaskedcardnumber();
20060
20211
  if (f.length > 0) {
20061
20212
  writer.writeString(
20062
20213
  2,
20063
20214
  f
20064
20215
  );
20065
20216
  }
20066
- f = message.getCardvariant();
20217
+ f = message.getExpirydate();
20067
20218
  if (f.length > 0) {
20068
20219
  writer.writeString(
20069
20220
  3,
20070
20221
  f
20071
20222
  );
20072
20223
  }
20224
+ f = message.getCardstatus();
20225
+ if (f.length > 0) {
20226
+ writer.writeString(
20227
+ 4,
20228
+ f
20229
+ );
20230
+ }
20073
20231
  };
20074
20232
 
20075
20233
 
20076
20234
  /**
20077
- * optional bool isApplePayCard = 1;
20078
- * @return {boolean}
20235
+ * optional int64 paymentMethodId = 1;
20236
+ * @return {number}
20079
20237
  */
20080
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.getIsapplepaycard = function() {
20081
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
20238
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.getPaymentmethodid = function() {
20239
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20082
20240
  };
20083
20241
 
20084
20242
 
20085
20243
  /**
20086
- * @param {boolean} value
20087
- * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} returns this
20244
+ * @param {number} value
20245
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} returns this
20088
20246
  */
20089
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.setIsapplepaycard = function(value) {
20090
- return jspb.Message.setProto3BooleanField(this, 1, value);
20247
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.setPaymentmethodid = function(value) {
20248
+ return jspb.Message.setProto3IntField(this, 1, value);
20091
20249
  };
20092
20250
 
20093
20251
 
20094
20252
  /**
20095
- * optional string paymentType = 2;
20253
+ * optional string maskedCardNumber = 2;
20096
20254
  * @return {string}
20097
20255
  */
20098
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.getPaymenttype = function() {
20256
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.getMaskedcardnumber = function() {
20099
20257
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20100
20258
  };
20101
20259
 
20102
20260
 
20103
20261
  /**
20104
20262
  * @param {string} value
20105
- * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} returns this
20263
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} returns this
20106
20264
  */
20107
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.setPaymenttype = function(value) {
20265
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.setMaskedcardnumber = function(value) {
20108
20266
  return jspb.Message.setProto3StringField(this, 2, value);
20109
20267
  };
20110
20268
 
20111
20269
 
20112
20270
  /**
20113
- * optional string cardVariant = 3;
20271
+ * optional string expiryDate = 3;
20114
20272
  * @return {string}
20115
20273
  */
20116
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.getCardvariant = function() {
20274
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.getExpirydate = function() {
20117
20275
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
20118
20276
  };
20119
20277
 
20120
20278
 
20121
20279
  /**
20122
20280
  * @param {string} value
20123
- * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} returns this
20281
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} returns this
20124
20282
  */
20125
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.setCardvariant = function(value) {
20283
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.setExpirydate = function(value) {
20126
20284
  return jspb.Message.setProto3StringField(this, 3, value);
20127
20285
  };
20128
20286
 
20129
20287
 
20288
+ /**
20289
+ * optional string cardStatus = 4;
20290
+ * @return {string}
20291
+ */
20292
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.getCardstatus = function() {
20293
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
20294
+ };
20295
+
20130
20296
 
20131
20297
  /**
20132
- * List of repeated fields within this message type.
20133
- * @private {!Array<number>}
20134
- * @const
20298
+ * @param {string} value
20299
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest} returns this
20135
20300
  */
20136
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.repeatedFields_ = [2,3];
20301
+ proto.sniippaymentmethodsserviceapi.UpdateWexCardRequest.prototype.setCardstatus = function(value) {
20302
+ return jspb.Message.setProto3StringField(this, 4, value);
20303
+ };
20304
+
20305
+
20137
20306
 
20138
20307
 
20139
20308
 
@@ -20150,8 +20319,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
20150
20319
  * http://goto/soy-param-migration
20151
20320
  * @return {!Object}
20152
20321
  */
20153
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) {
20154
- return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject(opt_includeInstance, this);
20322
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.toObject = function(opt_includeInstance) {
20323
+ return proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject(opt_includeInstance, this);
20155
20324
  };
20156
20325
 
20157
20326
 
@@ -20160,16 +20329,15 @@ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.toOb
20160
20329
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20161
20330
  * the JSPB instance for transitional soy proto support:
20162
20331
  * http://goto/soy-param-migration
20163
- * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} msg The msg instance to transform.
20332
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} msg The msg instance to transform.
20164
20333
  * @return {!Object}
20165
20334
  * @suppress {unusedLocalVariables} f is only used for nested messages
20166
20335
  */
20167
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject = function(includeInstance, msg) {
20336
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject = function(includeInstance, msg) {
20168
20337
  var f, obj = {
20169
- userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
20170
- paymentmethodidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
20171
- paymentmethodgroupidsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
20172
- applepaypaymentmethoddetails: (f = msg.getApplepaypaymentmethoddetails()) && proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject(includeInstance, f)
20338
+ isapplepaycard: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
20339
+ paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
20340
+ cardvariant: jspb.Message.getFieldWithDefault(msg, 3, "")
20173
20341
  };
20174
20342
 
20175
20343
  if (includeInstance) {
@@ -20183,23 +20351,23 @@ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject = fun
20183
20351
  /**
20184
20352
  * Deserializes binary data (in protobuf wire format).
20185
20353
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
20186
- * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest}
20354
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest}
20187
20355
  */
20188
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinary = function(bytes) {
20356
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinary = function(bytes) {
20189
20357
  var reader = new jspb.BinaryReader(bytes);
20190
- var msg = new proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest;
20191
- return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinaryFromReader(msg, reader);
20358
+ var msg = new proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest;
20359
+ return proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFromReader(msg, reader);
20192
20360
  };
20193
20361
 
20194
20362
 
20195
20363
  /**
20196
20364
  * Deserializes binary data (in protobuf wire format) from the
20197
20365
  * given reader into the given message object.
20198
- * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} msg The message object to deserialize into.
20366
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} msg The message object to deserialize into.
20199
20367
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20200
- * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest}
20368
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest}
20201
20369
  */
20202
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinaryFromReader = function(msg, reader) {
20370
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFromReader = function(msg, reader) {
20203
20371
  while (reader.nextField()) {
20204
20372
  if (reader.isEndGroup()) {
20205
20373
  break;
@@ -20207,21 +20375,16 @@ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBin
20207
20375
  var field = reader.getFieldNumber();
20208
20376
  switch (field) {
20209
20377
  case 1:
20210
- var value = /** @type {number} */ (reader.readInt64());
20211
- msg.setUserid(value);
20378
+ var value = /** @type {boolean} */ (reader.readBool());
20379
+ msg.setIsapplepaycard(value);
20212
20380
  break;
20213
20381
  case 2:
20214
- var value = /** @type {!Array<number>} */ (reader.readPackedInt64());
20215
- msg.setPaymentmethodidsList(value);
20382
+ var value = /** @type {string} */ (reader.readString());
20383
+ msg.setPaymenttype(value);
20216
20384
  break;
20217
20385
  case 3:
20218
- var value = /** @type {!Array<number>} */ (reader.readPackedInt64());
20219
- msg.setPaymentmethodgroupidsList(value);
20220
- break;
20221
- case 4:
20222
- var value = new proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest;
20223
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFromReader);
20224
- msg.setApplepaypaymentmethoddetails(value);
20386
+ var value = /** @type {string} */ (reader.readString());
20387
+ msg.setCardvariant(value);
20225
20388
  break;
20226
20389
  default:
20227
20390
  reader.skipField();
@@ -20236,9 +20399,9 @@ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBin
20236
20399
  * Serializes the message to binary data (in protobuf wire format).
20237
20400
  * @return {!Uint8Array}
20238
20401
  */
20239
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.serializeBinary = function() {
20402
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.serializeBinary = function() {
20240
20403
  var writer = new jspb.BinaryWriter();
20241
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.serializeBinaryToWriter(this, writer);
20404
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.serializeBinaryToWriter(this, writer);
20242
20405
  return writer.getResultBuffer();
20243
20406
  };
20244
20407
 
@@ -20246,39 +20409,242 @@ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.seri
20246
20409
  /**
20247
20410
  * Serializes the given message to binary data (in protobuf wire
20248
20411
  * format), writing to the given BinaryWriter.
20249
- * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} message
20412
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} message
20250
20413
  * @param {!jspb.BinaryWriter} writer
20251
20414
  * @suppress {unusedLocalVariables} f is only used for nested messages
20252
20415
  */
20253
- proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) {
20416
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.serializeBinaryToWriter = function(message, writer) {
20254
20417
  var f = undefined;
20255
- f = message.getUserid();
20256
- if (f !== 0) {
20257
- writer.writeInt64(
20418
+ f = message.getIsapplepaycard();
20419
+ if (f) {
20420
+ writer.writeBool(
20258
20421
  1,
20259
20422
  f
20260
20423
  );
20261
20424
  }
20262
- f = message.getPaymentmethodidsList();
20425
+ f = message.getPaymenttype();
20263
20426
  if (f.length > 0) {
20264
- writer.writePackedInt64(
20427
+ writer.writeString(
20265
20428
  2,
20266
20429
  f
20267
20430
  );
20268
20431
  }
20269
- f = message.getPaymentmethodgroupidsList();
20432
+ f = message.getCardvariant();
20270
20433
  if (f.length > 0) {
20271
- writer.writePackedInt64(
20434
+ writer.writeString(
20272
20435
  3,
20273
20436
  f
20274
20437
  );
20275
20438
  }
20276
- f = message.getApplepaypaymentmethoddetails();
20277
- if (f != null) {
20278
- writer.writeMessage(
20279
- 4,
20280
- f,
20281
- proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.serializeBinaryToWriter
20439
+ };
20440
+
20441
+
20442
+ /**
20443
+ * optional bool isApplePayCard = 1;
20444
+ * @return {boolean}
20445
+ */
20446
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.getIsapplepaycard = function() {
20447
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
20448
+ };
20449
+
20450
+
20451
+ /**
20452
+ * @param {boolean} value
20453
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} returns this
20454
+ */
20455
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.setIsapplepaycard = function(value) {
20456
+ return jspb.Message.setProto3BooleanField(this, 1, value);
20457
+ };
20458
+
20459
+
20460
+ /**
20461
+ * optional string paymentType = 2;
20462
+ * @return {string}
20463
+ */
20464
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.getPaymenttype = function() {
20465
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20466
+ };
20467
+
20468
+
20469
+ /**
20470
+ * @param {string} value
20471
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} returns this
20472
+ */
20473
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.setPaymenttype = function(value) {
20474
+ return jspb.Message.setProto3StringField(this, 2, value);
20475
+ };
20476
+
20477
+
20478
+ /**
20479
+ * optional string cardVariant = 3;
20480
+ * @return {string}
20481
+ */
20482
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.getCardvariant = function() {
20483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
20484
+ };
20485
+
20486
+
20487
+ /**
20488
+ * @param {string} value
20489
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest} returns this
20490
+ */
20491
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.prototype.setCardvariant = function(value) {
20492
+ return jspb.Message.setProto3StringField(this, 3, value);
20493
+ };
20494
+
20495
+
20496
+
20497
+ /**
20498
+ * List of repeated fields within this message type.
20499
+ * @private {!Array<number>}
20500
+ * @const
20501
+ */
20502
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.repeatedFields_ = [2,3];
20503
+
20504
+
20505
+
20506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20507
+ /**
20508
+ * Creates an object representation of this proto.
20509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20510
+ * Optional fields that are not set will be set to undefined.
20511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20512
+ * For the list of reserved names please see:
20513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20515
+ * JSPB instance for transitional soy proto support:
20516
+ * http://goto/soy-param-migration
20517
+ * @return {!Object}
20518
+ */
20519
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) {
20520
+ return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject(opt_includeInstance, this);
20521
+ };
20522
+
20523
+
20524
+ /**
20525
+ * Static version of the {@see toObject} method.
20526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20527
+ * the JSPB instance for transitional soy proto support:
20528
+ * http://goto/soy-param-migration
20529
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} msg The msg instance to transform.
20530
+ * @return {!Object}
20531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20532
+ */
20533
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject = function(includeInstance, msg) {
20534
+ var f, obj = {
20535
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
20536
+ paymentmethodidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
20537
+ paymentmethodgroupidsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
20538
+ applepaypaymentmethoddetails: (f = msg.getApplepaypaymentmethoddetails()) && proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.toObject(includeInstance, f)
20539
+ };
20540
+
20541
+ if (includeInstance) {
20542
+ obj.$jspbMessageInstance = msg;
20543
+ }
20544
+ return obj;
20545
+ };
20546
+ }
20547
+
20548
+
20549
+ /**
20550
+ * Deserializes binary data (in protobuf wire format).
20551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20552
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest}
20553
+ */
20554
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinary = function(bytes) {
20555
+ var reader = new jspb.BinaryReader(bytes);
20556
+ var msg = new proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest;
20557
+ return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinaryFromReader(msg, reader);
20558
+ };
20559
+
20560
+
20561
+ /**
20562
+ * Deserializes binary data (in protobuf wire format) from the
20563
+ * given reader into the given message object.
20564
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} msg The message object to deserialize into.
20565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20566
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest}
20567
+ */
20568
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinaryFromReader = function(msg, reader) {
20569
+ while (reader.nextField()) {
20570
+ if (reader.isEndGroup()) {
20571
+ break;
20572
+ }
20573
+ var field = reader.getFieldNumber();
20574
+ switch (field) {
20575
+ case 1:
20576
+ var value = /** @type {number} */ (reader.readInt64());
20577
+ msg.setUserid(value);
20578
+ break;
20579
+ case 2:
20580
+ var value = /** @type {!Array<number>} */ (reader.readPackedInt64());
20581
+ msg.setPaymentmethodidsList(value);
20582
+ break;
20583
+ case 3:
20584
+ var value = /** @type {!Array<number>} */ (reader.readPackedInt64());
20585
+ msg.setPaymentmethodgroupidsList(value);
20586
+ break;
20587
+ case 4:
20588
+ var value = new proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest;
20589
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.deserializeBinaryFromReader);
20590
+ msg.setApplepaypaymentmethoddetails(value);
20591
+ break;
20592
+ default:
20593
+ reader.skipField();
20594
+ break;
20595
+ }
20596
+ }
20597
+ return msg;
20598
+ };
20599
+
20600
+
20601
+ /**
20602
+ * Serializes the message to binary data (in protobuf wire format).
20603
+ * @return {!Uint8Array}
20604
+ */
20605
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.serializeBinary = function() {
20606
+ var writer = new jspb.BinaryWriter();
20607
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.serializeBinaryToWriter(this, writer);
20608
+ return writer.getResultBuffer();
20609
+ };
20610
+
20611
+
20612
+ /**
20613
+ * Serializes the given message to binary data (in protobuf wire
20614
+ * format), writing to the given BinaryWriter.
20615
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} message
20616
+ * @param {!jspb.BinaryWriter} writer
20617
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20618
+ */
20619
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) {
20620
+ var f = undefined;
20621
+ f = message.getUserid();
20622
+ if (f !== 0) {
20623
+ writer.writeInt64(
20624
+ 1,
20625
+ f
20626
+ );
20627
+ }
20628
+ f = message.getPaymentmethodidsList();
20629
+ if (f.length > 0) {
20630
+ writer.writePackedInt64(
20631
+ 2,
20632
+ f
20633
+ );
20634
+ }
20635
+ f = message.getPaymentmethodgroupidsList();
20636
+ if (f.length > 0) {
20637
+ writer.writePackedInt64(
20638
+ 3,
20639
+ f
20640
+ );
20641
+ }
20642
+ f = message.getApplepaypaymentmethoddetails();
20643
+ if (f != null) {
20644
+ writer.writeMessage(
20645
+ 4,
20646
+ f,
20647
+ proto.sniippaymentmethodsserviceapi.ValidateApplePayRequest.serializeBinaryToWriter
20282
20648
  );
20283
20649
  }
20284
20650
  };
@@ -21270,6 +21636,307 @@ proto.sniippaymentmethodsserviceapi.VerifyCreditCardRequest.prototype.hasData =
21270
21636
 
21271
21637
 
21272
21638
 
21639
+ if (jspb.Message.GENERATE_TO_OBJECT) {
21640
+ /**
21641
+ * Creates an object representation of this proto.
21642
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21643
+ * Optional fields that are not set will be set to undefined.
21644
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21645
+ * For the list of reserved names please see:
21646
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21647
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21648
+ * JSPB instance for transitional soy proto support:
21649
+ * http://goto/soy-param-migration
21650
+ * @return {!Object}
21651
+ */
21652
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.toObject = function(opt_includeInstance) {
21653
+ return proto.sniippaymentmethodsserviceapi.WexCardDetail.toObject(opt_includeInstance, this);
21654
+ };
21655
+
21656
+
21657
+ /**
21658
+ * Static version of the {@see toObject} method.
21659
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
21660
+ * the JSPB instance for transitional soy proto support:
21661
+ * http://goto/soy-param-migration
21662
+ * @param {!proto.sniippaymentmethodsserviceapi.WexCardDetail} msg The msg instance to transform.
21663
+ * @return {!Object}
21664
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21665
+ */
21666
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.toObject = function(includeInstance, msg) {
21667
+ var f, obj = {
21668
+ maskedcardnumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
21669
+ expirydate: jspb.Message.getFieldWithDefault(msg, 2, ""),
21670
+ cardstatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
21671
+ redirecturl: jspb.Message.getFieldWithDefault(msg, 4, ""),
21672
+ cardvariant: jspb.Message.getFieldWithDefault(msg, 5, ""),
21673
+ colourscheme: (f = msg.getColourscheme()) && proto.sniippaymentmethodsserviceapi.ColourScheme.toObject(includeInstance, f)
21674
+ };
21675
+
21676
+ if (includeInstance) {
21677
+ obj.$jspbMessageInstance = msg;
21678
+ }
21679
+ return obj;
21680
+ };
21681
+ }
21682
+
21683
+
21684
+ /**
21685
+ * Deserializes binary data (in protobuf wire format).
21686
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
21687
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail}
21688
+ */
21689
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.deserializeBinary = function(bytes) {
21690
+ var reader = new jspb.BinaryReader(bytes);
21691
+ var msg = new proto.sniippaymentmethodsserviceapi.WexCardDetail;
21692
+ return proto.sniippaymentmethodsserviceapi.WexCardDetail.deserializeBinaryFromReader(msg, reader);
21693
+ };
21694
+
21695
+
21696
+ /**
21697
+ * Deserializes binary data (in protobuf wire format) from the
21698
+ * given reader into the given message object.
21699
+ * @param {!proto.sniippaymentmethodsserviceapi.WexCardDetail} msg The message object to deserialize into.
21700
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
21701
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail}
21702
+ */
21703
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.deserializeBinaryFromReader = function(msg, reader) {
21704
+ while (reader.nextField()) {
21705
+ if (reader.isEndGroup()) {
21706
+ break;
21707
+ }
21708
+ var field = reader.getFieldNumber();
21709
+ switch (field) {
21710
+ case 1:
21711
+ var value = /** @type {string} */ (reader.readString());
21712
+ msg.setMaskedcardnumber(value);
21713
+ break;
21714
+ case 2:
21715
+ var value = /** @type {string} */ (reader.readString());
21716
+ msg.setExpirydate(value);
21717
+ break;
21718
+ case 3:
21719
+ var value = /** @type {string} */ (reader.readString());
21720
+ msg.setCardstatus(value);
21721
+ break;
21722
+ case 4:
21723
+ var value = /** @type {string} */ (reader.readString());
21724
+ msg.setRedirecturl(value);
21725
+ break;
21726
+ case 5:
21727
+ var value = /** @type {string} */ (reader.readString());
21728
+ msg.setCardvariant(value);
21729
+ break;
21730
+ case 6:
21731
+ var value = new proto.sniippaymentmethodsserviceapi.ColourScheme;
21732
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader);
21733
+ msg.setColourscheme(value);
21734
+ break;
21735
+ default:
21736
+ reader.skipField();
21737
+ break;
21738
+ }
21739
+ }
21740
+ return msg;
21741
+ };
21742
+
21743
+
21744
+ /**
21745
+ * Serializes the message to binary data (in protobuf wire format).
21746
+ * @return {!Uint8Array}
21747
+ */
21748
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.serializeBinary = function() {
21749
+ var writer = new jspb.BinaryWriter();
21750
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.serializeBinaryToWriter(this, writer);
21751
+ return writer.getResultBuffer();
21752
+ };
21753
+
21754
+
21755
+ /**
21756
+ * Serializes the given message to binary data (in protobuf wire
21757
+ * format), writing to the given BinaryWriter.
21758
+ * @param {!proto.sniippaymentmethodsserviceapi.WexCardDetail} message
21759
+ * @param {!jspb.BinaryWriter} writer
21760
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21761
+ */
21762
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.serializeBinaryToWriter = function(message, writer) {
21763
+ var f = undefined;
21764
+ f = message.getMaskedcardnumber();
21765
+ if (f.length > 0) {
21766
+ writer.writeString(
21767
+ 1,
21768
+ f
21769
+ );
21770
+ }
21771
+ f = message.getExpirydate();
21772
+ if (f.length > 0) {
21773
+ writer.writeString(
21774
+ 2,
21775
+ f
21776
+ );
21777
+ }
21778
+ f = message.getCardstatus();
21779
+ if (f.length > 0) {
21780
+ writer.writeString(
21781
+ 3,
21782
+ f
21783
+ );
21784
+ }
21785
+ f = message.getRedirecturl();
21786
+ if (f.length > 0) {
21787
+ writer.writeString(
21788
+ 4,
21789
+ f
21790
+ );
21791
+ }
21792
+ f = message.getCardvariant();
21793
+ if (f.length > 0) {
21794
+ writer.writeString(
21795
+ 5,
21796
+ f
21797
+ );
21798
+ }
21799
+ f = message.getColourscheme();
21800
+ if (f != null) {
21801
+ writer.writeMessage(
21802
+ 6,
21803
+ f,
21804
+ proto.sniippaymentmethodsserviceapi.ColourScheme.serializeBinaryToWriter
21805
+ );
21806
+ }
21807
+ };
21808
+
21809
+
21810
+ /**
21811
+ * optional string maskedCardNumber = 1;
21812
+ * @return {string}
21813
+ */
21814
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.getMaskedcardnumber = function() {
21815
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
21816
+ };
21817
+
21818
+
21819
+ /**
21820
+ * @param {string} value
21821
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21822
+ */
21823
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.setMaskedcardnumber = function(value) {
21824
+ return jspb.Message.setProto3StringField(this, 1, value);
21825
+ };
21826
+
21827
+
21828
+ /**
21829
+ * optional string expiryDate = 2;
21830
+ * @return {string}
21831
+ */
21832
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.getExpirydate = function() {
21833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
21834
+ };
21835
+
21836
+
21837
+ /**
21838
+ * @param {string} value
21839
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21840
+ */
21841
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.setExpirydate = function(value) {
21842
+ return jspb.Message.setProto3StringField(this, 2, value);
21843
+ };
21844
+
21845
+
21846
+ /**
21847
+ * optional string cardStatus = 3;
21848
+ * @return {string}
21849
+ */
21850
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.getCardstatus = function() {
21851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
21852
+ };
21853
+
21854
+
21855
+ /**
21856
+ * @param {string} value
21857
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21858
+ */
21859
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.setCardstatus = function(value) {
21860
+ return jspb.Message.setProto3StringField(this, 3, value);
21861
+ };
21862
+
21863
+
21864
+ /**
21865
+ * optional string redirectUrl = 4;
21866
+ * @return {string}
21867
+ */
21868
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.getRedirecturl = function() {
21869
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
21870
+ };
21871
+
21872
+
21873
+ /**
21874
+ * @param {string} value
21875
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21876
+ */
21877
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.setRedirecturl = function(value) {
21878
+ return jspb.Message.setProto3StringField(this, 4, value);
21879
+ };
21880
+
21881
+
21882
+ /**
21883
+ * optional string cardVariant = 5;
21884
+ * @return {string}
21885
+ */
21886
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.getCardvariant = function() {
21887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
21888
+ };
21889
+
21890
+
21891
+ /**
21892
+ * @param {string} value
21893
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21894
+ */
21895
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.setCardvariant = function(value) {
21896
+ return jspb.Message.setProto3StringField(this, 5, value);
21897
+ };
21898
+
21899
+
21900
+ /**
21901
+ * optional ColourScheme colourScheme = 6;
21902
+ * @return {?proto.sniippaymentmethodsserviceapi.ColourScheme}
21903
+ */
21904
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.getColourscheme = function() {
21905
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ColourScheme} */ (
21906
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ColourScheme, 6));
21907
+ };
21908
+
21909
+
21910
+ /**
21911
+ * @param {?proto.sniippaymentmethodsserviceapi.ColourScheme|undefined} value
21912
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21913
+ */
21914
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.setColourscheme = function(value) {
21915
+ return jspb.Message.setWrapperField(this, 6, value);
21916
+ };
21917
+
21918
+
21919
+ /**
21920
+ * Clears the message field making it undefined.
21921
+ * @return {!proto.sniippaymentmethodsserviceapi.WexCardDetail} returns this
21922
+ */
21923
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.clearColourscheme = function() {
21924
+ return this.setColourscheme(undefined);
21925
+ };
21926
+
21927
+
21928
+ /**
21929
+ * Returns whether this field is set.
21930
+ * @return {boolean}
21931
+ */
21932
+ proto.sniippaymentmethodsserviceapi.WexCardDetail.prototype.hasColourscheme = function() {
21933
+ return jspb.Message.getField(this, 6) != null;
21934
+ };
21935
+
21936
+
21937
+
21938
+
21939
+
21273
21940
  if (jspb.Message.GENERATE_TO_OBJECT) {
21274
21941
  /**
21275
21942
  * 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": "23.16.5343",
3
+ "version": "24.5.5528",
4
4
  "description": "payment-methods-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",