Skip to content

Commit 6a155a5

Browse files
committed
Update to v0.0.1.2
1 parent 2fb0796 commit 6a155a5

File tree

224 files changed

+11029
-2059
lines changed

Some content is hidden

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

224 files changed

+11029
-2059
lines changed

Api/PayerAuthenticationApi.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public interface IPayerAuthenticationApi : IApiAccessor
5252
/// This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
5353
/// </remarks>
5454
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
55-
/// <param name="request"></param>
55+
/// <param name="validateRequest"></param>
5656
/// <returns>RiskV1AuthenticationResultsPost201Response</returns>
57-
RiskV1AuthenticationResultsPost201Response ValidateAuthenticationResults (Request request);
57+
RiskV1AuthenticationResultsPost201Response ValidateAuthenticationResults (ValidateRequest validateRequest);
5858

5959
/// <summary>
6060
/// Validate authentication results
@@ -63,9 +63,9 @@ public interface IPayerAuthenticationApi : IApiAccessor
6363
/// This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
6464
/// </remarks>
6565
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
66-
/// <param name="request"></param>
66+
/// <param name="validateRequest"></param>
6767
/// <returns>ApiResponse of RiskV1AuthenticationResultsPost201Response</returns>
68-
ApiResponse<RiskV1AuthenticationResultsPost201Response> ValidateAuthenticationResultsWithHttpInfo (Request request);
68+
ApiResponse<RiskV1AuthenticationResultsPost201Response> ValidateAuthenticationResultsWithHttpInfo (ValidateRequest validateRequest);
6969
#endregion Synchronous Operations
7070
#region Asynchronous Operations
7171
/// <summary>
@@ -96,9 +96,9 @@ public interface IPayerAuthenticationApi : IApiAccessor
9696
/// This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
9797
/// </remarks>
9898
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
99-
/// <param name="request"></param>
99+
/// <param name="validateRequest"></param>
100100
/// <returns>Task of RiskV1AuthenticationResultsPost201Response</returns>
101-
System.Threading.Tasks.Task<RiskV1AuthenticationResultsPost201Response> ValidateAuthenticationResultsAsync (Request request);
101+
System.Threading.Tasks.Task<RiskV1AuthenticationResultsPost201Response> ValidateAuthenticationResultsAsync (ValidateRequest validateRequest);
102102

103103
/// <summary>
104104
/// Validate authentication results
@@ -107,9 +107,9 @@ public interface IPayerAuthenticationApi : IApiAccessor
107107
/// This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
108108
/// </remarks>
109109
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
110-
/// <param name="request"></param>
110+
/// <param name="validateRequest"></param>
111111
/// <returns>Task of ApiResponse (RiskV1AuthenticationResultsPost201Response)</returns>
112-
System.Threading.Tasks.Task<ApiResponse<RiskV1AuthenticationResultsPost201Response>> ValidateAuthenticationResultsAsyncWithHttpInfo (Request request);
112+
System.Threading.Tasks.Task<ApiResponse<RiskV1AuthenticationResultsPost201Response>> ValidateAuthenticationResultsAsyncWithHttpInfo (ValidateRequest validateRequest);
113113
#endregion Asynchronous Operations
114114
}
115115

@@ -371,25 +371,25 @@ public async System.Threading.Tasks.Task<ApiResponse<RiskV1AuthenticationsPost20
371371
/// Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
372372
/// </summary>
373373
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
374-
/// <param name="request"></param>
374+
/// <param name="validateRequest"></param>
375375
/// <returns>RiskV1AuthenticationResultsPost201Response</returns>
376-
public RiskV1AuthenticationResultsPost201Response ValidateAuthenticationResults (Request request)
376+
public RiskV1AuthenticationResultsPost201Response ValidateAuthenticationResults (ValidateRequest validateRequest)
377377
{
378-
ApiResponse<RiskV1AuthenticationResultsPost201Response> localVarResponse = ValidateAuthenticationResultsWithHttpInfo(request);
378+
ApiResponse<RiskV1AuthenticationResultsPost201Response> localVarResponse = ValidateAuthenticationResultsWithHttpInfo(validateRequest);
379379
return localVarResponse.Data;
380380
}
381381

