@sniipwebmaster/payment-methods-client-grpcweb 0.2.267 → 0.2.283

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.
@@ -28,15 +28,15 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRe
28
28
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardRequest', null, global);
29
29
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest', null, global);
30
30
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest', null, global);
31
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardRequest', null, global);
32
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardResponse', null, global);
31
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest', null, global);
33
32
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
34
33
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse', null, global);
35
34
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest', null, global);
36
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest', null, global);
37
35
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.MaskedCreditCard', null, global);
38
36
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethod', null, global);
39
37
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest', null, global);
38
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest', null, global);
39
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse', null, global);
40
40
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodResponse', null, global);
41
41
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse', null, global);
42
42
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest', null, global);
@@ -3257,12 +3257,12 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.h
3257
3257
  * @extends {jspb.Message}
3258
3258
  * @constructor
3259
3259
  */
3260
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest = function(opt_data) {
3260
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest = function(opt_data) {
3261
3261
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3262
3262
  };
3263
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetCreditCardRequest, jspb.Message);
3263
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest, jspb.Message);
3264
3264
  if (goog.DEBUG && !COMPILED) {
3265
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetCreditCardRequest';
3265
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest';
3266
3266
  }
3267
3267
 
3268
3268
 
@@ -3277,8 +3277,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3277
3277
  * for transitional soy proto support: http://goto/soy-param-migration
3278
3278
  * @return {!Object}
3279
3279
  */
3280
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
3281
- return proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject(opt_includeInstance, this);
3280
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
3281
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.toObject(opt_includeInstance, this);
3282
3282
  };
3283
3283
 
3284
3284
 
@@ -3287,14 +3287,13 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.toObject = fu
3287
3287
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3288
3288
  * instance for transitional soy proto support:
3289
3289
  * http://goto/soy-param-migration
3290
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} msg The msg instance to transform.
3290
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} msg The msg instance to transform.
3291
3291
  * @return {!Object}
3292
3292
  * @suppress {unusedLocalVariables} f is only used for nested messages
3293
3293
  */
