@sniipwebmaster/cybersource-client-grpcweb 24.15.377 → 24.15.389

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.
@@ -200,6 +200,67 @@ proto.cybersourceserviceapi.CybersourceServiceAPIServicePromiseClient.prototype.
200
200
  };
201
201
 
202
202
 
203
+ /**
204
+ * @const
205
+ * @type {!grpc.web.MethodDescriptor<
206
+ * !proto.cybersourceserviceapi.RefundRequest,
207
+ * !proto.cybersourceserviceapi.RefundResponse>}
208
+ */
209
+ const methodDescriptor_CybersourceServiceAPIService_MakeRefund = new grpc.web.MethodDescriptor(
210
+ '/cybersourceserviceapi.CybersourceServiceAPIService/MakeRefund',
211
+ grpc.web.MethodType.UNARY,
212
+ proto.cybersourceserviceapi.RefundRequest,
213
+ proto.cybersourceserviceapi.RefundResponse,
214
+ /**
215
+ * @param {!proto.cybersourceserviceapi.RefundRequest} request
216
+ * @return {!Uint8Array}
217
+ */
218
+ function(request) {
219
+ return request.serializeBinary();
220
+ },
221
+ proto.cybersourceserviceapi.RefundResponse.deserializeBinary
222
+ );
223
+
224
+
225
+ /**
226
+ * @param {!proto.cybersourceserviceapi.RefundRequest} request The
227
+ * request proto
228
+ * @param {?Object<string, string>} metadata User defined
229
+ * call metadata
230
+ * @param {function(?grpc.web.RpcError, ?proto.cybersourceserviceapi.RefundResponse)}
231
+ * callback The callback function(error, response)
232
+ * @return {!grpc.web.ClientReadableStream<!proto.cybersourceserviceapi.RefundResponse>|undefined}
233
+ * The XHR Node Readable Stream
234
+ */
235
+ proto.cybersourceserviceapi.CybersourceServiceAPIServiceClient.prototype.makeRefund =
236
+ function(request, metadata, callback) {
237
+ return this.client_.rpcCall(this.hostname_ +
238
+ '/cybersourceserviceapi.CybersourceServiceAPIService/MakeRefund',
239
+ request,
240
+ metadata || {},
241
+ methodDescriptor_CybersourceServiceAPIService_MakeRefund,
242
+ callback);
243
+ };
244
+
245
+
246
+ /**
247
+ * @param {!proto.cybersourceserviceapi.RefundRequest} request The
248
+ * request proto
249
+ * @param {?Object<string, string>=} metadata User defined
250
+ * call metadata
251
+ * @return {!Promise<!proto.cybersourceserviceapi.RefundResponse>}
252
+ * Promise that resolves to the response
253
+ */
254
+ proto.cybersourceserviceapi.CybersourceServiceAPIServicePromiseClient.prototype.makeRefund =
255
+ function(request, metadata) {
256
+ return this.client_.unaryCall(this.hostname_ +
257
+ '/cybersourceserviceapi.CybersourceServiceAPIService/MakeRefund',
258
+ request,
259
+ metadata || {},
260
+ methodDescriptor_CybersourceServiceAPIService_MakeRefund);
261
+ };
262
+
263
+
203
264
  /**
204
265
  * @const
205
266
  * @type {!grpc.web.MethodDescriptor<
@@ -4581,9 +4581,10 @@ proto.cybersourceserviceapi.RefundRequest.prototype.toObject = function(opt_incl
4581
4581
  */
