@sniipwebmaster/worldpay-service-client-grpcweb 25.5.34 → 25.6.50

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.
@@ -448,5 +448,66 @@ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.localHealth =
448
448
  };
449
449
 
450
450
 
451
+ /**
452
+ * @const
453
+ * @type {!grpc.web.MethodDescriptor<
454
+ * !proto.worldpayserviceapi.GetTransactionRequest,
455
+ * !proto.worldpayserviceapi.GetTransactionResponse>}
456
+ */
457
+ const methodDescriptor_WorldPayService_GetTransaction = new grpc.web.MethodDescriptor(
458
+ '/worldpayserviceapi.WorldPayService/GetTransaction',
459
+ grpc.web.MethodType.UNARY,
460
+ proto.worldpayserviceapi.GetTransactionRequest,
461
+ proto.worldpayserviceapi.GetTransactionResponse,
462
+ /**
463
+ * @param {!proto.worldpayserviceapi.GetTransactionRequest} request
464
+ * @return {!Uint8Array}
465
+ */
466
+ function(request) {
467
+ return request.serializeBinary();
468
+ },
469
+ proto.worldpayserviceapi.GetTransactionResponse.deserializeBinary
470
+ );
471
+
472
+
473
+ /**
474
+ * @param {!proto.worldpayserviceapi.GetTransactionRequest} request The
475
+ * request proto
476
+ * @param {?Object<string, string>} metadata User defined
477
+ * call metadata
478
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.GetTransactionResponse)}
479
+ * callback The callback function(error, response)
480
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.GetTransactionResponse>|undefined}
481
+ * The XHR Node Readable Stream
482
+ */
483
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.getTransaction =
484
+ function(request, metadata, callback) {
485
+ return this.client_.rpcCall(this.hostname_ +
486
+ '/worldpayserviceapi.WorldPayService/GetTransaction',
487
+ request,
488
+ metadata || {},
489
+ methodDescriptor_WorldPayService_GetTransaction,
490
+ callback);
491
+ };
492
+
493
+
494
+ /**
495
+ * @param {!proto.worldpayserviceapi.GetTransactionRequest} request The
496
+ * request proto
497
+ * @param {?Object<string, string>=} metadata User defined
498
+ * call metadata
499
+ * @return {!Promise<!proto.worldpayserviceapi.GetTransactionResponse>}
500
+ * Promise that resolves to the response
501
+ */
502
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.getTransaction =
503
+ function(request, metadata) {
504
+ return this.client_.unaryCall(this.hostname_ +
505
+ '/worldpayserviceapi.WorldPayService/GetTransaction',
506
+ request,
507
+ metadata || {},
508
+ methodDescriptor_WorldPayService_GetTransaction);
509
+ };
510
+
511
+
451
512
  module.exports = proto.worldpayserviceapi;
452
513
 
@@ -23,6 +23,8 @@ var google_type_decimal_pb = require('./google/type/decimal_pb.js');
23
23
  goog.object.extend(proto, google_type_decimal_pb);
24
24
  var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
25
25
  goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
26
+ goog.exportSymbol('proto.worldpayserviceapi.GetTransactionRequest', null, global);
27
+ goog.exportSymbol('proto.worldpayserviceapi.GetTransactionResponse', null, global);
26
28
  goog.exportSymbol('proto.worldpayserviceapi.PaymentMethod', null, global);
27
29
  goog.exportSymbol('proto.worldpayserviceapi.PaymentProcessorMidType', null, global);
28
30
  goog.exportSymbol('proto.worldpayserviceapi.PaymentRequest', null, global);
@@ -179,6 +181,48 @@ if (goog.DEBUG && !COMPILED) {
179
181
  */
180
182
  proto.worldpayserviceapi.PaymentStatusResponse.displayName = 'proto.worldpayserviceapi.PaymentStatusResponse';
181
183
  }
