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

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.
@@ -415,52 +415,108 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
415
415
  /**
416
416
  * @const
417
417
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
418
- * !proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest,
419
- * !proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>}
418
+ * !proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest,
419
+ * !proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse>}
420
420
  */
421
- const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
422
- proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse,
423
- /** @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request */
421
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetCreditCardForPayment = new grpc.web.AbstractClientBase.MethodInfo(
422
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse,
423
+ /** @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} request */
424
424
  function(request) {
425
425
  return request.serializeBinary();
426
426
  },
427
- proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse.deserializeBinary
427
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinary
428
428
  );
429
429
 
430
430
 
431
431
  /**
432
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request The
432
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} request The
433
433
  * request proto
434
434
  * @param {!Object<string, string>} metadata User defined
435
435
  * call metadata
436
- * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse)}
436
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse)}
437
437
  * callback The callback function(error, response)
438
- * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>|undefined}
438
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse>|undefined}
439
439
  * The XHR Node Readable Stream
440
440
  */
441
- proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethods =
441
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getCreditCardForPayment =
442
442
  function(request, metadata, callback) {
443
443
  return this.client_.rpcCall(this.hostname_ +
444
- '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethods',
444
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetCreditCardForPayment',
445
445
  request,
446
446
  metadata,
447
- methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods,
447
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetCreditCardForPayment,
448
448
  callback);
449
449
  };
450
450
 
451
451
 
452
452
  /**
453
- * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request The
453
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} request The
454
454
  * request proto
455
455
  * @param {!Object<string, string>} metadata User defined
456
456
  * call metadata
457
- * @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>}
457
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse>}
458
458
  * The XHR Node Readable Stream
459
459
  */
460
- proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethods =
460
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getCreditCardForPayment =
461
461
  function(request, metadata) {
462
462
  return new Promise((resolve, reject) => {
463
- this.delegateClient_.getPaymentMethods(
463
+ this.delegateClient_.getCreditCardForPayment(
464
+ request, metadata, (error, response) => {
465
+ error ? reject(error) : resolve(response);
466
+ });
467
+ });
468
+ };
469
+
470
+
471
+ /**
472
+ * @const
473
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
474
+ * !proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest,
475
+ * !proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse>}
476
+ */
477
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodForPayment = new grpc.web.AbstractClientBase.MethodInfo(
478
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse,
479
+ /** @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} request */
480
+ function(request) {
481
+ return request.serializeBinary();
482
+ },
483
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinary
484
+ );
485
+
486
+
487
+ /**
488
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} request The
489
+ * request proto
490
+ * @param {!Object<string, string>} metadata User defined
491
+ * call metadata
492
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse)}
493
+ * callback The callback function(error, response)
494
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse>|undefined}
495
+ * The XHR Node Readable Stream
496
+ */
497
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethodForPayment =
498
+ function(request, metadata, callback) {
499
+ return this.client_.rpcCall(this.hostname_ +
500
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodForPayment',
501
+ request,
502
+ metadata,
503
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodForPayment,
504
+ callback);
505
+ };
506
+
507
+
508
+ /**
509
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} request The
510
+ * request proto
511
+ * @param {!Object<string, string>} metadata User defined
512
+ * call metadata
513
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse>}
514
+ * The XHR Node Readable Stream
515
+ */
516
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethodForPayment =
517
+ function(request, metadata) {
518
+ return new Promise((resolve, reject) => {
519
+ this.delegateClient_.getPaymentMethodForPayment(
464
520
  request, metadata, (error, response) => {
465
521
  error ? reject(error) : resolve(response);
466
522
  });
@@ -471,52 +527,52 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
471
527
  /**
472
528
  * @const
473
529
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
474
- * !proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest,
475
- * !proto.sniippaymentmethodsserviceapi.GetCreditCardResponse>}
530
+ * !proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest,
531
+ * !proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>}
476
532
  */
477
- const methodInfo_SniipPaymentMethodsServiceAPIService_InternalGetCreditCard = new grpc.web.AbstractClientBase.MethodInfo(
478
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse,
479
- /** @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} request */
533
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
534
+ proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse,
535
+ /** @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request */
480
536
  function(request) {
481
537
  return request.serializeBinary();
482
538
  },
483
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinary
539
+ proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse.deserializeBinary
484
540
  );
485
541
 
486
542
 
487
543
  /**
488
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} request The
544
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request The
489
545
  * request proto
490
546
  * @param {!Object<string, string>} metadata User defined
491
547
  * call metadata
492
- * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.GetCreditCardResponse)}
548
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse)}
493
549
  * callback The callback function(error, response)
494
- * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse>|undefined}
550
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>|undefined}
495
551
  * The XHR Node Readable Stream
496
552
  */
497
- proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.internalGetCreditCard =
553
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethods =
498
554
  function(request, metadata, callback) {
499
555
  return this.client_.rpcCall(this.hostname_ +
500
- '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/InternalGetCreditCard',
556
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethods',
501
557
  request,
502
558
  metadata,
503
- methodInfo_SniipPaymentMethodsServiceAPIService_InternalGetCreditCard,
559
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods,
504
560
  callback);
505
561
  };
506
562
 
507
563
 
508
564
  /**
509
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} request The
565
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request The
510
566
  * request proto
511
567
  * @param {!Object<string, string>} metadata User defined
512
568
  * call metadata
513
- * @return {!Promise<!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse>}
569
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>}
514
570
  * The XHR Node Readable Stream
515
571
  */
516
- proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.internalGetCreditCard =
572
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethods =
517
573
  function(request, metadata) {
518
574
  return new Promise((resolve, reject) => {
519
- this.delegateClient_.internalGetCreditCard(
575
+ this.delegateClient_.getPaymentMethods(
520
576
  request, metadata, (error, response) => {
521
577
  error ? reject(error) : resolve(response);
522
578
  });