3294
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject = function(includeInstance, msg) {
3294
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.toObject = function(includeInstance, msg) {
3295
3295
  var f, obj = {
3296
- accesstoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
3297
- creditcardid: jspb.Message.getFieldWithDefault(msg, 2, 0)
3296
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.toObject(includeInstance, f)
3298
3297
  };
3299
3298
 
3300
3299
  if (includeInstance) {
@@ -3308,23 +3307,23 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject = function(inc
3308
3307
  /**
3309
3308
  * Deserializes binary data (in protobuf wire format).
3310
3309
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3311
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest}
3310
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest}
3312
3311
  */
3313
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinary = function(bytes) {
3312
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.deserializeBinary = function(bytes) {
3314
3313
  var reader = new jspb.BinaryReader(bytes);
3315
- var msg = new proto.sniippaymentmethodsserviceapi.GetCreditCardRequest;
3316
- return proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromReader(msg, reader);
3314
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest;
3315
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.deserializeBinaryFromReader(msg, reader);
3317
3316
  };
3318
3317
 
3319
3318
 
3320
3319
  /**
3321
3320
  * Deserializes binary data (in protobuf wire format) from the
3322
3321
  * given reader into the given message object.
3323
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} msg The message object to deserialize into.
3322
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} msg The message object to deserialize into.
3324
3323
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3325
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest}
3324
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest}
3326
3325
  */
3327
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
3326
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
3328
3327
  while (reader.nextField()) {
3329
3328
  if (reader.isEndGroup()) {
3330
3329
  break;
@@ -3332,12 +3331,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromRe
3332
3331
  var field = reader.getFieldNumber();
3333
3332
  switch (field) {
3334
3333
  case 1:
3335
- var value = /** @type {string} */ (reader.readString());
3336
- msg.setAccesstoken(value);
3337
- break;
3338
- case 2:
3339
- var value = /** @type {number} */ (reader.readInt64());
3340
- msg.setCreditcardid(value);
3334
+ var value = new proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest;
3335
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinaryFromReader);
3336
+ msg.setData(value);
3341
3337
  break;
3342
3338
  default:
3343
3339
  reader.skipField();
@@ -3352,9 +3348,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromRe
3352
3348
  * Serializes the message to binary data (in protobuf wire format).
3353
3349
  * @return {!Uint8Array}
3354
3350
  */
3355
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.serializeBinary = function() {
3351
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.serializeBinary = function() {
3356
3352
  var writer = new jspb.BinaryWriter();
3357
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.serializeBinaryToWriter(this, writer);
3353
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.serializeBinaryToWriter(this, writer);
3358
3354
  return writer.getResultBuffer();
3359
3355
  };
3360
3356
 
@@ -3362,56 +3358,50 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.serializeBina
3362
3358
  /**
3363
3359
  * Serializes the given message to binary data (in protobuf wire
3364
3360
  * format), writing to the given BinaryWriter.
3365
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} message
3361
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} message
3366
3362
  * @param {!jspb.BinaryWriter} writer
3367
3363
  * @suppress {unusedLocalVariables} f is only used for nested messages
3368
3364
  */
3369
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
3365
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
3370
3366
  var f = undefined;
3371
- f = message.getAccesstoken();
3372
- if (f.length > 0) {
3373
- writer.writeString(
3367
+ f = message.getData();
3368
+ if (f != null) {
3369
+ writer.writeMessage(
3374
3370
  1,
3375
- f
3376
- );
3377
- }
3378
- f = message.getCreditcardid();
3379
- if (f !== 0) {
3380
- writer.writeInt64(
3381
- 2,
3382
- f
3371
+ f,
3372
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.serializeBinaryToWriter
3383
3373
  );
3384
3374
  }
3385
3375
  };
3386
3376
 
3387
3377
 
3388
3378
  /**
3389
- * optional string accessToken = 1;
3390
- * @return {string}
3379
+ * optional PaymentMethodForPaymentRequest data = 1;
3380
+ * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest}
3391
3381
  */
3392
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.getAccesstoken = function() {
3393
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3382
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.getData = function() {
3383
+ return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} */ (
3384
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest, 1));
3394
3385
  };
3395
3386
 
3396
3387
 
3397
- /** @param {string} value */
3398
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.setAccesstoken = function(value) {
3399
- jspb.Message.setProto3StringField(this, 1, value);
3388
+ /** @param {?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest|undefined} value */
3389
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.setData = function(value) {
3390
+ jspb.Message.setWrapperField(this, 1, value);
3400
3391
  };
3401
3392
 
3402
3393
 
3403
- /**
3404
- * optional int64 creditCardId = 2;
3405
- * @return {number}
3406
- */
3407
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.getCreditcardid = function() {
3408
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3394
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.clearData = function() {
3395
+ this.setData(undefined);
3409
3396
  };
3410
3397
 
3411
3398
 
3412
- /** @param {number} value */
3413
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.setCreditcardid = function(value) {
3414
- jspb.Message.setProto3IntField(this, 2, value);
3399
+ /**
3400
+ * Returns whether this field is set.
3401
+ * @return {!boolean}
3402
+ */
3403
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.hasData = function() {
3404
+ return jspb.Message.getField(this, 1) != null;
3415
3405
  };
3416
3406
 
3417
3407
 
@@ -3426,12 +3416,12 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.setCreditcard
3426
3416
  * @extends {jspb.Message}
3427
3417
  * @constructor
3428
3418
  */
3429
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse = function(opt_data) {
3419
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest = function(opt_data) {
3430
3420
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3431
3421
  };
3432
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetCreditCardResponse, jspb.Message);
3422
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest, jspb.Message);
3433
3423
  if (goog.DEBUG && !COMPILED) {
3434
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.displayName = 'proto.sniippaymentmethodsserviceapi.GetCreditCardResponse';
3424
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest';
3435
3425
  }
3436
3426
 
3437
3427
 
@@ -3446,8 +3436,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3446
3436
  * for transitional soy proto support: http://goto/soy-param-migration
3447
3437
  * @return {!Object}
3448
3438
  */
3449
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.toObject = function(opt_includeInstance) {
3450
- return proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.toObject(opt_includeInstance, this);
3439
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
3440
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject(opt_includeInstance, this);
3451
3441
  };
3452
3442
 
3453
3443
 
@@ -3456,22 +3446,16 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.toObject = f
3456
3446
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3457
3447
  * instance for transitional soy proto support:
3458
3448
  * http://goto/soy-param-migration
3459
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse} msg The msg instance to transform.
3449
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} msg The msg instance to transform.
3460
3450
  * @return {!Object}
3461
3451
  * @suppress {unusedLocalVariables} f is only used for nested messages
3462
3452
  */
3463
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.toObject = function(includeInstance, msg) {
3453
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject = function(includeInstance, msg) {
3464
3454
  var f, obj = {
3465
- creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
3466
- cardnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
3467
- maskedcardnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
3468
- nameoncard: jspb.Message.getFieldWithDefault(msg, 4, ""),
3469
- cardtype: jspb.Message.getFieldWithDefault(msg, 5, ""),
3470
- cvv: jspb.Message.getFieldWithDefault(msg, 6, ""),
3471
- monthexpiry: jspb.Message.getFieldWithDefault(msg, 7, 0),
3472
- yearexpiry: jspb.Message.getFieldWithDefault(msg, 8, 0),
3473
- nickname: jspb.Message.getFieldWithDefault(msg, 9, ""),
3474
- responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f)
3455
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
3456
+ source: jspb.Message.getFieldWithDefault(msg, 2, ""),
3457
+ sourceid: jspb.Message.getFieldWithDefault(msg, 3, 0),
3458
+ activation: jspb.Message.getFieldWithDefault(msg, 4, "")
3475
3459
  };
3476
3460
 
3477
3461
  if (includeInstance) {
@@ -3485,23 +3469,23 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.toObject = function(in
3485
3469
  /**
3486
3470
  * Deserializes binary data (in protobuf wire format).
3487
3471
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3488
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse}
3472
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest}
3489
3473
  */
3490
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinary = function(bytes) {
3474
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinary = function(bytes) {
3491
3475
  var reader = new jspb.BinaryReader(bytes);
3492
- var msg = new proto.sniippaymentmethodsserviceapi.GetCreditCardResponse;
3493
- return proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromReader(msg, reader);
3476
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest;
3477
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
3494
3478
  };
3495
3479
 
3496
3480
 
3497
3481
  /**
3498
3482
  * Deserializes binary data (in protobuf wire format) from the
3499
3483
  * given reader into the given message object.
3500
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse} msg The message object to deserialize into.
3484
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} msg The message object to deserialize into.
3501
3485
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3502
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse}
3486
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest}
3503
3487
  */
3504
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromReader = function(msg, reader) {
3488
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
3505
3489
  while (reader.nextField()) {
3506
3490
  if (reader.isEndGroup()) {
3507
3491
  break;
@@ -3509,45 +3493,20 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromR
3509
3493
  var field = reader.getFieldNumber();
3510
3494
  switch (field) {
3511
3495
  case 1:
3512
- var value = /** @type {number} */ (reader.readInt64());
3513
- msg.setCreditcardid(value);
3496
+ var value = /** @type {string} */ (reader.readString());
3497
+ msg.setAccesstoken(value);
3514
3498
  break;
3515
3499
  case 2:
3516
3500
  var value = /** @type {string} */ (reader.readString());
3517
- msg.setCardnumber(value);
3501
+ msg.setSource(value);
3518
3502
  break;
3519
3503
  case 3:
3520
- var value = /** @type {string} */ (reader.readString());
3521
- msg.setMaskedcardnumber(value);
3504
+ var value = /** @type {number} */ (reader.readInt64());
3505
+ msg.setSourceid(value);
3522
3506
  break;
3523
3507
  case 4:
3524
3508
  var value = /** @type {string} */ (reader.readString());
3525
- msg.setNameoncard(value);
3526
- break;
3527
- case 5:
3528
- var value = /** @type {string} */ (reader.readString());
3529
- msg.setCardtype(value);
3530
- break;
3531
- case 6:
3532
- var value = /** @type {string} */ (reader.readString());
3533
- msg.setCvv(value);
3534
- break;
3535
- case 7:
3536
- var value = /** @type {number} */ (reader.readInt32());
3537
- msg.setMonthexpiry(value);
3538
- break;
3539
- case 8:
3540
- var value = /** @type {number} */ (reader.readInt32());
3541
- msg.setYearexpiry(value);
3542
- break;
3543
- case 9:
3544
- var value = /** @type {string} */ (reader.readString());
3545
- msg.setNickname(value);
3546
- break;
3547
- case 10:
3548
- var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
3549
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
3550
- msg.setResponsecode(value);
3509
+ msg.setActivation(value);
3551
3510
  break;
3552
3511
  default:
3553
3512
  reader.skipField();
@@ -3562,9 +3521,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromR
3562
3521
  * Serializes the message to binary data (in protobuf wire format).
3563
3522
  * @return {!Uint8Array}
3564
3523
  */
3565
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.serializeBinary = function() {
3524
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.serializeBinary = function() {
3566
3525
  var writer = new jspb.BinaryWriter();
3567
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.serializeBinaryToWriter(this, writer);
3526
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.serializeBinaryToWriter(this, writer);
3568
3527
  return writer.getResultBuffer();
3569
3528
  };
3570
3529
 
@@ -3572,238 +3531,293 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.serializeBin
3572
3531
  /**
3573
3532
  * Serializes the given message to binary data (in protobuf wire
3574
3533
  * format), writing to the given BinaryWriter.
3575
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse} message
3534
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} message
3576
3535
  * @param {!jspb.BinaryWriter} writer
3577
3536
  * @suppress {unusedLocalVariables} f is only used for nested messages
3578
3537
  */
3579
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.serializeBinaryToWriter = function(message, writer) {
3538
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
3580
3539
  var f = undefined;
3581
- f = message.getCreditcardid();
3582
- if (f !== 0) {
3583
- writer.writeInt64(
3540
+ f = message.getAccesstoken();
3541
+ if (f.length > 0) {
3542
+ writer.writeString(
3584
3543
  1,
3585
3544
  f
3586
3545
  );
3587
3546
  }
3588
- f = message.getCardnumber();
3547
+ f = message.getSource();
3589
3548
  if (f.length > 0) {
3590
3549
  writer.writeString(
3591
3550
  2,
3592
3551
  f
3593
3552
  );
3594
3553
  }
3595
- f = message.getMaskedcardnumber();
3596
- if (f.length > 0) {
3597
- writer.writeString(
3554
+ f = message.getSourceid();
3555
+ if (f !== 0) {
3556
+ writer.writeInt64(
3598
3557
  3,
3599
3558
  f
3600
3559
  );
3601
3560
  }
3602
- f = message.getNameoncard();
3561
+ f = message.getActivation();
3603
3562
  if (f.length > 0) {
3604
3563
  writer.writeString(
3605
3564
  4,
3606
3565
  f
3607
3566
  );
3608
3567
  }
3609
- f = message.getCardtype();
3610
- if (f.length > 0) {
3611
- writer.writeString(
3612
- 5,
3613
- f
3614
- );
3615
- }
3616
- f = message.getCvv();
3617
- if (f.length > 0) {
3618
- writer.writeString(
3619
- 6,
3620
- f
3621
- );
3622
- }
3623
- f = message.getMonthexpiry();
3624
- if (f !== 0) {
3625
- writer.writeInt32(
3626
- 7,
3627
- f
3628
- );
3629
- }
3630
- f = message.getYearexpiry();
3631
- if (f !== 0) {
3632
- writer.writeInt32(
3633
- 8,
3634
- f
3635
- );
3636
- }
3637
- f = message.getNickname();
3638
- if (f.length > 0) {
3639
- writer.writeString(
3640
- 9,
3641
- f
3642
- );
3643
- }
3644
- f = message.getResponsecode();
3645
- if (f != null) {
3646
- writer.writeMessage(
3647
- 10,
3648
- f,
3649
- proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
3650
- );
3651
- }
3652
3568
  };
3653
3569
 
3654
3570
 
3655
3571
  /**
3656
- * optional int64 creditCardId = 1;
3657
- * @return {number}
3572
+ * optional string accessToken = 1;
3573
+ * @return {string}
3658
3574
  */
3659
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCreditcardid = function() {
3660
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3575
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getAccesstoken = function() {
3576
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3661
3577
  };
3662
3578
 
3663
3579
 
3664
- /** @param {number} value */
3665
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCreditcardid = function(value) {
3666
- jspb.Message.setProto3IntField(this, 1, value);
3580
+ /** @param {string} value */
3581
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setAccesstoken = function(value) {
3582
+ jspb.Message.setProto3StringField(this, 1, value);
3667
3583
  };
3668
3584
 
3669
3585
 
3670
3586
  /**
3671
- * optional string cardNumber = 2;
3587
+ * optional string source = 2;
3672
3588
  * @return {string}
3673
3589
  */
3674
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCardnumber = function() {
3590
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getSource = function() {
3675
3591
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3676
3592
  };
3677
3593
 
3678
3594
 
3679
3595
  /** @param {string} value */
3680
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCardnumber = function(value) {
3596
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setSource = function(value) {
3681
3597
  jspb.Message.setProto3StringField(this, 2, value);
3682
3598
  };
3683
3599
 
3684
3600
 
3685
3601
  /**
3686
- * optional string maskedCardNumber = 3;
3687
- * @return {string}
3602
+ * optional int64 sourceId = 3;
3603
+ * @return {number}
3688
3604
  */
3689
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getMaskedcardnumber = function() {
3690
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3605
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getSourceid = function() {
3606
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3691
3607
  };
3692
3608
 
3693
3609
 
3694
- /** @param {string} value */
3695
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setMaskedcardnumber = function(value) {
3696
- jspb.Message.setProto3StringField(this, 3, value);
3610
+ /** @param {number} value */
3611
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setSourceid = function(value) {
3612
+ jspb.Message.setProto3IntField(this, 3, value);
3697
3613
  };
3698
3614
 
3699
3615
 
3700
3616
  /**
3701
- * optional string nameOnCard = 4;
3617
+ * optional string activation = 4;
3702
3618
  * @return {string}
3703
3619
  */
3704
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getNameoncard = function() {
3620
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getActivation = function() {
3705
3621
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3706
3622
  };
3707
3623
 
3708
3624
 
3709
3625
  /** @param {string} value */
3710
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setNameoncard = function(value) {
3626
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setActivation = function(value) {
3711
3627
  jspb.Message.setProto3StringField(this, 4, value);
3712
3628
  };
3713
3629
 
3714
3630
 
3631
+
3715
3632
  /**
3716
- * optional string cardType = 5;
3717
- * @return {string}
3633
+ * Generated by JsPbCodeGenerator.
3634
+ * @param {Array=} opt_data Optional initial data array, typically from a
3635
+ * server response, or constructed directly in Javascript. The array is used
3636
+ * in place and becomes part of the constructed object. It is not cloned.
3637
+ * If no data is provided, the constructed object will be empty, but still
3638
+ * valid.
3639
+ * @extends {jspb.Message}
3640
+ * @constructor
3718
3641
  */
3719
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCardtype = function() {
3720
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3721
- };
3722
-
3723
-
3724
- /** @param {string} value */
3725
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCardtype = function(value) {
3726
- jspb.Message.setProto3StringField(this, 5, value);
3642
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse = function(opt_data) {
3643
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3727
3644
  };
3645
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse, jspb.Message);
3646
+ if (goog.DEBUG && !COMPILED) {
3647
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse';
3648
+ }
3728
3649
 
3729
3650
 
3651
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3730
3652
  /**
3731
- * optional string cvv = 6;
3732
- * @return {string}
3653
+ * Creates an object representation of this proto suitable for use in Soy templates.
3654
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3655
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3656
+ * For the list of reserved names please see:
3657
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3658
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3659
+ * for transitional soy proto support: http://goto/soy-param-migration
3660
+ * @return {!Object}
3733
3661
  */
3734
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCvv = function() {
3735
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3736
- };
3737
-
3738
-
3739
- /** @param {string} value */
3740
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCvv = function(value) {
3741
- jspb.Message.setProto3StringField(this, 6, value);
3662
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.toObject = function(opt_includeInstance) {
3663
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.toObject(opt_includeInstance, this);
3742
3664
  };
3743
3665
 
3744
3666
 
3745
3667
  /**
3746
- * optional int32 monthExpiry = 7;
3747
- * @return {number}
3668
+ * Static version of the {@see toObject} method.
3669
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3670
+ * instance for transitional soy proto support:
3671
+ * http://goto/soy-param-migration
3672
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse} msg The msg instance to transform.
3673
+ * @return {!Object}
3674
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3748
3675
  */
3749
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getMonthexpiry = function() {
3750
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3751
- };
3752
-
3676
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.toObject = function(includeInstance, msg) {
3677
+ var f, obj = {
3678
+ paymentmethod: (f = msg.getPaymentmethod()) && proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(includeInstance, f),
3679
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f)
3680
+ };
3753
3681
 
3754
- /** @param {number} value */
3755
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setMonthexpiry = function(value) {
3756
- jspb.Message.setProto3IntField(this, 7, value);
3682
+ if (includeInstance) {
3683
+ obj.$jspbMessageInstance = msg;
3684
+ }
3685
+ return obj;
3757
3686
  };
3687
+ }
3758
3688
 
3759
3689
 
3760
3690
  /**
3761
- * optional int32 yearExpiry = 8;
3762
- * @return {number}
3691
+ * Deserializes binary data (in protobuf wire format).
3692
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3693
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse}
3763
3694
  */
3764
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getYearexpiry = function() {
3765
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
3695
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinary = function(bytes) {
3696
+ var reader = new jspb.BinaryReader(bytes);
3697
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse;
3698
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinaryFromReader(msg, reader);
3766
3699
  };
3767
3700
 
3768
3701
 
3769
- /** @param {number} value */
3770
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setYearexpiry = function(value) {
3771
- jspb.Message.setProto3IntField(this, 8, value);
3702
+ /**
3703
+ * Deserializes binary data (in protobuf wire format) from the
3704
+ * given reader into the given message object.
3705
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse} msg The message object to deserialize into.
3706
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3707
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse}
3708
+ */
3709
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinaryFromReader = function(msg, reader) {
3710
+ while (reader.nextField()) {
3711
+ if (reader.isEndGroup()) {
3712
+ break;
3713
+ }
3714
+ var field = reader.getFieldNumber();
3715
+ switch (field) {
3716
+ case 1:
3717
+ var value = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
3718
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader);
3719
+ msg.setPaymentmethod(value);
3720
+ break;
3721
+ case 2:
3722
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
3723
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
3724
+ msg.setResponsecode(value);
3725
+ break;
3726
+ default:
3727
+ reader.skipField();
3728
+ break;
3729
+ }
3730
+ }
3731
+ return msg;
3772
3732
  };
3773
3733
 
3774
3734
 
3775
3735
  /**
3776
- * optional string nickname = 9;
3777
- * @return {string}
3736
+ * Serializes the message to binary data (in protobuf wire format).
3737
+ * @return {!Uint8Array}
3778
3738
  */
3779
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getNickname = function() {
3780
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3739
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.serializeBinary = function() {
3740
+ var writer = new jspb.BinaryWriter();
3741
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.serializeBinaryToWriter(this, writer);
3742
+ return writer.getResultBuffer();
3781
3743
  };
3782
3744
 
3783
3745
 
3784
- /** @param {string} value */
3785
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setNickname = function(value) {
3786
- jspb.Message.setProto3StringField(this, 9, value);
3746
+ /**
3747
+ * Serializes the given message to binary data (in protobuf wire
3748
+ * format), writing to the given BinaryWriter.
3749
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse} message
3750
+ * @param {!jspb.BinaryWriter} writer
3751
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3752
+ */
3753
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.serializeBinaryToWriter = function(message, writer) {
3754
+ var f = undefined;
3755
+ f = message.getPaymentmethod();
3756
+ if (f != null) {
3757
+ writer.writeMessage(
3758
+ 1,
3759
+ f,
3760
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter
3761
+ );
3762
+ }
3763
+ f = message.getResponsecode();
3764
+ if (f != null) {
3765
+ writer.writeMessage(
3766
+ 2,
3767
+ f,
3768
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
3769
+ );
3770
+ }
3787
3771
  };
3788
3772
 
3789
3773
 
3790
3774
  /**
3791
- * optional ResponseCode responseCode = 10;
3775
+ * optional PaymentMethod PaymentMethod = 1;
3776
+ * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethod}
3777
+ */
3778
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.getPaymentmethod = function() {
3779
+ return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethod} */ (
3780
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethod, 1));
3781
+ };
3782
+
3783
+
3784
+ /** @param {?proto.sniippaymentmethodsserviceapi.PaymentMethod|undefined} value */
3785
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.setPaymentmethod = function(value) {
3786
+ jspb.Message.setWrapperField(this, 1, value);
3787
+ };
3788
+
3789
+
3790
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.clearPaymentmethod = function() {
3791
+ this.setPaymentmethod(undefined);
3792
+ };
3793
+
3794
+
3795
+ /**
3796
+ * Returns whether this field is set.
3797
+ * @return {!boolean}
3798
+ */
3799
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.hasPaymentmethod = function() {
3800
+ return jspb.Message.getField(this, 1) != null;
3801
+ };
3802
+
3803
+
3804
+ /**
3805
+ * optional ResponseCode responseCode = 2;
3792
3806
  * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
3793
3807
  */
3794
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getResponsecode = function() {
3808
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.getResponsecode = function() {
3795
3809
  return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
3796
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 10));
3810
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 2));
3797
3811
  };
3798
3812
 
3799
3813
 
3800
3814
  /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
3801
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setResponsecode = function(value) {
3802
- jspb.Message.setWrapperField(this, 10, value);
3815
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.setResponsecode = function(value) {
3816
+ jspb.Message.setWrapperField(this, 2, value);
3803
3817
  };
3804
3818
 
3805
3819
 
3806
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.clearResponsecode = function() {
3820
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.clearResponsecode = function() {
3807
3821
  this.setResponsecode(undefined);
3808
3822
  };
3809
3823
 
@@ -3812,8 +3826,8 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.clearRespons
3812
3826
  * Returns whether this field is set.
3813
3827
  * @return {!boolean}
3814
3828
  */
3815
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.hasResponsecode = function() {
3816
- return jspb.Message.getField(this, 10) != null;
3829
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.hasResponsecode = function() {
3830
+ return jspb.Message.getField(this, 2) != null;
3817
3831
  };
3818
3832
 
3819
3833
 
@@ -3828,12 +3842,12 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.hasResponsec
3828
3842
  * @extends {jspb.Message}
3829
3843
  * @constructor
3830
3844
  */
3831
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest = function(opt_data) {
3845
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest = function(opt_data) {
3832
3846
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3833
3847
  };
3834
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest, jspb.Message);
3848
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest, jspb.Message);
3835
3849
  if (goog.DEBUG && !COMPILED) {
3836
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest';
3850
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest';
3837
3851
  }
3838
3852
 
3839
3853
 
@@ -3848,8 +3862,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3848
3862
  * for transitional soy proto support: http://goto/soy-param-migration
3849
3863
  * @return {!Object}
3850
3864
  */
3851
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
3852
- return proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject(opt_includeInstance, this);
3865
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) {
3866
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.toObject(opt_includeInstance, this);
3853
3867
  };
3854
3868
 
3855
3869
 
@@ -3858,16 +3872,13 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.toObject =
3858
3872
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3859
3873
  * instance for transitional soy proto support:
3860
3874
  * http://goto/soy-param-migration
3861
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} msg The msg instance to transform.
3875
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} msg The msg instance to transform.
3862
3876
  * @return {!Object}
3863
3877
  * @suppress {unusedLocalVariables} f is only used for nested messages
3864
3878
  */
3865
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject = function(includeInstance, msg) {
3879
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.toObject = function(includeInstance, msg) {
3866
3880
  var f, obj = {
3867
- accesstoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
3868
- source: jspb.Message.getFieldWithDefault(msg, 2, ""),
3869
- sourceid: jspb.Message.getFieldWithDefault(msg, 3, 0),
3870
- activation: jspb.Message.getFieldWithDefault(msg, 4, "")
3881
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.AccessToken.toObject(includeInstance, f)
3871
3882
  };
3872
3883
 
3873
3884
  if (includeInstance) {
@@ -3881,23 +3892,23 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject = function(
3881
3892
  /**
3882
3893
  * Deserializes binary data (in protobuf wire format).
3883
3894
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3884
- * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest}
3895
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest}
3885
3896
  */
3886
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinary = function(bytes) {
3897
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.deserializeBinary = function(bytes) {
3887
3898
  var reader = new jspb.BinaryReader(bytes);
3888
- var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest;
3889
- return proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
3899
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest;
3900
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.deserializeBinaryFromReader(msg, reader);
3890
3901
  };
3891
3902
 
3892
3903
 
3893
3904
  /**
3894
3905
  * Deserializes binary data (in protobuf wire format) from the
3895
3906
  * given reader into the given message object.
3896
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} msg The message object to deserialize into.
3907
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} msg The message object to deserialize into.
3897
3908
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3898
- * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest}
3909
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest}
3899
3910
  */
3900
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
3911
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.deserializeBinaryFromReader = function(msg, reader) {
3901
3912
  while (reader.nextField()) {
3902
3913
  if (reader.isEndGroup()) {
3903
3914
  break;
@@ -3905,20 +3916,9 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFro
3905
3916
  var field = reader.getFieldNumber();
3906
3917
  switch (field) {
3907
3918
  case 1:
3908
- var value = /** @type {string} */ (reader.readString());
3909
- msg.setAccesstoken(value);
3910
- break;
3911
- case 2:
3912
- var value = /** @type {string} */ (reader.readString());
3913
- msg.setSource(value);
3914
- break;
3915
- case 3:
3916
- var value = /** @type {number} */ (reader.readInt64());
3917
- msg.setSourceid(value);
3918
- break;
3919
- case 4:
3920
- var value = /** @type {string} */ (reader.readString());
3921
- msg.setActivation(value);
3919
+ var value = new proto.sniippaymentmethodsserviceapi.AccessToken;
3920
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.AccessToken.deserializeBinaryFromReader);
3921
+ msg.setData(value);
3922
3922
  break;
3923
3923
  default:
3924
3924
  reader.skipField();
@@ -3933,9 +3933,9 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFro
3933
3933
  * Serializes the message to binary data (in protobuf wire format).
3934
3934
  * @return {!Uint8Array}
3935
3935
  */
3936
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.serializeBinary = function() {
3936
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.serializeBinary = function() {
3937
3937
  var writer = new jspb.BinaryWriter();
3938
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.serializeBinaryToWriter(this, writer);
3938
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.serializeBinaryToWriter(this, writer);
3939
3939
  return writer.getResultBuffer();
3940
3940
  };
3941
3941
 
@@ -3943,100 +3943,50 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.serializeB
3943
3943
  /**
3944
3944
  * Serializes the given message to binary data (in protobuf wire
3945
3945
  * format), writing to the given BinaryWriter.
3946
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} message
3946
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} message
3947
3947
  * @param {!jspb.BinaryWriter} writer
3948
3948
  * @suppress {unusedLocalVariables} f is only used for nested messages
3949
3949
  */
3950
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
3950
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) {
3951
3951
  var f = undefined;
3952
- f = message.getAccesstoken();
3953
- if (f.length > 0) {
3954
- writer.writeString(
3952
+ f = message.getData();
3953
+ if (f != null) {
3954
+ writer.writeMessage(
3955
3955
  1,
3956
- f
3957
- );
3958
- }
3959
- f = message.getSource();
3960
- if (f.length > 0) {
3961
- writer.writeString(
3962
- 2,
3963
- f
3964
- );
3965
- }
3966
- f = message.getSourceid();
3967
- if (f !== 0) {
3968
- writer.writeInt64(
3969
- 3,
3970
- f
3971
- );
3972
- }
3973
- f = message.getActivation();
3974
- if (f.length > 0) {
3975
- writer.writeString(
3976
- 4,
3977
- f
3956
+ f,
3957
+ proto.sniippaymentmethodsserviceapi.AccessToken.serializeBinaryToWriter
3978
3958
  );
3979
3959
  }
3980
3960
  };
3981
3961
 
3982
3962
 
3983
3963
  /**
3984
- * optional string accessToken = 1;
3985
- * @return {string}
3986
- */
3987
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getAccesstoken = function() {
3988
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3989
- };
3990
-
3991
-
3992
- /** @param {string} value */
3993
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setAccesstoken = function(value) {
3994
- jspb.Message.setProto3StringField(this, 1, value);
3995
- };
3996
-
3997
-
3998
- /**
3999
- * optional string source = 2;
4000
- * @return {string}
3964
+ * optional AccessToken data = 1;
3965
+ * @return {?proto.sniippaymentmethodsserviceapi.AccessToken}
4001
3966
  */
4002
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getSource = function() {
4003
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4004
- };
4005
-
4006
-
4007
- /** @param {string} value */
4008
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setSource = function(value) {
4009
- jspb.Message.setProto3StringField(this, 2, value);
3967
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.getData = function() {
3968
+ return /** @type{?proto.sniippaymentmethodsserviceapi.AccessToken} */ (
3969
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.AccessToken, 1));
4010
3970
  };
4011
3971
 
4012
3972
 
4013
- /**
4014
- * optional int64 sourceId = 3;
4015
- * @return {number}
4016
- */
4017
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getSourceid = function() {
4018
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3973
+ /** @param {?proto.sniippaymentmethodsserviceapi.AccessToken|undefined} value */
3974
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.setData = function(value) {
3975
+ jspb.Message.setWrapperField(this, 1, value);
4019
3976
  };
4020
3977
 
4021
3978
 
4022
- /** @param {number} value */
4023
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setSourceid = function(value) {
4024
- jspb.Message.setProto3IntField(this, 3, value);
3979
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.clearData = function() {
3980
+ this.setData(undefined);
4025
3981
  };
4026
3982
 
4027
3983
 
4028
3984
  /**
4029
- * optional string activation = 4;
4030
- * @return {string}
3985
+ * Returns whether this field is set.
3986
+ * @return {!boolean}
4031
3987
  */
4032
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.getActivation = function() {
4033
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4034
- };
4035
-
4036
-
4037
- /** @param {string} value */
4038
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setActivation = function(value) {
4039
- jspb.Message.setProto3StringField(this, 4, value);
3988
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.hasData = function() {
3989
+ return jspb.Message.getField(this, 1) != null;
4040
3990
  };
4041
3991
 
4042
3992
 
@@ -4051,12 +4001,12 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.prototype.setActivat
4051
4001
  * @extends {jspb.Message}
4052
4002
  * @constructor
4053
4003
  */
4054
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse = function(opt_data) {
4004
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard = function(opt_data) {
4055
4005
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4056
4006
  };
4057
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse, jspb.Message);
4007
+ goog.inherits(proto.sniippaymentmethodsserviceapi.MaskedCreditCard, jspb.Message);
4058
4008
  if (goog.DEBUG && !COMPILED) {
4059
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse';
4009
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.MaskedCreditCard';
4060
4010
  }
4061
4011
 
4062
4012
 
@@ -4071,8 +4021,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4071
4021
  * for transitional soy proto support: http://goto/soy-param-migration
4072
4022
  * @return {!Object}
4073
4023
  */
4074
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.toObject = function(opt_includeInstance) {
4075
- return proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.toObject(opt_includeInstance, this);
4024
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.toObject = function(opt_includeInstance) {
4025
+ return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(opt_includeInstance, this);
4076
4026
  };
4077
4027
 
4078
4028
 
@@ -4081,14 +4031,20 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.toObject
4081
4031
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4082
4032
  * instance for transitional soy proto support:
4083
4033
  * http://goto/soy-param-migration
4084
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse} msg The msg instance to transform.
4034
+ * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The msg instance to transform.
4085
4035
  * @return {!Object}
4086
4036
  * @suppress {unusedLocalVariables} f is only used for nested messages
4087
4037
  */
4088
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.toObject = function(includeInstance, msg) {
4038
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject = function(includeInstance, msg) {
4089
4039
  var f, obj = {
4090
- paymentmethod: (f = msg.getPaymentmethod()) && proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(includeInstance, f),
4091
- responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f)
4040
+ creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4041
+ nameoncard: jspb.Message.getFieldWithDefault(msg, 2, ""),
4042
+ creditcardnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
4043
+ cardtype: jspb.Message.getFieldWithDefault(msg, 4, ""),
4044
+ monthexpiry: jspb.Message.getFieldWithDefault(msg, 5, 0),
4045
+ yearexpiry: jspb.Message.getFieldWithDefault(msg, 6, 0),
4046
+ nickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
4047
+ createddatetime: jspb.Message.getFieldWithDefault(msg, 8, "")
4092
4048
  };
4093
4049
 
4094
4050
  if (includeInstance) {
@@ -4102,23 +4058,23 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.toObject = function
4102
4058
  /**
4103
4059
  * Deserializes binary data (in protobuf wire format).
4104
4060
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4105
- * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse}
4061
+ * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4106
4062
  */
4107
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinary = function(bytes) {
4063
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinary = function(bytes) {
4108
4064
  var reader = new jspb.BinaryReader(bytes);
4109
- var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse;
4110
- return proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinaryFromReader(msg, reader);
4065
+ var msg = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
4066
+ return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader(msg, reader);
4111
4067
  };
4112
4068
 
4113
4069
 
4114
4070
  /**
4115
4071
  * Deserializes binary data (in protobuf wire format) from the
4116
4072
  * given reader into the given message object.
4117
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse} msg The message object to deserialize into.
4073
+ * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The message object to deserialize into.
4118
4074
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4119
- * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse}
4075
+ * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4120
4076
  */
4121
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinaryFromReader = function(msg, reader) {
4077
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader = function(msg, reader) {
4122
4078
  while (reader.nextField()) {
4123
4079
  if (reader.isEndGroup()) {
4124
4080
  break;
@@ -4126,14 +4082,36 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinaryFr
4126
4082
  var field = reader.getFieldNumber();
4127
4083
  switch (field) {
4128
4084
  case 1:
4129
- var value = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
4130
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader);
4131
- msg.setPaymentmethod(value);
4085
+ var value = /** @type {number} */ (reader.readInt64());
4086
+ msg.setCreditcardid(value);
4132
4087
  break;
4133
4088
  case 2:
4134
- var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
4135
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
4136
- msg.setResponsecode(value);
4089
+ var value = /** @type {string} */ (reader.readString());
4090
+ msg.setNameoncard(value);
4091
+ break;
4092
+ case 3:
4093
+ var value = /** @type {string} */ (reader.readString());
4094
+ msg.setCreditcardnumber(value);
4095
+ break;
4096
+ case 4:
4097
+ var value = /** @type {string} */ (reader.readString());
4098
+ msg.setCardtype(value);
4099
+ break;
4100
+ case 5:
4101
+ var value = /** @type {number} */ (reader.readInt32());
4102
+ msg.setMonthexpiry(value);
4103
+ break;
4104
+ case 6:
4105
+ var value = /** @type {number} */ (reader.readInt32());
4106
+ msg.setYearexpiry(value);
4107
+ break;
4108
+ case 7:
4109
+ var value = /** @type {string} */ (reader.readString());
4110
+ msg.setNickname(value);
4111
+ break;
4112
+ case 8:
4113
+ var value = /** @type {string} */ (reader.readString());
4114
+ msg.setCreateddatetime(value);
4137
4115
  break;
4138
4116
  default:
4139
4117
  reader.skipField();
@@ -4148,9 +4126,9 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinaryFr
4148
4126
  * Serializes the message to binary data (in protobuf wire format).
4149
4127
  * @return {!Uint8Array}
4150
4128
  */
4151
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.serializeBinary = function() {
4129
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.serializeBinary = function() {
4152
4130
  var writer = new jspb.BinaryWriter();
4153
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.serializeBinaryToWriter(this, writer);
4131
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter(this, writer);
4154
4132
  return writer.getResultBuffer();
4155
4133
  };
4156
4134
 
@@ -4158,406 +4136,188 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.serialize
4158
4136
  /**
4159
4137
  * Serializes the given message to binary data (in protobuf wire
4160
4138
  * format), writing to the given BinaryWriter.
4161
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse} message
4139
+ * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} message
4162
4140
  * @param {!jspb.BinaryWriter} writer
4163
4141
  * @suppress {unusedLocalVariables} f is only used for nested messages
4164
4142
  */
4165
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.serializeBinaryToWriter = function(message, writer) {
4143
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter = function(message, writer) {
4166
4144
  var f = undefined;
4167
- f = message.getPaymentmethod();
4168
- if (f != null) {
4169
- writer.writeMessage(
4145
+ f = message.getCreditcardid();
4146
+ if (f !== 0) {
4147
+ writer.writeInt64(
4170
4148
  1,
4171
- f,
4172
- proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter
4149
+ f
4173
4150
  );
4174
4151
  }
4175
- f = message.getResponsecode();
4176
- if (f != null) {
4177
- writer.writeMessage(
4152
+ f = message.getNameoncard();
4153
+ if (f.length > 0) {
4154
+ writer.writeString(
4178
4155
  2,
4179
- f,
4180
- proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
4156
+ f
4181
4157
  );
4182
4158
  }
4183
- };
4184
-
4185
-
4186
- /**
4187
- * optional PaymentMethod PaymentMethod = 1;
4188
- * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethod}
4189
- */
4190
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.getPaymentmethod = function() {
4191
- return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethod} */ (
4192
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethod, 1));
4193
- };
4194
-
4195
-
4196
- /** @param {?proto.sniippaymentmethodsserviceapi.PaymentMethod|undefined} value */
4197
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.setPaymentmethod = function(value) {
4198
- jspb.Message.setWrapperField(this, 1, value);
4199
- };
4200
-
4201
-
4202
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.clearPaymentmethod = function() {
4203
- this.setPaymentmethod(undefined);
4204
- };
4205
-
4206
-
4207
- /**
4208
- * Returns whether this field is set.
4209
- * @return {!boolean}
4210
- */
4211
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.hasPaymentmethod = function() {
4212
- return jspb.Message.getField(this, 1) != null;
4213
- };
4214
-
4215
-
4216
- /**
4217
- * optional ResponseCode responseCode = 2;
4218
- * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
4219
- */
4220
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.getResponsecode = function() {
4221
- return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
4222
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 2));
4223
- };
4224
-
4225
-
4226
- /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
4227
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.setResponsecode = function(value) {
4228
- jspb.Message.setWrapperField(this, 2, value);
4229
- };
4230
-
4231
-
4232
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.clearResponsecode = function() {
4233
- this.setResponsecode(undefined);
4234
- };
4235
-
4236
-
4237
- /**
4238
- * Returns whether this field is set.
4239
- * @return {!boolean}
4240
- */
4241
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.prototype.hasResponsecode = function() {
4242
- return jspb.Message.getField(this, 2) != null;
4243
- };
4244
-
4245
-
4246
-
4247
- /**
4248
- * Generated by JsPbCodeGenerator.
4249
- * @param {Array=} opt_data Optional initial data array, typically from a
4250
- * server response, or constructed directly in Javascript. The array is used
4251
- * in place and becomes part of the constructed object. It is not cloned.
4252
- * If no data is provided, the constructed object will be empty, but still
4253
- * valid.
4254
- * @extends {jspb.Message}
4255
- * @constructor
4256
- */
4257
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest = function(opt_data) {
4258
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4259
- };
4260
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest, jspb.Message);
4261
- if (goog.DEBUG && !COMPILED) {
4262
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest';
4263
- }
4264
-
4265
-
4266
- if (jspb.Message.GENERATE_TO_OBJECT) {
4267
- /**
4268
- * Creates an object representation of this proto suitable for use in Soy templates.
4269
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4270
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4271
- * For the list of reserved names please see:
4272
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4273
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4274
- * for transitional soy proto support: http://goto/soy-param-migration
4275
- * @return {!Object}
4276
- */
4277
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) {
4278
- return proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.toObject(opt_includeInstance, this);
4279
- };
4280
-
4281
-
4282
- /**
4283
- * Static version of the {@see toObject} method.
4284
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
4285
- * instance for transitional soy proto support:
4286
- * http://goto/soy-param-migration
4287
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} msg The msg instance to transform.
4288
- * @return {!Object}
4289
- * @suppress {unusedLocalVariables} f is only used for nested messages
4290
- */
4291
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.toObject = function(includeInstance, msg) {
4292
- var f, obj = {
4293
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.AccessToken.toObject(includeInstance, f)
4294
- };
4295
-
4296
- if (includeInstance) {
4297
- obj.$jspbMessageInstance = msg;
4159
+ f = message.getCreditcardnumber();
4160
+ if (f.length > 0) {
4161
+ writer.writeString(
4162
+ 3,
4163
+ f
4164
+ );
4298
4165
  }
4299
- return obj;
4300
- };
4301
- }
4302
-
4303
-
4304
- /**
4305
- * Deserializes binary data (in protobuf wire format).
4306
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4307
- * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest}
4308
- */
4309
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.deserializeBinary = function(bytes) {
4310
- var reader = new jspb.BinaryReader(bytes);
4311
- var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest;
4312
- return proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.deserializeBinaryFromReader(msg, reader);
4313
- };
4314
-
4315
-
4316
- /**
4317
- * Deserializes binary data (in protobuf wire format) from the
4318
- * given reader into the given message object.
4319
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} msg The message object to deserialize into.
4320
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4321
- * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest}
4322
- */
4323
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.deserializeBinaryFromReader = function(msg, reader) {
4324
- while (reader.nextField()) {
4325
- if (reader.isEndGroup()) {
4326
- break;
4327
- }
4328
- var field = reader.getFieldNumber();
4329
- switch (field) {
4330
- case 1:
4331
- var value = new proto.sniippaymentmethodsserviceapi.AccessToken;
4332
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.AccessToken.deserializeBinaryFromReader);
4333
- msg.setData(value);
4334
- break;
4335
- default:
4336
- reader.skipField();
4337
- break;
4338
- }
4166
+ f = message.getCardtype();
4167
+ if (f.length > 0) {
4168
+ writer.writeString(
4169
+ 4,
4170
+ f
4171
+ );
4339
4172
  }
4340
- return msg;
4341
- };
4342
-
4343
-
4344
- /**
4345
- * Serializes the message to binary data (in protobuf wire format).
4346
- * @return {!Uint8Array}
4347
- */
4348
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.serializeBinary = function() {
4349
- var writer = new jspb.BinaryWriter();
4350
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.serializeBinaryToWriter(this, writer);
4351
- return writer.getResultBuffer();
4352
- };
4353
-
4354
-
4355
- /**
4356
- * Serializes the given message to binary data (in protobuf wire
4357
- * format), writing to the given BinaryWriter.
4358
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} message
4359
- * @param {!jspb.BinaryWriter} writer
4360
- * @suppress {unusedLocalVariables} f is only used for nested messages
4361
- */
4362
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) {
4363
- var f = undefined;
4364
- f = message.getData();
4365
- if (f != null) {
4366
- writer.writeMessage(
4367
- 1,
4368
- f,
4369
- proto.sniippaymentmethodsserviceapi.AccessToken.serializeBinaryToWriter
4173
+ f = message.getMonthexpiry();
4174
+ if (f !== 0) {
4175
+ writer.writeInt32(
4176
+ 5,
4177
+ f
4178
+ );
4179
+ }
4180
+ f = message.getYearexpiry();
4181
+ if (f !== 0) {
4182
+ writer.writeInt32(
4183
+ 6,
4184
+ f
4185
+ );
4186
+ }
4187
+ f = message.getNickname();
4188
+ if (f.length > 0) {
4189
+ writer.writeString(
4190
+ 7,
4191
+ f
4192
+ );
4193
+ }
4194
+ f = message.getCreateddatetime();
4195
+ if (f.length > 0) {
4196
+ writer.writeString(
4197
+ 8,
4198
+ f
4370
4199
  );
4371
4200
  }
4372
4201
  };
4373
4202
 
4374
4203
 
4375
4204
  /**
4376
- * optional AccessToken data = 1;
4377
- * @return {?proto.sniippaymentmethodsserviceapi.AccessToken}
4205
+ * optional int64 creditCardId = 1;
4206
+ * @return {number}
4378
4207
  */
4379
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.getData = function() {
4380
- return /** @type{?proto.sniippaymentmethodsserviceapi.AccessToken} */ (
4381
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.AccessToken, 1));
4382
- };
4383
-
4384
-
4385
- /** @param {?proto.sniippaymentmethodsserviceapi.AccessToken|undefined} value */
4386
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.setData = function(value) {
4387
- jspb.Message.setWrapperField(this, 1, value);
4388
- };
4389
-
4390
-
4391
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.clearData = function() {
4392
- this.setData(undefined);
4208
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardid = function() {
4209
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4393
4210
  };
4394
4211
 
4395
4212
 
4396
- /**
4397
- * Returns whether this field is set.
4398
- * @return {!boolean}
4399
- */
4400
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.hasData = function() {
4401
- return jspb.Message.getField(this, 1) != null;
4213
+ /** @param {number} value */
4214
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardid = function(value) {
4215
+ jspb.Message.setProto3IntField(this, 1, value);
4402
4216
  };
4403
4217
 
4404
4218
 
4405
-
4406
4219
  /**
4407
- * Generated by JsPbCodeGenerator.
4408
- * @param {Array=} opt_data Optional initial data array, typically from a
4409
- * server response, or constructed directly in Javascript. The array is used
4410
- * in place and becomes part of the constructed object. It is not cloned.
4411
- * If no data is provided, the constructed object will be empty, but still
4412
- * valid.
4413
- * @extends {jspb.Message}
4414
- * @constructor
4220
+ * optional string nameOnCard = 2;
4221
+ * @return {string}
4415
4222
  */
4416
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest = function(opt_data) {
4417
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4223
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNameoncard = function() {
4224
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4418
4225
  };
4419
- goog.inherits(proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest, jspb.Message);
4420
- if (goog.DEBUG && !COMPILED) {
4421
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest';
4422
- }
4423
4226
 
4424
4227
 
4425
- if (jspb.Message.GENERATE_TO_OBJECT) {
4426
- /**
4427
- * Creates an object representation of this proto suitable for use in Soy templates.
4428
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4429
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4430
- * For the list of reserved names please see:
4431
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4432
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4433
- * for transitional soy proto support: http://goto/soy-param-migration
4434
- * @return {!Object}
4435
- */
4436
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
4437
- return proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.toObject(opt_includeInstance, this);
4228
+ /** @param {string} value */
4229
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNameoncard = function(value) {
4230
+ jspb.Message.setProto3StringField(this, 2, value);
4438
4231
  };
4439
4232
 
4440
4233
 
4441
4234
  /**
4442
- * Static version of the {@see toObject} method.
4443
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
4444
- * instance for transitional soy proto support:
4445
- * http://goto/soy-param-migration
4446
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} msg The msg instance to transform.
4447
- * @return {!Object}
4448
- * @suppress {unusedLocalVariables} f is only used for nested messages
4235
+ * optional string creditCardNumber = 3;
4236
+ * @return {string}
4449
4237
  */
4450
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.toObject = function(includeInstance, msg) {
4451
- var f, obj = {
4452
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject(includeInstance, f)
4453
- };
4454
-
4455
- if (includeInstance) {
4456
- obj.$jspbMessageInstance = msg;
4457
- }
4458
- return obj;
4238
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardnumber = function() {
4239
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4459
4240
  };
4460
- }
4461
4241
 
4462
4242
 
4463
- /**
4464
- * Deserializes binary data (in protobuf wire format).
4465
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4466
- * @return {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest}
4467
- */
4468
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBinary = function(bytes) {
4469
- var reader = new jspb.BinaryReader(bytes);
4470
- var msg = new proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest;
4471
- return proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBinaryFromReader(msg, reader);
4243
+ /** @param {string} value */
4244
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardnumber = function(value) {
4245
+ jspb.Message.setProto3StringField(this, 3, value);
4472
4246
  };
4473
4247
 
4474
4248
 
4475
4249
  /**
4476
- * Deserializes binary data (in protobuf wire format) from the
4477
- * given reader into the given message object.
4478
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} msg The message object to deserialize into.
4479
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4480
- * @return {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest}
4250
+ * optional string cardType = 4;
4251
+ * @return {string}
4481
4252
  */
4482
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
4483
- while (reader.nextField()) {
4484
- if (reader.isEndGroup()) {
4485
- break;
4486
- }
4487
- var field = reader.getFieldNumber();
4488
- switch (field) {
4489
- case 1:
4490
- var value = new proto.sniippaymentmethodsserviceapi.GetCreditCardRequest;
4491
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromReader);
4492
- msg.setData(value);
4493
- break;
4494
- default:
4495
- reader.skipField();
4496
- break;
4497
- }
4498
- }
4499
- return msg;
4253
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCardtype = function() {
4254
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4500
4255
  };
4501
4256
 
4502
4257
 
4503
- /**
4504
- * Serializes the message to binary data (in protobuf wire format).
4505
- * @return {!Uint8Array}
4506
- */
4507
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.serializeBinary = function() {
4508
- var writer = new jspb.BinaryWriter();
4509
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.serializeBinaryToWriter(this, writer);
4510
- return writer.getResultBuffer();
4258
+ /** @param {string} value */
4259
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCardtype = function(value) {
4260
+ jspb.Message.setProto3StringField(this, 4, value);
4511
4261
  };
4512
4262
 
4513
4263
 
4514
4264
  /**
4515
- * Serializes the given message to binary data (in protobuf wire
4516
- * format), writing to the given BinaryWriter.
4517
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} message
4518
- * @param {!jspb.BinaryWriter} writer
4519
- * @suppress {unusedLocalVariables} f is only used for nested messages
4265
+ * optional int32 monthExpiry = 5;
4266
+ * @return {number}
4520
4267
  */
4521
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
4522
- var f = undefined;
4523
- f = message.getData();
4524
- if (f != null) {
4525
- writer.writeMessage(
4526
- 1,
4527
- f,
4528
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.serializeBinaryToWriter
4529
- );
4530
- }
4268
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getMonthexpiry = function() {
4269
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4270
+ };
4271
+
4272
+
4273
+ /** @param {number} value */
4274
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setMonthexpiry = function(value) {
4275
+ jspb.Message.setProto3IntField(this, 5, value);
4531
4276
  };
4532
4277
 
4533
4278
 
4534
4279
  /**
4535
- * optional GetCreditCardRequest data = 1;
4536
- * @return {?proto.sniippaymentmethodsserviceapi.GetCreditCardRequest}
4280
+ * optional int32 yearExpiry = 6;
4281
+ * @return {number}
4537
4282
  */
4538
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.getData = function() {
4539
- return /** @type{?proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} */ (
4540
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.GetCreditCardRequest, 1));
4283
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getYearexpiry = function() {
4284
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
4541
4285
  };
4542
4286
 
4543
4287
 
4544
- /** @param {?proto.sniippaymentmethodsserviceapi.GetCreditCardRequest|undefined} value */
4545
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.setData = function(value) {
4546
- jspb.Message.setWrapperField(this, 1, value);
4288
+ /** @param {number} value */
4289
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setYearexpiry = function(value) {
4290
+ jspb.Message.setProto3IntField(this, 6, value);
4547
4291
  };
4548
4292
 
4549
4293
 
4550
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.clearData = function() {
4551
- this.setData(undefined);
4294
+ /**
4295
+ * optional string nickname = 7;
4296
+ * @return {string}
4297
+ */
4298
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNickname = function() {
4299
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4300
+ };
4301
+
4302
+
4303
+ /** @param {string} value */
4304
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNickname = function(value) {
4305
+ jspb.Message.setProto3StringField(this, 7, value);
4552
4306
  };
4553
4307
 
4554
4308
 
4555
4309
  /**
4556
- * Returns whether this field is set.
4557
- * @return {!boolean}
4310
+ * optional string createdDateTime = 8;
4311
+ * @return {string}
4558
4312
  */
4559
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.hasData = function() {
4560
- return jspb.Message.getField(this, 1) != null;
4313
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreateddatetime = function() {
4314
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4315
+ };
4316
+
4317
+
4318
+ /** @param {string} value */
4319
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreateddatetime = function(value) {
4320
+ jspb.Message.setProto3StringField(this, 8, value);
4561
4321
  };
4562
4322
 
4563
4323
 
@@ -4572,13 +4332,20 @@ proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.hasDa
4572
4332
  * @extends {jspb.Message}
4573
4333
  * @constructor
4574
4334
  */
4575
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard = function(opt_data) {
4576
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4335
+ proto.sniippaymentmethodsserviceapi.PaymentMethod = function(opt_data) {
4336
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_, null);
4577
4337
  };
4578
- goog.inherits(proto.sniippaymentmethodsserviceapi.MaskedCreditCard, jspb.Message);
4338
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethod, jspb.Message);
4579
4339
  if (goog.DEBUG && !COMPILED) {
4580
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.MaskedCreditCard';
4340
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethod';
4581
4341
  }
4342
+ /**
4343
+ * List of repeated fields within this message type.
4344
+ * @private {!Array<number>}
4345
+ * @const
4346
+ */
4347
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_ = [7];
4348
+
4582
4349
 
4583
4350
 
4584
4351
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4592,8 +4359,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4592
4359
  * for transitional soy proto support: http://goto/soy-param-migration
4593
4360
  * @return {!Object}
4594
4361
  */
4595
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.toObject = function(opt_includeInstance) {
4596
- return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(opt_includeInstance, this);
4362
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.toObject = function(opt_includeInstance) {
4363
+ return proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(opt_includeInstance, this);
4597
4364
  };
4598
4365
 
4599
4366
 
@@ -4602,20 +4369,18 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.toObject = functi
4602
4369
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4603
4370
  * instance for transitional soy proto support:
4604
4371
  * http://goto/soy-param-migration
4605
- * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The msg instance to transform.
4372
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The msg instance to transform.
4606
4373
  * @return {!Object}
4607
4374
  * @suppress {unusedLocalVariables} f is only used for nested messages
4608
4375
  */
4609
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject = function(includeInstance, msg) {
4376
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeInstance, msg) {
4610
4377
  var f, obj = {
4611
- creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4612
- nameoncard: jspb.Message.getFieldWithDefault(msg, 2, ""),
4613
- creditcardnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
4614
- cardtype: jspb.Message.getFieldWithDefault(msg, 4, ""),
4615
- monthexpiry: jspb.Message.getFieldWithDefault(msg, 5, 0),
4616
- yearexpiry: jspb.Message.getFieldWithDefault(msg, 6, 0),
4617
- nickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
4618
- createddatetime: jspb.Message.getFieldWithDefault(msg, 8, "")
4378
+ paymentdetailid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4379
+ paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
4380
+ maskedcreditcard: (f = msg.getMaskedcreditcard()) && proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(includeInstance, f),
4381
+ bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
4382
+ activationsList: jspb.Message.toObjectList(msg.getActivationsList(),
4383
+ proto.sniippaymentmethodsserviceapi.Activation.toObject, includeInstance)
4619
4384
  };
4620
4385
 
4621
4386
  if (includeInstance) {
@@ -4629,23 +4394,23 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject = function(include
4629
4394
  /**
4630
4395
  * Deserializes binary data (in protobuf wire format).
4631
4396
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4632
- * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4397
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
4633
4398
  */
4634
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinary = function(bytes) {
4399
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinary = function(bytes) {
4635
4400
  var reader = new jspb.BinaryReader(bytes);
4636
- var msg = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
4637
- return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader(msg, reader);
4401
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
4402
+ return proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader(msg, reader);
4638
4403
  };
4639
4404
 
4640
4405
 
4641
4406
  /**
4642
4407
  * Deserializes binary data (in protobuf wire format) from the
4643
4408
  * given reader into the given message object.
4644
- * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The message object to deserialize into.
4409
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The message object to deserialize into.
4645
4410
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4646
- * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4411
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
4647
4412
  */
4648
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader = function(msg, reader) {
4413
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
4649
4414
  while (reader.nextField()) {
4650
4415
  if (reader.isEndGroup()) {
4651
4416
  break;
@@ -4654,35 +4419,26 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader
4654
4419
  switch (field) {
4655
4420
  case 1:
4656
4421
  var value = /** @type {number} */ (reader.readInt64());
4657
- msg.setCreditcardid(value);
4422
+ msg.setPaymentdetailid(value);
4658
4423
  break;
4659
4424
  case 2:
4660
4425
  var value = /** @type {string} */ (reader.readString());
4661
- msg.setNameoncard(value);
4426
+ msg.setPaymenttype(value);
4662
4427
  break;
4663
4428
  case 3:
4664
- var value = /** @type {string} */ (reader.readString());
4665
- msg.setCreditcardnumber(value);
4429
+ var value = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
4430
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader);
4431
+ msg.setMaskedcreditcard(value);
4666
4432
  break;
4667
4433
  case 4:
4668
- var value = /** @type {string} */ (reader.readString());
4669
- msg.setCardtype(value);
4670
- break;
4671
- case 5:
4672
- var value = /** @type {number} */ (reader.readInt32());
4673
- msg.setMonthexpiry(value);
4674
- break;
4675
- case 6:
4676
- var value = /** @type {number} */ (reader.readInt32());
4677
- msg.setYearexpiry(value);
4434
+ var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
4435
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
4436
+ msg.setBankaccount(value);
4678
4437
  break;
4679
4438
  case 7:
4680
- var value = /** @type {string} */ (reader.readString());
4681
- msg.setNickname(value);
4682
- break;
4683
- case 8:
4684
- var value = /** @type {string} */ (reader.readString());
4685
- msg.setCreateddatetime(value);
4439
+ var value = new proto.sniippaymentmethodsserviceapi.Activation;
4440
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.Activation.deserializeBinaryFromReader);
4441
+ msg.addActivations(value);
4686
4442
  break;
4687
4443
  default:
4688
4444
  reader.skipField();
@@ -4697,9 +4453,9 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader
4697
4453
  * Serializes the message to binary data (in protobuf wire format).
4698
4454
  * @return {!Uint8Array}
4699
4455
  */
4700
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.serializeBinary = function() {
4456
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.serializeBinary = function() {
4701
4457
  var writer = new jspb.BinaryWriter();
4702
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter(this, writer);
4458
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter(this, writer);
4703
4459
  return writer.getResultBuffer();
4704
4460
  };
4705
4461
 
@@ -4707,188 +4463,171 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.serializeBinary =
4707
4463
  /**
4708
4464
  * Serializes the given message to binary data (in protobuf wire
4709
4465
  * format), writing to the given BinaryWriter.
4710
- * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} message
4466
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} message
4711
4467
  * @param {!jspb.BinaryWriter} writer
4712
4468
  * @suppress {unusedLocalVariables} f is only used for nested messages
4713
4469
  */
4714
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter = function(message, writer) {
4470
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = function(message, writer) {
4715
4471
  var f = undefined;
4716
- f = message.getCreditcardid();
4472
+ f = message.getPaymentdetailid();
4717
4473
  if (f !== 0) {
4718
4474
  writer.writeInt64(
4719
4475
  1,
4720
4476
  f
4721
4477
  );
4722
4478
  }
4723
- f = message.getNameoncard();
4479
+ f = message.getPaymenttype();
4724
4480
  if (f.length > 0) {
4725
4481
  writer.writeString(
4726
4482
  2,
4727
4483
  f
4728
4484
  );
4729
4485
  }
4730
- f = message.getCreditcardnumber();
4731
- if (f.length > 0) {
4732
- writer.writeString(
4486
+ f = message.getMaskedcreditcard();
4487
+ if (f != null) {
4488
+ writer.writeMessage(
4733
4489
  3,
4734
- f
4490
+ f,
4491
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter
4735
4492
  );
4736
4493
  }
4737
- f = message.getCardtype();
4738
- if (f.length > 0) {
4739
- writer.writeString(
4494
+ f = message.getBankaccount();
4495
+ if (f != null) {
4496
+ writer.writeMessage(
4740
4497
  4,
4741
- f
4742
- );
4743
- }
4744
- f = message.getMonthexpiry();
4745
- if (f !== 0) {
4746
- writer.writeInt32(
4747
- 5,
4748
- f
4749
- );
4750
- }
4751
- f = message.getYearexpiry();
4752
- if (f !== 0) {
4753
- writer.writeInt32(
4754
- 6,
4755
- f
4498
+ f,
4499
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
4756
4500
  );
4757
4501
  }
4758
- f = message.getNickname();
4502
+ f = message.getActivationsList();
4759
4503
  if (f.length > 0) {
4760
- writer.writeString(
4504
+ writer.writeRepeatedMessage(
4761
4505
  7,
4762
- f
4763
- );
4764
- }
4765
- f = message.getCreateddatetime();
4766
- if (f.length > 0) {
4767
- writer.writeString(
4768
- 8,
4769
- f
4506
+ f,
4507
+ proto.sniippaymentmethodsserviceapi.Activation.serializeBinaryToWriter
4770
4508
  );
4771
4509
  }
4772
4510
  };
4773
4511
 
4774
4512
 
4775
4513
  /**
4776
- * optional int64 creditCardId = 1;
4514
+ * optional int64 paymentDetailId = 1;
4777
4515
  * @return {number}
4778
4516
  */
4779
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardid = function() {
4517
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymentdetailid = function() {
4780
4518
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4781
4519
  };
4782
4520
 
4783
4521
 
4784
4522
  /** @param {number} value */
4785
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardid = function(value) {
4523
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymentdetailid = function(value) {
4786
4524
  jspb.Message.setProto3IntField(this, 1, value);
4787
4525
  };
4788
4526
 
4789
4527
 
4790
4528
  /**
4791
- * optional string nameOnCard = 2;
4529
+ * optional string paymentType = 2;
4792
4530
  * @return {string}
4793
4531
  */
4794
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNameoncard = function() {
4532
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymenttype = function() {
4795
4533
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4796
4534
  };
4797
4535
 
4798
4536
 
4799
4537
  /** @param {string} value */
4800
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNameoncard = function(value) {
4538
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymenttype = function(value) {
4801
4539
  jspb.Message.setProto3StringField(this, 2, value);
4802
4540
  };
4803
4541
 
4804
4542
 
4805
4543
  /**
4806
- * optional string creditCardNumber = 3;
4807
- * @return {string}
4544
+ * optional MaskedCreditCard maskedCreditCard = 3;
4545
+ * @return {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4808
4546
  */
4809
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardnumber = function() {
4810
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4547
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getMaskedcreditcard = function() {
4548
+ return /** @type{?proto.sniippaymentmethodsserviceapi.MaskedCreditCard} */ (
4549
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.MaskedCreditCard, 3));
4811
4550
  };
4812
4551
 
4813
4552
 
4814
- /** @param {string} value */
4815
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardnumber = function(value) {
4816
- jspb.Message.setProto3StringField(this, 3, value);
4553
+ /** @param {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard|undefined} value */
4554
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setMaskedcreditcard = function(value) {
4555
+ jspb.Message.setWrapperField(this, 3, value);
4556
+ };
4557
+
4558
+
4559
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearMaskedcreditcard = function() {
4560
+ this.setMaskedcreditcard(undefined);
4817
4561
  };
4818
4562
 
4819
4563
 
4820
4564
  /**
4821
- * optional string cardType = 4;
4822
- * @return {string}
4565
+ * Returns whether this field is set.
4566
+ * @return {!boolean}
4823
4567
  */
4824
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCardtype = function() {
4825
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4568
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasMaskedcreditcard = function() {
4569
+ return jspb.Message.getField(this, 3) != null;
4826
4570
  };
4827
4571
 
4828
4572
 
4829
- /** @param {string} value */
4830
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCardtype = function(value) {
4831
- jspb.Message.setProto3StringField(this, 4, value);
4573
+ /**
4574
+ * optional BankAccount bankAccount = 4;
4575
+ * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
4576
+ */
4577
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getBankaccount = function() {
4578
+ return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
4579
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 4));
4832
4580
  };
4833
4581
 
4834
4582
 
4835
- /**
4836
- * optional int32 monthExpiry = 5;
4837
- * @return {number}
4838
- */
4839
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getMonthexpiry = function() {
4840
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4583
+ /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
4584
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setBankaccount = function(value) {
4585
+ jspb.Message.setWrapperField(this, 4, value);
4841
4586
  };
4842
4587
 
4843
4588
 
4844
- /** @param {number} value */
4845
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setMonthexpiry = function(value) {
4846
- jspb.Message.setProto3IntField(this, 5, value);
4589
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearBankaccount = function() {
4590
+ this.setBankaccount(undefined);
4847
4591
  };
4848
4592
 
4849
4593
 
4850
4594
  /**
4851
- * optional int32 yearExpiry = 6;
4852
- * @return {number}
4595
+ * Returns whether this field is set.
4596
+ * @return {!boolean}
4853
4597
  */
4854
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getYearexpiry = function() {
4855
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
4856
- };
4857
-
4858
-
4859
- /** @param {number} value */
4860
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setYearexpiry = function(value) {
4861
- jspb.Message.setProto3IntField(this, 6, value);
4598
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasBankaccount = function() {
4599
+ return jspb.Message.getField(this, 4) != null;
4862
4600
  };
4863
4601
 
4864
4602
 
4865
4603
  /**
4866
- * optional string nickname = 7;
4867
- * @return {string}
4604
+ * repeated Activation activations = 7;
4605
+ * @return {!Array<!proto.sniippaymentmethodsserviceapi.Activation>}
4868
4606
  */
4869
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNickname = function() {
4870
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4607
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getActivationsList = function() {
4608
+ return /** @type{!Array<!proto.sniippaymentmethodsserviceapi.Activation>} */ (
4609
+ jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.Activation, 7));
4871
4610
  };
4872
4611
 
4873
4612
 
4874
- /** @param {string} value */
4875
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNickname = function(value) {
4876
- jspb.Message.setProto3StringField(this, 7, value);
4613
+ /** @param {!Array<!proto.sniippaymentmethodsserviceapi.Activation>} value */
4614
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setActivationsList = function(value) {
4615
+ jspb.Message.setRepeatedWrapperField(this, 7, value);
4877
4616
  };
4878
4617
 
4879
4618
 
4880
4619
  /**
4881
- * optional string createdDateTime = 8;
4882
- * @return {string}
4620
+ * @param {!proto.sniippaymentmethodsserviceapi.Activation=} opt_value
4621
+ * @param {number=} opt_index
4622
+ * @return {!proto.sniippaymentmethodsserviceapi.Activation}
4883
4623
  */
4884
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreateddatetime = function() {
4885
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4624
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.addActivations = function(opt_value, opt_index) {
4625
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.sniippaymentmethodsserviceapi.Activation, opt_index);
4886
4626
  };
4887
4627
 
4888
4628
 
4889
- /** @param {string} value */
4890
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreateddatetime = function(value) {
4891
- jspb.Message.setProto3StringField(this, 8, value);
4629
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearActivationsList = function() {
4630
+ this.setActivationsList([]);
4892
4631
  };
4893
4632
 
4894
4633
 
@@ -4903,20 +4642,13 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreateddatetim
4903
4642
  * @extends {jspb.Message}
4904
4643
  * @constructor
4905
4644
  */
4906
- proto.sniippaymentmethodsserviceapi.PaymentMethod = function(opt_data) {
4907
- jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_, null);
4645
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest = function(opt_data) {
4646
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4908
4647
  };
4909
- goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethod, jspb.Message);
4648
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest, jspb.Message);
4910
4649
  if (goog.DEBUG && !COMPILED) {
4911
- proto.sniippaymentmethodsserviceapi.PaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethod';
4650
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest';
4912
4651
  }
4913
- /**
4914
- * List of repeated fields within this message type.
4915
- * @private {!Array<number>}
4916
- * @const
4917
- */
4918
- proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_ = [7];
4919
-
4920
4652
 
4921
4653
 
4922
4654
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4930,8 +4662,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4930
4662
  * for transitional soy proto support: http://goto/soy-param-migration
4931
4663
  * @return {!Object}
4932
4664
  */
4933
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.toObject = function(opt_includeInstance) {
4934
- return proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(opt_includeInstance, this);
4665
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.toObject = function(opt_includeInstance) {
4666
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject(opt_includeInstance, this);
4935
4667
  };
4936
4668
 
4937
4669
 
@@ -4940,18 +4672,15 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.toObject = function(
4940
4672
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4941
4673
  * instance for transitional soy proto support:
4942
4674
  * http://goto/soy-param-migration
4943
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The msg instance to transform.
4675
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The msg instance to transform.
4944
4676
  * @return {!Object}
4945
4677
  * @suppress {unusedLocalVariables} f is only used for nested messages
4946
4678
  */
4947
- proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeInstance, msg) {
4679
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject = function(includeInstance, msg) {
4948
4680
  var f, obj = {
4949
4681
  paymentdetailid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4950
- paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
4951
- maskedcreditcard: (f = msg.getMaskedcreditcard()) && proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(includeInstance, f),
4952
- bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
4953
- activationsList: jspb.Message.toObjectList(msg.getActivationsList(),
4954
- proto.sniippaymentmethodsserviceapi.Activation.toObject, includeInstance)
4682
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
4683
+ isconfirmeddelete: jspb.Message.getFieldWithDefault(msg, 3, false)
4955
4684
  };
4956
4685
 
4957
4686
  if (includeInstance) {
@@ -4965,23 +4694,23 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeIns
4965
4694
  /**
4966
4695
  * Deserializes binary data (in protobuf wire format).
4967
4696
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4968
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
4697
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
4969
4698
  */
4970
- proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinary = function(bytes) {
4699
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary = function(bytes) {
4971
4700
  var reader = new jspb.BinaryReader(bytes);
4972
- var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
4973
- return proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader(msg, reader);
4701
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest;
4702
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader(msg, reader);
4974
4703
  };
4975
4704
 
4976
4705
 
4977
4706
  /**
4978
4707
  * Deserializes binary data (in protobuf wire format) from the
4979
4708
  * given reader into the given message object.
4980
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The message object to deserialize into.
4709
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The message object to deserialize into.
4981
4710
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4982
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
4711
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
4983
4712
  */
4984
- proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
4713
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
4985
4714
  while (reader.nextField()) {
4986
4715
  if (reader.isEndGroup()) {
4987
4716
  break;
@@ -4994,22 +4723,11 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader =
4994
4723
  break;
4995
4724
  case 2:
4996
4725
  var value = /** @type {string} */ (reader.readString());
4997
- msg.setPaymenttype(value);
4726
+ msg.setAccesstoken(value);
4998
4727
  break;
4999
4728
  case 3:
5000
- var value = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
5001
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader);
5002
- msg.setMaskedcreditcard(value);
5003
- break;
5004
- case 4:
5005
- var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
5006
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
5007
- msg.setBankaccount(value);
5008
- break;
5009
- case 7:
5010
- var value = new proto.sniippaymentmethodsserviceapi.Activation;
5011
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.Activation.deserializeBinaryFromReader);
5012
- msg.addActivations(value);
4729
+ var value = /** @type {boolean} */ (reader.readBool());
4730
+ msg.setIsconfirmeddelete(value);
5013
4731
  break;
5014
4732
  default:
5015
4733
  reader.skipField();
@@ -5024,9 +4742,9 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader =
5024
4742
  * Serializes the message to binary data (in protobuf wire format).
5025
4743
  * @return {!Uint8Array}
5026
4744
  */
5027
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.serializeBinary = function() {
4745
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.serializeBinary = function() {
5028
4746
  var writer = new jspb.BinaryWriter();
5029
- proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter(this, writer);
4747
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter(this, writer);
5030
4748
  return writer.getResultBuffer();
5031
4749
  };
5032
4750
 
@@ -5034,11 +4752,11 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.serializeBinary = fu
5034
4752
  /**
5035
4753
  * Serializes the given message to binary data (in protobuf wire
5036
4754
  * format), writing to the given BinaryWriter.
5037
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} message
4755
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} message
5038
4756
  * @param {!jspb.BinaryWriter} writer
5039
4757
  * @suppress {unusedLocalVariables} f is only used for nested messages
5040
4758
  */
5041
- proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = function(message, writer) {
4759
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter = function(message, writer) {
5042
4760
  var f = undefined;
5043
4761
  f = message.getPaymentdetailid();
5044
4762
  if (f !== 0) {
@@ -5047,35 +4765,18 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = func
5047
4765
  f
5048
4766
  );
5049
4767
  }
5050
- f = message.getPaymenttype();
4768
+ f = message.getAccesstoken();
5051
4769
  if (f.length > 0) {
5052
4770
  writer.writeString(
5053
4771
  2,
5054
4772
  f
5055
4773
  );
5056
4774
  }
5057
- f = message.getMaskedcreditcard();
5058
- if (f != null) {
5059
- writer.writeMessage(
4775
+ f = message.getIsconfirmeddelete();
4776
+ if (f) {
4777
+ writer.writeBool(
5060
4778
  3,
5061
- f,
5062
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter
5063
- );
5064
- }
5065
- f = message.getBankaccount();
5066
- if (f != null) {
5067
- writer.writeMessage(
5068
- 4,
5069
- f,
5070
- proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
5071
- );
5072
- }
5073
- f = message.getActivationsList();
5074
- if (f.length > 0) {
5075
- writer.writeRepeatedMessage(
5076
- 7,
5077
- f,
5078
- proto.sniippaymentmethodsserviceapi.Activation.serializeBinaryToWriter
4779
+ f
5079
4780
  );
5080
4781
  }
5081
4782
  };
@@ -5085,120 +4786,242 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = func
5085
4786
  * optional int64 paymentDetailId = 1;
5086
4787
  * @return {number}
5087
4788
  */
5088
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymentdetailid = function() {
4789
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getPaymentdetailid = function() {
5089
4790
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5090
4791
  };
5091
4792
 
5092
4793
 
5093
4794
  /** @param {number} value */
5094
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymentdetailid = function(value) {
4795
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setPaymentdetailid = function(value) {
5095
4796
  jspb.Message.setProto3IntField(this, 1, value);
5096
4797
  };
5097
4798
 
5098
4799
 
5099
4800
  /**
5100
- * optional string paymentType = 2;
4801
+ * optional string accessToken = 2;
5101
4802
  * @return {string}
5102
4803
  */
5103
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymenttype = function() {
4804
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getAccesstoken = function() {
5104
4805
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5105
4806
  };
5106
4807
 
5107
4808
 
5108
4809
  /** @param {string} value */
5109
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymenttype = function(value) {
4810
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setAccesstoken = function(value) {
5110
4811
  jspb.Message.setProto3StringField(this, 2, value);
5111
4812
  };
5112
4813
 
5113
4814
 
5114
4815
  /**
5115
- * optional MaskedCreditCard maskedCreditCard = 3;
5116
- * @return {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4816
+ * optional bool isConfirmedDelete = 3;
4817
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
4818
+ * You should avoid comparisons like {@code val === true/false} in those cases.
4819
+ * @return {boolean}
5117
4820
  */
5118
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getMaskedcreditcard = function() {
5119
- return /** @type{?proto.sniippaymentmethodsserviceapi.MaskedCreditCard} */ (
5120
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.MaskedCreditCard, 3));
4821
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getIsconfirmeddelete = function() {
4822
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
5121
4823
  };
5122
4824
 
5123
4825
 
5124
- /** @param {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard|undefined} value */
5125
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setMaskedcreditcard = function(value) {
5126
- jspb.Message.setWrapperField(this, 3, value);
4826
+ /** @param {boolean} value */
4827
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setIsconfirmeddelete = function(value) {
4828
+ jspb.Message.setProto3BooleanField(this, 3, value);
5127
4829
  };
5128
4830
 
5129
4831
 
5130
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearMaskedcreditcard = function() {
5131
- this.setMaskedcreditcard(undefined);
4832
+
4833
+ /**
4834
+ * Generated by JsPbCodeGenerator.
4835
+ * @param {Array=} opt_data Optional initial data array, typically from a
4836
+ * server response, or constructed directly in Javascript. The array is used
4837
+ * in place and becomes part of the constructed object. It is not cloned.
4838
+ * If no data is provided, the constructed object will be empty, but still
4839
+ * valid.
4840
+ * @extends {jspb.Message}
4841
+ * @constructor
4842
+ */
4843
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest = function(opt_data) {
4844
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4845
+ };
4846
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest, jspb.Message);
4847
+ if (goog.DEBUG && !COMPILED) {
4848
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest';
4849
+ }
4850
+
4851
+
4852
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4853
+ /**
4854
+ * Creates an object representation of this proto suitable for use in Soy templates.
4855
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4856
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4857
+ * For the list of reserved names please see:
4858
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4859
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4860
+ * for transitional soy proto support: http://goto/soy-param-migration
4861
+ * @return {!Object}
4862
+ */
4863
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
4864
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.toObject(opt_includeInstance, this);
4865
+ };
4866
+
4867
+
4868
+ /**
4869
+ * Static version of the {@see toObject} method.
4870
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4871
+ * instance for transitional soy proto support:
4872
+ * http://goto/soy-param-migration
4873
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} msg The msg instance to transform.
4874
+ * @return {!Object}
4875
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4876
+ */
4877
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.toObject = function(includeInstance, msg) {
4878
+ var f, obj = {
4879
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4880
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
4881
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
4882
+ };
4883
+
4884
+ if (includeInstance) {
4885
+ obj.$jspbMessageInstance = msg;
4886
+ }
4887
+ return obj;
4888
+ };
4889
+ }
4890
+
4891
+
4892
+ /**
4893
+ * Deserializes binary data (in protobuf wire format).
4894
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4895
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest}
4896
+ */
4897
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinary = function(bytes) {
4898
+ var reader = new jspb.BinaryReader(bytes);
4899
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest;
4900
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinaryFromReader(msg, reader);
4901
+ };
4902
+
4903
+
4904
+ /**
4905
+ * Deserializes binary data (in protobuf wire format) from the
4906
+ * given reader into the given message object.
4907
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} msg The message object to deserialize into.
4908
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4909
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest}
4910
+ */
4911
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
4912
+ while (reader.nextField()) {
4913
+ if (reader.isEndGroup()) {
4914
+ break;
4915
+ }
4916
+ var field = reader.getFieldNumber();
4917
+ switch (field) {
4918
+ case 1:
4919
+ var value = /** @type {number} */ (reader.readInt64());
4920
+ msg.setPaymentmethodid(value);
4921
+ break;
4922
+ case 2:
4923
+ var value = /** @type {string} */ (reader.readString());
4924
+ msg.setAccesstoken(value);
4925
+ break;
4926
+ case 3:
4927
+ var value = /** @type {number} */ (reader.readInt64());
4928
+ msg.setUserid(value);
4929
+ break;
4930
+ default:
4931
+ reader.skipField();
4932
+ break;
4933
+ }
4934
+ }
4935
+ return msg;
5132
4936
  };
5133
4937
 
5134
4938
 
5135
4939
  /**
5136
- * Returns whether this field is set.
5137
- * @return {!boolean}
4940
+ * Serializes the message to binary data (in protobuf wire format).
4941
+ * @return {!Uint8Array}
5138
4942
  */
5139
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasMaskedcreditcard = function() {
5140
- return jspb.Message.getField(this, 3) != null;
4943
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.serializeBinary = function() {
4944
+ var writer = new jspb.BinaryWriter();
4945
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.serializeBinaryToWriter(this, writer);
4946
+ return writer.getResultBuffer();
5141
4947
  };
5142
4948
 
5143
4949
 
5144
4950
  /**
5145
- * optional BankAccount bankAccount = 4;
5146
- * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
4951
+ * Serializes the given message to binary data (in protobuf wire
4952
+ * format), writing to the given BinaryWriter.
4953
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} message
4954
+ * @param {!jspb.BinaryWriter} writer
4955
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5147
4956
  */
5148
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getBankaccount = function() {
5149
- return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
5150
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 4));
5151
- };
5152
-
5153
-
5154
- /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
5155
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setBankaccount = function(value) {
5156
- jspb.Message.setWrapperField(this, 4, value);
4957
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
4958
+ var f = undefined;
4959
+ f = message.getPaymentmethodid();
4960
+ if (f !== 0) {
4961
+ writer.writeInt64(
4962
+ 1,
4963
+ f
4964
+ );
4965
+ }
4966
+ f = message.getAccesstoken();
4967
+ if (f.length > 0) {
4968
+ writer.writeString(
4969
+ 2,
4970
+ f
4971
+ );
4972
+ }
4973
+ f = message.getUserid();
4974
+ if (f !== 0) {
4975
+ writer.writeInt64(
4976
+ 3,
4977
+ f
4978
+ );
4979
+ }
5157
4980
  };
5158
4981
 
5159
4982
 
5160
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearBankaccount = function() {
5161
- this.setBankaccount(undefined);
4983
+ /**
4984
+ * optional int64 paymentMethodId = 1;
4985
+ * @return {number}
4986
+ */
4987
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.getPaymentmethodid = function() {
4988
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5162
4989
  };
5163
4990
 
5164
4991
 
5165
- /**
5166
- * Returns whether this field is set.
5167
- * @return {!boolean}
5168
- */
5169
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasBankaccount = function() {
5170
- return jspb.Message.getField(this, 4) != null;
4992
+ /** @param {number} value */
4993
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.setPaymentmethodid = function(value) {
4994
+ jspb.Message.setProto3IntField(this, 1, value);
5171
4995
  };
5172
4996
 
5173
4997
 
5174
4998
  /**
5175
- * repeated Activation activations = 7;
5176
- * @return {!Array<!proto.sniippaymentmethodsserviceapi.Activation>}
4999
+ * optional string accessToken = 2;
5000
+ * @return {string}
5177
5001
  */
5178
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getActivationsList = function() {
5179
- return /** @type{!Array<!proto.sniippaymentmethodsserviceapi.Activation>} */ (
5180
- jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.Activation, 7));
5002
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.getAccesstoken = function() {
5003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5181
5004
  };
5182
5005
 
5183
5006
 
5184
- /** @param {!Array<!proto.sniippaymentmethodsserviceapi.Activation>} value */
5185
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setActivationsList = function(value) {
5186
- jspb.Message.setRepeatedWrapperField(this, 7, value);
5007
+ /** @param {string} value */
5008
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.setAccesstoken = function(value) {
5009
+ jspb.Message.setProto3StringField(this, 2, value);
5187
5010
  };
5188
5011
 
5189
5012
 
5190
5013
  /**
5191
- * @param {!proto.sniippaymentmethodsserviceapi.Activation=} opt_value
5192
- * @param {number=} opt_index
5193
- * @return {!proto.sniippaymentmethodsserviceapi.Activation}
5014
+ * optional int64 userId = 3;
5015
+ * @return {number}
5194
5016
  */
5195
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.addActivations = function(opt_value, opt_index) {
5196
- return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.sniippaymentmethodsserviceapi.Activation, opt_index);
5017
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.getUserid = function() {
5018
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5197
5019
  };
5198
5020
 
5199
5021
 
5200
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearActivationsList = function() {
5201
- this.setActivationsList([]);
5022
+ /** @param {number} value */
5023
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.setUserid = function(value) {
5024
+ jspb.Message.setProto3IntField(this, 3, value);
5202
5025
  };
5203
5026
 
5204
5027
 
@@ -5213,12 +5036,12 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearActivationsList
5213
5036
  * @extends {jspb.Message}
5214
5037
  * @constructor
5215
5038
  */
5216
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest = function(opt_data) {
5039
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse = function(opt_data) {
5217
5040
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5218
5041
  };
5219
- goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest, jspb.Message);
5042
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse, jspb.Message);
5220
5043
  if (goog.DEBUG && !COMPILED) {
5221
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest';
5044
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse';
5222
5045
  }
5223
5046
 
5224
5047
 
@@ -5233,8 +5056,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
5233
5056
  * for transitional soy proto support: http://goto/soy-param-migration
5234
5057
  * @return {!Object}
5235
5058
  */
5236
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.toObject = function(opt_includeInstance) {
5237
- return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject(opt_includeInstance, this);
5059
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.toObject = function(opt_includeInstance) {
5060
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.toObject(opt_includeInstance, this);
5238
5061
  };
5239
5062
 
5240
5063
 
@@ -5243,15 +5066,17 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.toObjec
5243
5066
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
5244
5067
  * instance for transitional soy proto support:
5245
5068
  * http://goto/soy-param-migration
5246
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The msg instance to transform.
5069
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} msg The msg instance to transform.
5247
5070
  * @return {!Object}
5248
5071
  * @suppress {unusedLocalVariables} f is only used for nested messages
5249
5072
  */
5250
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject = function(includeInstance, msg) {
5073
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.toObject = function(includeInstance, msg) {
5251
5074
  var f, obj = {
5252
- paymentdetailid: jspb.Message.getFieldWithDefault(msg, 1, 0),
5253
- accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
5254
- isconfirmeddelete: jspb.Message.getFieldWithDefault(msg, 3, false)
5075
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
5076
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 2, 0),
5077
+ paymenttype: jspb.Message.getFieldWithDefault(msg, 3, ""),
5078
+ creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f),
5079
+ bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f)
5255
5080
  };
5256
5081
 
5257
5082
  if (includeInstance) {
@@ -5265,23 +5090,23 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject = functi
5265
5090
  /**
5266
5091
  * Deserializes binary data (in protobuf wire format).
5267
5092
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
5268
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
5093
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse}
5269
5094
  */
5270
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary = function(bytes) {
5095
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinary = function(bytes) {
5271
5096
  var reader = new jspb.BinaryReader(bytes);
5272
- var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest;
5273
- return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader(msg, reader);
5097
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse;
5098
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinaryFromReader(msg, reader);
5274
5099
  };
5275
5100
 
5276
5101
 
5277
5102
  /**
5278
5103
  * Deserializes binary data (in protobuf wire format) from the
5279
5104
  * given reader into the given message object.
5280
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The message object to deserialize into.
5105
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} msg The message object to deserialize into.
5281
5106
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5282
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
5107
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse}
5283
5108
  */
5284
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
5109
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinaryFromReader = function(msg, reader) {
5285
5110
  while (reader.nextField()) {
5286
5111
  if (reader.isEndGroup()) {
5287
5112
  break;
@@ -5289,16 +5114,27 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary
5289
5114
  var field = reader.getFieldNumber();
5290
5115
  switch (field) {
5291
5116
  case 1:
5292
- var value = /** @type {number} */ (reader.readInt64());
5293
- msg.setPaymentdetailid(value);
5117
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
5118
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
5119
+ msg.setResponsecode(value);
5294
5120
  break;
5295
5121
  case 2:
5296
- var value = /** @type {string} */ (reader.readString());
5297
- msg.setAccesstoken(value);
5122
+ var value = /** @type {number} */ (reader.readInt64());
5123
+ msg.setPaymentmethodid(value);
5298
5124
  break;
5299
5125
  case 3:
5300
- var value = /** @type {boolean} */ (reader.readBool());
5301
- msg.setIsconfirmeddelete(value);
5126
+ var value = /** @type {string} */ (reader.readString());
5127
+ msg.setPaymenttype(value);
5128
+ break;
5129
+ case 4:
5130
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCard;
5131
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader);
5132
+ msg.setCreditcard(value);
5133
+ break;
5134
+ case 5:
5135
+ var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
5136
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
5137
+ msg.setBankaccount(value);
5302
5138
  break;
5303
5139
  default:
5304
5140
  reader.skipField();
@@ -5313,9 +5149,9 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary
5313
5149
  * Serializes the message to binary data (in protobuf wire format).
5314
5150
  * @return {!Uint8Array}
5315
5151
  */
5316
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.serializeBinary = function() {
5152
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.serializeBinary = function() {
5317
5153
  var writer = new jspb.BinaryWriter();
5318
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter(this, writer);
5154
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.serializeBinaryToWriter(this, writer);
5319
5155
  return writer.getResultBuffer();
5320
5156
  };
5321
5157
 
@@ -5323,80 +5159,170 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.seriali
5323
5159
  /**
5324
5160
  * Serializes the given message to binary data (in protobuf wire
5325
5161
  * format), writing to the given BinaryWriter.
5326
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} message
5162
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} message
5327
5163
  * @param {!jspb.BinaryWriter} writer
5328
5164
  * @suppress {unusedLocalVariables} f is only used for nested messages
5329
5165
  */
5330
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter = function(message, writer) {
5166
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.serializeBinaryToWriter = function(message, writer) {
5331
5167
  var f = undefined;
5332
- f = message.getPaymentdetailid();
5168
+ f = message.getResponsecode();
5169
+ if (f != null) {
5170
+ writer.writeMessage(
5171
+ 1,
5172
+ f,
5173
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
5174
+ );
5175
+ }
5176
+ f = message.getPaymentmethodid();
5333
5177
  if (f !== 0) {
5334
5178
  writer.writeInt64(
5335
- 1,
5179
+ 2,
5336
5180
  f
5337
5181
  );
5338
5182
  }
5339
- f = message.getAccesstoken();
5183
+ f = message.getPaymenttype();
5340
5184
  if (f.length > 0) {
5341
5185
  writer.writeString(
5342
- 2,
5186
+ 3,
5343
5187
  f
5344
5188
  );
5345
5189
  }
5346
- f = message.getIsconfirmeddelete();
5347
- if (f) {
5348
- writer.writeBool(
5349
- 3,
5350
- f
5190
+ f = message.getCreditcard();
5191
+ if (f != null) {
5192
+ writer.writeMessage(
5193
+ 4,
5194
+ f,
5195
+ proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter
5196
+ );
5197
+ }
5198
+ f = message.getBankaccount();
5199
+ if (f != null) {
5200
+ writer.writeMessage(
5201
+ 5,
5202
+ f,
5203
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
5351
5204
  );
5352
5205
  }
5353
5206
  };
5354
5207
 
5355
5208
 
5356
5209
  /**
5357
- * optional int64 paymentDetailId = 1;
5210
+ * optional ResponseCode responseCode = 1;
5211
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
5212
+ */
5213
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getResponsecode = function() {
5214
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
5215
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
5216
+ };
5217
+
5218
+
5219
+ /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
5220
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setResponsecode = function(value) {
5221
+ jspb.Message.setWrapperField(this, 1, value);
5222
+ };
5223
+
5224
+
5225
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearResponsecode = function() {
5226
+ this.setResponsecode(undefined);
5227
+ };
5228
+
5229
+
5230
+ /**
5231
+ * Returns whether this field is set.
5232
+ * @return {!boolean}
5233
+ */
5234
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasResponsecode = function() {
5235
+ return jspb.Message.getField(this, 1) != null;
5236
+ };
5237
+
5238
+
5239
+ /**
5240
+ * optional int64 paymentMethodId = 2;
5358
5241
  * @return {number}
5359
5242
  */
5360
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getPaymentdetailid = function() {
5361
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5243
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getPaymentmethodid = function() {
5244
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5362
5245
  };
5363
5246
 
5364
5247
 
5365
5248
  /** @param {number} value */
5366
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setPaymentdetailid = function(value) {
5367
- jspb.Message.setProto3IntField(this, 1, value);
5249
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setPaymentmethodid = function(value) {
5250
+ jspb.Message.setProto3IntField(this, 2, value);
5368
5251
  };
5369
5252
 
5370
5253
 
5371
5254
  /**
5372
- * optional string accessToken = 2;
5255
+ * optional string paymentType = 3;
5373
5256
  * @return {string}
5374
5257
  */
5375
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getAccesstoken = function() {
5376
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5258
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getPaymenttype = function() {
5259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5377
5260
  };
5378
5261
 
5379
5262
 
5380
5263
  /** @param {string} value */
5381
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setAccesstoken = function(value) {
5382
- jspb.Message.setProto3StringField(this, 2, value);
5264
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setPaymenttype = function(value) {
5265
+ jspb.Message.setProto3StringField(this, 3, value);
5383
5266
  };
5384
5267
 
5385
5268
 
5386
5269
  /**
5387
- * optional bool isConfirmedDelete = 3;
5388
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5389
- * You should avoid comparisons like {@code val === true/false} in those cases.
5390
- * @return {boolean}
5270
+ * optional CreditCard creditCard = 4;
5271
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCard}
5391
5272
  */
5392
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getIsconfirmeddelete = function() {
5393
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
5273
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getCreditcard = function() {
5274
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCard} */ (
5275
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCard, 4));
5394
5276
  };
5395
5277
 
5396
5278
 
5397
- /** @param {boolean} value */
5398
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setIsconfirmeddelete = function(value) {
5399
- jspb.Message.setProto3BooleanField(this, 3, value);
5279
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCard|undefined} value */
5280
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setCreditcard = function(value) {
5281
+ jspb.Message.setWrapperField(this, 4, value);
5282
+ };
5283
+
5284
+
5285
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearCreditcard = function() {
5286
+ this.setCreditcard(undefined);
5287
+ };
5288
+
5289
+
5290
+ /**
5291
+ * Returns whether this field is set.
5292
+ * @return {!boolean}
5293
+ */
5294
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasCreditcard = function() {
5295
+ return jspb.Message.getField(this, 4) != null;
5296
+ };
5297
+
5298
+
5299
+ /**
5300
+ * optional BankAccount bankAccount = 5;
5301
+ * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
5302
+ */
5303
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getBankaccount = function() {
5304
+ return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
5305
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 5));
5306
+ };
5307
+
5308
+
5309
+ /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
5310
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setBankaccount = function(value) {
5311
+ jspb.Message.setWrapperField(this, 5, value);
5312
+ };
5313
+
5314
+
5315
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearBankaccount = function() {
5316
+ this.setBankaccount(undefined);
5317
+ };
5318
+
5319
+
5320
+ /**
5321
+ * Returns whether this field is set.
5322
+ * @return {!boolean}
5323
+ */
5324
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasBankaccount = function() {
5325
+ return jspb.Message.getField(this, 5) != null;
5400
5326
  };
5401
5327
 
5402
5328