184
+ /**
185
+ * Generated by JsPbCodeGenerator.
186
+ * @param {Array=} opt_data Optional initial data array, typically from a
187
+ * server response, or constructed directly in Javascript. The array is used
188
+ * in place and becomes part of the constructed object. It is not cloned.
189
+ * If no data is provided, the constructed object will be empty, but still
190
+ * valid.
191
+ * @extends {jspb.Message}
192
+ * @constructor
193
+ */
194
+ proto.worldpayserviceapi.GetTransactionRequest = function(opt_data) {
195
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
196
+ };
197
+ goog.inherits(proto.worldpayserviceapi.GetTransactionRequest, jspb.Message);
198
+ if (goog.DEBUG && !COMPILED) {
199
+ /**
200
+ * @public
201
+ * @override
202
+ */
203
+ proto.worldpayserviceapi.GetTransactionRequest.displayName = 'proto.worldpayserviceapi.GetTransactionRequest';
204
+ }
205
+ /**
206
+ * Generated by JsPbCodeGenerator.
207
+ * @param {Array=} opt_data Optional initial data array, typically from a
208
+ * server response, or constructed directly in Javascript. The array is used
209
+ * in place and becomes part of the constructed object. It is not cloned.
210
+ * If no data is provided, the constructed object will be empty, but still
211
+ * valid.
212
+ * @extends {jspb.Message}
213
+ * @constructor
214
+ */
215
+ proto.worldpayserviceapi.GetTransactionResponse = function(opt_data) {
216
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
217
+ };
218
+ goog.inherits(proto.worldpayserviceapi.GetTransactionResponse, jspb.Message);
219
+ if (goog.DEBUG && !COMPILED) {
220
+ /**
221
+ * @public
222
+ * @override
223
+ */
224
+ proto.worldpayserviceapi.GetTransactionResponse.displayName = 'proto.worldpayserviceapi.GetTransactionResponse';
225
+ }
182
226
 
183
227
 
184
228
 
@@ -2277,6 +2321,347 @@ proto.worldpayserviceapi.PaymentStatusResponse.prototype.setPaymentstatus = func
2277
2321
  };
2278
2322
 
2279
2323
 
