Skip to content

Commit c53dd2e

Browse files
authored
Merge pull request #44 from CyberSource/hotfix-payments
Hotfix
2 parents 4b8701e + ea81900 commit c53dd2e

File tree

53 files changed

+1385
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1385
-4
lines changed

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/MitVoidRequestTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ public void PaymentInformationTest()
8080
{
8181
// TODO unit test for the property 'PaymentInformation'
8282
}
83+
/// <summary>
84+
/// Test the property 'OrderInformation'
85+
/// </summary>
86+
[Test]
87+
public void OrderInformationTest()
88+
{
89+
// TODO unit test for the property 'OrderInformation'
90+
}
8391

8492
}
8593

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformationTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ public void AchVerificationTest()
112112
{
113113
// TODO unit test for the property 'AchVerification'
114114
}
115+
/// <summary>
116+
/// Test the property 'NetworkTransactionId'
117+
/// </summary>
118+
[Test]
119+
public void NetworkTransactionIdTest()
120+
{
121+
// TODO unit test for the property 'NetworkTransactionId'
122+
}
115123

116124
}
117125

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Api/AsymmetricKeyManagementApi.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public partial class AsymmetricKeyManagementApi : IAsymmetricKeyManagementApi
164164
{
165165
private static Logger logger;
166166
private ExceptionFactory _exceptionFactory = (name, response) => null;
167+
private int? _statusCode;
167168

168169
/// <summary>
169170
/// Initializes a new instance of the <see cref="AsymmetricKeyManagementApi"/> class.
@@ -274,6 +275,25 @@ public void AddDefaultHeader(string key, string value)
274275
Configuration.AddDefaultHeader(key, value);
275276
}
276277

278+
/// <summary>
279+
/// Retrieves the status code being set for the most recently executed API request.
280+
/// </summary>
281+
/// <returns>Status Code of previous request</returns>
282+
public int GetStatusCode()
283+
{
284+
return this._statusCode == null ? 0 : (int) this._statusCode;
285+
}
286+
287+
/// <summary>
288+
/// Sets the value of status code for the most recently executed API request, in order to be retrieved later.
289+
/// </summary>
290+
/// <param name="statusCode">Status Code to be set</param>
291+
/// <returns></returns>
292+
public void SetStatusCode(int? statusCode)
293+
{
294+
this._statusCode = statusCode;
295+
}
296+
277297
/// <summary>
278298
/// Create one or more PKCS#12 keys &#39;Create one or more PKCS#12 keys&#39;
279299
/// </summary>
@@ -283,8 +303,10 @@ public void AddDefaultHeader(string key, string value)
283303
public KmsV2KeysAsymPost201Response CreateP12Keys (CreateP12KeysRequest createP12KeysRequest)
284304
{
285305
logger.Debug("CALLING API \"CreateP12Keys\" STARTED");
306+
this.SetStatusCode(null);
286307
ApiResponse<KmsV2KeysAsymPost201Response> localVarResponse = CreateP12KeysWithHttpInfo(createP12KeysRequest);
287308
logger.Debug("CALLING API \"CreateP12Keys\" ENDED");
309+
this.SetStatusCode(localVarResponse.StatusCode);
288310
return localVarResponse.Data;
289311
}
290312