4582
4582
  proto.cybersourceserviceapi.RefundRequest.toObject = function(includeInstance, msg) {
4583
4583
  var f, obj = {
4584
- paymentIntentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4585
- reason: jspb.Message.getFieldWithDefault(msg, 2, 0),
4586
- refundamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
4584
+ originalsniiptransactionid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4585
+ refundtransactionid: jspb.Message.getFieldWithDefault(msg, 2, 0),
4586
+ reason: jspb.Message.getFieldWithDefault(msg, 3, 0),
4587
+ refundamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
4587
4588
  };
4588
4589
 
4589
4590
  if (includeInstance) {
@@ -4621,14 +4622,18 @@ proto.cybersourceserviceapi.RefundRequest.deserializeBinaryFromReader = function
4621
4622
  var field = reader.getFieldNumber();
4622
4623
  switch (field) {
4623
4624
  case 1:
4624
- var value = /** @type {string} */ (reader.readString());
4625
- msg.setPaymentIntentId(value);
4625
+ var value = /** @type {number} */ (reader.readInt64());
4626
+ msg.setOriginalsniiptransactionid(value);
4626
4627
  break;
4627
4628
  case 2:
4629
+ var value = /** @type {number} */ (reader.readInt64());
4630
+ msg.setRefundtransactionid(value);
4631
+ break;
4632
+ case 3:
4628
4633
  var value = /** @type {!proto.cybersourceserviceapi.RefundReason} */ (reader.readEnum());
4629
4634
  msg.setReason(value);
4630
4635
  break;
4631
- case 3:
4636
+ case 4:
4632
4637
  var value = /** @type {number} */ (reader.readDouble());
4633
4638
  msg.setRefundamount(value);
4634
4639
  break;
@@ -4661,24 +4666,31 @@ proto.cybersourceserviceapi.RefundRequest.prototype.serializeBinary = function()
4661
4666
  */
4662
4667
  proto.cybersourceserviceapi.RefundRequest.serializeBinaryToWriter = function(message, writer) {
4663
4668
  var f = undefined;
4664
- f = message.getPaymentIntentId();
4665
- if (f.length > 0) {
4666
- writer.writeString(
4669
+ f = message.getOriginalsniiptransactionid();
4670
+ if (f !== 0) {
4671
+ writer.writeInt64(
4667
4672
  1,
4668
4673
  f
4669
4674
  );
4670
4675
  }
4676
+ f = message.getRefundtransactionid();
4677
+ if (f !== 0) {
4678
+ writer.writeInt64(
4679
+ 2,
4680
+ f
4681
+ );
4682
+ }
4671
4683
  f = message.getReason();
4672
4684
  if (f !== 0.0) {
4673
4685
  writer.writeEnum(
4674
- 2,
4686
+ 3,
4675
4687
  f
4676
4688
  );
4677
4689
  }
4678
4690
  f = message.getRefundamount();
4679
4691
  if (f !== 0.0) {
4680
4692
  writer.writeDouble(
4681
- 3,
4693
+ 4,
4682
4694
  f
4683
4695
  );
4684
4696
  }
@@ -4686,29 +4698,47 @@ proto.cybersourceserviceapi.RefundRequest.serializeBinaryToWriter = function(mes
4686
4698
 
4687
4699
 
4688
4700
  /**
4689
- * optional string payment_intent_id = 1;
4690
- * @return {string}
4701
+ * optional int64 originalSniipTransactionId = 1;
4702
+ * @return {number}
4691
4703
  */
4692
- proto.cybersourceserviceapi.RefundRequest.prototype.getPaymentIntentId = function() {
4693
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4704
+ proto.cybersourceserviceapi.RefundRequest.prototype.getOriginalsniiptransactionid = function() {
4705
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4694
4706
  };
4695
4707
 
4696
4708
 
4697
4709
  /**
4698
- * @param {string} value
4710
+ * @param {number} value
4699
4711
  * @return {!proto.cybersourceserviceapi.RefundRequest} returns this
4700
4712
  */
4701
- proto.cybersourceserviceapi.RefundRequest.prototype.setPaymentIntentId = function(value) {
4702
- return jspb.Message.setProto3StringField(this, 1, value);
4713
+ proto.cybersourceserviceapi.RefundRequest.prototype.setOriginalsniiptransactionid = function(value) {
4714
+ return jspb.Message.setProto3IntField(this, 1, value);
4715
+ };
4716
+
4717
+
4718
+ /**
4719
+ * optional int64 refundTransactionId = 2;
4720
+ * @return {number}
4721
+ */
4722
+ proto.cybersourceserviceapi.RefundRequest.prototype.getRefundtransactionid = function() {
4723
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4703
4724
  };
4704
4725
 
4705
4726
 
4706
4727
  /**
4707
- * optional RefundReason reason = 2;
4728
+ * @param {number} value
4729
+ * @return {!proto.cybersourceserviceapi.RefundRequest} returns this
4730
+ */
4731
+ proto.cybersourceserviceapi.RefundRequest.prototype.setRefundtransactionid = function(value) {
4732
+ return jspb.Message.setProto3IntField(this, 2, value);
4733
+ };
4734
+
4735
+
4736
+ /**
4737
+ * optional RefundReason reason = 3;
4708
4738
  * @return {!proto.cybersourceserviceapi.RefundReason}
4709
4739
  */
4710
4740
  proto.cybersourceserviceapi.RefundRequest.prototype.getReason = function() {
4711
- return /** @type {!proto.cybersourceserviceapi.RefundReason} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4741
+ return /** @type {!proto.cybersourceserviceapi.RefundReason} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4712
4742
  };
4713
4743
 
4714
4744
 
@@ -4717,16 +4747,16 @@ proto.cybersourceserviceapi.RefundRequest.prototype.getReason = function() {
4717
4747
  * @return {!proto.cybersourceserviceapi.RefundRequest} returns this
4718
4748
  */
4719
4749
  proto.cybersourceserviceapi.RefundRequest.prototype.setReason = function(value) {
4720
- return jspb.Message.setProto3EnumField(this, 2, value);
4750
+ return jspb.Message.setProto3EnumField(this, 3, value);
4721
4751
  };
4722
4752
 
4723
4753
 
4724
4754
  /**
4725
- * optional double refundAmount = 3;
4755
+ * optional double refundAmount = 4;
4726
4756
  * @return {number}
4727
4757
  */
4728
4758
  proto.cybersourceserviceapi.RefundRequest.prototype.getRefundamount = function() {
4729
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
4759
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
4730
4760
  };
4731
4761
 
4732
4762
 
@@ -4735,7 +4765,7 @@ proto.cybersourceserviceapi.RefundRequest.prototype.getRefundamount = function()
4735
4765
  * @return {!proto.cybersourceserviceapi.RefundRequest} returns this
4736
4766
  */
4737
4767
  proto.cybersourceserviceapi.RefundRequest.prototype.setRefundamount = function(value) {
4738
- return jspb.Message.setProto3FloatField(this, 3, value);
4768
+ return jspb.Message.setProto3FloatField(this, 4, value);
4739
4769
  };
4740
4770
 
4741
4771
 
@@ -4773,7 +4803,12 @@ proto.cybersourceserviceapi.RefundResponse.toObject = function(includeInstance,
4773
4803
  var f, obj = {
4774
4804
  responsecode: (f = msg.getResponsecode()) && proto.cybersourceserviceapi.ResponseCode.toObject(includeInstance, f),
4775
4805
  status: jspb.Message.getFieldWithDefault(msg, 2, ""),
4776
- charge: jspb.Message.getFieldWithDefault(msg, 3, "")
4806
+ charge: jspb.Message.getFieldWithDefault(msg, 3, ""),
4807
+ response: jspb.Message.getFieldWithDefault(msg, 4, ""),
4808
+ gatewaytransactionid: jspb.Message.getFieldWithDefault(msg, 5, ""),
4809
+ receiptid: jspb.Message.getFieldWithDefault(msg, 6, ""),
4810
+ gatewaybankresponsecode: jspb.Message.getFieldWithDefault(msg, 7, 0),
4811
+ gatewayresponsemessage: jspb.Message.getFieldWithDefault(msg, 8, "")
4777
4812
  };
4778
4813
 
4779
4814
  if (includeInstance) {
@@ -4823,6 +4858,26 @@ proto.cybersourceserviceapi.RefundResponse.deserializeBinaryFromReader = functio
4823
4858
  var value = /** @type {string} */ (reader.readString());
4824
4859
  msg.setCharge(value);
4825
4860
  break;
4861
+ case 4:
4862
+ var value = /** @type {string} */ (reader.readString());
4863
+ msg.setResponse(value);
4864
+ break;
4865
+ case 5:
4866
+ var value = /** @type {string} */ (reader.readString());
4867
+ msg.setGatewaytransactionid(value);
4868
+ break;
4869
+ case 6:
4870
+ var value = /** @type {string} */ (reader.readString());
4871
+ msg.setReceiptid(value);
4872
+ break;
4873
+ case 7:
4874
+ var value = /** @type {number} */ (reader.readInt32());
4875
+ msg.setGatewaybankresponsecode(value);
4876
+ break;
4877
+ case 8:
4878
+ var value = /** @type {string} */ (reader.readString());
4879
+ msg.setGatewayresponsemessage(value);
4880
+ break;
4826
4881
  default:
4827
4882
  reader.skipField();
4828
4883
  break;
@@ -4874,6 +4929,41 @@ proto.cybersourceserviceapi.RefundResponse.serializeBinaryToWriter = function(me
4874
4929
  f
4875
4930
  );
4876
4931
  }
4932
+ f = message.getResponse();
4933
+ if (f.length > 0) {
4934
+ writer.writeString(
4935
+ 4,
4936
+ f
4937
+ );
4938
+ }
4939
+ f = message.getGatewaytransactionid();
4940
+ if (f.length > 0) {
4941
+ writer.writeString(
4942
+ 5,
4943
+ f
4944
+ );
4945
+ }
4946
+ f = message.getReceiptid();
4947
+ if (f.length > 0) {
4948
+ writer.writeString(
4949
+ 6,
4950
+ f
4951
+ );
4952
+ }
4953
+ f = message.getGatewaybankresponsecode();
4954
+ if (f !== 0) {
4955
+ writer.writeInt32(
4956
+ 7,
4957
+ f
4958
+ );
4959
+ }
4960
+ f = message.getGatewayresponsemessage();
4961
+ if (f.length > 0) {
4962
+ writer.writeString(
4963
+ 8,
4964
+ f
4965
+ );
4966
+ }
4877
4967
  };
4878
4968
 
4879
4969
 
@@ -4950,6 +5040,96 @@ proto.cybersourceserviceapi.RefundResponse.prototype.setCharge = function(value)
4950
5040
  };
4951
5041
 
4952
5042
 
5043
+ /**
5044
+ * optional string response = 4;
5045
+ * @return {string}
5046
+ */
5047
+ proto.cybersourceserviceapi.RefundResponse.prototype.getResponse = function() {
5048
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5049
+ };
5050
+
5051
+
5052
+ /**
5053
+ * @param {string} value
5054
+ * @return {!proto.cybersourceserviceapi.RefundResponse} returns this
5055
+ */
5056
+ proto.cybersourceserviceapi.RefundResponse.prototype.setResponse = function(value) {
5057
+ return jspb.Message.setProto3StringField(this, 4, value);
5058
+ };
5059
+
5060
+
5061
+ /**
5062
+ * optional string gatewayTransactionId = 5;
5063
+ * @return {string}
5064
+ */
5065
+ proto.cybersourceserviceapi.RefundResponse.prototype.getGatewaytransactionid = function() {
5066
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
5067
+ };
5068
+
5069
+
5070
+ /**
5071
+ * @param {string} value
5072
+ * @return {!proto.cybersourceserviceapi.RefundResponse} returns this
5073
+ */
5074
+ proto.cybersourceserviceapi.RefundResponse.prototype.setGatewaytransactionid = function(value) {
5075
+ return jspb.Message.setProto3StringField(this, 5, value);
5076
+ };
5077
+
5078
+
5079
+ /**
5080
+ * optional string receiptId = 6;
5081
+ * @return {string}
5082
+ */
5083
+ proto.cybersourceserviceapi.RefundResponse.prototype.getReceiptid = function() {
5084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5085
+ };
5086
+
5087
+
5088
+ /**
5089
+ * @param {string} value
5090
+ * @return {!proto.cybersourceserviceapi.RefundResponse} returns this
5091
+ */
5092
+ proto.cybersourceserviceapi.RefundResponse.prototype.setReceiptid = function(value) {
5093
+ return jspb.Message.setProto3StringField(this, 6, value);
5094
+ };
5095
+
5096
+
5097
+ /**
5098
+ * optional int32 gatewayBankResponseCode = 7;
5099
+ * @return {number}
5100
+ */
5101
+ proto.cybersourceserviceapi.RefundResponse.prototype.getGatewaybankresponsecode = function() {
5102
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
5103
+ };
5104
+
5105
+
5106
+ /**
5107
+ * @param {number} value
5108
+ * @return {!proto.cybersourceserviceapi.RefundResponse} returns this
5109
+ */
5110
+ proto.cybersourceserviceapi.RefundResponse.prototype.setGatewaybankresponsecode = function(value) {
5111
+ return jspb.Message.setProto3IntField(this, 7, value);
5112
+ };
5113
+
5114
+
5115
+ /**
5116
+ * optional string gatewayResponseMessage = 8;
5117
+ * @return {string}
5118
+ */
5119
+ proto.cybersourceserviceapi.RefundResponse.prototype.getGatewayresponsemessage = function() {
5120
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
5121
+ };
5122
+
5123
+
5124
+ /**
5125
+ * @param {string} value
5126
+ * @return {!proto.cybersourceserviceapi.RefundResponse} returns this
5127
+ */
5128
+ proto.cybersourceserviceapi.RefundResponse.prototype.setGatewayresponsemessage = function(value) {
5129
+ return jspb.Message.setProto3StringField(this, 8, value);
5130
+ };
5131
+
5132
+
4953
5133
 
4954
5134
 
4955
5135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/cybersource-client-grpcweb",
3
- "version": "24.15.377",
3
+ "version": "24.15.389",
4
4
  "description": "cybersource-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",