2324
+
2325
+
2326
+
2327
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2328
+ /**
2329
+ * Creates an object representation of this proto.
2330
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2331
+ * Optional fields that are not set will be set to undefined.
2332
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2333
+ * For the list of reserved names please see:
2334
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2335
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2336
+ * JSPB instance for transitional soy proto support:
2337
+ * http://goto/soy-param-migration
2338
+ * @return {!Object}
2339
+ */
2340
+ proto.worldpayserviceapi.GetTransactionRequest.prototype.toObject = function(opt_includeInstance) {
2341
+ return proto.worldpayserviceapi.GetTransactionRequest.toObject(opt_includeInstance, this);
2342
+ };
2343
+
2344
+
2345
+ /**
2346
+ * Static version of the {@see toObject} method.
2347
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2348
+ * the JSPB instance for transitional soy proto support:
2349
+ * http://goto/soy-param-migration
2350
+ * @param {!proto.worldpayserviceapi.GetTransactionRequest} msg The msg instance to transform.
2351
+ * @return {!Object}
2352
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2353
+ */
2354
+ proto.worldpayserviceapi.GetTransactionRequest.toObject = function(includeInstance, msg) {
2355
+ var f, obj = {
2356
+ transactionid: jspb.Message.getFieldWithDefault(msg, 2, 0)
2357
+ };
2358
+
2359
+ if (includeInstance) {
2360
+ obj.$jspbMessageInstance = msg;
2361
+ }
2362
+ return obj;
2363
+ };
2364
+ }
2365
+
2366
+
2367
+ /**
2368
+ * Deserializes binary data (in protobuf wire format).
2369
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2370
+ * @return {!proto.worldpayserviceapi.GetTransactionRequest}
2371
+ */
2372
+ proto.worldpayserviceapi.GetTransactionRequest.deserializeBinary = function(bytes) {
2373
+ var reader = new jspb.BinaryReader(bytes);
2374
+ var msg = new proto.worldpayserviceapi.GetTransactionRequest;
2375
+ return proto.worldpayserviceapi.GetTransactionRequest.deserializeBinaryFromReader(msg, reader);
2376
+ };
2377
+
2378
+
2379
+ /**
2380
+ * Deserializes binary data (in protobuf wire format) from the
2381
+ * given reader into the given message object.
2382
+ * @param {!proto.worldpayserviceapi.GetTransactionRequest} msg The message object to deserialize into.
2383
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2384
+ * @return {!proto.worldpayserviceapi.GetTransactionRequest}
2385
+ */
2386
+ proto.worldpayserviceapi.GetTransactionRequest.deserializeBinaryFromReader = function(msg, reader) {
2387
+ while (reader.nextField()) {
2388
+ if (reader.isEndGroup()) {
2389
+ break;
2390
+ }
2391
+ var field = reader.getFieldNumber();
2392
+ switch (field) {
2393
+ case 2:
2394
+ var value = /** @type {number} */ (reader.readInt64());
2395
+ msg.setTransactionid(value);
2396
+ break;
2397
+ default:
2398
+ reader.skipField();
2399
+ break;
2400
+ }
2401
+ }
2402
+ return msg;
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * Serializes the message to binary data (in protobuf wire format).
2408
+ * @return {!Uint8Array}
2409
+ */
2410
+ proto.worldpayserviceapi.GetTransactionRequest.prototype.serializeBinary = function() {
2411
+ var writer = new jspb.BinaryWriter();
2412
+ proto.worldpayserviceapi.GetTransactionRequest.serializeBinaryToWriter(this, writer);
2413
+ return writer.getResultBuffer();
2414
+ };
2415
+
2416
+
2417
+ /**
2418
+ * Serializes the given message to binary data (in protobuf wire
2419
+ * format), writing to the given BinaryWriter.
2420
+ * @param {!proto.worldpayserviceapi.GetTransactionRequest} message
2421
+ * @param {!jspb.BinaryWriter} writer
2422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2423
+ */
2424
+ proto.worldpayserviceapi.GetTransactionRequest.serializeBinaryToWriter = function(message, writer) {
2425
+ var f = undefined;
2426
+ f = message.getTransactionid();
2427
+ if (f !== 0) {
2428
+ writer.writeInt64(
2429
+ 2,
2430
+ f
2431
+ );
2432
+ }
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * optional int64 transactionId = 2;
2438
+ * @return {number}
2439
+ */
2440
+ proto.worldpayserviceapi.GetTransactionRequest.prototype.getTransactionid = function() {
2441
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2442
+ };
2443
+
2444
+
2445
+ /**
2446
+ * @param {number} value
2447
+ * @return {!proto.worldpayserviceapi.GetTransactionRequest} returns this
2448
+ */
2449
+ proto.worldpayserviceapi.GetTransactionRequest.prototype.setTransactionid = function(value) {
2450
+ return jspb.Message.setProto3IntField(this, 2, value);
2451
+ };
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2458
+ /**
2459
+ * Creates an object representation of this proto.
2460
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2461
+ * Optional fields that are not set will be set to undefined.
2462
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2463
+ * For the list of reserved names please see:
2464
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2465
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2466
+ * JSPB instance for transitional soy proto support:
2467
+ * http://goto/soy-param-migration
2468
+ * @return {!Object}
2469
+ */
2470
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.toObject = function(opt_includeInstance) {
2471
+ return proto.worldpayserviceapi.GetTransactionResponse.toObject(opt_includeInstance, this);
2472
+ };
2473
+
2474
+
2475
+ /**
2476
+ * Static version of the {@see toObject} method.
2477
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2478
+ * the JSPB instance for transitional soy proto support:
2479
+ * http://goto/soy-param-migration
2480
+ * @param {!proto.worldpayserviceapi.GetTransactionResponse} msg The msg instance to transform.
2481
+ * @return {!Object}
2482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2483
+ */
2484
+ proto.worldpayserviceapi.GetTransactionResponse.toObject = function(includeInstance, msg) {
2485
+ var f, obj = {
2486
+ transactionid: jspb.Message.getFieldWithDefault(msg, 1, 0),
2487
+ worldpaypaymentid: jspb.Message.getFieldWithDefault(msg, 2, ""),
2488
+ responsecode: (f = msg.getResponsecode()) && proto.worldpayserviceapi.ResponseCode.toObject(includeInstance, f)
2489
+ };
2490
+
2491
+ if (includeInstance) {
2492
+ obj.$jspbMessageInstance = msg;
2493
+ }
2494
+ return obj;
2495
+ };
2496
+ }
2497
+
2498
+
2499
+ /**
2500
+ * Deserializes binary data (in protobuf wire format).
2501
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2502
+ * @return {!proto.worldpayserviceapi.GetTransactionResponse}
2503
+ */
2504
+ proto.worldpayserviceapi.GetTransactionResponse.deserializeBinary = function(bytes) {
2505
+ var reader = new jspb.BinaryReader(bytes);
2506
+ var msg = new proto.worldpayserviceapi.GetTransactionResponse;
2507
+ return proto.worldpayserviceapi.GetTransactionResponse.deserializeBinaryFromReader(msg, reader);
2508
+ };
2509
+
2510
+
2511
+ /**
2512
+ * Deserializes binary data (in protobuf wire format) from the
2513
+ * given reader into the given message object.
2514
+ * @param {!proto.worldpayserviceapi.GetTransactionResponse} msg The message object to deserialize into.
2515
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2516
+ * @return {!proto.worldpayserviceapi.GetTransactionResponse}
2517
+ */
2518
+ proto.worldpayserviceapi.GetTransactionResponse.deserializeBinaryFromReader = function(msg, reader) {
2519
+ while (reader.nextField()) {
2520
+ if (reader.isEndGroup()) {
2521
+ break;
2522
+ }
2523
+ var field = reader.getFieldNumber();
2524
+ switch (field) {
2525
+ case 1:
2526
+ var value = /** @type {number} */ (reader.readInt64());
2527
+ msg.setTransactionid(value);
2528
+ break;
2529
+ case 2:
2530
+ var value = /** @type {string} */ (reader.readString());
2531
+ msg.setWorldpaypaymentid(value);
2532
+ break;
2533
+ case 3:
2534
+ var value = new proto.worldpayserviceapi.ResponseCode;
2535
+ reader.readMessage(value,proto.worldpayserviceapi.ResponseCode.deserializeBinaryFromReader);
2536
+ msg.setResponsecode(value);
2537
+ break;
2538
+ default:
2539
+ reader.skipField();
2540
+ break;
2541
+ }
2542
+ }
2543
+ return msg;
2544
+ };
2545
+
2546
+
2547
+ /**
2548
+ * Serializes the message to binary data (in protobuf wire format).
2549
+ * @return {!Uint8Array}
2550
+ */
2551
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.serializeBinary = function() {
2552
+ var writer = new jspb.BinaryWriter();
2553
+ proto.worldpayserviceapi.GetTransactionResponse.serializeBinaryToWriter(this, writer);
2554
+ return writer.getResultBuffer();
2555
+ };
2556
+
2557
+
2558
+ /**
2559
+ * Serializes the given message to binary data (in protobuf wire
2560
+ * format), writing to the given BinaryWriter.
2561
+ * @param {!proto.worldpayserviceapi.GetTransactionResponse} message
2562
+ * @param {!jspb.BinaryWriter} writer
2563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2564
+ */
2565
+ proto.worldpayserviceapi.GetTransactionResponse.serializeBinaryToWriter = function(message, writer) {
2566
+ var f = undefined;
2567
+ f = message.getTransactionid();
2568
+ if (f !== 0) {
2569
+ writer.writeInt64(
2570
+ 1,
2571
+ f
2572
+ );
2573
+ }
2574
+ f = message.getWorldpaypaymentid();
2575
+ if (f.length > 0) {
2576
+ writer.writeString(
2577
+ 2,
2578
+ f
2579
+ );
2580
+ }
2581
+ f = message.getResponsecode();
2582
+ if (f != null) {
2583
+ writer.writeMessage(
2584
+ 3,
2585
+ f,
2586
+ proto.worldpayserviceapi.ResponseCode.serializeBinaryToWriter
2587
+ );
2588
+ }
2589
+ };
2590
+
2591
+
2592
+ /**
2593
+ * optional int64 transactionId = 1;
2594
+ * @return {number}
2595
+ */
2596
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.getTransactionid = function() {
2597
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2598
+ };
2599
+
2600
+
2601
+ /**
2602
+ * @param {number} value
2603
+ * @return {!proto.worldpayserviceapi.GetTransactionResponse} returns this
2604
+ */
2605
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.setTransactionid = function(value) {
2606
+ return jspb.Message.setProto3IntField(this, 1, value);
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * optional string WorldPayPaymentId = 2;
2612
+ * @return {string}
2613
+ */
2614
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.getWorldpaypaymentid = function() {
2615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2616
+ };
2617
+
2618
+
2619
+ /**
2620
+ * @param {string} value
2621
+ * @return {!proto.worldpayserviceapi.GetTransactionResponse} returns this
2622
+ */
2623
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.setWorldpaypaymentid = function(value) {
2624
+ return jspb.Message.setProto3StringField(this, 2, value);
2625
+ };
2626
+
2627
+
2628
+ /**
2629
+ * optional ResponseCode ResponseCode = 3;
2630
+ * @return {?proto.worldpayserviceapi.ResponseCode}
2631
+ */
2632
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.getResponsecode = function() {
2633
+ return /** @type{?proto.worldpayserviceapi.ResponseCode} */ (
2634
+ jspb.Message.getWrapperField(this, proto.worldpayserviceapi.ResponseCode, 3));
2635
+ };
2636
+
2637
+
2638
+ /**
2639
+ * @param {?proto.worldpayserviceapi.ResponseCode|undefined} value
2640
+ * @return {!proto.worldpayserviceapi.GetTransactionResponse} returns this
2641
+ */
2642
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.setResponsecode = function(value) {
2643
+ return jspb.Message.setWrapperField(this, 3, value);
2644
+ };
2645
+
2646
+
2647
+ /**
2648
+ * Clears the message field making it undefined.
2649
+ * @return {!proto.worldpayserviceapi.GetTransactionResponse} returns this
2650
+ */
2651
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.clearResponsecode = function() {
2652
+ return this.setResponsecode(undefined);
2653
+ };
2654
+
2655
+
2656
+ /**
2657
+ * Returns whether this field is set.
2658
+ * @return {boolean}
2659
+ */
2660
+ proto.worldpayserviceapi.GetTransactionResponse.prototype.hasResponsecode = function() {
2661
+ return jspb.Message.getField(this, 3) != null;
2662
+ };
2663
+
2664
+
2280
2665
  /**
2281
2666
  * @enum {number}
2282
2667
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/worldpay-service-client-grpcweb",
3
- "version": "25.5.34",
3
+ "version": "25.6.50",
4
4
  "description": "worldpay-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",