382382
/// <summary>
383383
/// Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
384384
/// </summary>
385385
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
386-
/// <param name="request"></param>
386+
/// <param name="validateRequest"></param>
387387
/// <returns>ApiResponse of RiskV1AuthenticationResultsPost201Response</returns>
388-
public ApiResponse< RiskV1AuthenticationResultsPost201Response > ValidateAuthenticationResultsWithHttpInfo (Request request)
388+
public ApiResponse< RiskV1AuthenticationResultsPost201Response > ValidateAuthenticationResultsWithHttpInfo (ValidateRequest validateRequest)
389389
{
390-
// verify the required parameter 'request' is set
391-
if (request == null)
392-
throw new ApiException(400, "Missing required parameter 'request' when calling PayerAuthenticationApi->ValidateAuthenticationResults");
390+
// verify the required parameter 'validateRequest' is set
391+
if (validateRequest == null)
392+
throw new ApiException(400, "Missing required parameter 'validateRequest' when calling PayerAuthenticationApi->ValidateAuthenticationResults");
393393

394394
var localVarPath = $"/risk/v1/authentication-results";
395395
var localVarPathParams = new Dictionary<String, String>();
@@ -413,13 +413,13 @@ public ApiResponse< RiskV1AuthenticationResultsPost201Response > ValidateAuthent
413413
if (localVarHttpHeaderAccept != null)
414414
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
415415

416-
if (request != null && request.GetType() != typeof(byte[]))
416+
if (validateRequest != null && validateRequest.GetType() != typeof(byte[]))
417417
{
418-
localVarPostBody = Configuration.ApiClient.Serialize(request); // http body (model) parameter
418+
localVarPostBody = Configuration.ApiClient.Serialize(validateRequest); // http body (model) parameter
419419
}
420420
else
421421
{
422-
localVarPostBody = request; // byte array
422+
localVarPostBody = validateRequest; // byte array
423423
}
424424

425425

@@ -445,11 +445,11 @@ public ApiResponse< RiskV1AuthenticationResultsPost201Response > ValidateAuthent
445445
/// Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
446446
/// </summary>
447447
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
448-
/// <param name="request"></param>
448+
/// <param name="validateRequest"></param>
449449
/// <returns>Task of RiskV1AuthenticationResultsPost201Response</returns>
450-
public async System.Threading.Tasks.Task<RiskV1AuthenticationResultsPost201Response> ValidateAuthenticationResultsAsync (Request request)
450+
public async System.Threading.Tasks.Task<RiskV1AuthenticationResultsPost201Response> ValidateAuthenticationResultsAsync (ValidateRequest validateRequest)
451451
{
452-
ApiResponse<RiskV1AuthenticationResultsPost201Response> localVarResponse = await ValidateAuthenticationResultsAsyncWithHttpInfo(request);
452+
ApiResponse<RiskV1AuthenticationResultsPost201Response> localVarResponse = await ValidateAuthenticationResultsAsyncWithHttpInfo(validateRequest);
453453
return localVarResponse.Data;
454454

455455
}
@@ -458,13 +458,13 @@ public async System.Threading.Tasks.Task<RiskV1AuthenticationResultsPost201Respo
458458
/// Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
459459
/// </summary>
460460
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
461-
/// <param name="request"></param>
461+
/// <param name="validateRequest"></param>
462462
/// <returns>Task of ApiResponse (RiskV1AuthenticationResultsPost201Response)</returns>
463-
public async System.Threading.Tasks.Task<ApiResponse<RiskV1AuthenticationResultsPost201Response>> ValidateAuthenticationResultsAsyncWithHttpInfo (Request request)
463+
public async System.Threading.Tasks.Task<ApiResponse<RiskV1AuthenticationResultsPost201Response>> ValidateAuthenticationResultsAsyncWithHttpInfo (ValidateRequest validateRequest)
464464
{
465-
// verify the required parameter 'request' is set
466-
if (request == null)
467-
throw new ApiException(400, "Missing required parameter 'request' when calling PayerAuthenticationApi->ValidateAuthenticationResults");
465+
// verify the required parameter 'validateRequest' is set
466+
if (validateRequest == null)
467+
throw new ApiException(400, "Missing required parameter 'validateRequest' when calling PayerAuthenticationApi->ValidateAuthenticationResults");
468468

469469
var localVarPath = $"/risk/v1/authentication-results";
470470
var localVarPathParams = new Dictionary<String, String>();
@@ -488,13 +488,13 @@ public async System.Threading.Tasks.Task<ApiResponse<RiskV1AuthenticationResults
488488
if (localVarHttpHeaderAccept != null)
489489
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
490490

491-
if (request != null && request.GetType() != typeof(byte[]))
491+
if (validateRequest != null && validateRequest.GetType() != typeof(byte[]))
492492
{
493-
localVarPostBody = Configuration.ApiClient.Serialize(request); // http body (model) parameter
493+
localVarPostBody = Configuration.ApiClient.Serialize(validateRequest); // http body (model) parameter
494494
}
495495
else
496496
{
497-
localVarPostBody = request; // byte array
497+
localVarPostBody = validateRequest; // byte array
498498
}
499499

500500

Client/ApiClient.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,23 +614,23 @@ public void CallAuthenticationHeaders(string requestType, string requestTarget,
614614
// authenticationHeaders.Add("v-c-solution-id", Configuration.SolutionId);
615615
// }
616616

617-
if (Configuration.Proxy == null && merchantConfig.UseProxy != null)
617+
if (Configuration.Proxy == null && merchantConfig.UseProxy != null)
618618
{
619619
if (bool.Parse(merchantConfig.UseProxy))
620620
{
621621
int proxyPortTest;
622622

623-
if (!string.IsNullOrWhiteSpace(merchantConfig.ProxyAddress) && int.TryParse(merchantConfig.ProxyPort, out proxyPortTest))
624-
{
623+
if (!string.IsNullOrWhiteSpace(merchantConfig.ProxyAddress) && int.TryParse(merchantConfig.ProxyPort, out proxyPortTest))
624+
{
625625
WebProxy proxy = new WebProxy(merchantConfig.ProxyAddress, proxyPortTest);
626-
627-
if (!string.IsNullOrWhiteSpace(merchantConfig.ProxyUsername) && !string.IsNullOrWhiteSpace(merchantConfig.ProxyPassword))
628-
{
626+
627+
if (!string.IsNullOrWhiteSpace(merchantConfig.ProxyUsername) && !string.IsNullOrWhiteSpace(merchantConfig.ProxyPassword))
628+
{
629629
proxy.Credentials = new NetworkCredential(merchantConfig.ProxyUsername, merchantConfig.ProxyPassword);
630630
}
631-
631+
632632
Configuration.AddWebProxy(proxy);
633-
}
633+
}
634634
}
635635
}
636636

Model/CapturePaymentRequest.cs

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ public partial class CapturePaymentRequest : IEquatable<CapturePaymentRequest>,
4444
/// <param name="PointOfSaleInformation">PointOfSaleInformation.</param>
4545
/// <param name="MerchantDefinedInformation">The object containing the custom data that the merchant defines. .</param>
4646
/// <param name="InstallmentInformation">InstallmentInformation.</param>
47-
public CapturePaymentRequest(Ptsv2paymentsClientReferenceInformation ClientReferenceInformation = default(Ptsv2paymentsClientReferenceInformation), Ptsv2paymentsidcapturesProcessingInformation ProcessingInformation = default(Ptsv2paymentsidcapturesProcessingInformation), Ptsv2paymentsidcapturesPaymentInformation PaymentInformation = default(Ptsv2paymentsidcapturesPaymentInformation), Ptsv2paymentsidcapturesOrderInformation OrderInformation = default(Ptsv2paymentsidcapturesOrderInformation), Ptsv2paymentsidcapturesBuyerInformation BuyerInformation = default(Ptsv2paymentsidcapturesBuyerInformation), Ptsv2paymentsDeviceInformation DeviceInformation = default(Ptsv2paymentsDeviceInformation), Ptsv2paymentsidcapturesMerchantInformation MerchantInformation = default(Ptsv2paymentsidcapturesMerchantInformation), Ptsv2paymentsidcapturesAggregatorInformation AggregatorInformation = default(Ptsv2paymentsidcapturesAggregatorInformation), Ptsv2paymentsidcapturesPointOfSaleInformation PointOfSaleInformation = default(Ptsv2paymentsidcapturesPointOfSaleInformation), List<Ptsv2paymentsMerchantDefinedInformation> MerchantDefinedInformation = default(List<Ptsv2paymentsMerchantDefinedInformation>), Ptsv2paymentsidcapturesInstallmentInformation InstallmentInformation = default(Ptsv2paymentsidcapturesInstallmentInformation))
47+
/// <param name="TravelInformation">TravelInformation.</param>
48+
/// <param name="PromotionInformation">PromotionInformation.</param>
49+
public CapturePaymentRequest(Ptsv2paymentsClientReferenceInformation ClientReferenceInformation = default(Ptsv2paymentsClientReferenceInformation), Ptsv2paymentsidcapturesProcessingInformation ProcessingInformation = default(Ptsv2paymentsidcapturesProcessingInformation), Ptsv2paymentsidcapturesPaymentInformation PaymentInformation = default(Ptsv2paymentsidcapturesPaymentInformation), Ptsv2paymentsidcapturesOrderInformation OrderInformation = default(Ptsv2paymentsidcapturesOrderInformation), Ptsv2paymentsidcapturesBuyerInformation BuyerInformation = default(Ptsv2paymentsidcapturesBuyerInformation), Ptsv2paymentsDeviceInformation DeviceInformation = default(Ptsv2paymentsDeviceInformation), Ptsv2paymentsidcapturesMerchantInformation MerchantInformation = default(Ptsv2paymentsidcapturesMerchantInformation), Ptsv2paymentsidcapturesAggregatorInformation AggregatorInformation = default(Ptsv2paymentsidcapturesAggregatorInformation), Ptsv2paymentsidcapturesPointOfSaleInformation PointOfSaleInformation = default(Ptsv2paymentsidcapturesPointOfSaleInformation), List<Ptsv2paymentsMerchantDefinedInformation> MerchantDefinedInformation = default(List<Ptsv2paymentsMerchantDefinedInformation>), Ptsv2paymentsidcapturesInstallmentInformation InstallmentInformation = default(Ptsv2paymentsidcapturesInstallmentInformation), Ptsv2paymentsidcapturesTravelInformation TravelInformation = default(Ptsv2paymentsidcapturesTravelInformation), Ptsv2paymentsPromotionInformation PromotionInformation = default(Ptsv2paymentsPromotionInformation))
4850
{
4951
this.ClientReferenceInformation = ClientReferenceInformation;
5052
this.ProcessingInformation = ProcessingInformation;
@@ -57,6 +59,8 @@ public partial class CapturePaymentRequest : IEquatable<CapturePaymentRequest>,
5759
this.PointOfSaleInformation = PointOfSaleInformation;
5860
this.MerchantDefinedInformation = MerchantDefinedInformation;
5961
this.InstallmentInformation = InstallmentInformation;
62+
this.TravelInformation = TravelInformation;
63+
this.PromotionInformation = PromotionInformation;
6064
}
6165

6266
/// <summary>
@@ -126,6 +130,18 @@ public partial class CapturePaymentRequest : IEquatable<CapturePaymentRequest>,
126130
[DataMember(Name="installmentInformation", EmitDefaultValue=false)]
127131
public Ptsv2paymentsidcapturesInstallmentInformation InstallmentInformation { get; set; }
128132

133+
/// <summary>
134+
/// Gets or Sets TravelInformation
135+
/// </summary>
136+
[DataMember(Name="travelInformation", EmitDefaultValue=false)]
137+
public Ptsv2paymentsidcapturesTravelInformation TravelInformation { get; set; }
138+
139+
/// <summary>
140+
/// Gets or Sets PromotionInformation
141+
/// </summary>
142+
[DataMember(Name="promotionInformation", EmitDefaultValue=false)]
143+
public Ptsv2paymentsPromotionInformation PromotionInformation { get; set; }
144+
129145
/// <summary>
130146
/// Returns the string presentation of the object
131147
/// </summary>
@@ -145,6 +161,8 @@ public override string ToString()
145161
sb.Append(" PointOfSaleInformation: ").Append(PointOfSaleInformation).Append("\n");
146162
sb.Append(" MerchantDefinedInformation: ").Append(MerchantDefinedInformation).Append("\n");
147163
sb.Append(" InstallmentInformation: ").Append(InstallmentInformation).Append("\n");
164+
sb.Append(" TravelInformation: ").Append(TravelInformation).Append("\n");
165+
sb.Append(" PromotionInformation: ").Append(PromotionInformation).Append("\n");
148166
sb.Append("}\n");
149167
return sb.ToString();
150168
}
@@ -235,6 +253,16 @@ public bool Equals(CapturePaymentRequest other)
235253
this.InstallmentInformation == other.InstallmentInformation ||
236254
this.InstallmentInformation != null &&
237255
this.InstallmentInformation.Equals(other.InstallmentInformation)
256+
) &&
257+
(
258+
this.TravelInformation == other.TravelInformation ||
259+
this.TravelInformation != null &&
260+
this.TravelInformation.Equals(other.TravelInformation)
261+
) &&
262+
(
263+
this.PromotionInformation == other.PromotionInformation ||
264+
this.PromotionInformation != null &&
265+
this.PromotionInformation.Equals(other.PromotionInformation)
238266
);
239267
}
240268

@@ -271,6 +299,10 @@ public override int GetHashCode()
271299
hash = hash * 59 + this.MerchantDefinedInformation.GetHashCode();
272300
if (this.InstallmentInformation != null)
273301
hash = hash * 59 + this.InstallmentInformation.GetHashCode();
302+
if (this.TravelInformation != null)
303+
hash = hash * 59 + this.TravelInformation.GetHashCode();
304+
if (this.PromotionInformation != null)
305+
hash = hash * 59 + this.PromotionInformation.GetHashCode();
274306
return hash;
275307
}
276308
}

0 commit comments

Comments
 (0)