@@ -379,8 +401,10 @@ public ApiResponse< KmsV2KeysAsymPost201Response > CreateP12KeysWithHttpInfo (Cr
379401
public async System.Threading.Tasks.Task<KmsV2KeysAsymPost201Response> CreateP12KeysAsync (CreateP12KeysRequest createP12KeysRequest)
380402
{
381403
logger.Debug("CALLING API \"CreateP12KeysAsync\" STARTED");
404+
this.SetStatusCode(null);
382405
ApiResponse<KmsV2KeysAsymPost201Response> localVarResponse = await CreateP12KeysAsyncWithHttpInfo(createP12KeysRequest);
383406
logger.Debug("CALLING API \"CreateP12KeysAsync\" ENDED");
407+
this.SetStatusCode(localVarResponse.StatusCode);
384408
return localVarResponse.Data;
385409

386410
}
@@ -475,8 +499,10 @@ public async System.Threading.Tasks.Task<ApiResponse<KmsV2KeysAsymPost201Respons
475499
public KmsV2KeysAsymDeletesPost200Response DeleteBulkP12Keys (DeleteBulkP12KeysRequest deleteBulkP12KeysRequest)
476500
{
477501
logger.Debug("CALLING API \"DeleteBulkP12Keys\" STARTED");
502+
this.SetStatusCode(null);
478503
ApiResponse<KmsV2KeysAsymDeletesPost200Response> localVarResponse = DeleteBulkP12KeysWithHttpInfo(deleteBulkP12KeysRequest);
479504
logger.Debug("CALLING API \"DeleteBulkP12Keys\" ENDED");
505+
this.SetStatusCode(localVarResponse.StatusCode);
480506
return localVarResponse.Data;
481507
}
482508

@@ -571,8 +597,10 @@ public ApiResponse< KmsV2KeysAsymDeletesPost200Response > DeleteBulkP12KeysWithH
571597
public async System.Threading.Tasks.Task<KmsV2KeysAsymDeletesPost200Response> DeleteBulkP12KeysAsync (DeleteBulkP12KeysRequest deleteBulkP12KeysRequest)
572598
{
573599
logger.Debug("CALLING API \"DeleteBulkP12KeysAsync\" STARTED");
600+
this.SetStatusCode(null);
574601
ApiResponse<KmsV2KeysAsymDeletesPost200Response> localVarResponse = await DeleteBulkP12KeysAsyncWithHttpInfo(deleteBulkP12KeysRequest);
575602
logger.Debug("CALLING API \"DeleteBulkP12KeysAsync\" ENDED");
603+
this.SetStatusCode(localVarResponse.StatusCode);
576604
return localVarResponse.Data;
577605

578606
}
@@ -667,8 +695,10 @@ public async System.Threading.Tasks.Task<ApiResponse<KmsV2KeysAsymDeletesPost200
667695
public KmsV2KeysAsymGet200Response GetP12KeyDetails (string keyId)
668696
{
669697
logger.Debug("CALLING API \"GetP12KeyDetails\" STARTED");
698+
this.SetStatusCode(null);
670699
ApiResponse<KmsV2KeysAsymGet200Response> localVarResponse = GetP12KeyDetailsWithHttpInfo(keyId);
671700
logger.Debug("CALLING API \"GetP12KeyDetails\" ENDED");
701+
this.SetStatusCode(localVarResponse.StatusCode);
672702
return localVarResponse.Data;
673703
}
674704

@@ -759,8 +789,10 @@ public ApiResponse< KmsV2KeysAsymGet200Response > GetP12KeyDetailsWithHttpInfo (
759789
public async System.Threading.Tasks.Task<KmsV2KeysAsymGet200Response> GetP12KeyDetailsAsync (string keyId)
760790
{
761791
logger.Debug("CALLING API \"GetP12KeyDetailsAsync\" STARTED");
792+
this.SetStatusCode(null);
762793
ApiResponse<KmsV2KeysAsymGet200Response> localVarResponse = await GetP12KeyDetailsAsyncWithHttpInfo(keyId);
763794
logger.Debug("CALLING API \"GetP12KeyDetailsAsync\" ENDED");
795+
this.SetStatusCode(localVarResponse.StatusCode);
764796
return localVarResponse.Data;
765797

766798
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Api/CaptureApi.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public partial class CaptureApi : ICaptureApi
8484
{
8585
private static Logger logger;
8686
private ExceptionFactory _exceptionFactory = (name, response) => null;
87+
private int? _statusCode;
8788

8889
/// <summary>
8990
/// Initializes a new instance of the <see cref="CaptureApi"/> class.
@@ -194,6 +195,25 @@ public void AddDefaultHeader(string key, string value)
194195
Configuration.AddDefaultHeader(key, value);
195196
}
196197

198+
/// <summary>
199+
/// Retrieves the status code being set for the most recently executed API request.
200+
/// </summary>
201+
/// <returns>Status Code of previous request</returns>
202+
public int GetStatusCode()
203+
{
204+
return this._statusCode == null ? 0 : (int) this._statusCode;
205+
}
206+
207+
/// <summary>
208+
/// Sets the value of status code for the most recently executed API request, in order to be retrieved later.
209+
/// </summary>
210+
/// <param name="statusCode">Status Code to be set</param>
211+
/// <returns></returns>
212+
public void SetStatusCode(int? statusCode)
213+
{
214+
this._statusCode = statusCode;
215+
}
216+
197217
/// <summary>
198218
/// Capture a Payment Include the payment ID in the POST request to capture the payment amount.
199219
/// </summary>
@@ -204,8 +224,10 @@ public void AddDefaultHeader(string key, string value)
204224
public PtsV2PaymentsCapturesPost201Response CapturePayment (CapturePaymentRequest capturePaymentRequest, string id)
205225
{
206226
logger.Debug("CALLING API \"CapturePayment\" STARTED");
227+
this.SetStatusCode(null);
207228
ApiResponse<PtsV2PaymentsCapturesPost201Response> localVarResponse = CapturePaymentWithHttpInfo(capturePaymentRequest, id);
208229
logger.Debug("CALLING API \"CapturePayment\" ENDED");
230+
this.SetStatusCode(localVarResponse.StatusCode);
209231
return localVarResponse.Data;
210232
}
211233

@@ -313,8 +335,10 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt
313335
public async System.Threading.Tasks.Task<PtsV2PaymentsCapturesPost201Response> CapturePaymentAsync (CapturePaymentRequest capturePaymentRequest, string id)
314336
{
315337
logger.Debug("CALLING API \"CapturePaymentAsync\" STARTED");
338+
this.SetStatusCode(null);
316339
ApiResponse<PtsV2PaymentsCapturesPost201Response> localVarResponse = await CapturePaymentAsyncWithHttpInfo(capturePaymentRequest, id);
317340
logger.Debug("CALLING API \"CapturePaymentAsync\" ENDED");
341+
this.SetStatusCode(localVarResponse.StatusCode);
318342
return localVarResponse.Data;
319343

320344
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Api/ChargebackDetailsApi.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public partial class ChargebackDetailsApi : IChargebackDetailsApi
8888
{
8989
private static Logger logger;
9090
private ExceptionFactory _exceptionFactory = (name, response) => null;
91+
private int? _statusCode;
9192

9293
/// <summary>
9394
/// Initializes a new instance of the <see cref="ChargebackDetailsApi"/> class.
@@ -198,6 +199,25 @@ public void AddDefaultHeader(string key, string value)
198199
Configuration.AddDefaultHeader(key, value);
199200
}
200201

202+
/// <summary>
203+
/// Retrieves the status code being set for the most recently executed API request.
204+
/// </summary>
205+
/// <returns>Status Code of previous request</returns>
206+
public int GetStatusCode()
207+
{
208+
return this._statusCode == null ? 0 : (int) this._statusCode;
209+
}
210+
211+
/// <summary>
212+
/// Sets the value of status code for the most recently executed API request, in order to be retrieved later.
213+
/// </summary>
214+
/// <param name="statusCode">Status Code to be set</param>
215+
/// <returns></returns>
216+
public void SetStatusCode(int? statusCode)
217+
{
218+
this._statusCode = statusCode;
219+
}
220+
201221
/// <summary>
202222
/// Get Chargeback Details Chargeback Detail Report Description
203223
/// </summary>
@@ -209,8 +229,10 @@ public void AddDefaultHeader(string key, string value)
209229
public ReportingV3ChargebackDetailsGet200Response GetChargebackDetails (DateTime? startTime, DateTime? endTime, string organizationId = null)
210230
{
211231
logger.Debug("CALLING API \"GetChargebackDetails\" STARTED");
232+
this.SetStatusCode(null);
212233
ApiResponse<ReportingV3ChargebackDetailsGet200Response> localVarResponse = GetChargebackDetailsWithHttpInfo(startTime, endTime, organizationId);
213234
logger.Debug("CALLING API \"GetChargebackDetails\" ENDED");
235+
this.SetStatusCode(localVarResponse.StatusCode);
214236
return localVarResponse.Data;
215237
}
216238

@@ -322,8 +344,10 @@ public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDe
322344
public async System.Threading.Tasks.Task<ReportingV3ChargebackDetailsGet200Response> GetChargebackDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null)
323345
{
324346
logger.Debug("CALLING API \"GetChargebackDetailsAsync\" STARTED");
347+
this.SetStatusCode(null);
325348
ApiResponse<ReportingV3ChargebackDetailsGet200Response> localVarResponse = await GetChargebackDetailsAsyncWithHttpInfo(startTime, endTime, organizationId);
326349
logger.Debug("CALLING API \"GetChargebackDetailsAsync\" ENDED");
350+
this.SetStatusCode(localVarResponse.StatusCode);
327351
return localVarResponse.Data;
328352

329353
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Api/ChargebackSummariesApi.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public partial class ChargebackSummariesApi : IChargebackSummariesApi
8888
{
8989
private static Logger logger;
9090
private ExceptionFactory _exceptionFactory = (name, response) => null;
91+
private int? _statusCode;
9192

9293
/// <summary>
9394
/// Initializes a new instance of the <see cref="ChargebackSummariesApi"/> class.
@@ -198,6 +199,25 @@ public void AddDefaultHeader(string key, string value)
198199
Configuration.AddDefaultHeader(key, value);
199200
}
200201

202+
/// <summary>
203+
/// Retrieves the status code being set for the most recently executed API request.
204+
/// </summary>
205+
/// <returns>Status Code of previous request</returns>
206+
public int GetStatusCode()
207+
{
208+
return this._statusCode == null ? 0 : (int) this._statusCode;
209+
}
210+
211+
/// <summary>
212+
/// Sets the value of status code for the most recently executed API request, in order to be retrieved later.
213+
/// </summary>
214+
/// <param name="statusCode">Status Code to be set</param>
215+
/// <returns></returns>
216+
public void SetStatusCode(int? statusCode)
217+
{
218+
this._statusCode = statusCode;
219+
}
220+
201221
/// <summary>
202222
/// Get Chargeback Summaries Chargeback Summary Report Description
203223
/// </summary>
@@ -209,8 +229,10 @@ public void AddDefaultHeader(string key, string value)
209229
public ReportingV3ChargebackSummariesGet200Response GetChargebackSummaries (DateTime? startTime, DateTime? endTime, string organizationId = null)
210230
{
211231
logger.Debug("CALLING API \"GetChargebackSummaries\" STARTED");
232+
this.SetStatusCode(null);
212233
ApiResponse<ReportingV3ChargebackSummariesGet200Response> localVarResponse = GetChargebackSummariesWithHttpInfo(startTime, endTime, organizationId);
213234
logger.Debug("CALLING API \"GetChargebackSummaries\" ENDED");
235+
this.SetStatusCode(localVarResponse.StatusCode);
214236
return localVarResponse.Data;
215237
}
216238

@@ -322,8 +344,10 @@ public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargeback
322344
public async System.Threading.Tasks.Task<ReportingV3ChargebackSummariesGet200Response> GetChargebackSummariesAsync (DateTime? startTime, DateTime? endTime, string organizationId = null)
323345
{
324346
logger.Debug("CALLING API \"GetChargebackSummariesAsync\" STARTED");
347+
this.SetStatusCode(null);
325348
ApiResponse<ReportingV3ChargebackSummariesGet200Response> localVarResponse = await GetChargebackSummariesAsyncWithHttpInfo(startTime, endTime, organizationId);
326349
logger.Debug("CALLING API \"GetChargebackSummariesAsync\" ENDED");
350+
this.SetStatusCode(localVarResponse.StatusCode);
327351
return localVarResponse.Data;
328352

329353
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Api/ConversionDetailsApi.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public partial class ConversionDetailsApi : IConversionDetailsApi
8888
{
8989
private static Logger logger;
9090
private ExceptionFactory _exceptionFactory = (name, response) => null;
91+
private int? _statusCode;
9192

9293
/// <summary>
9394
/// Initializes a new instance of the <see cref="ConversionDetailsApi"/> class.
@@ -198,6 +199,25 @@ public void AddDefaultHeader(string key, string value)
198199
Configuration.AddDefaultHeader(key, value);
199200
}
200201

202+
/// <summary>
203+
/// Retrieves the status code being set for the most recently executed API request.
204+
/// </summary>
205+
/// <returns>Status Code of previous request</returns>
206+
public int GetStatusCode()
207+
{
208+
return this._statusCode == null ? 0 : (int) this._statusCode;
209+
}
210+
211+
/// <summary>
212+
/// Sets the value of status code for the most recently executed API request, in order to be retrieved later.
213+
/// </summary>
214+
/// <param name="statusCode">Status Code to be set</param>
215+
/// <returns></returns>
216+
public void SetStatusCode(int? statusCode)
217+
{
218+
this._statusCode = statusCode;
219+
}
220+
201221
/// <summary>
202222
/// Get Conversion Detail Transactions Get conversion detail of transactions for a merchant.
203223
/// </summary>
@@ -209,8 +229,10 @@ public void AddDefaultHeader(string key, string value)
209229
public ReportingV3ConversionDetailsGet200Response GetConversionDetail (DateTime? startTime, DateTime? endTime, string organizationId = null)
210230
{
211231
logger.Debug("CALLING API \"GetConversionDetail\" STARTED");
232+
this.SetStatusCode(null);
212233
ApiResponse<ReportingV3ConversionDetailsGet200Response> localVarResponse = GetConversionDetailWithHttpInfo(startTime, endTime, organizationId);
213234
logger.Debug("CALLING API \"GetConversionDetail\" ENDED");
235+
this.SetStatusCode(localVarResponse.StatusCode);
214236
return localVarResponse.Data;
215237
}
216238

@@ -322,8 +344,10 @@ public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDe
322344
public async System.Threading.Tasks.Task<ReportingV3ConversionDetailsGet200Response> GetConversionDetailAsync (DateTime? startTime, DateTime? endTime, string organizationId = null)
323345
{
324346
logger.Debug("CALLING API \"GetConversionDetailAsync\" STARTED");
347+
this.SetStatusCode(null);
325348
ApiResponse<ReportingV3ConversionDetailsGet200Response> localVarResponse = await GetConversionDetailAsyncWithHttpInfo(startTime, endTime, organizationId);
326349
logger.Debug("CALLING API \"GetConversionDetailAsync\" ENDED");
350+
this.SetStatusCode(localVarResponse.StatusCode);
327351
return localVarResponse.Data;
328352

329353
}

0 commit comments

Comments
 (0)