From 04ee201c97b7373e78781a021f7e0313f830c991 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Wed, 14 Jun 2023 14:15:08 +0530 Subject: [PATCH 01/10] fix for version update in nuspec file --- cybersource-rest-client-dotnet.nuspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cybersource-rest-client-dotnet.nuspec b/cybersource-rest-client-dotnet.nuspec index 3f3f0bb1..7e241edf 100644 --- a/cybersource-rest-client-dotnet.nuspec +++ b/cybersource-rest-client-dotnet.nuspec @@ -12,9 +12,9 @@ Minor Release. - + - + From c883e8323634d79259e3db716fbdff913142d746 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Fri, 16 Jun 2023 12:07:22 +0530 Subject: [PATCH 02/10] fix for version to be specific to equal --- cybersource-rest-client-dotnet.nuspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cybersource-rest-client-dotnet.nuspec b/cybersource-rest-client-dotnet.nuspec index 7e241edf..cf03327a 100644 --- a/cybersource-rest-client-dotnet.nuspec +++ b/cybersource-rest-client-dotnet.nuspec @@ -11,10 +11,10 @@ Use this client SDK to Call CyberSource REST API's. This SDK includes generates both HTTP Signature and JWT headers (including authentication headers) for the API requests. Minor Release. - - - - + + + + From 33b85d708c6da837879fa63d16f37e08bafae8a6 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Fri, 16 Jun 2023 12:53:58 +0530 Subject: [PATCH 03/10] add note for versions --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index ccbb556f..6667b0ba 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,21 @@ The CyberSource .NET client provides convenient access to the [CyberSource REST PM> Install-Package CyberSource.Rest.Client ``` +## IMPORTANT FOR v0.0.1.30, v0.0.1.31, v0.0.1.32 + +CyberSource is aware of an issue with these versions of the SDK caused by the tight coupling of the version of RestSharp with the SDK. The packaging information has not been updated to reflect the correct constraints for RestSharp. + +**This issue will get resolved from the upcoming version onwards.** + +To resolve the issue in these three versions, run the following command from the Package Manager Console: + +`Install-Package RestSharp -Version 108.0.3` + +You may also want to execute the following command to upgrade the Authentication SDK to the correct version: + +`Install-Package CyberSource.Authentication -Version 0.0.0.16` + + ## Registration & Configuration Use of this SDK and the CyberSource APIs requires having an account on our system. You can find details of getting a test account and creating your keys [here](https://developer.cybersource.com/api/developer-guides/dita-gettingstarted/registration.html) From e2e1faac72924cf58d92ec60c869eba86bf777b6 Mon Sep 17 00:00:00 2001 From: Bansal Date: Wed, 21 Jun 2023 16:31:24 +0530 Subject: [PATCH 04/10] removed version fix for other dependency --- cybersource-rest-client-dotnet.nuspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cybersource-rest-client-dotnet.nuspec b/cybersource-rest-client-dotnet.nuspec index cf03327a..4f0fdb6f 100644 --- a/cybersource-rest-client-dotnet.nuspec +++ b/cybersource-rest-client-dotnet.nuspec @@ -11,9 +11,9 @@ Use this client SDK to Call CyberSource REST API's. This SDK includes generates both HTTP Signature and JWT headers (including authentication headers) for the API requests. Minor Release. - + - + From d6074b8e432eda43aa587bf032fedfcf28ef7828 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Date: Wed, 21 Jun 2023 16:45:57 +0530 Subject: [PATCH 05/10] Added SDK Tracking utility --- Client/ApiClient.cs | 2 +- Utilities/Tracking/SdkTracker.cs | 626 ++++++++++++++++++ .../cybersource-csharp-template/api.mustache | 2 + 3 files changed, 629 insertions(+), 1 deletion(-) create mode 100644 Utilities/Tracking/SdkTracker.cs diff --git a/Client/ApiClient.cs b/Client/ApiClient.cs index 71641fa4..2ec32185 100644 --- a/Client/ApiClient.cs +++ b/Client/ApiClient.cs @@ -175,7 +175,7 @@ private RestRequest PrepareRequest( } else request.AddHeader(param.Key, param.Value); - } + } if (postBody == null) { diff --git a/Utilities/Tracking/SdkTracker.cs b/Utilities/Tracking/SdkTracker.cs new file mode 100644 index 00000000..7e9ff21d --- /dev/null +++ b/Utilities/Tracking/SdkTracker.cs @@ -0,0 +1,626 @@ +using CyberSource.Client; +using CyberSource.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CyberSource.Utilities.Tracking +{ + public interface ISdkTracker + { + object InsertDeveloperIdTracker(object requestObj, string requestClass, string runEnvironment); + } + + public partial class SdkTracker : ISdkTracker + { + public object InsertDeveloperIdTracker(object requestObj, string requestClass, string runEnvironment) + { + string developerIdValue; + if (runEnvironment.Contains("apitest.cybersource.com")) + { + developerIdValue = "CEOVXJBB"; + } + else + { + developerIdValue = "SBBARODQ"; + } + + switch (requestClass) + { + case "CreateP12KeysRequest": + CreateP12KeysRequest createP12KeysRequest = (CreateP12KeysRequest)requestObj; + + if (createP12KeysRequest.ClientReferenceInformation == null) + { + createP12KeysRequest.ClientReferenceInformation = new Kmsv2keyssymClientReferenceInformation(); + } + + if (createP12KeysRequest.ClientReferenceInformation.Partner == null) + { + createP12KeysRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (createP12KeysRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createP12KeysRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createP12KeysRequest; + case "DeleteBulkP12KeysRequest": + DeleteBulkP12KeysRequest deleteBulkP12KeysRequest = (DeleteBulkP12KeysRequest)requestObj; + + if (deleteBulkP12KeysRequest.ClientReferenceInformation == null) + { + deleteBulkP12KeysRequest.ClientReferenceInformation = new Kmsv2keyssymClientReferenceInformation(); + } + + if (deleteBulkP12KeysRequest.ClientReferenceInformation.Partner == null) + { + deleteBulkP12KeysRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (deleteBulkP12KeysRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + deleteBulkP12KeysRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return deleteBulkP12KeysRequest; + case "CapturePaymentRequest": + CapturePaymentRequest capturePaymentRequest = (CapturePaymentRequest)requestObj; + + if (capturePaymentRequest.ClientReferenceInformation == null) + { + capturePaymentRequest.ClientReferenceInformation = new Ptsv2paymentsClientReferenceInformation(); + } + + if (capturePaymentRequest.ClientReferenceInformation.Partner == null) + { + capturePaymentRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (capturePaymentRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + capturePaymentRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return capturePaymentRequest; + case "CreateCreditRequest": + CreateCreditRequest createCreditRequest = (CreateCreditRequest)requestObj; + + if (createCreditRequest.ClientReferenceInformation == null) + { + createCreditRequest.ClientReferenceInformation = new Ptsv2paymentsClientReferenceInformation(); + } + + if (createCreditRequest.ClientReferenceInformation.Partner == null) + { + createCreditRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (createCreditRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createCreditRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createCreditRequest; + case "AddNegativeListRequest": + AddNegativeListRequest addNegativeListRequest = (AddNegativeListRequest)requestObj; + + if (addNegativeListRequest.ClientReferenceInformation == null) + { + addNegativeListRequest.ClientReferenceInformation = new Riskv1liststypeentriesClientReferenceInformation(); + } + + if (addNegativeListRequest.ClientReferenceInformation.Partner == null) + { + addNegativeListRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (addNegativeListRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + addNegativeListRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return addNegativeListRequest; + case "CreateBundledDecisionManagerCaseRequest": + CreateBundledDecisionManagerCaseRequest createBundledDecisionManagerCaseRequest = (CreateBundledDecisionManagerCaseRequest)requestObj; + + if (createBundledDecisionManagerCaseRequest.ClientReferenceInformation == null) + { + createBundledDecisionManagerCaseRequest.ClientReferenceInformation = new Riskv1decisionsClientReferenceInformation(); + } + + if (createBundledDecisionManagerCaseRequest.ClientReferenceInformation.Partner == null) + { + createBundledDecisionManagerCaseRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (createBundledDecisionManagerCaseRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createBundledDecisionManagerCaseRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createBundledDecisionManagerCaseRequest; + case "FraudMarkingActionRequest": + FraudMarkingActionRequest fraudMarkingActionRequest = (FraudMarkingActionRequest)requestObj; + + if (fraudMarkingActionRequest.ClientReferenceInformation == null) + { + fraudMarkingActionRequest.ClientReferenceInformation = new Riskv1liststypeentriesClientReferenceInformation(); + } + + if (fraudMarkingActionRequest.ClientReferenceInformation.Partner == null) + { + fraudMarkingActionRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (fraudMarkingActionRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + fraudMarkingActionRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return fraudMarkingActionRequest; + case "CheckPayerAuthEnrollmentRequest": + CheckPayerAuthEnrollmentRequest checkPayerAuthEnrollmentRequest = (CheckPayerAuthEnrollmentRequest)requestObj; + + if (checkPayerAuthEnrollmentRequest.ClientReferenceInformation == null) + { + checkPayerAuthEnrollmentRequest.ClientReferenceInformation = new Riskv1decisionsClientReferenceInformation(); + } + + if (checkPayerAuthEnrollmentRequest.ClientReferenceInformation.Partner == null) + { + checkPayerAuthEnrollmentRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (checkPayerAuthEnrollmentRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + checkPayerAuthEnrollmentRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return checkPayerAuthEnrollmentRequest; + case "PayerAuthSetupRequest": + PayerAuthSetupRequest payerAuthSetupRequest = (PayerAuthSetupRequest)requestObj; + + if (payerAuthSetupRequest.ClientReferenceInformation == null) + { + payerAuthSetupRequest.ClientReferenceInformation = new Riskv1decisionsClientReferenceInformation(); + } + + if (payerAuthSetupRequest.ClientReferenceInformation.Partner == null) + { + payerAuthSetupRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (payerAuthSetupRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + payerAuthSetupRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return payerAuthSetupRequest; + case "ValidateRequest": + ValidateRequest validateRequest = (ValidateRequest)requestObj; + + if (validateRequest.ClientReferenceInformation == null) + { + validateRequest.ClientReferenceInformation = new Riskv1decisionsClientReferenceInformation(); + } + + if (validateRequest.ClientReferenceInformation.Partner == null) + { + validateRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (validateRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + validateRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return validateRequest; + case "CreatePaymentRequest": + CreatePaymentRequest createPaymentRequest = (CreatePaymentRequest)requestObj; + + if (createPaymentRequest.ClientReferenceInformation == null) + { + createPaymentRequest.ClientReferenceInformation = new Ptsv2paymentsClientReferenceInformation(); + } + + if (createPaymentRequest.ClientReferenceInformation.Partner == null) + { + createPaymentRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (createPaymentRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createPaymentRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createPaymentRequest; + case "IncrementAuthRequest": + IncrementAuthRequest incrementAuthRequest = (IncrementAuthRequest)requestObj; + + if (incrementAuthRequest.ClientReferenceInformation == null) + { + incrementAuthRequest.ClientReferenceInformation = new Ptsv2paymentsidClientReferenceInformation(); + } + + if (incrementAuthRequest.ClientReferenceInformation.Partner == null) + { + incrementAuthRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsidClientReferenceInformationPartner(); + } + + if (incrementAuthRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + incrementAuthRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return incrementAuthRequest; + case "CreatePlanRequest": + CreatePlanRequest createPlanRequest = (CreatePlanRequest)requestObj; + + if (createPlanRequest.ClientReferenceInformation == null) + { + createPlanRequest.ClientReferenceInformation = new Rbsv1plansClientReferenceInformation(); + } + + if (createPlanRequest.ClientReferenceInformation.Partner == null) + { + createPlanRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (createPlanRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createPlanRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createPlanRequest; + case "RefundCaptureRequest": + RefundCaptureRequest refundCaptureRequest = (RefundCaptureRequest)requestObj; + + if (refundCaptureRequest.ClientReferenceInformation == null) + { + refundCaptureRequest.ClientReferenceInformation = new Ptsv2paymentsidrefundsClientReferenceInformation(); + } + + if (refundCaptureRequest.ClientReferenceInformation.Partner == null) + { + refundCaptureRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (refundCaptureRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + refundCaptureRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return refundCaptureRequest; + case "RefundPaymentRequest": + RefundPaymentRequest refundPaymentRequest = (RefundPaymentRequest)requestObj; + + if (refundPaymentRequest.ClientReferenceInformation == null) + { + refundPaymentRequest.ClientReferenceInformation = new Ptsv2paymentsidrefundsClientReferenceInformation(); + } + + if (refundPaymentRequest.ClientReferenceInformation.Partner == null) + { + refundPaymentRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (refundPaymentRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + refundPaymentRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return refundPaymentRequest; + case "AuthReversalRequest": + AuthReversalRequest authReversalRequest = (AuthReversalRequest)requestObj; + + if (authReversalRequest.ClientReferenceInformation == null) + { + authReversalRequest.ClientReferenceInformation = new Ptsv2paymentsidreversalsClientReferenceInformation(); + } + + if (authReversalRequest.ClientReferenceInformation.Partner == null) + { + authReversalRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsidreversalsClientReferenceInformationPartner(); + } + + if (authReversalRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + authReversalRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return authReversalRequest; + case "MitReversalRequest": + MitReversalRequest mitReversalRequest = (MitReversalRequest)requestObj; + + if (mitReversalRequest.ClientReferenceInformation == null) + { + mitReversalRequest.ClientReferenceInformation = new Ptsv2paymentsClientReferenceInformation(); + } + + if (mitReversalRequest.ClientReferenceInformation.Partner == null) + { + mitReversalRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (mitReversalRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + mitReversalRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return mitReversalRequest; + case "CreateSubscriptionRequest": + CreateSubscriptionRequest createSubscriptionRequest = (CreateSubscriptionRequest)requestObj; + + if (createSubscriptionRequest.ClientReferenceInformation == null) + { + createSubscriptionRequest.ClientReferenceInformation = new Rbsv1subscriptionsClientReferenceInformation(); + } + + if (createSubscriptionRequest.ClientReferenceInformation.Partner == null) + { + createSubscriptionRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (createSubscriptionRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createSubscriptionRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createSubscriptionRequest; + case "UpdateSubscription": + UpdateSubscription updateSubscription = (UpdateSubscription)requestObj; + + if (updateSubscription.ClientReferenceInformation == null) + { + updateSubscription.ClientReferenceInformation = new Rbsv1subscriptionsClientReferenceInformation(); + } + + if (updateSubscription.ClientReferenceInformation.Partner == null) + { + updateSubscription.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (updateSubscription.ClientReferenceInformation.Partner.DeveloperId == null) + { + updateSubscription.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return updateSubscription; + case "CreateSharedSecretKeysRequest": + CreateSharedSecretKeysRequest createSharedSecretKeysRequest = (CreateSharedSecretKeysRequest)requestObj; + + if (createSharedSecretKeysRequest.ClientReferenceInformation == null) + { + createSharedSecretKeysRequest.ClientReferenceInformation = new Kmsv2keyssymClientReferenceInformation(); + } + + if (createSharedSecretKeysRequest.ClientReferenceInformation.Partner == null) + { + createSharedSecretKeysRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (createSharedSecretKeysRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createSharedSecretKeysRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createSharedSecretKeysRequest; + case "CreateSharedSecretKeysVerifiRequest": + CreateSharedSecretKeysVerifiRequest createSharedSecretKeysVerifiRequest = (CreateSharedSecretKeysVerifiRequest)requestObj; + + if (createSharedSecretKeysVerifiRequest.ClientReferenceInformation == null) + { + createSharedSecretKeysVerifiRequest.ClientReferenceInformation = new Kmsv2keyssymClientReferenceInformation(); + } + + if (createSharedSecretKeysVerifiRequest.ClientReferenceInformation.Partner == null) + { + createSharedSecretKeysVerifiRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (createSharedSecretKeysVerifiRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + createSharedSecretKeysVerifiRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return createSharedSecretKeysVerifiRequest; + case "DeleteBulkSymmetricKeysRequest": + DeleteBulkSymmetricKeysRequest deleteBulkSymmetricKeysRequest = (DeleteBulkSymmetricKeysRequest)requestObj; + + if (deleteBulkSymmetricKeysRequest.ClientReferenceInformation == null) + { + deleteBulkSymmetricKeysRequest.ClientReferenceInformation = new Kmsv2keyssymClientReferenceInformation(); + } + + if (deleteBulkSymmetricKeysRequest.ClientReferenceInformation.Partner == null) + { + deleteBulkSymmetricKeysRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (deleteBulkSymmetricKeysRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + deleteBulkSymmetricKeysRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return deleteBulkSymmetricKeysRequest; + case "TaxRequest": + TaxRequest taxRequest = (TaxRequest)requestObj; + + if (taxRequest.ClientReferenceInformation == null) + { + taxRequest.ClientReferenceInformation = new Vasv2taxClientReferenceInformation(); + } + + if (taxRequest.ClientReferenceInformation.Partner == null) + { + taxRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (taxRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + taxRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return taxRequest; + case "VoidTaxRequest": + VoidTaxRequest voidTaxRequest = (VoidTaxRequest)requestObj; + + if (voidTaxRequest.ClientReferenceInformation == null) + { + voidTaxRequest.ClientReferenceInformation = new Vasv2taxidClientReferenceInformation(); + } + + if (voidTaxRequest.ClientReferenceInformation.Partner == null) + { + voidTaxRequest.ClientReferenceInformation.Partner = new Vasv2taxidClientReferenceInformationPartner(); + } + + if (voidTaxRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + voidTaxRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return voidTaxRequest; + case "ValidateExportComplianceRequest": + ValidateExportComplianceRequest validateExportComplianceRequest = (ValidateExportComplianceRequest)requestObj; + + if (validateExportComplianceRequest.ClientReferenceInformation == null) + { + validateExportComplianceRequest.ClientReferenceInformation = new Riskv1liststypeentriesClientReferenceInformation(); + } + + if (validateExportComplianceRequest.ClientReferenceInformation.Partner == null) + { + validateExportComplianceRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (validateExportComplianceRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + validateExportComplianceRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return validateExportComplianceRequest; + case "VerifyCustomerAddressRequest": + VerifyCustomerAddressRequest verifyCustomerAddressRequest = (VerifyCustomerAddressRequest)requestObj; + + if (verifyCustomerAddressRequest.ClientReferenceInformation == null) + { + verifyCustomerAddressRequest.ClientReferenceInformation = new Riskv1liststypeentriesClientReferenceInformation(); + } + + if (verifyCustomerAddressRequest.ClientReferenceInformation.Partner == null) + { + verifyCustomerAddressRequest.ClientReferenceInformation.Partner = new Riskv1decisionsClientReferenceInformationPartner(); + } + + if (verifyCustomerAddressRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + verifyCustomerAddressRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return verifyCustomerAddressRequest; + case "MitVoidRequest": + MitVoidRequest mitVoidRequest = (MitVoidRequest)requestObj; + + if (mitVoidRequest.ClientReferenceInformation == null) + { + mitVoidRequest.ClientReferenceInformation = new Ptsv2paymentsClientReferenceInformation(); + } + + if (mitVoidRequest.ClientReferenceInformation.Partner == null) + { + mitVoidRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsClientReferenceInformationPartner(); + } + + if (mitVoidRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + mitVoidRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return mitVoidRequest; + case "VoidCaptureRequest": + VoidCaptureRequest voidCaptureRequest = (VoidCaptureRequest)requestObj; + + if (voidCaptureRequest.ClientReferenceInformation == null) + { + voidCaptureRequest.ClientReferenceInformation = new Ptsv2paymentsidreversalsClientReferenceInformation(); + } + + if (voidCaptureRequest.ClientReferenceInformation.Partner == null) + { + voidCaptureRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsidreversalsClientReferenceInformationPartner(); + } + + if (voidCaptureRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + voidCaptureRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return voidCaptureRequest; + case "VoidCreditRequest": + VoidCreditRequest voidCreditRequest = (VoidCreditRequest)requestObj; + + if (voidCreditRequest.ClientReferenceInformation == null) + { + voidCreditRequest.ClientReferenceInformation = new Ptsv2paymentsidreversalsClientReferenceInformation(); + } + + if (voidCreditRequest.ClientReferenceInformation.Partner == null) + { + voidCreditRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsidreversalsClientReferenceInformationPartner(); + } + + if (voidCreditRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + voidCreditRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return voidCreditRequest; + case "VoidPaymentRequest": + VoidPaymentRequest voidPaymentRequest = (VoidPaymentRequest)requestObj; + + if (voidPaymentRequest.ClientReferenceInformation == null) + { + voidPaymentRequest.ClientReferenceInformation = new Ptsv2paymentsidreversalsClientReferenceInformation(); + } + + if (voidPaymentRequest.ClientReferenceInformation.Partner == null) + { + voidPaymentRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsidreversalsClientReferenceInformationPartner(); + } + + if (voidPaymentRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + voidPaymentRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return voidPaymentRequest; + case "VoidRefundRequest": + VoidRefundRequest voidRefundRequest = (VoidRefundRequest)requestObj; + + if (voidRefundRequest.ClientReferenceInformation == null) + { + voidRefundRequest.ClientReferenceInformation = new Ptsv2paymentsidreversalsClientReferenceInformation(); + } + + if (voidRefundRequest.ClientReferenceInformation.Partner == null) + { + voidRefundRequest.ClientReferenceInformation.Partner = new Ptsv2paymentsidreversalsClientReferenceInformationPartner(); + } + + if (voidRefundRequest.ClientReferenceInformation.Partner.DeveloperId == null) + { + voidRefundRequest.ClientReferenceInformation.Partner.DeveloperId = developerIdValue; + } + + return voidRefundRequest; + default: + return requestObj; + } + } + } +} diff --git a/generator/cybersource-csharp-template/api.mustache b/generator/cybersource-csharp-template/api.mustache index f992f374..32bad05c 100644 --- a/generator/cybersource-csharp-template/api.mustache +++ b/generator/cybersource-csharp-template/api.mustache @@ -313,6 +313,8 @@ namespace {{packageName}}.{{apiPackage}} {{#bodyParam}} if ({{paramName}} != null && {{paramName}}.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + {{paramName}} = ({{{dataType}}})sdkTracker.InsertDeveloperIdTracker({{paramName}}, {{paramName}}.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter } else From f56a3c4561a1d27c6862ee5ba1c4a35ce6993856 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Date: Thu, 22 Jun 2023 14:29:05 +0530 Subject: [PATCH 06/10] Added SDK Tracking utility --- .../ApiClient.mustache | 16 ++++++++-------- .../cybersource-csharp-template/api.mustache | 7 +++++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/generator/cybersource-csharp-template/ApiClient.mustache b/generator/cybersource-csharp-template/ApiClient.mustache index 06d6ebce..9e03c69d 100644 --- a/generator/cybersource-csharp-template/ApiClient.mustache +++ b/generator/cybersource-csharp-template/ApiClient.mustache @@ -167,7 +167,7 @@ namespace {{packageName}}.Client firstQueryParam = false; } } - + var request = new RestRequest(path, method); {{#netStandard}} // disable ResetSharp.Portable built-in serialization @@ -189,7 +189,7 @@ namespace {{packageName}}.Client } else request.AddHeader(param.Key, param.Value); - } + } if (postBody == null) { @@ -207,7 +207,7 @@ namespace {{packageName}}.Client request.AddParameter("Authorization", string.Format("Bearer " + param.Value), ParameterType.HttpHeader); } - else + else { if (request.Parameters.Any(x => string.Equals(x.Name, param.Key, StringComparison.OrdinalIgnoreCase) && x.Type == ParameterType.HttpHeader)) { @@ -270,7 +270,7 @@ namespace {{packageName}}.Client // request.AddParameter("application/json", postBody, ParameterType.RequestBody); request.AddJsonBody(postBody); {{/netStandard}} - } + } } else if (postBody.GetType() == typeof(byte[])) { @@ -719,7 +719,7 @@ namespace {{packageName}}.Client { outDateTime = ((DateTime?)obj).Value.ToString("yyyy-MM-ddTHH:mm:ssZ"); } - + return outDateTime; } else if (obj is DateTimeOffset) { @@ -966,7 +966,7 @@ namespace {{packageName}}.Client } {{/supportsUWP}} {{/netStandard}} - + /// /// Generate Request Authentication Headers using the Authentication SDK /// @@ -1023,7 +1023,7 @@ namespace {{packageName}}.Client // { // authenticationHeaders.Add("v-c-solution-id", Configuration.SolutionId); // } - + if (Configuration.Proxy == null && merchantConfig.UseProxy != null) { if (bool.Parse(merchantConfig.UseProxy)) @@ -1061,7 +1061,7 @@ namespace {{packageName}}.Client { RestClient = new RestClient("https://" + merchantConfig.HostName); } - + if (Configuration.Proxy != null) { RestClient.Options.Proxy = Configuration.Proxy; diff --git a/generator/cybersource-csharp-template/api.mustache b/generator/cybersource-csharp-template/api.mustache index 32bad05c..782ae8e6 100644 --- a/generator/cybersource-csharp-template/api.mustache +++ b/generator/cybersource-csharp-template/api.mustache @@ -14,6 +14,7 @@ using {{packageName}}.Client; {{/hasImport}} using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace {{packageName}}.{{apiPackage}} { @@ -313,8 +314,8 @@ namespace {{packageName}}.{{apiPackage}} {{#bodyParam}} if ({{paramName}} != null && {{paramName}}.GetType() != typeof(byte[])) { - SdkTracker sdkTracker = new SdkTracker(); - {{paramName}} = ({{{dataType}}})sdkTracker.InsertDeveloperIdTracker({{paramName}}, {{paramName}}.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); + SdkTracker sdkTracker = new SdkTracker(); + {{paramName}} = ({{{dataType}}})sdkTracker.InsertDeveloperIdTracker({{paramName}}, {{paramName}}.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter } else @@ -503,6 +504,8 @@ namespace {{packageName}}.{{apiPackage}} {{#bodyParam}} if ({{paramName}} != null && {{paramName}}.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + {{paramName}} = ({{{dataType}}})sdkTracker.InsertDeveloperIdTracker({{paramName}}, {{paramName}}.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter } else From 544a331d85d0f9a587e0756a735d11b9a4d26aa9 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Thu, 22 Jun 2023 16:23:10 +0530 Subject: [PATCH 07/10] june spec changes --- Api/PlansApi.cs | 116 ++--- Api/SubscriptionsApi.cs | 174 ++----- Model/Ptsv2paymentsRecipientInformation.cs | 19 +- Model/TssV2TransactionsGet200Response.cs | 19 +- Model/TssV2TransactionsPost201Response.cs | 19 +- ...eddedApplicationInformationApplications.cs | 36 +- ...Post201ResponseEmbeddedErrorInformation.cs | 129 ++++++ ...201ResponseEmbeddedTransactionSummaries.cs | 35 +- cybersource-rest-client-dotnet.csproj | 2 +- cybersource-rest-client-dotnet.sln | 10 +- docs/PlansApi.md | 12 +- docs/Ptsv2paymentsRecipientInformation.md | 1 + docs/SubscriptionsApi.md | 18 +- docs/TssV2TransactionsGet200Response.md | 1 + docs/TssV2TransactionsPost201Response.md | 1 - ...eddedApplicationInformationApplications.md | 2 + ...Post201ResponseEmbeddedErrorInformation.md | 9 + ...201ResponseEmbeddedTransactionSummaries.md | 2 + generator/cybersource-rest-spec.json | 435 ++++++++++++++---- test/Api/PlansApiTests.cs | 6 +- test/Api/SubscriptionsApiTests.cs | 9 +- .../Ptsv2paymentsRecipientInformationTests.cs | 8 + .../TssV2TransactionsGet200ResponseTests.cs | 8 + ...ApplicationInformationApplicationsTests.cs | 16 + ...01ResponseEmbeddedErrorInformationTests.cs | 78 ++++ ...sponseEmbeddedTransactionSummariesTests.cs | 16 + .../TssV2TransactionsPost201ResponseTests.cs | 8 - ...cybersource-rest-client-dotnet.Test.csproj | 2 +- 28 files changed, 823 insertions(+), 368 deletions(-) create mode 100644 Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.cs create mode 100644 docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md create mode 100644 test/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformationTests.cs diff --git a/Api/PlansApi.cs b/Api/PlansApi.cs index 00f4867b..bee99810 100644 --- a/Api/PlansApi.cs +++ b/Api/PlansApi.cs @@ -34,9 +34,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// InlineResponse2004 - InlineResponse2004 ActivatePlan (string id, Object activatePlanRequest = null); + InlineResponse2004 ActivatePlan (string id); /// /// Activate a Plan @@ -46,9 +45,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// ApiResponse of InlineResponse2004 - ApiResponse ActivatePlanWithHttpInfo (string id, Object activatePlanRequest = null); + ApiResponse ActivatePlanWithHttpInfo (string id); /// /// Create a Plan /// @@ -78,9 +76,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// InlineResponse2004 - InlineResponse2004 DeactivatePlan (string id, Object deactivatePlanRequest = null); + InlineResponse2004 DeactivatePlan (string id); /// /// Deactivate a Plan @@ -90,9 +87,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// ApiResponse of InlineResponse2004 - ApiResponse DeactivatePlanWithHttpInfo (string id, Object deactivatePlanRequest = null); + ApiResponse DeactivatePlanWithHttpInfo (string id); /// /// Delete a Plan /// @@ -216,9 +212,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of InlineResponse2004 - System.Threading.Tasks.Task ActivatePlanAsync (string id, Object activatePlanRequest = null); + System.Threading.Tasks.Task ActivatePlanAsync (string id); /// /// Activate a Plan @@ -228,9 +223,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of ApiResponse (InlineResponse2004) - System.Threading.Tasks.Task> ActivatePlanAsyncWithHttpInfo (string id, Object activatePlanRequest = null); + System.Threading.Tasks.Task> ActivatePlanAsyncWithHttpInfo (string id); /// /// Create a Plan /// @@ -260,9 +254,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of InlineResponse2004 - System.Threading.Tasks.Task DeactivatePlanAsync (string id, Object deactivatePlanRequest = null); + System.Threading.Tasks.Task DeactivatePlanAsync (string id); /// /// Deactivate a Plan @@ -272,9 +265,8 @@ public interface IPlansApi : IApiAccessor /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of ApiResponse (InlineResponse2004) - System.Threading.Tasks.Task> DeactivatePlanAsyncWithHttpInfo (string id, Object deactivatePlanRequest = null); + System.Threading.Tasks.Task> DeactivatePlanAsyncWithHttpInfo (string id); /// /// Delete a Plan /// @@ -533,13 +525,12 @@ public void SetStatusCode(int? statusCode) /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// InlineResponse2004 - public InlineResponse2004 ActivatePlan (string id, Object activatePlanRequest = null) + public InlineResponse2004 ActivatePlan (string id) { logger.Debug("CALLING API \"ActivatePlan\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = ActivatePlanWithHttpInfo(id, activatePlanRequest); + ApiResponse localVarResponse = ActivatePlanWithHttpInfo(id); logger.Debug("CALLING API \"ActivatePlan\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -550,9 +541,8 @@ public InlineResponse2004 ActivatePlan (string id, Object activatePlanRequest = /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// ApiResponse of InlineResponse2004 - public ApiResponse< InlineResponse2004 > ActivatePlanWithHttpInfo (string id, Object activatePlanRequest = null) + public ApiResponse< InlineResponse2004 > ActivatePlanWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -592,22 +582,13 @@ public ApiResponse< InlineResponse2004 > ActivatePlanWithHttpInfo (string id, Ob localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (activatePlanRequest != null && activatePlanRequest.GetType() != typeof(byte[])) + if (Method.Post == Method.Post) { - localVarPostBody = Configuration.ApiClient.Serialize(activatePlanRequest); // http body (model) parameter - } - else - { - localVarPostBody = activatePlanRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -638,13 +619,12 @@ public ApiResponse< InlineResponse2004 > ActivatePlanWithHttpInfo (string id, Ob /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of InlineResponse2004 - public async System.Threading.Tasks.Task ActivatePlanAsync (string id, Object activatePlanRequest = null) + public async System.Threading.Tasks.Task ActivatePlanAsync (string id) { logger.Debug("CALLING API \"ActivatePlanAsync\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = await ActivatePlanAsyncWithHttpInfo(id, activatePlanRequest); + ApiResponse localVarResponse = await ActivatePlanAsyncWithHttpInfo(id); logger.Debug("CALLING API \"ActivatePlanAsync\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -656,9 +636,8 @@ public async System.Threading.Tasks.Task ActivatePlanAsync ( /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of ApiResponse (InlineResponse2004) - public async System.Threading.Tasks.Task> ActivatePlanAsyncWithHttpInfo (string id, Object activatePlanRequest = null) + public async System.Threading.Tasks.Task> ActivatePlanAsyncWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -698,22 +677,13 @@ public async System.Threading.Tasks.Task> Activa localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (activatePlanRequest != null && activatePlanRequest.GetType() != typeof(byte[])) + if (Method.Post == Method.Post) { - localVarPostBody = Configuration.ApiClient.Serialize(activatePlanRequest); // http body (model) parameter - } - else - { - localVarPostBody = activatePlanRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -939,13 +909,12 @@ public async System.Threading.Tasks.Task> CreateP /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// InlineResponse2004 - public InlineResponse2004 DeactivatePlan (string id, Object deactivatePlanRequest = null) + public InlineResponse2004 DeactivatePlan (string id) { logger.Debug("CALLING API \"DeactivatePlan\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = DeactivatePlanWithHttpInfo(id, deactivatePlanRequest); + ApiResponse localVarResponse = DeactivatePlanWithHttpInfo(id); logger.Debug("CALLING API \"DeactivatePlan\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -956,9 +925,8 @@ public InlineResponse2004 DeactivatePlan (string id, Object deactivatePlanReques /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// ApiResponse of InlineResponse2004 - public ApiResponse< InlineResponse2004 > DeactivatePlanWithHttpInfo (string id, Object deactivatePlanRequest = null) + public ApiResponse< InlineResponse2004 > DeactivatePlanWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -998,22 +966,13 @@ public ApiResponse< InlineResponse2004 > DeactivatePlanWithHttpInfo (string id, localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (deactivatePlanRequest != null && deactivatePlanRequest.GetType() != typeof(byte[])) + if (Method.Post == Method.Post) { - localVarPostBody = Configuration.ApiClient.Serialize(deactivatePlanRequest); // http body (model) parameter - } - else - { - localVarPostBody = deactivatePlanRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -1044,13 +1003,12 @@ public ApiResponse< InlineResponse2004 > DeactivatePlanWithHttpInfo (string id, /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of InlineResponse2004 - public async System.Threading.Tasks.Task DeactivatePlanAsync (string id, Object deactivatePlanRequest = null) + public async System.Threading.Tasks.Task DeactivatePlanAsync (string id) { logger.Debug("CALLING API \"DeactivatePlanAsync\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = await DeactivatePlanAsyncWithHttpInfo(id, deactivatePlanRequest); + ApiResponse localVarResponse = await DeactivatePlanAsyncWithHttpInfo(id); logger.Debug("CALLING API \"DeactivatePlanAsync\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -1062,9 +1020,8 @@ public async System.Threading.Tasks.Task DeactivatePlanAsync /// /// Thrown when fails to make API call /// Plan Id - /// (optional) /// Task of ApiResponse (InlineResponse2004) - public async System.Threading.Tasks.Task> DeactivatePlanAsyncWithHttpInfo (string id, Object deactivatePlanRequest = null) + public async System.Threading.Tasks.Task> DeactivatePlanAsyncWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -1104,22 +1061,13 @@ public async System.Threading.Tasks.Task> Deacti localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (deactivatePlanRequest != null && deactivatePlanRequest.GetType() != typeof(byte[])) + if (Method.Post == Method.Post) { - localVarPostBody = Configuration.ApiClient.Serialize(deactivatePlanRequest); // http body (model) parameter - } - else - { - localVarPostBody = deactivatePlanRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } diff --git a/Api/SubscriptionsApi.cs b/Api/SubscriptionsApi.cs index e53a6eca..30c03625 100644 --- a/Api/SubscriptionsApi.cs +++ b/Api/SubscriptionsApi.cs @@ -34,9 +34,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// InlineResponse2009 - InlineResponse2009 ActivateSubscription (string id, Object activateSubscriptionRequest = null); + InlineResponse2009 ActivateSubscription (string id); /// /// Activate a Subscription @@ -46,9 +45,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// ApiResponse of InlineResponse2009 - ApiResponse ActivateSubscriptionWithHttpInfo (string id, Object activateSubscriptionRequest = null); + ApiResponse ActivateSubscriptionWithHttpInfo (string id); /// /// Cancel a Subscription /// @@ -57,9 +55,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// InlineResponse202 - InlineResponse202 CancelSubscription (string id, Object cancelSubscriptionRequest = null); + InlineResponse202 CancelSubscription (string id); /// /// Cancel a Subscription @@ -69,9 +66,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// ApiResponse of InlineResponse202 - ApiResponse CancelSubscriptionWithHttpInfo (string id, Object cancelSubscriptionRequest = null); + ApiResponse CancelSubscriptionWithHttpInfo (string id); /// /// Create a Subscription /// @@ -168,9 +164,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// InlineResponse2021 - InlineResponse2021 SuspendSubscription (string id, Object suspendSubscriptionRequest = null); + InlineResponse2021 SuspendSubscription (string id); /// /// Suspend a Subscription @@ -180,9 +175,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// ApiResponse of InlineResponse2021 - ApiResponse SuspendSubscriptionWithHttpInfo (string id, Object suspendSubscriptionRequest = null); + ApiResponse SuspendSubscriptionWithHttpInfo (string id); /// /// Update a Subscription /// @@ -216,9 +210,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of InlineResponse2009 - System.Threading.Tasks.Task ActivateSubscriptionAsync (string id, Object activateSubscriptionRequest = null); + System.Threading.Tasks.Task ActivateSubscriptionAsync (string id); /// /// Activate a Subscription @@ -228,9 +221,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of ApiResponse (InlineResponse2009) - System.Threading.Tasks.Task> ActivateSubscriptionAsyncWithHttpInfo (string id, Object activateSubscriptionRequest = null); + System.Threading.Tasks.Task> ActivateSubscriptionAsyncWithHttpInfo (string id); /// /// Cancel a Subscription /// @@ -239,9 +231,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of InlineResponse202 - System.Threading.Tasks.Task CancelSubscriptionAsync (string id, Object cancelSubscriptionRequest = null); + System.Threading.Tasks.Task CancelSubscriptionAsync (string id); /// /// Cancel a Subscription @@ -251,9 +242,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of ApiResponse (InlineResponse202) - System.Threading.Tasks.Task> CancelSubscriptionAsyncWithHttpInfo (string id, Object cancelSubscriptionRequest = null); + System.Threading.Tasks.Task> CancelSubscriptionAsyncWithHttpInfo (string id); /// /// Create a Subscription /// @@ -350,9 +340,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of InlineResponse2021 - System.Threading.Tasks.Task SuspendSubscriptionAsync (string id, Object suspendSubscriptionRequest = null); + System.Threading.Tasks.Task SuspendSubscriptionAsync (string id); /// /// Suspend a Subscription @@ -362,9 +351,8 @@ public interface ISubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of ApiResponse (InlineResponse2021) - System.Threading.Tasks.Task> SuspendSubscriptionAsyncWithHttpInfo (string id, Object suspendSubscriptionRequest = null); + System.Threading.Tasks.Task> SuspendSubscriptionAsyncWithHttpInfo (string id); /// /// Update a Subscription /// @@ -533,13 +521,12 @@ public void SetStatusCode(int? statusCode) /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// InlineResponse2009 - public InlineResponse2009 ActivateSubscription (string id, Object activateSubscriptionRequest = null) + public InlineResponse2009 ActivateSubscription (string id) { logger.Debug("CALLING API \"ActivateSubscription\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = ActivateSubscriptionWithHttpInfo(id, activateSubscriptionRequest); + ApiResponse localVarResponse = ActivateSubscriptionWithHttpInfo(id); logger.Debug("CALLING API \"ActivateSubscription\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -550,9 +537,8 @@ public InlineResponse2009 ActivateSubscription (string id, Object activateSubscr /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// ApiResponse of InlineResponse2009 - public ApiResponse< InlineResponse2009 > ActivateSubscriptionWithHttpInfo (string id, Object activateSubscriptionRequest = null) + public ApiResponse< InlineResponse2009 > ActivateSubscriptionWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -592,22 +578,13 @@ public ApiResponse< InlineResponse2009 > ActivateSubscriptionWithHttpInfo (strin localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (activateSubscriptionRequest != null && activateSubscriptionRequest.GetType() != typeof(byte[])) + if (Method.Post == Method.Post) { - localVarPostBody = Configuration.ApiClient.Serialize(activateSubscriptionRequest); // http body (model) parameter - } - else - { - localVarPostBody = activateSubscriptionRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -638,13 +615,12 @@ public ApiResponse< InlineResponse2009 > ActivateSubscriptionWithHttpInfo (strin /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of InlineResponse2009 - public async System.Threading.Tasks.Task ActivateSubscriptionAsync (string id, Object activateSubscriptionRequest = null) + public async System.Threading.Tasks.Task ActivateSubscriptionAsync (string id) { logger.Debug("CALLING API \"ActivateSubscriptionAsync\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = await ActivateSubscriptionAsyncWithHttpInfo(id, activateSubscriptionRequest); + ApiResponse localVarResponse = await ActivateSubscriptionAsyncWithHttpInfo(id); logger.Debug("CALLING API \"ActivateSubscriptionAsync\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -656,9 +632,8 @@ public async System.Threading.Tasks.Task ActivateSubscriptio /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of ApiResponse (InlineResponse2009) - public async System.Threading.Tasks.Task> ActivateSubscriptionAsyncWithHttpInfo (string id, Object activateSubscriptionRequest = null) + public async System.Threading.Tasks.Task> ActivateSubscriptionAsyncWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -698,22 +673,13 @@ public async System.Threading.Tasks.Task> Activa localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (activateSubscriptionRequest != null && activateSubscriptionRequest.GetType() != typeof(byte[])) - { - localVarPostBody = Configuration.ApiClient.Serialize(activateSubscriptionRequest); // http body (model) parameter - } - else + if (Method.Post == Method.Post) { - localVarPostBody = activateSubscriptionRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -743,13 +709,12 @@ public async System.Threading.Tasks.Task> Activa /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// InlineResponse202 - public InlineResponse202 CancelSubscription (string id, Object cancelSubscriptionRequest = null) + public InlineResponse202 CancelSubscription (string id) { logger.Debug("CALLING API \"CancelSubscription\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = CancelSubscriptionWithHttpInfo(id, cancelSubscriptionRequest); + ApiResponse localVarResponse = CancelSubscriptionWithHttpInfo(id); logger.Debug("CALLING API \"CancelSubscription\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -760,9 +725,8 @@ public InlineResponse202 CancelSubscription (string id, Object cancelSubscriptio /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// ApiResponse of InlineResponse202 - public ApiResponse< InlineResponse202 > CancelSubscriptionWithHttpInfo (string id, Object cancelSubscriptionRequest = null) + public ApiResponse< InlineResponse202 > CancelSubscriptionWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -802,22 +766,13 @@ public ApiResponse< InlineResponse202 > CancelSubscriptionWithHttpInfo (string i localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (cancelSubscriptionRequest != null && cancelSubscriptionRequest.GetType() != typeof(byte[])) - { - localVarPostBody = Configuration.ApiClient.Serialize(cancelSubscriptionRequest); // http body (model) parameter - } - else + if (Method.Post == Method.Post) { - localVarPostBody = cancelSubscriptionRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -848,13 +803,12 @@ public ApiResponse< InlineResponse202 > CancelSubscriptionWithHttpInfo (string i /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of InlineResponse202 - public async System.Threading.Tasks.Task CancelSubscriptionAsync (string id, Object cancelSubscriptionRequest = null) + public async System.Threading.Tasks.Task CancelSubscriptionAsync (string id) { logger.Debug("CALLING API \"CancelSubscriptionAsync\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = await CancelSubscriptionAsyncWithHttpInfo(id, cancelSubscriptionRequest); + ApiResponse localVarResponse = await CancelSubscriptionAsyncWithHttpInfo(id); logger.Debug("CALLING API \"CancelSubscriptionAsync\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -866,9 +820,8 @@ public async System.Threading.Tasks.Task CancelSubscriptionAs /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of ApiResponse (InlineResponse202) - public async System.Threading.Tasks.Task> CancelSubscriptionAsyncWithHttpInfo (string id, Object cancelSubscriptionRequest = null) + public async System.Threading.Tasks.Task> CancelSubscriptionAsyncWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -908,22 +861,13 @@ public async System.Threading.Tasks.Task> CancelS localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (cancelSubscriptionRequest != null && cancelSubscriptionRequest.GetType() != typeof(byte[])) + if (Method.Post == Method.Post) { - localVarPostBody = Configuration.ApiClient.Serialize(cancelSubscriptionRequest); // http body (model) parameter - } - else - { - localVarPostBody = cancelSubscriptionRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -1717,13 +1661,12 @@ public async System.Threading.Tasks.Task> GetSu /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// InlineResponse2021 - public InlineResponse2021 SuspendSubscription (string id, Object suspendSubscriptionRequest = null) + public InlineResponse2021 SuspendSubscription (string id) { logger.Debug("CALLING API \"SuspendSubscription\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = SuspendSubscriptionWithHttpInfo(id, suspendSubscriptionRequest); + ApiResponse localVarResponse = SuspendSubscriptionWithHttpInfo(id); logger.Debug("CALLING API \"SuspendSubscription\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -1734,9 +1677,8 @@ public InlineResponse2021 SuspendSubscription (string id, Object suspendSubscrip /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// ApiResponse of InlineResponse2021 - public ApiResponse< InlineResponse2021 > SuspendSubscriptionWithHttpInfo (string id, Object suspendSubscriptionRequest = null) + public ApiResponse< InlineResponse2021 > SuspendSubscriptionWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -1776,22 +1718,13 @@ public ApiResponse< InlineResponse2021 > SuspendSubscriptionWithHttpInfo (string localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (suspendSubscriptionRequest != null && suspendSubscriptionRequest.GetType() != typeof(byte[])) - { - localVarPostBody = Configuration.ApiClient.Serialize(suspendSubscriptionRequest); // http body (model) parameter - } - else + if (Method.Post == Method.Post) { - localVarPostBody = suspendSubscriptionRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } @@ -1822,13 +1755,12 @@ public ApiResponse< InlineResponse2021 > SuspendSubscriptionWithHttpInfo (string /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of InlineResponse2021 - public async System.Threading.Tasks.Task SuspendSubscriptionAsync (string id, Object suspendSubscriptionRequest = null) + public async System.Threading.Tasks.Task SuspendSubscriptionAsync (string id) { logger.Debug("CALLING API \"SuspendSubscriptionAsync\" STARTED"); this.SetStatusCode(null); - ApiResponse localVarResponse = await SuspendSubscriptionAsyncWithHttpInfo(id, suspendSubscriptionRequest); + ApiResponse localVarResponse = await SuspendSubscriptionAsyncWithHttpInfo(id); logger.Debug("CALLING API \"SuspendSubscriptionAsync\" ENDED"); this.SetStatusCode(localVarResponse.StatusCode); return localVarResponse.Data; @@ -1840,9 +1772,8 @@ public async System.Threading.Tasks.Task SuspendSubscription /// /// Thrown when fails to make API call /// Subscription Id - /// (optional) /// Task of ApiResponse (InlineResponse2021) - public async System.Threading.Tasks.Task> SuspendSubscriptionAsyncWithHttpInfo (string id, Object suspendSubscriptionRequest = null) + public async System.Threading.Tasks.Task> SuspendSubscriptionAsyncWithHttpInfo (string id) { LogUtility logUtility = new LogUtility(); @@ -1882,22 +1813,13 @@ public async System.Threading.Tasks.Task> Suspen localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); - if (suspendSubscriptionRequest != null && suspendSubscriptionRequest.GetType() != typeof(byte[])) - { - localVarPostBody = Configuration.ApiClient.Serialize(suspendSubscriptionRequest); // http body (model) parameter - } - else + if (Method.Post == Method.Post) { - localVarPostBody = suspendSubscriptionRequest; // byte array - } - - if (logUtility.IsMaskingEnabled(logger)) - { - logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}"); + localVarPostBody = "{}"; } else { - logger.Debug($"HTTP Request Body :\n{localVarPostBody}"); + localVarPostBody = null; } diff --git a/Model/Ptsv2paymentsRecipientInformation.cs b/Model/Ptsv2paymentsRecipientInformation.cs index 9ec64676..be059764 100644 --- a/Model/Ptsv2paymentsRecipientInformation.cs +++ b/Model/Ptsv2paymentsRecipientInformation.cs @@ -37,12 +37,14 @@ public partial class Ptsv2paymentsRecipientInformation : IEquatableRecipient’s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) . /// Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_middlename` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) . /// Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) . - public Ptsv2paymentsRecipientInformation(string AccountId = default(string), string LastName = default(string), string MiddleName = default(string), string PostalCode = default(string)) + /// Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) . + public Ptsv2paymentsRecipientInformation(string AccountId = default(string), string LastName = default(string), string MiddleName = default(string), string PostalCode = default(string), string DateOfBirth = default(string)) { this.AccountId = AccountId; this.LastName = LastName; this.MiddleName = MiddleName; this.PostalCode = PostalCode; + this.DateOfBirth = DateOfBirth; } /// @@ -73,6 +75,13 @@ public partial class Ptsv2paymentsRecipientInformation : IEquatable + /// Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) + /// + /// Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) + [DataMember(Name="dateOfBirth", EmitDefaultValue=false)] + public string DateOfBirth { get; set; } + /// /// Returns the string presentation of the object /// @@ -85,6 +94,7 @@ public override string ToString() sb.Append(" LastName: ").Append(LastName).Append("\n"); sb.Append(" MiddleName: ").Append(MiddleName).Append("\n"); sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); + sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -140,6 +150,11 @@ public bool Equals(Ptsv2paymentsRecipientInformation other) this.PostalCode == other.PostalCode || this.PostalCode != null && this.PostalCode.Equals(other.PostalCode) + ) && + ( + this.DateOfBirth == other.DateOfBirth || + this.DateOfBirth != null && + this.DateOfBirth.Equals(other.DateOfBirth) ); } @@ -162,6 +177,8 @@ public override int GetHashCode() hash = hash * 59 + this.MiddleName.GetHashCode(); if (this.PostalCode != null) hash = hash * 59 + this.PostalCode.GetHashCode(); + if (this.DateOfBirth != null) + hash = hash * 59 + this.DateOfBirth.GetHashCode(); return hash; } } diff --git a/Model/TssV2TransactionsGet200Response.cs b/Model/TssV2TransactionsGet200Response.cs index c1ce5d8c..e01ca15e 100644 --- a/Model/TssV2TransactionsGet200Response.cs +++ b/Model/TssV2TransactionsGet200Response.cs @@ -38,6 +38,7 @@ public partial class TssV2TransactionsGet200Response : IEquatableReference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. . /// Your CyberSource merchant ID.. /// Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. . + /// The status of the submitted transaction.. /// ApplicationInformation. /// BuyerInformation. /// ClientReferenceInformation. @@ -60,13 +61,14 @@ public partial class TssV2TransactionsGet200Response : IEquatableSenderInformation. /// TokenInformation. /// Links. - public TssV2TransactionsGet200Response(string Id = default(string), string RootId = default(string), string ReconciliationId = default(string), string MerchantId = default(string), string SubmitTimeUTC = default(string), TssV2TransactionsGet200ResponseApplicationInformation ApplicationInformation = default(TssV2TransactionsGet200ResponseApplicationInformation), TssV2TransactionsGet200ResponseBuyerInformation BuyerInformation = default(TssV2TransactionsGet200ResponseBuyerInformation), TssV2TransactionsGet200ResponseClientReferenceInformation ClientReferenceInformation = default(TssV2TransactionsGet200ResponseClientReferenceInformation), TssV2TransactionsGet200ResponseConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(TssV2TransactionsGet200ResponseConsumerAuthenticationInformation), TssV2TransactionsGet200ResponseDeviceInformation DeviceInformation = default(TssV2TransactionsGet200ResponseDeviceInformation), TssV2TransactionsGet200ResponseErrorInformation ErrorInformation = default(TssV2TransactionsGet200ResponseErrorInformation), TssV2TransactionsGet200ResponseInstallmentInformation InstallmentInformation = default(TssV2TransactionsGet200ResponseInstallmentInformation), TssV2TransactionsGet200ResponseFraudMarkingInformation FraudMarkingInformation = default(TssV2TransactionsGet200ResponseFraudMarkingInformation), Ptsv2paymentsHealthCareInformation HealthCareInformation = default(Ptsv2paymentsHealthCareInformation), List MerchantDefinedInformation = default(List), TssV2TransactionsGet200ResponseMerchantInformation MerchantInformation = default(TssV2TransactionsGet200ResponseMerchantInformation), TssV2TransactionsGet200ResponseOrderInformation OrderInformation = default(TssV2TransactionsGet200ResponseOrderInformation), TssV2TransactionsGet200ResponsePaymentInformation PaymentInformation = default(TssV2TransactionsGet200ResponsePaymentInformation), PtsV2PaymentsPost201ResponsePaymentInsightsInformation PaymentInsightsInformation = default(PtsV2PaymentsPost201ResponsePaymentInsightsInformation), TssV2TransactionsGet200ResponsePayoutOptions PayoutOptions = default(TssV2TransactionsGet200ResponsePayoutOptions), TssV2TransactionsGet200ResponseProcessingInformation ProcessingInformation = default(TssV2TransactionsGet200ResponseProcessingInformation), TssV2TransactionsGet200ResponseProcessorInformation ProcessorInformation = default(TssV2TransactionsGet200ResponseProcessorInformation), TssV2TransactionsGet200ResponsePointOfSaleInformation PointOfSaleInformation = default(TssV2TransactionsGet200ResponsePointOfSaleInformation), TssV2TransactionsGet200ResponseRiskInformation RiskInformation = default(TssV2TransactionsGet200ResponseRiskInformation), TssV2TransactionsGet200ResponseSenderInformation SenderInformation = default(TssV2TransactionsGet200ResponseSenderInformation), TssV2TransactionsGet200ResponseTokenInformation TokenInformation = default(TssV2TransactionsGet200ResponseTokenInformation), TssV2TransactionsGet200ResponseLinks Links = default(TssV2TransactionsGet200ResponseLinks)) + public TssV2TransactionsGet200Response(string Id = default(string), string RootId = default(string), string ReconciliationId = default(string), string MerchantId = default(string), string SubmitTimeUTC = default(string), string Status = default(string), TssV2TransactionsGet200ResponseApplicationInformation ApplicationInformation = default(TssV2TransactionsGet200ResponseApplicationInformation), TssV2TransactionsGet200ResponseBuyerInformation BuyerInformation = default(TssV2TransactionsGet200ResponseBuyerInformation), TssV2TransactionsGet200ResponseClientReferenceInformation ClientReferenceInformation = default(TssV2TransactionsGet200ResponseClientReferenceInformation), TssV2TransactionsGet200ResponseConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(TssV2TransactionsGet200ResponseConsumerAuthenticationInformation), TssV2TransactionsGet200ResponseDeviceInformation DeviceInformation = default(TssV2TransactionsGet200ResponseDeviceInformation), TssV2TransactionsGet200ResponseErrorInformation ErrorInformation = default(TssV2TransactionsGet200ResponseErrorInformation), TssV2TransactionsGet200ResponseInstallmentInformation InstallmentInformation = default(TssV2TransactionsGet200ResponseInstallmentInformation), TssV2TransactionsGet200ResponseFraudMarkingInformation FraudMarkingInformation = default(TssV2TransactionsGet200ResponseFraudMarkingInformation), Ptsv2paymentsHealthCareInformation HealthCareInformation = default(Ptsv2paymentsHealthCareInformation), List MerchantDefinedInformation = default(List), TssV2TransactionsGet200ResponseMerchantInformation MerchantInformation = default(TssV2TransactionsGet200ResponseMerchantInformation), TssV2TransactionsGet200ResponseOrderInformation OrderInformation = default(TssV2TransactionsGet200ResponseOrderInformation), TssV2TransactionsGet200ResponsePaymentInformation PaymentInformation = default(TssV2TransactionsGet200ResponsePaymentInformation), PtsV2PaymentsPost201ResponsePaymentInsightsInformation PaymentInsightsInformation = default(PtsV2PaymentsPost201ResponsePaymentInsightsInformation), TssV2TransactionsGet200ResponsePayoutOptions PayoutOptions = default(TssV2TransactionsGet200ResponsePayoutOptions), TssV2TransactionsGet200ResponseProcessingInformation ProcessingInformation = default(TssV2TransactionsGet200ResponseProcessingInformation), TssV2TransactionsGet200ResponseProcessorInformation ProcessorInformation = default(TssV2TransactionsGet200ResponseProcessorInformation), TssV2TransactionsGet200ResponsePointOfSaleInformation PointOfSaleInformation = default(TssV2TransactionsGet200ResponsePointOfSaleInformation), TssV2TransactionsGet200ResponseRiskInformation RiskInformation = default(TssV2TransactionsGet200ResponseRiskInformation), TssV2TransactionsGet200ResponseSenderInformation SenderInformation = default(TssV2TransactionsGet200ResponseSenderInformation), TssV2TransactionsGet200ResponseTokenInformation TokenInformation = default(TssV2TransactionsGet200ResponseTokenInformation), TssV2TransactionsGet200ResponseLinks Links = default(TssV2TransactionsGet200ResponseLinks)) { this.Id = Id; this.RootId = RootId; this.ReconciliationId = ReconciliationId; this.MerchantId = MerchantId; this.SubmitTimeUTC = SubmitTimeUTC; + this.Status = Status; this.ApplicationInformation = ApplicationInformation; this.BuyerInformation = BuyerInformation; this.ClientReferenceInformation = ClientReferenceInformation; @@ -126,6 +128,13 @@ public partial class TssV2TransactionsGet200Response : IEquatable + /// The status of the submitted transaction. + /// + /// The status of the submitted transaction. + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + /// /// Gets or Sets ApplicationInformation /// @@ -272,6 +281,7 @@ public override string ToString() sb.Append(" ReconciliationId: ").Append(ReconciliationId).Append("\n"); sb.Append(" MerchantId: ").Append(MerchantId).Append("\n"); sb.Append(" SubmitTimeUTC: ").Append(SubmitTimeUTC).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" ApplicationInformation: ").Append(ApplicationInformation).Append("\n"); sb.Append(" BuyerInformation: ").Append(BuyerInformation).Append("\n"); sb.Append(" ClientReferenceInformation: ").Append(ClientReferenceInformation).Append("\n"); @@ -355,6 +365,11 @@ public bool Equals(TssV2TransactionsGet200Response other) this.SubmitTimeUTC != null && this.SubmitTimeUTC.Equals(other.SubmitTimeUTC) ) && + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && ( this.ApplicationInformation == other.ApplicationInformation || this.ApplicationInformation != null && @@ -488,6 +503,8 @@ public override int GetHashCode() hash = hash * 59 + this.MerchantId.GetHashCode(); if (this.SubmitTimeUTC != null) hash = hash * 59 + this.SubmitTimeUTC.GetHashCode(); + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); if (this.ApplicationInformation != null) hash = hash * 59 + this.ApplicationInformation.GetHashCode(); if (this.BuyerInformation != null) diff --git a/Model/TssV2TransactionsPost201Response.cs b/Model/TssV2TransactionsPost201Response.cs index c5dcd320..aa529327 100644 --- a/Model/TssV2TransactionsPost201Response.cs +++ b/Model/TssV2TransactionsPost201Response.cs @@ -43,11 +43,10 @@ public partial class TssV2TransactionsPost201Response : IEquatableA comma separated list of the following form: `submitTimeUtc:desc` . /// Results for this page, this could be below the limit.. /// Total number of results.. - /// The status of the submitted transaction.. /// Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. . /// Embedded. /// Links. - public TssV2TransactionsPost201Response(string SearchId = default(string), bool? Save = default(bool?), string Name = default(string), string Timezone = default(string), string Query = default(string), int? Offset = default(int?), int? Limit = default(int?), string Sort = default(string), int? Count = default(int?), int? TotalCount = default(int?), string Status = default(string), string SubmitTimeUtc = default(string), TssV2TransactionsPost201ResponseEmbedded Embedded = default(TssV2TransactionsPost201ResponseEmbedded), PtsV2IncrementalAuthorizationPatch201ResponseLinks Links = default(PtsV2IncrementalAuthorizationPatch201ResponseLinks)) + public TssV2TransactionsPost201Response(string SearchId = default(string), bool? Save = default(bool?), string Name = default(string), string Timezone = default(string), string Query = default(string), int? Offset = default(int?), int? Limit = default(int?), string Sort = default(string), int? Count = default(int?), int? TotalCount = default(int?), string SubmitTimeUtc = default(string), TssV2TransactionsPost201ResponseEmbedded Embedded = default(TssV2TransactionsPost201ResponseEmbedded), PtsV2IncrementalAuthorizationPatch201ResponseLinks Links = default(PtsV2IncrementalAuthorizationPatch201ResponseLinks)) { this.SearchId = SearchId; this.Save = Save; @@ -59,7 +58,6 @@ public partial class TssV2TransactionsPost201Response : IEquatable - /// The status of the submitted transaction. - /// - /// The status of the submitted transaction. - [DataMember(Name="status", EmitDefaultValue=false)] - public string Status { get; set; } - /// /// Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. /// @@ -179,7 +170,6 @@ public override string ToString() sb.Append(" Sort: ").Append(Sort).Append("\n"); sb.Append(" Count: ").Append(Count).Append("\n"); sb.Append(" TotalCount: ").Append(TotalCount).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" SubmitTimeUtc: ").Append(SubmitTimeUtc).Append("\n"); sb.Append(" Embedded: ").Append(Embedded).Append("\n"); sb.Append(" Links: ").Append(Links).Append("\n"); @@ -269,11 +259,6 @@ public bool Equals(TssV2TransactionsPost201Response other) this.TotalCount != null && this.TotalCount.Equals(other.TotalCount) ) && - ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) - ) && ( this.SubmitTimeUtc == other.SubmitTimeUtc || this.SubmitTimeUtc != null && @@ -322,8 +307,6 @@ public override int GetHashCode() hash = hash * 59 + this.Count.GetHashCode(); if (this.TotalCount != null) hash = hash * 59 + this.TotalCount.GetHashCode(); - if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); if (this.SubmitTimeUtc != null) hash = hash * 59 + this.SubmitTimeUtc.GetHashCode(); if (this.Embedded != null) diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.cs index 168a1133..3bcde1f1 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.cs @@ -35,15 +35,19 @@ public partial class TssV2TransactionsPost201ResponseEmbeddedApplicationInformat /// /// The name of the CyberSource transaction type (such as CC settlement or CC authorization) that the merchant wants to process in a transaction request. More than one transaction type can included in a transaction request. Each transaction type separately returns their own status, reasonCode, rCode, and rFlag messages. . /// 3-digit reason code that indicates why the customer profile payment succeeded or failed.. + /// The status of the submitted transaction. Note: This field may not be returned for all transactions. . + /// Description of why a request failed. Note: This field may not be returned for all transactions. . /// Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. . /// One-word description of the result of the application. . /// Reference number that you use to reconcile your CyberSource reports with your processor reports. . /// Message that explains the reply flag for the application. . /// The description for this field is not available.. - public TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications(string Name = default(string), string ReasonCode = default(string), string RCode = default(string), string RFlag = default(string), string ReconciliationId = default(string), string RMessage = default(string), int? ReturnCode = default(int?)) + public TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications(string Name = default(string), string ReasonCode = default(string), string Status = default(string), string Reason = default(string), string RCode = default(string), string RFlag = default(string), string ReconciliationId = default(string), string RMessage = default(string), int? ReturnCode = default(int?)) { this.Name = Name; this.ReasonCode = ReasonCode; + this.Status = Status; + this.Reason = Reason; this.RCode = RCode; this.RFlag = RFlag; this.ReconciliationId = ReconciliationId; @@ -65,6 +69,20 @@ public partial class TssV2TransactionsPost201ResponseEmbeddedApplicationInformat [DataMember(Name="reasonCode", EmitDefaultValue=false)] public string ReasonCode { get; set; } + /// + /// The status of the submitted transaction. Note: This field may not be returned for all transactions. + /// + /// The status of the submitted transaction. Note: This field may not be returned for all transactions. + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Description of why a request failed. Note: This field may not be returned for all transactions. + /// + /// Description of why a request failed. Note: This field may not be returned for all transactions. + [DataMember(Name="reason", EmitDefaultValue=false)] + public string Reason { get; set; } + /// /// Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. /// @@ -110,6 +128,8 @@ public override string ToString() sb.Append("class TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" RCode: ").Append(RCode).Append("\n"); sb.Append(" RFlag: ").Append(RFlag).Append("\n"); sb.Append(" ReconciliationId: ").Append(ReconciliationId).Append("\n"); @@ -161,6 +181,16 @@ public bool Equals(TssV2TransactionsPost201ResponseEmbeddedApplicationInformatio this.ReasonCode != null && this.ReasonCode.Equals(other.ReasonCode) ) && + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && + ( + this.Reason == other.Reason || + this.Reason != null && + this.Reason.Equals(other.Reason) + ) && ( this.RCode == other.RCode || this.RCode != null && @@ -203,6 +233,10 @@ public override int GetHashCode() hash = hash * 59 + this.Name.GetHashCode(); if (this.ReasonCode != null) hash = hash * 59 + this.ReasonCode.GetHashCode(); + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); + if (this.Reason != null) + hash = hash * 59 + this.Reason.GetHashCode(); if (this.RCode != null) hash = hash * 59 + this.RCode.GetHashCode(); if (this.RFlag != null) diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.cs new file mode 100644 index 00000000..869081e9 --- /dev/null +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.cs @@ -0,0 +1,129 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// TssV2TransactionsPost201ResponseEmbeddedErrorInformation + /// + [DataContract] + public partial class TssV2TransactionsPost201ResponseEmbeddedErrorInformation : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Description of why a request failed. Note: This field may not be returned for all transactions. . + public TssV2TransactionsPost201ResponseEmbeddedErrorInformation(string Reason = default(string)) + { + this.Reason = Reason; + } + + /// + /// Description of why a request failed. Note: This field may not be returned for all transactions. + /// + /// Description of why a request failed. Note: This field may not be returned for all transactions. + [DataMember(Name="reason", EmitDefaultValue=false)] + public string Reason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TssV2TransactionsPost201ResponseEmbeddedErrorInformation {\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as TssV2TransactionsPost201ResponseEmbeddedErrorInformation); + } + + /// + /// Returns true if TssV2TransactionsPost201ResponseEmbeddedErrorInformation instances are equal + /// + /// Instance of TssV2TransactionsPost201ResponseEmbeddedErrorInformation to be compared + /// Boolean + public bool Equals(TssV2TransactionsPost201ResponseEmbeddedErrorInformation other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.Reason == other.Reason || + this.Reason != null && + this.Reason.Equals(other.Reason) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.Reason != null) + hash = hash * 59 + this.Reason.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs index 693acf25..e7e8d577 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs @@ -36,11 +36,13 @@ public partial class TssV2TransactionsPost201ResponseEmbeddedTransactionSummarie /// An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. . /// Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. . /// Your CyberSource merchant ID.. + /// The status of the submitted transaction. Note: This field may not be returned for all transactions. . /// ApplicationInformation. /// BuyerInformation. /// ClientReferenceInformation. /// ConsumerAuthenticationInformation. /// DeviceInformation. + /// ErrorInformation. /// FraudMarkingInformation. /// The object containing the custom data that the merchant defines. . /// MerchantInformation. @@ -51,16 +53,18 @@ public partial class TssV2TransactionsPost201ResponseEmbeddedTransactionSummarie /// PointOfSaleInformation. /// RiskInformation. /// Links. - public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(string Id = default(string), string SubmitTimeUtc = default(string), string MerchantId = default(string), TssV2TransactionsPost201ResponseEmbeddedApplicationInformation ApplicationInformation = default(TssV2TransactionsPost201ResponseEmbeddedApplicationInformation), TssV2TransactionsPost201ResponseEmbeddedBuyerInformation BuyerInformation = default(TssV2TransactionsPost201ResponseEmbeddedBuyerInformation), TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation ClientReferenceInformation = default(TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation), TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation), Riskv1authenticationresultsDeviceInformation DeviceInformation = default(Riskv1authenticationresultsDeviceInformation), TssV2TransactionsGet200ResponseFraudMarkingInformation FraudMarkingInformation = default(TssV2TransactionsGet200ResponseFraudMarkingInformation), List MerchantDefinedInformation = default(List), TssV2TransactionsPost201ResponseEmbeddedMerchantInformation MerchantInformation = default(TssV2TransactionsPost201ResponseEmbeddedMerchantInformation), TssV2TransactionsPost201ResponseEmbeddedOrderInformation OrderInformation = default(TssV2TransactionsPost201ResponseEmbeddedOrderInformation), TssV2TransactionsPost201ResponseEmbeddedPaymentInformation PaymentInformation = default(TssV2TransactionsPost201ResponseEmbeddedPaymentInformation), TssV2TransactionsPost201ResponseEmbeddedProcessingInformation ProcessingInformation = default(TssV2TransactionsPost201ResponseEmbeddedProcessingInformation), TssV2TransactionsPost201ResponseEmbeddedProcessorInformation ProcessorInformation = default(TssV2TransactionsPost201ResponseEmbeddedProcessorInformation), TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation PointOfSaleInformation = default(TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation), TssV2TransactionsPost201ResponseEmbeddedRiskInformation RiskInformation = default(TssV2TransactionsPost201ResponseEmbeddedRiskInformation), TssV2TransactionsPost201ResponseEmbeddedLinks Links = default(TssV2TransactionsPost201ResponseEmbeddedLinks)) + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(string Id = default(string), string SubmitTimeUtc = default(string), string MerchantId = default(string), string Status = default(string), TssV2TransactionsPost201ResponseEmbeddedApplicationInformation ApplicationInformation = default(TssV2TransactionsPost201ResponseEmbeddedApplicationInformation), TssV2TransactionsPost201ResponseEmbeddedBuyerInformation BuyerInformation = default(TssV2TransactionsPost201ResponseEmbeddedBuyerInformation), TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation ClientReferenceInformation = default(TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation), TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation), Riskv1authenticationresultsDeviceInformation DeviceInformation = default(Riskv1authenticationresultsDeviceInformation), TssV2TransactionsPost201ResponseEmbeddedErrorInformation ErrorInformation = default(TssV2TransactionsPost201ResponseEmbeddedErrorInformation), TssV2TransactionsGet200ResponseFraudMarkingInformation FraudMarkingInformation = default(TssV2TransactionsGet200ResponseFraudMarkingInformation), List MerchantDefinedInformation = default(List), TssV2TransactionsPost201ResponseEmbeddedMerchantInformation MerchantInformation = default(TssV2TransactionsPost201ResponseEmbeddedMerchantInformation), TssV2TransactionsPost201ResponseEmbeddedOrderInformation OrderInformation = default(TssV2TransactionsPost201ResponseEmbeddedOrderInformation), TssV2TransactionsPost201ResponseEmbeddedPaymentInformation PaymentInformation = default(TssV2TransactionsPost201ResponseEmbeddedPaymentInformation), TssV2TransactionsPost201ResponseEmbeddedProcessingInformation ProcessingInformation = default(TssV2TransactionsPost201ResponseEmbeddedProcessingInformation), TssV2TransactionsPost201ResponseEmbeddedProcessorInformation ProcessorInformation = default(TssV2TransactionsPost201ResponseEmbeddedProcessorInformation), TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation PointOfSaleInformation = default(TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation), TssV2TransactionsPost201ResponseEmbeddedRiskInformation RiskInformation = default(TssV2TransactionsPost201ResponseEmbeddedRiskInformation), TssV2TransactionsPost201ResponseEmbeddedLinks Links = default(TssV2TransactionsPost201ResponseEmbeddedLinks)) { this.Id = Id; this.SubmitTimeUtc = SubmitTimeUtc; this.MerchantId = MerchantId; + this.Status = Status; this.ApplicationInformation = ApplicationInformation; this.BuyerInformation = BuyerInformation; this.ClientReferenceInformation = ClientReferenceInformation; this.ConsumerAuthenticationInformation = ConsumerAuthenticationInformation; this.DeviceInformation = DeviceInformation; + this.ErrorInformation = ErrorInformation; this.FraudMarkingInformation = FraudMarkingInformation; this.MerchantDefinedInformation = MerchantDefinedInformation; this.MerchantInformation = MerchantInformation; @@ -94,6 +98,13 @@ public partial class TssV2TransactionsPost201ResponseEmbeddedTransactionSummarie [DataMember(Name="merchantId", EmitDefaultValue=false)] public string MerchantId { get; set; } + /// + /// The status of the submitted transaction. Note: This field may not be returned for all transactions. + /// + /// The status of the submitted transaction. Note: This field may not be returned for all transactions. + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + /// /// Gets or Sets ApplicationInformation /// @@ -124,6 +135,12 @@ public partial class TssV2TransactionsPost201ResponseEmbeddedTransactionSummarie [DataMember(Name="deviceInformation", EmitDefaultValue=false)] public Riskv1authenticationresultsDeviceInformation DeviceInformation { get; set; } + /// + /// Gets or Sets ErrorInformation + /// + [DataMember(Name="errorInformation", EmitDefaultValue=false)] + public TssV2TransactionsPost201ResponseEmbeddedErrorInformation ErrorInformation { get; set; } + /// /// Gets or Sets FraudMarkingInformation /// @@ -196,11 +213,13 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" SubmitTimeUtc: ").Append(SubmitTimeUtc).Append("\n"); sb.Append(" MerchantId: ").Append(MerchantId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" ApplicationInformation: ").Append(ApplicationInformation).Append("\n"); sb.Append(" BuyerInformation: ").Append(BuyerInformation).Append("\n"); sb.Append(" ClientReferenceInformation: ").Append(ClientReferenceInformation).Append("\n"); sb.Append(" ConsumerAuthenticationInformation: ").Append(ConsumerAuthenticationInformation).Append("\n"); sb.Append(" DeviceInformation: ").Append(DeviceInformation).Append("\n"); + sb.Append(" ErrorInformation: ").Append(ErrorInformation).Append("\n"); sb.Append(" FraudMarkingInformation: ").Append(FraudMarkingInformation).Append("\n"); sb.Append(" MerchantDefinedInformation: ").Append(MerchantDefinedInformation).Append("\n"); sb.Append(" MerchantInformation: ").Append(MerchantInformation).Append("\n"); @@ -262,6 +281,11 @@ public bool Equals(TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries this.MerchantId != null && this.MerchantId.Equals(other.MerchantId) ) && + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && ( this.ApplicationInformation == other.ApplicationInformation || this.ApplicationInformation != null && @@ -287,6 +311,11 @@ public bool Equals(TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries this.DeviceInformation != null && this.DeviceInformation.Equals(other.DeviceInformation) ) && + ( + this.ErrorInformation == other.ErrorInformation || + this.ErrorInformation != null && + this.ErrorInformation.Equals(other.ErrorInformation) + ) && ( this.FraudMarkingInformation == other.FraudMarkingInformation || this.FraudMarkingInformation != null && @@ -356,6 +385,8 @@ public override int GetHashCode() hash = hash * 59 + this.SubmitTimeUtc.GetHashCode(); if (this.MerchantId != null) hash = hash * 59 + this.MerchantId.GetHashCode(); + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); if (this.ApplicationInformation != null) hash = hash * 59 + this.ApplicationInformation.GetHashCode(); if (this.BuyerInformation != null) @@ -366,6 +397,8 @@ public override int GetHashCode() hash = hash * 59 + this.ConsumerAuthenticationInformation.GetHashCode(); if (this.DeviceInformation != null) hash = hash * 59 + this.DeviceInformation.GetHashCode(); + if (this.ErrorInformation != null) + hash = hash * 59 + this.ErrorInformation.GetHashCode(); if (this.FraudMarkingInformation != null) hash = hash * 59 + this.FraudMarkingInformation.GetHashCode(); if (this.MerchantDefinedInformation != null) diff --git a/cybersource-rest-client-dotnet.csproj b/cybersource-rest-client-dotnet.csproj index 545351df..bb8cc250 100644 --- a/cybersource-rest-client-dotnet.csproj +++ b/cybersource-rest-client-dotnet.csproj @@ -12,7 +12,7 @@ OpenAPI spec version: 0.0.1 Debug AnyCPU - {EBEEE7B2-2979-4044-BE21-906E1C28B64B} + {E2540C66-D1C4-4AB1-A961-F027431F456A} Library Properties CyberSource diff --git a/cybersource-rest-client-dotnet.sln b/cybersource-rest-client-dotnet.sln index b9477b05..d73bdb3b 100644 --- a/cybersource-rest-client-dotnet.sln +++ b/cybersource-rest-client-dotnet.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{EBEEE7B2-2979-4044-BE21-906E1C28B64B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{E2540C66-D1C4-4AB1-A961-F027431F456A}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet.Test", "test\cybersource-rest-client-dotnet.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EBEEE7B2-2979-4044-BE21-906E1C28B64B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EBEEE7B2-2979-4044-BE21-906E1C28B64B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EBEEE7B2-2979-4044-BE21-906E1C28B64B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EBEEE7B2-2979-4044-BE21-906E1C28B64B}.Release|Any CPU.Build.0 = Release|Any CPU + {E2540C66-D1C4-4AB1-A961-F027431F456A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E2540C66-D1C4-4AB1-A961-F027431F456A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E2540C66-D1C4-4AB1-A961-F027431F456A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E2540C66-D1C4-4AB1-A961-F027431F456A}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/docs/PlansApi.md b/docs/PlansApi.md index 79587c0f..cba10611 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **ActivatePlan** -> InlineResponse2004 ActivatePlan (string id, Object activatePlanRequest = null) +> InlineResponse2004 ActivatePlan (string id) Activate a Plan @@ -38,12 +38,11 @@ namespace Example { var apiInstance = new PlansApi(); var id = id_example; // string | Plan Id - var activatePlanRequest = ; // Object | (optional) try { // Activate a Plan - InlineResponse2004 result = apiInstance.ActivatePlan(id, activatePlanRequest); + InlineResponse2004 result = apiInstance.ActivatePlan(id); Debug.WriteLine(result); } catch (Exception e) @@ -60,7 +59,6 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| Plan Id | - **activatePlanRequest** | **Object**| | [optional] ### Return type @@ -140,7 +138,7 @@ No authorization required # **DeactivatePlan** -> InlineResponse2004 DeactivatePlan (string id, Object deactivatePlanRequest = null) +> InlineResponse2004 DeactivatePlan (string id) Deactivate a Plan @@ -162,12 +160,11 @@ namespace Example { var apiInstance = new PlansApi(); var id = id_example; // string | Plan Id - var deactivatePlanRequest = ; // Object | (optional) try { // Deactivate a Plan - InlineResponse2004 result = apiInstance.DeactivatePlan(id, deactivatePlanRequest); + InlineResponse2004 result = apiInstance.DeactivatePlan(id); Debug.WriteLine(result); } catch (Exception e) @@ -184,7 +181,6 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| Plan Id | - **deactivatePlanRequest** | **Object**| | [optional] ### Return type diff --git a/docs/Ptsv2paymentsRecipientInformation.md b/docs/Ptsv2paymentsRecipientInformation.md index 52e9c852..67487810 100644 --- a/docs/Ptsv2paymentsRecipientInformation.md +++ b/docs/Ptsv2paymentsRecipientInformation.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **LastName** | **string** | Recipient’s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **MiddleName** | **string** | Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_middlename` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **PostalCode** | **string** | Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] +**DateOfBirth** | **string** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index ef5541d1..9208b3cf 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **ActivateSubscription** -> InlineResponse2009 ActivateSubscription (string id, Object activateSubscriptionRequest = null) +> InlineResponse2009 ActivateSubscription (string id) Activate a Subscription @@ -38,12 +38,11 @@ namespace Example { var apiInstance = new SubscriptionsApi(); var id = id_example; // string | Subscription Id - var activateSubscriptionRequest = ; // Object | (optional) try { // Activate a Subscription - InlineResponse2009 result = apiInstance.ActivateSubscription(id, activateSubscriptionRequest); + InlineResponse2009 result = apiInstance.ActivateSubscription(id); Debug.WriteLine(result); } catch (Exception e) @@ -60,7 +59,6 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| Subscription Id | - **activateSubscriptionRequest** | **Object**| | [optional] ### Return type @@ -79,7 +77,7 @@ No authorization required # **CancelSubscription** -> InlineResponse202 CancelSubscription (string id, Object cancelSubscriptionRequest = null) +> InlineResponse202 CancelSubscription (string id) Cancel a Subscription @@ -101,12 +99,11 @@ namespace Example { var apiInstance = new SubscriptionsApi(); var id = id_example; // string | Subscription Id - var cancelSubscriptionRequest = ; // Object | (optional) try { // Cancel a Subscription - InlineResponse202 result = apiInstance.CancelSubscription(id, cancelSubscriptionRequest); + InlineResponse202 result = apiInstance.CancelSubscription(id); Debug.WriteLine(result); } catch (Exception e) @@ -123,7 +120,6 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| Subscription Id | - **cancelSubscriptionRequest** | **Object**| | [optional] ### Return type @@ -388,7 +384,7 @@ No authorization required # **SuspendSubscription** -> InlineResponse2021 SuspendSubscription (string id, Object suspendSubscriptionRequest = null) +> InlineResponse2021 SuspendSubscription (string id) Suspend a Subscription @@ -410,12 +406,11 @@ namespace Example { var apiInstance = new SubscriptionsApi(); var id = id_example; // string | Subscription Id - var suspendSubscriptionRequest = ; // Object | (optional) try { // Suspend a Subscription - InlineResponse2021 result = apiInstance.SuspendSubscription(id, suspendSubscriptionRequest); + InlineResponse2021 result = apiInstance.SuspendSubscription(id); Debug.WriteLine(result); } catch (Exception e) @@ -432,7 +427,6 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| Subscription Id | - **suspendSubscriptionRequest** | **Object**| | [optional] ### Return type diff --git a/docs/TssV2TransactionsGet200Response.md b/docs/TssV2TransactionsGet200Response.md index 5b52f41e..4143a478 100644 --- a/docs/TssV2TransactionsGet200Response.md +++ b/docs/TssV2TransactionsGet200Response.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **ReconciliationId** | **string** | Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. | [optional] **MerchantId** | **string** | Your CyberSource merchant ID. | [optional] **SubmitTimeUTC** | **string** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] +**Status** | **string** | The status of the submitted transaction. | [optional] **ApplicationInformation** | [**TssV2TransactionsGet200ResponseApplicationInformation**](TssV2TransactionsGet200ResponseApplicationInformation.md) | | [optional] **BuyerInformation** | [**TssV2TransactionsGet200ResponseBuyerInformation**](TssV2TransactionsGet200ResponseBuyerInformation.md) | | [optional] **ClientReferenceInformation** | [**TssV2TransactionsGet200ResponseClientReferenceInformation**](TssV2TransactionsGet200ResponseClientReferenceInformation.md) | | [optional] diff --git a/docs/TssV2TransactionsPost201Response.md b/docs/TssV2TransactionsPost201Response.md index cd85eb23..9c4529ce 100644 --- a/docs/TssV2TransactionsPost201Response.md +++ b/docs/TssV2TransactionsPost201Response.md @@ -13,7 +13,6 @@ Name | Type | Description | Notes **Sort** | **string** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional] **Count** | **int?** | Results for this page, this could be below the limit. | [optional] **TotalCount** | **int?** | Total number of results. | [optional] -**Status** | **string** | The status of the submitted transaction. | [optional] **SubmitTimeUtc** | **string** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **Embedded** | [**TssV2TransactionsPost201ResponseEmbedded**](TssV2TransactionsPost201ResponseEmbedded.md) | | [optional] **Links** | [**PtsV2IncrementalAuthorizationPatch201ResponseLinks**](PtsV2IncrementalAuthorizationPatch201ResponseLinks.md) | | [optional] diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md b/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md index 8fe90bef..647d967e 100644 --- a/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | The name of the CyberSource transaction type (such as CC settlement or CC authorization) that the merchant wants to process in a transaction request. More than one transaction type can included in a transaction request. Each transaction type separately returns their own status, reasonCode, rCode, and rFlag messages. | [optional] **ReasonCode** | **string** | 3-digit reason code that indicates why the customer profile payment succeeded or failed. | [optional] +**Status** | **string** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional] +**Reason** | **string** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional] **RCode** | **string** | Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. | [optional] **RFlag** | **string** | One-word description of the result of the application. | [optional] **ReconciliationId** | **string** | Reference number that you use to reconcile your CyberSource reports with your processor reports. | [optional] diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md new file mode 100644 index 00000000..d693cb28 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md @@ -0,0 +1,9 @@ +# CyberSource.Model.TssV2TransactionsPost201ResponseEmbeddedErrorInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md index d1159352..6ad4e47f 100644 --- a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes **Id** | **string** | An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. | [optional] **SubmitTimeUtc** | **string** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **MerchantId** | **string** | Your CyberSource merchant ID. | [optional] +**Status** | **string** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional] **ApplicationInformation** | [**TssV2TransactionsPost201ResponseEmbeddedApplicationInformation**](TssV2TransactionsPost201ResponseEmbeddedApplicationInformation.md) | | [optional] **BuyerInformation** | [**TssV2TransactionsPost201ResponseEmbeddedBuyerInformation**](TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md) | | [optional] **ClientReferenceInformation** | [**TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation**](TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md) | | [optional] **ConsumerAuthenticationInformation** | [**TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation**](TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md) | | [optional] **DeviceInformation** | [**Riskv1authenticationresultsDeviceInformation**](Riskv1authenticationresultsDeviceInformation.md) | | [optional] +**ErrorInformation** | [**TssV2TransactionsPost201ResponseEmbeddedErrorInformation**](TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md) | | [optional] **FraudMarkingInformation** | [**TssV2TransactionsGet200ResponseFraudMarkingInformation**](TssV2TransactionsGet200ResponseFraudMarkingInformation.md) | | [optional] **MerchantDefinedInformation** | [**List<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | The object containing the custom data that the merchant defines. | [optional] **MerchantInformation** | [**TssV2TransactionsPost201ResponseEmbeddedMerchantInformation**](TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md) | | [optional] diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 2e3a2adb..e2c4a75b 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -1078,7 +1078,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -2175,7 +2175,7 @@ }, "lastName": { "type": "string", - "maxLength": 6, + "maxLength": 35, "description": "Recipient\u2019s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" }, "middleName": { @@ -2185,8 +2185,13 @@ }, "postalCode": { "type": "string", - "maxLength": 6, + "maxLength": 10, "description": "Partial postal code for the recipient\u2019s address. For example, if the postal code is **NN5 7SG**, the value for\nthis field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that\nCyberSource does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n\nFor details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 8, + "description": "Recipient\u2019s date of birth. **Format**: `YYYYMMDD`.\n\nThis field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters\nbut otherwise does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n\nFor more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" } } }, @@ -8653,11 +8658,15 @@ "sample-name": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Purchase" + "code": "Pin Debit Purchase Using Swiped Track Data" }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", - "entryMode": "swiped" + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" }, "processingInformation": { "commerceIndicator": "retail" @@ -8682,7 +8691,7 @@ "sample-name": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Purchase" + "code": "Pin Debit Purchase Using EMV Contactless" }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", @@ -8710,6 +8719,174 @@ } }, "parentTag": "Card Present with Visa Platform Connect" + }, + "example56": { + "summary": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", + "sample-name": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "Pin Debit Purchase With Cashback" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "contactless", + "terminalCapability": 4, + "emv": { + "tags": "9F3303204000950500000000009F3704518823719F100706011103A000009F26081E1756ED0E2134E29F36020015820200009C01009F1A0208409A030006219F02060000000020005F2A0208409F0306000000000000", + "cardSequenceNumber": 1 + } + }, + "processingInformation": { + "commerceIndicator": "retail" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "204.00", + "currency": "USD", + "cashbackAmount": "45.00" + } + }, + "paymentInformation": { + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example57": { + "summary": "EBT - Purchase from SNAP Account with Visa Platform Connect", + "sample-name": "EBT - Purchase from SNAP Account with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "EBT - Purchase From SNAP Account" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "category": "FOOD" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "101.00", + "currency": "USD" + }, + "merchantInformation": { + "categoryCode": "5499" + } + }, + "paymentInformation": { + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example58": { + "summary": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", + "sample-name": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "EBT - Voucher Purchase From SNAP Account" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "keyed", + "terminalCapability": 4 + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "voucherSerialNumber": "123451234512345", + "category": "FOOD" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "103.00", + "currency": "USD" + }, + "merchantInformation": { + "categoryCode": "5999" + } + }, + "paymentInformation": { + "card": { + "number": "4012002000013007", + "expirationMonth": "12", + "expirationYear": "25" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example59": { + "summary": "EBT - Purchase from Cash Benefits Account with Cashback", + "sample-name": "EBT - Purchase from Cash Benefits Account with Cashback", + "value": { + "clientReferenceInformation": { + "code": "EBT - Purchase from Cash Benefits Account with CB" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "category": "CASH" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "702.00", + "currency": "USD", + "cashbackAmount": "45.00" + }, + "merchantInformation": { + "categoryCode": "5411" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" } } } @@ -13232,7 +13409,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -15743,7 +15920,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -18322,7 +18499,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -20990,7 +21167,7 @@ "sample-name": "Pin Debit Credit Using Swiped Track Data with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Credit" + "code": "Pin Debit Credit Swiped Track Data" }, "processingInformation": { "commerceIndicator": "retail" @@ -21012,7 +21189,8 @@ }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", - "entryMode": "swiped" + "entryMode": "swiped", + "terminalCapability": 4 } }, "parentTag": "Card Present with Visa Platform Connect" @@ -21022,7 +21200,7 @@ "sample-name": "Pin Debit Credit Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Credit" + "code": "Pin Debit Credit Using EMV Contactless" }, "processingInformation": { "commerceIndicator": "retail" @@ -21053,6 +21231,52 @@ } }, "parentTag": "Card Present with Visa Platform Connect" + }, + "example10": { + "summary": "EBT - Merchandise Return / Credit Voucher from SNAP", + "sample-name": "EBT - Merchandise Return / Credit Voucher from SNAP", + "value": { + "clientReferenceInformation": { + "code": "Merchandise Return / Credit Voucher from SNAP" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "voucherSerialNumber": "123451234512345", + "category": "FOOD" + } + }, + "merchantInformation": { + "categoryCode": "5411" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "204.00", + "currency": "USD" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + } + }, + "parentTag": "Card Present with Visa Platform Connect" } } } @@ -21425,6 +21649,43 @@ } ] } + }, + "example2": { + "summary": "EBT - Reversal of Purchase from SNAP Account", + "value": { + "clientReferenceInformation": { + "code": "Reversal of Purchase from SNAP Account" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "101.00", + "currency": "USD" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "depends": { + "example": { + "path": "/pts/v2/payments", + "verb": "post", + "exampleId": "example2" + }, + "fieldMapping": [ + { + "sourceField": "id", + "destinationField": "id", + "fieldTypeInDestination": "path" + } + ] + } } } } @@ -51380,7 +51641,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -52225,7 +52486,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -53818,7 +54079,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -59389,10 +59650,8 @@ }, "example": { "planInformation": { - "code": "PLN1", "name": "Gold Plan", "description": "New Gold Plan", - "status": "DRAFT", "billingPeriod": { "length": "1", "unit": "M" @@ -59405,7 +59664,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "10", - "setupFee": "15" + "setupFee": "2" } } } @@ -59552,10 +59811,8 @@ "sample-name": "Create Plan", "value": { "planInformation": { - "code": "PLN1", "name": "Gold Plan", "description": "New Gold Plan", - "status": "DRAFT", "billingPeriod": { "length": "1", "unit": "M" @@ -59568,7 +59825,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "10", - "setupFee": "15" + "setupFee": "2" } } } @@ -60185,10 +60442,8 @@ }, "example": { "planInformation": { - "code": "PLAN1", "name": "Gold Plan NA", "description": "Updated Gold Plan", - "status": "ACTIVE", "billingPeriod": { "length": "2", "unit": "W" @@ -60206,7 +60461,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "11", - "setupFee": "25" + "setupFee": "2" } } } @@ -60353,10 +60608,8 @@ "sample-name": "Update Plan", "value": { "planInformation": { - "code": "PLAN1", "name": "Gold Plan NA", "description": "Updated Gold Plan", - "status": "ACTIVE", "billingPeriod": { "length": "2", "unit": "W" @@ -60374,7 +60627,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "11", - "setupFee": "25" + "setupFee": "2" } } } @@ -60522,14 +60775,6 @@ "required": true, "type": "string", "description": "Plan Id" - }, - { - "name": "activatePlanRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -60689,14 +60934,6 @@ "required": true, "type": "string", "description": "Plan Id" - }, - { - "name": "deactivatePlanRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -61142,10 +61379,9 @@ } }, "subscriptionInformation": { - "code": "SUB1", - "planId": "4963015972176007901546", + "planId": "6868912495476705603955", "name": "Subscription with PlanId", - "startDate": "2023-12-11" + "startDate": "2024-06-11" }, "paymentInformation": { "customer": { @@ -61381,10 +61617,9 @@ } }, "subscriptionInformation": { - "code": "SUB1", - "planId": "4963015972176007901546", + "planId": "6868912495476705603955", "name": "Subscription with PlanId", - "startDate": "2023-12-11" + "startDate": "2024-06-11" }, "paymentInformation": { "customer": { @@ -62418,15 +62653,14 @@ } }, "subscriptionInformation": { - "code": 1, "planId": 424242442, "name": "Gold subs", - "startDate": "2022-11-11" + "startDate": "2024-06-15" }, "orderInformation": { "amountDetails": { "billingAmount": 10, - "setupFee": 25 + "setupFee": 5 } } } @@ -62454,14 +62688,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "cancelSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62621,14 +62847,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "suspendSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62788,14 +63006,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "activateSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -63101,6 +63311,10 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, + "status": { + "type": "string", + "description": "The status of the submitted transaction." + }, "applicationInformation": { "type": "object", "properties": { @@ -64557,6 +64771,7 @@ "reconciliationId": "53703847LK9LPPXY", "merchantId": "pa_rbsworldpay", "submitTimeUtc": "2018-07-31T17:26:14Z", + "status": "PENDING", "applicationInformation": { "status": "PENDING", "reasonCode": "100", @@ -64609,12 +64824,12 @@ "cookiesAccepted": "no" }, "errorInformation": { - "reason": "1", + "reason": "MISSING_FIELD", "message": "abc", "details": [ { "field": "xyz", - "reason": "1" + "reason": "MISSING_FIELD" } ] }, @@ -65296,10 +65511,6 @@ "type": "integer", "description": "Total number of results." }, - "status": { - "type": "string", - "description": "The status of the submitted transaction." - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" @@ -65326,6 +65537,10 @@ "type": "string", "description": "Your CyberSource merchant ID." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, "applicationInformation": { "type": "object", "properties": { @@ -65354,6 +65569,14 @@ "type": "string", "description": "3-digit reason code that indicates why the customer profile payment succeeded or failed." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + }, "rCode": { "type": "string", "description": "Indicates whether the service request was successful.\nPossible values:\n\n- `-1`: An error occurred.\n- `0`: The request was declined.\n- `1`: The request was successful.\n" @@ -65450,6 +65673,15 @@ } } }, + "errorInformation": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + } + } + }, "fraudMarkingInformation": { "type": "object", "properties": { @@ -65802,7 +66034,6 @@ "sort": "id:asc, submitTimeUtc:asc", "count": 22, "totalCount": 22, - "status": "status", "submitTimeUtc": "2018-09-18T16:59:28Z", "_embedded": { "transactionSummaries": [ @@ -65810,8 +66041,8 @@ "id": "5217848115816817001541", "submitTimeUtc": "2018-03-23T06:00:11Z", "merchantId": "sandeep_wf", + "status": "TRANSMITTED", "applicationInformation": { - "status": "TRANSMITTED", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -65820,6 +66051,7 @@ { "name": "ics_service_fee_calculate", "status": "TRANSMITTED", + "reason": "MISSING_FIELD", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -65848,6 +66080,9 @@ "deviceInformation": { "ipAddress": "1.10.10.10" }, + "errorInformation": { + "reason": "MISSING_FIELD" + }, "fraudMarkingInformation": { "reason": "fraud txn" }, @@ -66117,10 +66352,6 @@ "type": "integer", "description": "Total number of results." }, - "status": { - "type": "string", - "description": "The status of the submitted transaction." - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" @@ -66147,6 +66378,10 @@ "type": "string", "description": "Your CyberSource merchant ID." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, "applicationInformation": { "type": "object", "properties": { @@ -66175,6 +66410,14 @@ "type": "string", "description": "3-digit reason code that indicates why the customer profile payment succeeded or failed." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + }, "rCode": { "type": "string", "description": "Indicates whether the service request was successful.\nPossible values:\n\n- `-1`: An error occurred.\n- `0`: The request was declined.\n- `1`: The request was successful.\n" @@ -66271,6 +66514,15 @@ } } }, + "errorInformation": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + } + } + }, "fraudMarkingInformation": { "type": "object", "properties": { @@ -66623,7 +66875,6 @@ "sort": "id:asc, submitTimeUtc:asc", "count": 22, "totalCount": 22, - "status": "status", "submitTimeUtc": "2018-09-18T16:59:28Z", "_embedded": { "transactionSummaries": [ @@ -66631,8 +66882,8 @@ "id": "5217848115816817001541", "submitTimeUtc": "2018-03-23T06:00:11Z", "merchantId": "sandeep_wf", + "status": "TRANSMITTED", "applicationInformation": { - "status": "TRANSMITTED", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -66641,6 +66892,7 @@ { "name": "ics_service_fee_calculate", "status": "TRANSMITTED", + "reason": "MISSING_FIELD", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -66669,6 +66921,9 @@ "deviceInformation": { "ipAddress": "1.10.10.10" }, + "errorInformation": { + "reason": "MISSING_FIELD" + }, "fraudMarkingInformation": { "reason": "fraud txn" }, diff --git a/test/Api/PlansApiTests.cs b/test/Api/PlansApiTests.cs index 0a880966..d0e7f4fa 100644 --- a/test/Api/PlansApiTests.cs +++ b/test/Api/PlansApiTests.cs @@ -72,8 +72,7 @@ public void ActivatePlanTest() { // TODO uncomment below to test the method and replace null with proper value //string id = null; - //Object activatePlanRequest = null; - //var response = instance.ActivatePlan(id, activatePlanRequest); + //var response = instance.ActivatePlan(id); //Assert.IsInstanceOf (response, "response is InlineResponse2004"); } @@ -97,8 +96,7 @@ public void DeactivatePlanTest() { // TODO uncomment below to test the method and replace null with proper value //string id = null; - //Object deactivatePlanRequest = null; - //var response = instance.DeactivatePlan(id, deactivatePlanRequest); + //var response = instance.DeactivatePlan(id); //Assert.IsInstanceOf (response, "response is InlineResponse2004"); } diff --git a/test/Api/SubscriptionsApiTests.cs b/test/Api/SubscriptionsApiTests.cs index 9835fb7f..952c6956 100644 --- a/test/Api/SubscriptionsApiTests.cs +++ b/test/Api/SubscriptionsApiTests.cs @@ -72,8 +72,7 @@ public void ActivateSubscriptionTest() { // TODO uncomment below to test the method and replace null with proper value //string id = null; - //Object activateSubscriptionRequest = null; - //var response = instance.ActivateSubscription(id, activateSubscriptionRequest); + //var response = instance.ActivateSubscription(id); //Assert.IsInstanceOf (response, "response is InlineResponse2009"); } @@ -85,8 +84,7 @@ public void CancelSubscriptionTest() { // TODO uncomment below to test the method and replace null with proper value //string id = null; - //Object cancelSubscriptionRequest = null; - //var response = instance.CancelSubscription(id, cancelSubscriptionRequest); + //var response = instance.CancelSubscription(id); //Assert.IsInstanceOf (response, "response is InlineResponse202"); } @@ -148,8 +146,7 @@ public void SuspendSubscriptionTest() { // TODO uncomment below to test the method and replace null with proper value //string id = null; - //Object suspendSubscriptionRequest = null; - //var response = instance.SuspendSubscription(id, suspendSubscriptionRequest); + //var response = instance.SuspendSubscription(id); //Assert.IsInstanceOf (response, "response is InlineResponse2021"); } diff --git a/test/Model/Ptsv2paymentsRecipientInformationTests.cs b/test/Model/Ptsv2paymentsRecipientInformationTests.cs index fca66466..806b0e84 100644 --- a/test/Model/Ptsv2paymentsRecipientInformationTests.cs +++ b/test/Model/Ptsv2paymentsRecipientInformationTests.cs @@ -96,6 +96,14 @@ public void PostalCodeTest() { // TODO unit test for the property 'PostalCode' } + /// + /// Test the property 'DateOfBirth' + /// + [Test] + public void DateOfBirthTest() + { + // TODO unit test for the property 'DateOfBirth' + } } diff --git a/test/Model/TssV2TransactionsGet200ResponseTests.cs b/test/Model/TssV2TransactionsGet200ResponseTests.cs index 706119f9..2ef449e5 100644 --- a/test/Model/TssV2TransactionsGet200ResponseTests.cs +++ b/test/Model/TssV2TransactionsGet200ResponseTests.cs @@ -105,6 +105,14 @@ public void SubmitTimeUTCTest() // TODO unit test for the property 'SubmitTimeUTC' } /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// /// Test the property 'ApplicationInformation' /// [Test] diff --git a/test/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplicationsTests.cs b/test/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplicationsTests.cs index e80e0d49..114617b6 100644 --- a/test/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplicationsTests.cs +++ b/test/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplicationsTests.cs @@ -81,6 +81,22 @@ public void ReasonCodeTest() // TODO unit test for the property 'ReasonCode' } /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Reason' + /// + [Test] + public void ReasonTest() + { + // TODO unit test for the property 'Reason' + } + /// /// Test the property 'RCode' /// [Test] diff --git a/test/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformationTests.cs b/test/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformationTests.cs new file mode 100644 index 00000000..41dea491 --- /dev/null +++ b/test/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformationTests.cs @@ -0,0 +1,78 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing TssV2TransactionsPost201ResponseEmbeddedErrorInformation + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class TssV2TransactionsPost201ResponseEmbeddedErrorInformationTests + { + // TODO uncomment below to declare an instance variable for TssV2TransactionsPost201ResponseEmbeddedErrorInformation + //private TssV2TransactionsPost201ResponseEmbeddedErrorInformation instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of TssV2TransactionsPost201ResponseEmbeddedErrorInformation + //instance = new TssV2TransactionsPost201ResponseEmbeddedErrorInformation(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of TssV2TransactionsPost201ResponseEmbeddedErrorInformation + /// + [Test] + public void TssV2TransactionsPost201ResponseEmbeddedErrorInformationInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" TssV2TransactionsPost201ResponseEmbeddedErrorInformation + //Assert.IsInstanceOfType (instance, "variable 'instance' is a TssV2TransactionsPost201ResponseEmbeddedErrorInformation"); + } + + /// + /// Test the property 'Reason' + /// + [Test] + public void ReasonTest() + { + // TODO unit test for the property 'Reason' + } + + } + +} diff --git a/test/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummariesTests.cs b/test/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummariesTests.cs index 5af11d72..b4a1463b 100644 --- a/test/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummariesTests.cs +++ b/test/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummariesTests.cs @@ -89,6 +89,14 @@ public void MerchantIdTest() // TODO unit test for the property 'MerchantId' } /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// /// Test the property 'ApplicationInformation' /// [Test] @@ -129,6 +137,14 @@ public void DeviceInformationTest() // TODO unit test for the property 'DeviceInformation' } /// + /// Test the property 'ErrorInformation' + /// + [Test] + public void ErrorInformationTest() + { + // TODO unit test for the property 'ErrorInformation' + } + /// /// Test the property 'FraudMarkingInformation' /// [Test] diff --git a/test/Model/TssV2TransactionsPost201ResponseTests.cs b/test/Model/TssV2TransactionsPost201ResponseTests.cs index f62daa9f..9753dcf4 100644 --- a/test/Model/TssV2TransactionsPost201ResponseTests.cs +++ b/test/Model/TssV2TransactionsPost201ResponseTests.cs @@ -145,14 +145,6 @@ public void TotalCountTest() // TODO unit test for the property 'TotalCount' } /// - /// Test the property 'Status' - /// - [Test] - public void StatusTest() - { - // TODO unit test for the property 'Status' - } - /// /// Test the property 'SubmitTimeUtc' /// [Test] diff --git a/test/cybersource-rest-client-dotnet.Test.csproj b/test/cybersource-rest-client-dotnet.Test.csproj index fd0dab7b..2fdea6d5 100644 --- a/test/cybersource-rest-client-dotnet.Test.csproj +++ b/test/cybersource-rest-client-dotnet.Test.csproj @@ -94,7 +94,7 @@ OpenAPI spec version: 0.0.1 - {EBEEE7B2-2979-4044-BE21-906E1C28B64B} + {E2540C66-D1C4-4AB1-A961-F027431F456A} cybersource-rest-client-dotnet From 8abafd0f9c7c08fa7dfb5dda99ca1b89bbe22e59 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Mon, 26 Jun 2023 13:54:00 +0530 Subject: [PATCH 08/10] june spec changes --- Api/AsymmetricKeyManagementApi.cs | 13 ++ Api/BatchesApi.cs | 5 + Api/CaptureApi.cs | 5 + Api/ChargebackDetailsApi.cs | 1 + Api/ChargebackSummariesApi.cs | 1 + Api/ConversionDetailsApi.cs | 1 + Api/CreditApi.cs | 5 + Api/CustomerApi.cs | 9 + Api/CustomerPaymentInstrumentApi.cs | 9 + Api/CustomerShippingAddressApi.cs | 9 + Api/DecisionManagerApi.cs | 13 ++ Api/DownloadDTDApi.cs | 1 + Api/DownloadXSDApi.cs | 1 + Api/EMVTagDetailsApi.cs | 5 + Api/InstrumentIdentifierApi.cs | 13 ++ Api/InterchangeClearingLevelDetailsApi.cs | 1 + Api/InvoiceSettingsApi.cs | 5 + Api/InvoicesApi.cs | 9 + Api/KeymanagementApi.cs | 1 + Api/KeymanagementpasswordApi.cs | 5 + Api/KeymanagementpgpApi.cs | 5 + Api/KeymanagementscmpApi.cs | 5 + Api/MicroformIntegrationApi.cs | 5 + Api/NetFundingsApi.cs | 1 + Api/NotificationOfChangesApi.cs | 1 + Api/PayerAuthenticationApi.cs | 13 ++ Api/PaymentBatchSummariesApi.cs | 1 + Api/PaymentInstrumentApi.cs | 9 + Api/PaymentsApi.cs | 13 ++ Api/PayoutsApi.cs | 5 + Api/PlansApi.cs | 41 ++-- Api/PurchaseAndRefundDetailsApi.cs | 1 + Api/Push_FundsApi.cs | 5 + Api/RefundApi.cs | 9 + Api/ReportDefinitionsApi.cs | 1 + Api/ReportDownloadsApi.cs | 1 + Api/ReportSubscriptionsApi.cs | 9 + Api/ReportsApi.cs | 5 + Api/RetrievalDetailsApi.cs | 1 + Api/RetrievalSummariesApi.cs | 1 + Api/ReversalApi.cs | 9 + Api/SearchTransactionsApi.cs | 5 + Api/SecureFileShareApi.cs | 1 + Api/SubscriptionsApi.cs | 41 ++-- Api/SymmetricKeyManagementApi.cs | 13 ++ Api/TaxesApi.cs | 9 + Api/TokenApi.cs | 1 + Api/TransactionBatchesApi.cs | 1 + Api/TransactionDetailsApi.cs | 1 + Api/TransientTokenDataApi.cs | 1 + Api/UnifiedCheckoutCaptureContextApi.cs | 5 + Api/UserManagementApi.cs | 1 + Api/UserManagementSearchApi.cs | 5 + Api/VerificationApi.cs | 9 + Api/VoidApi.cs | 21 ++ Client/ApiClient.cs | 14 +- Model/PtsV2PaymentsPost201Response.cs | 18 +- ...2PaymentsPost201ResponseEmbeddedActions.cs | 192 ++++++++++++++++++ ...tsPost201ResponseEmbeddedActionsCAPTURE.cs | 163 +++++++++++++++ ...seEmbeddedActionsCONSUMERAUTHENTICATION.cs | 129 ++++++++++++ ...sPost201ResponseEmbeddedActionsDECISION.cs | 146 +++++++++++++ ...sponseEmbeddedActionsWATCHLISTSCREENING.cs | 146 +++++++++++++ Model/Ptsv2paymentsProcessingInformation.cs | 6 +- cybersource-rest-client-dotnet.csproj | 2 +- cybersource-rest-client-dotnet.sln | 10 +- docs/PlansApi.md | 16 +- docs/PtsV2PaymentsPost201Response.md | 1 + ...2PaymentsPost201ResponseEmbeddedActions.md | 13 ++ ...tsPost201ResponseEmbeddedActionsCAPTURE.md | 11 + ...seEmbeddedActionsCONSUMERAUTHENTICATION.md | 9 + ...sPost201ResponseEmbeddedActionsDECISION.md | 10 + ...sponseEmbeddedActionsWATCHLISTSCREENING.md | 10 + docs/Ptsv2paymentsProcessingInformation.md | 2 +- docs/SubscriptionsApi.md | 16 +- generator/cybersource-rest-spec.json | 189 ++++++++++++++++- ...t201ResponseEmbeddedActionsCAPTURETests.cs | 94 +++++++++ ...eddedActionsCONSUMERAUTHENTICATIONTests.cs | 78 +++++++ ...201ResponseEmbeddedActionsDECISIONTests.cs | 86 ++++++++ ...entsPost201ResponseEmbeddedActionsTests.cs | 110 ++++++++++ ...eEmbeddedActionsWATCHLISTSCREENINGTests.cs | 86 ++++++++ .../PtsV2PaymentsPost201ResponseTests.cs | 8 + ...cybersource-rest-client-dotnet.Test.csproj | 2 +- 82 files changed, 1866 insertions(+), 68 deletions(-) create mode 100644 Model/PtsV2PaymentsPost201ResponseEmbeddedActions.cs create mode 100644 Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.cs create mode 100644 Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs create mode 100644 Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs create mode 100644 Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md create mode 100644 test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURETests.cs create mode 100644 test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs create mode 100644 test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs create mode 100644 test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsTests.cs create mode 100644 test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs diff --git a/Api/AsymmetricKeyManagementApi.cs b/Api/AsymmetricKeyManagementApi.cs index 69b47482..eadd32ab 100644 --- a/Api/AsymmetricKeyManagementApi.cs +++ b/Api/AsymmetricKeyManagementApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -399,6 +400,8 @@ public ApiResponse< KmsV2KeysAsymPost201Response > CreateP12KeysWithHttpInfo (Cr if (createP12KeysRequest != null && createP12KeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createP12KeysRequest = (CreateP12KeysRequest)sdkTracker.InsertDeveloperIdTracker(createP12KeysRequest, createP12KeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createP12KeysRequest); // http body (model) parameter } else @@ -498,6 +501,8 @@ public async System.Threading.Tasks.Task DeleteBulkP12KeysWithH if (deleteBulkP12KeysRequest != null && deleteBulkP12KeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + deleteBulkP12KeysRequest = (DeleteBulkP12KeysRequest)sdkTracker.InsertDeveloperIdTracker(deleteBulkP12KeysRequest, deleteBulkP12KeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(deleteBulkP12KeysRequest); // http body (model) parameter } else @@ -694,6 +701,8 @@ public async System.Threading.Tasks.Task UpdateAsymKeyWithHttpInfo (string keyId, UpdateAsym logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updateAsymKeysRequest != null && updateAsymKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updateAsymKeysRequest = (UpdateAsymKeysRequest)sdkTracker.InsertDeveloperIdTracker(updateAsymKeysRequest, updateAsymKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updateAsymKeysRequest); // http body (model) parameter } else @@ -1104,6 +1115,8 @@ public async System.Threading.Tasks.Task> UpdateAsymKeyAsync logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updateAsymKeysRequest != null && updateAsymKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updateAsymKeysRequest = (UpdateAsymKeysRequest)sdkTracker.InsertDeveloperIdTracker(updateAsymKeysRequest, updateAsymKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updateAsymKeysRequest); // http body (model) parameter } else diff --git a/Api/BatchesApi.cs b/Api/BatchesApi.cs index 27146e89..a4b75b99 100644 --- a/Api/BatchesApi.cs +++ b/Api/BatchesApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -1001,6 +1002,8 @@ public ApiResponse< InlineResponse2022 > PostBatchWithHttpInfo (Body body) if (body != null && body.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + body = (Body)sdkTracker.InsertDeveloperIdTracker(body, body.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter } else @@ -1100,6 +1103,8 @@ public async System.Threading.Tasks.Task> PostBa if (body != null && body.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + body = (Body)sdkTracker.InsertDeveloperIdTracker(body, body.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter } else diff --git a/Api/CaptureApi.cs b/Api/CaptureApi.cs index 4bcdf66d..0451a485 100644 --- a/Api/CaptureApi.cs +++ b/Api/CaptureApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -286,6 +287,8 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (capturePaymentRequest != null && capturePaymentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + capturePaymentRequest = (CapturePaymentRequest)sdkTracker.InsertDeveloperIdTracker(capturePaymentRequest, capturePaymentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(capturePaymentRequest); // http body (model) parameter } else @@ -398,6 +401,8 @@ public async System.Threading.Tasks.Task CreateCreditWithHttpInfo (Crea if (createCreditRequest != null && createCreditRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createCreditRequest = (CreateCreditRequest)sdkTracker.InsertDeveloperIdTracker(createCreditRequest, createCreditRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createCreditRequest); // http body (model) parameter } else @@ -368,6 +371,8 @@ public async System.Threading.Tasks.Task PatchCustomerWithHttpInfo (string c } if (patchCustomerRequest != null && patchCustomerRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + patchCustomerRequest = (PatchCustomerRequest)sdkTracker.InsertDeveloperIdTracker(patchCustomerRequest, patchCustomerRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(patchCustomerRequest); // http body (model) parameter } else @@ -964,6 +967,8 @@ public async System.Threading.Tasks.Task> Pa } if (patchCustomerRequest != null && patchCustomerRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + patchCustomerRequest = (PatchCustomerRequest)sdkTracker.InsertDeveloperIdTracker(patchCustomerRequest, patchCustomerRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(patchCustomerRequest); // http body (model) parameter } else @@ -1067,6 +1072,8 @@ public ApiResponse< TmsV2CustomersResponse > PostCustomerWithHttpInfo (PostCusto } if (postCustomerRequest != null && postCustomerRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postCustomerRequest = (PostCustomerRequest)sdkTracker.InsertDeveloperIdTracker(postCustomerRequest, postCustomerRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postCustomerRequest); // http body (model) parameter } else @@ -1172,6 +1179,8 @@ public async System.Threading.Tasks.Task> Po } if (postCustomerRequest != null && postCustomerRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postCustomerRequest = (PostCustomerRequest)sdkTracker.InsertDeveloperIdTracker(postCustomerRequest, postCustomerRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postCustomerRequest); // http body (model) parameter } else diff --git a/Api/CustomerPaymentInstrumentApi.cs b/Api/CustomerPaymentInstrumentApi.cs index 19f1002c..ea2dfefc 100644 --- a/Api/CustomerPaymentInstrumentApi.cs +++ b/Api/CustomerPaymentInstrumentApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -1203,6 +1204,8 @@ public ApiResponse< Tmsv2customersEmbeddedDefaultPaymentInstrument > PatchCustom } if (patchCustomerPaymentInstrumentRequest != null && patchCustomerPaymentInstrumentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + patchCustomerPaymentInstrumentRequest = (PatchCustomerPaymentInstrumentRequest)sdkTracker.InsertDeveloperIdTracker(patchCustomerPaymentInstrumentRequest, patchCustomerPaymentInstrumentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(patchCustomerPaymentInstrumentRequest); // http body (model) parameter } else @@ -1340,6 +1343,8 @@ public async System.Threading.Tasks.Task PostCustome } if (postCustomerPaymentInstrumentRequest != null && postCustomerPaymentInstrumentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postCustomerPaymentInstrumentRequest = (PostCustomerPaymentInstrumentRequest)sdkTracker.InsertDeveloperIdTracker(postCustomerPaymentInstrumentRequest, postCustomerPaymentInstrumentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postCustomerPaymentInstrumentRequest); // http body (model) parameter } else @@ -1574,6 +1581,8 @@ public async System.Threading.Tasks.Task PatchCustomer } if (patchCustomerShippingAddressRequest != null && patchCustomerShippingAddressRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + patchCustomerShippingAddressRequest = (PatchCustomerShippingAddressRequest)sdkTracker.InsertDeveloperIdTracker(patchCustomerShippingAddressRequest, patchCustomerShippingAddressRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(patchCustomerShippingAddressRequest); // http body (model) parameter } else @@ -1340,6 +1343,8 @@ public async System.Threading.Tasks.Task PostCustomerS } if (postCustomerShippingAddressRequest != null && postCustomerShippingAddressRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postCustomerShippingAddressRequest = (PostCustomerShippingAddressRequest)sdkTracker.InsertDeveloperIdTracker(postCustomerShippingAddressRequest, postCustomerShippingAddressRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postCustomerShippingAddressRequest); // http body (model) parameter } else @@ -1574,6 +1581,8 @@ public async System.Threading.Tasks.Task AddNegativeWithHttpInfo (strin logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (addNegativeListRequest != null && addNegativeListRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + addNegativeListRequest = (AddNegativeListRequest)sdkTracker.InsertDeveloperIdTracker(addNegativeListRequest, addNegativeListRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(addNegativeListRequest); // http body (model) parameter } else @@ -486,6 +489,8 @@ public async System.Threading.Tasks.Task CreateBundledDecisionManage if (createBundledDecisionManagerCaseRequest != null && createBundledDecisionManagerCaseRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createBundledDecisionManagerCaseRequest = (CreateBundledDecisionManagerCaseRequest)sdkTracker.InsertDeveloperIdTracker(createBundledDecisionManagerCaseRequest, createBundledDecisionManagerCaseRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createBundledDecisionManagerCaseRequest); // http body (model) parameter } else @@ -682,6 +689,8 @@ public async System.Threading.Tasks.Task FraudUpdateWithHttpInfo (strin logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (fraudMarkingActionRequest != null && fraudMarkingActionRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + fraudMarkingActionRequest = (FraudMarkingActionRequest)sdkTracker.InsertDeveloperIdTracker(fraudMarkingActionRequest, fraudMarkingActionRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(fraudMarkingActionRequest); // http body (model) parameter } else @@ -904,6 +915,8 @@ public async System.Threading.Tasks.Task ParseEmvTagsWithHttpInfo (Body if (body != null && body.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + body = (Body)sdkTracker.InsertDeveloperIdTracker(body, body.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter } else @@ -568,6 +571,8 @@ public async System.Threading.Tasks.Task PostInstrumentIdentifierEnrollmentWithHttpInfo (strin } if (postInstrumentIdentifierEnrollmentRequest != null && postInstrumentIdentifierEnrollmentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postInstrumentIdentifierEnrollmentRequest = (PostInstrumentIdentifierEnrollmentRequest)sdkTracker.InsertDeveloperIdTracker(postInstrumentIdentifierEnrollmentRequest, postInstrumentIdentifierEnrollmentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postInstrumentIdentifierEnrollmentRequest); // http body (model) parameter } else @@ -1733,6 +1744,8 @@ public async System.Threading.Tasks.Task> PostInstrumentIden } if (postInstrumentIdentifierEnrollmentRequest != null && postInstrumentIdentifierEnrollmentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postInstrumentIdentifierEnrollmentRequest = (PostInstrumentIdentifierEnrollmentRequest)sdkTracker.InsertDeveloperIdTracker(postInstrumentIdentifierEnrollmentRequest, postInstrumentIdentifierEnrollmentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postInstrumentIdentifierEnrollmentRequest); // http body (model) parameter } else diff --git a/Api/InterchangeClearingLevelDetailsApi.cs b/Api/InterchangeClearingLevelDetailsApi.cs index 0a69bdea..fb6fb5bf 100644 --- a/Api/InterchangeClearingLevelDetailsApi.cs +++ b/Api/InterchangeClearingLevelDetailsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/InvoiceSettingsApi.cs b/Api/InvoiceSettingsApi.cs index ef957a62..9a4aea0a 100644 --- a/Api/InvoiceSettingsApi.cs +++ b/Api/InvoiceSettingsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -469,6 +470,8 @@ public ApiResponse< InvoicingV2InvoiceSettingsGet200Response > UpdateInvoiceSett if (invoiceSettingsRequest != null && invoiceSettingsRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + invoiceSettingsRequest = (InvoiceSettingsRequest)sdkTracker.InsertDeveloperIdTracker(invoiceSettingsRequest, invoiceSettingsRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(invoiceSettingsRequest); // http body (model) parameter } else @@ -568,6 +571,8 @@ public async System.Threading.Tasks.Task CreateInvoiceWithHttpIn if (createInvoiceRequest != null && createInvoiceRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createInvoiceRequest = (CreateInvoiceRequest)sdkTracker.InsertDeveloperIdTracker(createInvoiceRequest, createInvoiceRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createInvoiceRequest); // http body (model) parameter } else @@ -590,6 +593,8 @@ public async System.Threading.Tasks.Task UpdateInvoiceWithHttpIn logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updateInvoiceRequest != null && updateInvoiceRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updateInvoiceRequest = (UpdateInvoiceRequest)sdkTracker.InsertDeveloperIdTracker(updateInvoiceRequest, updateInvoiceRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updateInvoiceRequest); // http body (model) parameter } else @@ -1604,6 +1611,8 @@ public async System.Threading.Tasks.Task UpdatePasswordWithHttpInfo (string keyId, UpdatePas logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePasswordKeysRequest != null && updatePasswordKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePasswordKeysRequest = (UpdatePasswordKeysRequest)sdkTracker.InsertDeveloperIdTracker(updatePasswordKeysRequest, updatePasswordKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePasswordKeysRequest); // http body (model) parameter } else @@ -398,6 +401,8 @@ public async System.Threading.Tasks.Task> UpdatePasswordAsyn logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePasswordKeysRequest != null && updatePasswordKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePasswordKeysRequest = (UpdatePasswordKeysRequest)sdkTracker.InsertDeveloperIdTracker(updatePasswordKeysRequest, updatePasswordKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePasswordKeysRequest); // http body (model) parameter } else diff --git a/Api/KeymanagementpgpApi.cs b/Api/KeymanagementpgpApi.cs index b7c36766..3606f18b 100644 --- a/Api/KeymanagementpgpApi.cs +++ b/Api/KeymanagementpgpApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -286,6 +287,8 @@ public ApiResponse< Object > UpdatePGPWithHttpInfo (string keyId, UpdatePGPKeysR logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePGPKeysRequest != null && updatePGPKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePGPKeysRequest = (UpdatePGPKeysRequest)sdkTracker.InsertDeveloperIdTracker(updatePGPKeysRequest, updatePGPKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePGPKeysRequest); // http body (model) parameter } else @@ -398,6 +401,8 @@ public async System.Threading.Tasks.Task> UpdatePGPAsyncWith logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePGPKeysRequest != null && updatePGPKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePGPKeysRequest = (UpdatePGPKeysRequest)sdkTracker.InsertDeveloperIdTracker(updatePGPKeysRequest, updatePGPKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePGPKeysRequest); // http body (model) parameter } else diff --git a/Api/KeymanagementscmpApi.cs b/Api/KeymanagementscmpApi.cs index 04371e61..7d6f44a8 100644 --- a/Api/KeymanagementscmpApi.cs +++ b/Api/KeymanagementscmpApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -286,6 +287,8 @@ public ApiResponse< Object > UpdateSCMPWithHttpInfo (string keyId, UpdatePGPKeys logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePGPKeysRequest != null && updatePGPKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePGPKeysRequest = (UpdatePGPKeysRequest1)sdkTracker.InsertDeveloperIdTracker(updatePGPKeysRequest, updatePGPKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePGPKeysRequest); // http body (model) parameter } else @@ -398,6 +401,8 @@ public async System.Threading.Tasks.Task> UpdateSCMPAsyncWit logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePGPKeysRequest != null && updatePGPKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePGPKeysRequest = (UpdatePGPKeysRequest1)sdkTracker.InsertDeveloperIdTracker(updatePGPKeysRequest, updatePGPKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePGPKeysRequest); // http body (model) parameter } else diff --git a/Api/MicroformIntegrationApi.cs b/Api/MicroformIntegrationApi.cs index 25a17b20..c8c46e7b 100644 --- a/Api/MicroformIntegrationApi.cs +++ b/Api/MicroformIntegrationApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -269,6 +270,8 @@ public ApiResponse< string > GenerateCaptureContextWithHttpInfo (GenerateCapture if (generateCaptureContextRequest != null && generateCaptureContextRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + generateCaptureContextRequest = (GenerateCaptureContextRequest)sdkTracker.InsertDeveloperIdTracker(generateCaptureContextRequest, generateCaptureContextRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(generateCaptureContextRequest); // http body (model) parameter } else @@ -368,6 +371,8 @@ public async System.Threading.Tasks.Task> GenerateCaptureCon if (generateCaptureContextRequest != null && generateCaptureContextRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + generateCaptureContextRequest = (GenerateCaptureContextRequest)sdkTracker.InsertDeveloperIdTracker(generateCaptureContextRequest, generateCaptureContextRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(generateCaptureContextRequest); // http body (model) parameter } else diff --git a/Api/NetFundingsApi.cs b/Api/NetFundingsApi.cs index 94531fad..eb1dcb8c 100644 --- a/Api/NetFundingsApi.cs +++ b/Api/NetFundingsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/NotificationOfChangesApi.cs b/Api/NotificationOfChangesApi.cs index 24cc8e39..6965649c 100644 --- a/Api/NotificationOfChangesApi.cs +++ b/Api/NotificationOfChangesApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/PayerAuthenticationApi.cs b/Api/PayerAuthenticationApi.cs index d80a9172..34fa906a 100644 --- a/Api/PayerAuthenticationApi.cs +++ b/Api/PayerAuthenticationApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -353,6 +354,8 @@ public ApiResponse< RiskV1AuthenticationsPost201Response > CheckPayerAuthEnrollm if (checkPayerAuthEnrollmentRequest != null && checkPayerAuthEnrollmentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + checkPayerAuthEnrollmentRequest = (CheckPayerAuthEnrollmentRequest)sdkTracker.InsertDeveloperIdTracker(checkPayerAuthEnrollmentRequest, checkPayerAuthEnrollmentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(checkPayerAuthEnrollmentRequest); // http body (model) parameter } else @@ -452,6 +455,8 @@ public async System.Threading.Tasks.Task PayerAuthSetupWi if (payerAuthSetupRequest != null && payerAuthSetupRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + payerAuthSetupRequest = (PayerAuthSetupRequest)sdkTracker.InsertDeveloperIdTracker(payerAuthSetupRequest, payerAuthSetupRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(payerAuthSetupRequest); // http body (model) parameter } else @@ -648,6 +655,8 @@ public async System.Threading.Tasks.Task ValidateAuthent if (validateRequest != null && validateRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + validateRequest = (ValidateRequest)sdkTracker.InsertDeveloperIdTracker(validateRequest, validateRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(validateRequest); // http body (model) parameter } else @@ -844,6 +855,8 @@ public async System.Threading.Tasks.Task PatchPaymen } if (patchPaymentInstrumentRequest != null && patchPaymentInstrumentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + patchPaymentInstrumentRequest = (PatchPaymentInstrumentRequest)sdkTracker.InsertDeveloperIdTracker(patchPaymentInstrumentRequest, patchPaymentInstrumentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(patchPaymentInstrumentRequest); // http body (model) parameter } else @@ -964,6 +967,8 @@ public async System.Threading.Tasks.Task PostPayment } if (postPaymentInstrumentRequest != null && postPaymentInstrumentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + postPaymentInstrumentRequest = (PostPaymentInstrumentRequest)sdkTracker.InsertDeveloperIdTracker(postPaymentInstrumentRequest, postPaymentInstrumentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(postPaymentInstrumentRequest); // http body (model) parameter } else @@ -1172,6 +1179,8 @@ public async System.Threading.Tasks.Task CreatePaymentWithHttpInfo (Cr if (createPaymentRequest != null && createPaymentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createPaymentRequest = (CreatePaymentRequest)sdkTracker.InsertDeveloperIdTracker(createPaymentRequest, createPaymentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createPaymentRequest); // http body (model) parameter } else @@ -460,6 +463,8 @@ public async System.Threading.Tasks.Task IncrementAut logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (incrementAuthRequest != null && incrementAuthRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + incrementAuthRequest = (IncrementAuthRequest)sdkTracker.InsertDeveloperIdTracker(incrementAuthRequest, incrementAuthRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(incrementAuthRequest); // http body (model) parameter } else @@ -682,6 +689,8 @@ public async System.Threading.Tasks.Task RefreshPaymentStatusWithHttp logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (refreshPaymentStatusRequest != null && refreshPaymentStatusRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + refreshPaymentStatusRequest = (RefreshPaymentStatusRequest)sdkTracker.InsertDeveloperIdTracker(refreshPaymentStatusRequest, refreshPaymentStatusRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(refreshPaymentStatusRequest); // http body (model) parameter } else @@ -904,6 +915,8 @@ public async System.Threading.Tasks.Task OctCreatePaymentWithHttpInfo ( if (octCreatePaymentRequest != null && octCreatePaymentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + octCreatePaymentRequest = (OctCreatePaymentRequest)sdkTracker.InsertDeveloperIdTracker(octCreatePaymentRequest, octCreatePaymentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(octCreatePaymentRequest); // http body (model) parameter } else @@ -368,6 +371,8 @@ public async System.Threading.Tasks.Task ActivatePlanWithHttpInfo (string id) // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -664,7 +665,7 @@ public async System.Threading.Tasks.Task> Activa // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -757,7 +758,7 @@ public ApiResponse< InlineResponse201 > CreatePlanWithHttpInfo (CreatePlanReques // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -767,6 +768,8 @@ public ApiResponse< InlineResponse201 > CreatePlanWithHttpInfo (CreatePlanReques if (createPlanRequest != null && createPlanRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createPlanRequest = (CreatePlanRequest)sdkTracker.InsertDeveloperIdTracker(createPlanRequest, createPlanRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createPlanRequest); // http body (model) parameter } else @@ -856,7 +859,7 @@ public async System.Threading.Tasks.Task> CreateP // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -866,6 +869,8 @@ public async System.Threading.Tasks.Task> CreateP if (createPlanRequest != null && createPlanRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createPlanRequest = (CreatePlanRequest)sdkTracker.InsertDeveloperIdTracker(createPlanRequest, createPlanRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createPlanRequest); // http body (model) parameter } else @@ -953,7 +958,7 @@ public ApiResponse< InlineResponse2004 > DeactivatePlanWithHttpInfo (string id) // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1048,7 +1053,7 @@ public async System.Threading.Tasks.Task> Deacti // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1141,7 +1146,7 @@ public ApiResponse< InlineResponse2002 > DeletePlanWithHttpInfo (string id) // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1236,7 +1241,7 @@ public async System.Threading.Tasks.Task> Delete // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1329,7 +1334,7 @@ public ApiResponse< InlineResponse2001 > GetPlanWithHttpInfo (string id) // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1424,7 +1429,7 @@ public async System.Threading.Tasks.Task> GetPla // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1509,7 +1514,7 @@ public ApiResponse< InlineResponse2005 > GetPlanCodeWithHttpInfo () // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1591,7 +1596,7 @@ public async System.Threading.Tasks.Task> GetPla // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1681,7 +1686,7 @@ public ApiResponse< InlineResponse200 > GetPlansWithHttpInfo (int? offset = null // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1798,7 +1803,7 @@ public async System.Threading.Tasks.Task> GetPlan // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1919,7 +1924,7 @@ public ApiResponse< InlineResponse2003 > UpdatePlanWithHttpInfo (string id, Upda // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1934,6 +1939,8 @@ public ApiResponse< InlineResponse2003 > UpdatePlanWithHttpInfo (string id, Upda logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePlanRequest != null && updatePlanRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePlanRequest = (UpdatePlanRequest)sdkTracker.InsertDeveloperIdTracker(updatePlanRequest, updatePlanRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePlanRequest); // http body (model) parameter } else @@ -2031,7 +2038,7 @@ public async System.Threading.Tasks.Task> Update // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -2046,6 +2053,8 @@ public async System.Threading.Tasks.Task> Update logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updatePlanRequest != null && updatePlanRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updatePlanRequest = (UpdatePlanRequest)sdkTracker.InsertDeveloperIdTracker(updatePlanRequest, updatePlanRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updatePlanRequest); // http body (model) parameter } else diff --git a/Api/PurchaseAndRefundDetailsApi.cs b/Api/PurchaseAndRefundDetailsApi.cs index 598c2a3e..527518ef 100644 --- a/Api/PurchaseAndRefundDetailsApi.cs +++ b/Api/PurchaseAndRefundDetailsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/Push_FundsApi.cs b/Api/Push_FundsApi.cs index da073507..fba434fe 100644 --- a/Api/Push_FundsApi.cs +++ b/Api/Push_FundsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -365,6 +366,8 @@ public ApiResponse< PushFunds201Response > CreatePushFundsTransferWithHttpInfo ( } if (pushFundsRequest != null && pushFundsRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + pushFundsRequest = (PushFundsRequest)sdkTracker.InsertDeveloperIdTracker(pushFundsRequest, pushFundsRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(pushFundsRequest); // http body (model) parameter } else @@ -536,6 +539,8 @@ public async System.Threading.Tasks.Task> Crea } if (pushFundsRequest != null && pushFundsRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + pushFundsRequest = (PushFundsRequest)sdkTracker.InsertDeveloperIdTracker(pushFundsRequest, pushFundsRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(pushFundsRequest); // http body (model) parameter } else diff --git a/Api/RefundApi.cs b/Api/RefundApi.cs index 2bf08e2c..216f2eb6 100644 --- a/Api/RefundApi.cs +++ b/Api/RefundApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -332,6 +333,8 @@ public ApiResponse< PtsV2PaymentsRefundPost201Response > RefundCaptureWithHttpIn logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (refundCaptureRequest != null && refundCaptureRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + refundCaptureRequest = (RefundCaptureRequest)sdkTracker.InsertDeveloperIdTracker(refundCaptureRequest, refundCaptureRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(refundCaptureRequest); // http body (model) parameter } else @@ -444,6 +447,8 @@ public async System.Threading.Tasks.Task RefundPaymentWithHttpIn logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (refundPaymentRequest != null && refundPaymentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + refundPaymentRequest = (RefundPaymentRequest)sdkTracker.InsertDeveloperIdTracker(refundPaymentRequest, refundPaymentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(refundPaymentRequest); // http body (model) parameter } else @@ -666,6 +673,8 @@ public async System.Threading.Tasks.Task CreateStandardOrClassicSubscriptionWithHttpInfo (Pred logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}"); if (predefinedSubscriptionRequestBean != null && predefinedSubscriptionRequestBean.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + predefinedSubscriptionRequestBean = (PredefinedSubscriptionRequestBean)sdkTracker.InsertDeveloperIdTracker(predefinedSubscriptionRequestBean, predefinedSubscriptionRequestBean.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(predefinedSubscriptionRequestBean); // http body (model) parameter } else @@ -561,6 +564,8 @@ public async System.Threading.Tasks.Task> CreateStandardOrCl logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}"); if (predefinedSubscriptionRequestBean != null && predefinedSubscriptionRequestBean.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + predefinedSubscriptionRequestBean = (PredefinedSubscriptionRequestBean)sdkTracker.InsertDeveloperIdTracker(predefinedSubscriptionRequestBean, predefinedSubscriptionRequestBean.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(predefinedSubscriptionRequestBean); // http body (model) parameter } else @@ -663,6 +668,8 @@ public ApiResponse CreateSubscriptionWithHttpInfo (CreateReportSubscript logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}"); if (createReportSubscriptionRequest != null && createReportSubscriptionRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createReportSubscriptionRequest = (CreateReportSubscriptionRequest)sdkTracker.InsertDeveloperIdTracker(createReportSubscriptionRequest, createReportSubscriptionRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createReportSubscriptionRequest); // http body (model) parameter } else @@ -767,6 +774,8 @@ public async System.Threading.Tasks.Task> CreateSubscription logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}"); if (createReportSubscriptionRequest != null && createReportSubscriptionRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createReportSubscriptionRequest = (CreateReportSubscriptionRequest)sdkTracker.InsertDeveloperIdTracker(createReportSubscriptionRequest, createReportSubscriptionRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createReportSubscriptionRequest); // http body (model) parameter } else diff --git a/Api/ReportsApi.cs b/Api/ReportsApi.cs index e9965791..c541dae6 100644 --- a/Api/ReportsApi.cs +++ b/Api/ReportsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -397,6 +398,8 @@ public ApiResponse CreateReportWithHttpInfo (CreateAdhocReportRequest cr logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}"); if (createAdhocReportRequest != null && createAdhocReportRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createAdhocReportRequest = (CreateAdhocReportRequest)sdkTracker.InsertDeveloperIdTracker(createAdhocReportRequest, createAdhocReportRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createAdhocReportRequest); // http body (model) parameter } else @@ -501,6 +504,8 @@ public async System.Threading.Tasks.Task> CreateReportAsyncW logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}"); if (createAdhocReportRequest != null && createAdhocReportRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createAdhocReportRequest = (CreateAdhocReportRequest)sdkTracker.InsertDeveloperIdTracker(createAdhocReportRequest, createAdhocReportRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createAdhocReportRequest); // http body (model) parameter } else diff --git a/Api/RetrievalDetailsApi.cs b/Api/RetrievalDetailsApi.cs index 066a1b0c..206eb91b 100644 --- a/Api/RetrievalDetailsApi.cs +++ b/Api/RetrievalDetailsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/RetrievalSummariesApi.cs b/Api/RetrievalSummariesApi.cs index 4d261d29..cbec02e0 100644 --- a/Api/RetrievalSummariesApi.cs +++ b/Api/RetrievalSummariesApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/ReversalApi.cs b/Api/ReversalApi.cs index cc637457..7f8e0a1d 100644 --- a/Api/ReversalApi.cs +++ b/Api/ReversalApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -328,6 +329,8 @@ public ApiResponse< PtsV2PaymentsReversalsPost201Response > AuthReversalWithHttp logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (authReversalRequest != null && authReversalRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + authReversalRequest = (AuthReversalRequest)sdkTracker.InsertDeveloperIdTracker(authReversalRequest, authReversalRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(authReversalRequest); // http body (model) parameter } else @@ -440,6 +443,8 @@ public async System.Threading.Tasks.Task MitReversalWithHttpI if (mitReversalRequest != null && mitReversalRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + mitReversalRequest = (MitReversalRequest)sdkTracker.InsertDeveloperIdTracker(mitReversalRequest, mitReversalRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(mitReversalRequest); // http body (model) parameter } else @@ -636,6 +643,8 @@ public async System.Threading.Tasks.Task CreateSearchWithHttpInfo if (createSearchRequest != null && createSearchRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createSearchRequest = (CreateSearchRequest)sdkTracker.InsertDeveloperIdTracker(createSearchRequest, createSearchRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createSearchRequest); // http body (model) parameter } else @@ -410,6 +413,8 @@ public async System.Threading.Tasks.Task ActivateSubscriptionWithHttpInfo (strin // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -660,7 +661,7 @@ public async System.Threading.Tasks.Task> Activa // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -753,7 +754,7 @@ public ApiResponse< InlineResponse202 > CancelSubscriptionWithHttpInfo (string i // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -848,7 +849,7 @@ public async System.Threading.Tasks.Task> CancelS // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -941,7 +942,7 @@ public ApiResponse< InlineResponse2011 > CreateSubscriptionWithHttpInfo (CreateS // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -951,6 +952,8 @@ public ApiResponse< InlineResponse2011 > CreateSubscriptionWithHttpInfo (CreateS if (createSubscriptionRequest != null && createSubscriptionRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createSubscriptionRequest = (CreateSubscriptionRequest)sdkTracker.InsertDeveloperIdTracker(createSubscriptionRequest, createSubscriptionRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createSubscriptionRequest); // http body (model) parameter } else @@ -1040,7 +1043,7 @@ public async System.Threading.Tasks.Task> Create // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1050,6 +1053,8 @@ public async System.Threading.Tasks.Task> Create if (createSubscriptionRequest != null && createSubscriptionRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createSubscriptionRequest = (CreateSubscriptionRequest)sdkTracker.InsertDeveloperIdTracker(createSubscriptionRequest, createSubscriptionRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createSubscriptionRequest); // http body (model) parameter } else @@ -1137,7 +1142,7 @@ public ApiResponse< InlineResponse2006 > GetAllSubscriptionsWithHttpInfo (int? o // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1247,7 +1252,7 @@ public async System.Threading.Tasks.Task> GetAll // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1355,7 +1360,7 @@ public ApiResponse< InlineResponse2007 > GetSubscriptionWithHttpInfo (string id) // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1450,7 +1455,7 @@ public async System.Threading.Tasks.Task> GetSub // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1535,7 +1540,7 @@ public ApiResponse< InlineResponse20010 > GetSubscriptionCodeWithHttpInfo () // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1617,7 +1622,7 @@ public async System.Threading.Tasks.Task> GetSu // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1705,7 +1710,7 @@ public ApiResponse< InlineResponse2021 > SuspendSubscriptionWithHttpInfo (string // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1800,7 +1805,7 @@ public async System.Threading.Tasks.Task> Suspen // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1901,7 +1906,7 @@ public ApiResponse< InlineResponse2008 > UpdateSubscriptionWithHttpInfo (string // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -1916,6 +1921,8 @@ public ApiResponse< InlineResponse2008 > UpdateSubscriptionWithHttpInfo (string logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updateSubscription != null && updateSubscription.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updateSubscription = (UpdateSubscription)sdkTracker.InsertDeveloperIdTracker(updateSubscription, updateSubscription.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updateSubscription); // http body (model) parameter } else @@ -2013,7 +2020,7 @@ public async System.Threading.Tasks.Task> Update // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) @@ -2028,6 +2035,8 @@ public async System.Threading.Tasks.Task> Update logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (updateSubscription != null && updateSubscription.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + updateSubscription = (UpdateSubscription)sdkTracker.InsertDeveloperIdTracker(updateSubscription, updateSubscription.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(updateSubscription); // http body (model) parameter } else diff --git a/Api/SymmetricKeyManagementApi.cs b/Api/SymmetricKeyManagementApi.cs index fbf84cd5..7060c753 100644 --- a/Api/SymmetricKeyManagementApi.cs +++ b/Api/SymmetricKeyManagementApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -399,6 +400,8 @@ public ApiResponse< KmsV2KeysSymPost201Response > CreateV2SharedSecretKeysWithHt if (createSharedSecretKeysRequest != null && createSharedSecretKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createSharedSecretKeysRequest = (CreateSharedSecretKeysRequest)sdkTracker.InsertDeveloperIdTracker(createSharedSecretKeysRequest, createSharedSecretKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createSharedSecretKeysRequest); // http body (model) parameter } else @@ -498,6 +501,8 @@ public async System.Threading.Tasks.Task CreateV2SharedSecretKeysVerifi } if (createSharedSecretKeysVerifiRequest != null && createSharedSecretKeysVerifiRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + createSharedSecretKeysVerifiRequest = (CreateSharedSecretKeysVerifiRequest)sdkTracker.InsertDeveloperIdTracker(createSharedSecretKeysVerifiRequest, createSharedSecretKeysVerifiRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(createSharedSecretKeysVerifiRequest); // http body (model) parameter } else @@ -718,6 +725,8 @@ public async System.Threading.Tasks.Task DeleteBulkSymmetricKeys if (deleteBulkSymmetricKeysRequest != null && deleteBulkSymmetricKeysRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + deleteBulkSymmetricKeysRequest = (DeleteBulkSymmetricKeysRequest)sdkTracker.InsertDeveloperIdTracker(deleteBulkSymmetricKeysRequest, deleteBulkSymmetricKeysRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(deleteBulkSymmetricKeysRequest); // http body (model) parameter } else @@ -914,6 +925,8 @@ public async System.Threading.Tasks.Task CalculateTaxWithHttpInfo (Tax if (taxRequest != null && taxRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + taxRequest = (TaxRequest)sdkTracker.InsertDeveloperIdTracker(taxRequest, taxRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(taxRequest); // http body (model) parameter } else @@ -414,6 +417,8 @@ public async System.Threading.Tasks.Task VoidTaxWithHttpInfo (VoidTaxReques logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (voidTaxRequest != null && voidTaxRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + voidTaxRequest = (VoidTaxRequest)sdkTracker.InsertDeveloperIdTracker(voidTaxRequest, voidTaxRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(voidTaxRequest); // http body (model) parameter } else @@ -636,6 +643,8 @@ public async System.Threading.Tasks.Task> V logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (voidTaxRequest != null && voidTaxRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + voidTaxRequest = (VoidTaxRequest)sdkTracker.InsertDeveloperIdTracker(voidTaxRequest, voidTaxRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(voidTaxRequest); // http body (model) parameter } else diff --git a/Api/TokenApi.cs b/Api/TokenApi.cs index 55df4d1c..5b10894e 100644 --- a/Api/TokenApi.cs +++ b/Api/TokenApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/TransactionBatchesApi.cs b/Api/TransactionBatchesApi.cs index 22e49435..68d1f930 100644 --- a/Api/TransactionBatchesApi.cs +++ b/Api/TransactionBatchesApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/TransactionDetailsApi.cs b/Api/TransactionDetailsApi.cs index 48f4db6d..cca11d10 100644 --- a/Api/TransactionDetailsApi.cs +++ b/Api/TransactionDetailsApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/TransientTokenDataApi.cs b/Api/TransientTokenDataApi.cs index ac217d0f..83dd9e71 100644 --- a/Api/TransientTokenDataApi.cs +++ b/Api/TransientTokenDataApi.cs @@ -16,6 +16,7 @@ using CyberSource.Client; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/UnifiedCheckoutCaptureContextApi.cs b/Api/UnifiedCheckoutCaptureContextApi.cs index 0b71174a..0c7b8fe4 100644 --- a/Api/UnifiedCheckoutCaptureContextApi.cs +++ b/Api/UnifiedCheckoutCaptureContextApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -269,6 +270,8 @@ public ApiResponse< string > GenerateUnifiedCheckoutCaptureContextWithHttpInfo ( if (generateUnifiedCheckoutCaptureContextRequest != null && generateUnifiedCheckoutCaptureContextRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + generateUnifiedCheckoutCaptureContextRequest = (GenerateUnifiedCheckoutCaptureContextRequest)sdkTracker.InsertDeveloperIdTracker(generateUnifiedCheckoutCaptureContextRequest, generateUnifiedCheckoutCaptureContextRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(generateUnifiedCheckoutCaptureContextRequest); // http body (model) parameter } else @@ -368,6 +371,8 @@ public async System.Threading.Tasks.Task> GenerateUnifiedChe if (generateUnifiedCheckoutCaptureContextRequest != null && generateUnifiedCheckoutCaptureContextRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + generateUnifiedCheckoutCaptureContextRequest = (GenerateUnifiedCheckoutCaptureContextRequest)sdkTracker.InsertDeveloperIdTracker(generateUnifiedCheckoutCaptureContextRequest, generateUnifiedCheckoutCaptureContextRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(generateUnifiedCheckoutCaptureContextRequest); // http body (model) parameter } else diff --git a/Api/UserManagementApi.cs b/Api/UserManagementApi.cs index 5e521646..0b98e857 100644 --- a/Api/UserManagementApi.cs +++ b/Api/UserManagementApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { diff --git a/Api/UserManagementSearchApi.cs b/Api/UserManagementSearchApi.cs index 538b0438..4e55d496 100644 --- a/Api/UserManagementSearchApi.cs +++ b/Api/UserManagementSearchApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -269,6 +270,8 @@ public ApiResponse< UmsV1UsersGet200Response > SearchUsersWithHttpInfo (SearchRe if (searchRequest != null && searchRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + searchRequest = (SearchRequest)sdkTracker.InsertDeveloperIdTracker(searchRequest, searchRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(searchRequest); // http body (model) parameter } else @@ -368,6 +371,8 @@ public async System.Threading.Tasks.Task> if (searchRequest != null && searchRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + searchRequest = (SearchRequest)sdkTracker.InsertDeveloperIdTracker(searchRequest, searchRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(searchRequest); // http body (model) parameter } else diff --git a/Api/VerificationApi.cs b/Api/VerificationApi.cs index b97ac78e..79869a6c 100644 --- a/Api/VerificationApi.cs +++ b/Api/VerificationApi.cs @@ -17,6 +17,7 @@ using CyberSource.Model; using NLog; using AuthenticationSdk.util; +using CyberSource.Utilities.Tracking; namespace CyberSource.Api { @@ -311,6 +312,8 @@ public ApiResponse< RiskV1ExportComplianceInquiriesPost201Response > ValidateExp if (validateExportComplianceRequest != null && validateExportComplianceRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + validateExportComplianceRequest = (ValidateExportComplianceRequest)sdkTracker.InsertDeveloperIdTracker(validateExportComplianceRequest, validateExportComplianceRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(validateExportComplianceRequest); // http body (model) parameter } else @@ -410,6 +413,8 @@ public async System.Threading.Tasks.Task VerifyCustomerAd if (verifyCustomerAddressRequest != null && verifyCustomerAddressRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + verifyCustomerAddressRequest = (VerifyCustomerAddressRequest)sdkTracker.InsertDeveloperIdTracker(verifyCustomerAddressRequest, verifyCustomerAddressRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(verifyCustomerAddressRequest); // http body (model) parameter } else @@ -606,6 +613,8 @@ public async System.Threading.Tasks.Task MitVoidWithHttpInfo (Mit if (mitVoidRequest != null && mitVoidRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + mitVoidRequest = (MitVoidRequest)sdkTracker.InsertDeveloperIdTracker(mitVoidRequest, mitVoidRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(mitVoidRequest); // http body (model) parameter } else @@ -552,6 +555,8 @@ public async System.Threading.Tasks.Task VoidCaptureWithHttpInfo logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (voidCaptureRequest != null && voidCaptureRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + voidCaptureRequest = (VoidCaptureRequest)sdkTracker.InsertDeveloperIdTracker(voidCaptureRequest, voidCaptureRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(voidCaptureRequest); // http body (model) parameter } else @@ -774,6 +781,8 @@ public async System.Threading.Tasks.Task VoidCreditWithHttpInfo ( logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (voidCreditRequest != null && voidCreditRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + voidCreditRequest = (VoidCreditRequest)sdkTracker.InsertDeveloperIdTracker(voidCreditRequest, voidCreditRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(voidCreditRequest); // http body (model) parameter } else @@ -996,6 +1007,8 @@ public async System.Threading.Tasks.Task VoidPaymentWithHttpInfo logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (voidPaymentRequest != null && voidPaymentRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + voidPaymentRequest = (VoidPaymentRequest)sdkTracker.InsertDeveloperIdTracker(voidPaymentRequest, voidPaymentRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(voidPaymentRequest); // http body (model) parameter } else @@ -1218,6 +1233,8 @@ public async System.Threading.Tasks.Task VoidRefundWithHttpInfo ( logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}"); if (voidRefundRequest != null && voidRefundRequest.GetType() != typeof(byte[])) { + SdkTracker sdkTracker = new SdkTracker(); + voidRefundRequest = (VoidRefundRequest)sdkTracker.InsertDeveloperIdTracker(voidRefundRequest, voidRefundRequest.GetType().Name, Configuration.ApiClient.Configuration.MerchantConfigDictionaryObj["runEnvironment"]); localVarPostBody = Configuration.ApiClient.Serialize(voidRefundRequest); // http body (model) parameter } else @@ -1440,6 +1459,8 @@ public async System.Threading.Tasks.Task string.Equals(x.Name, param.Key, StringComparison.OrdinalIgnoreCase) && x.Type == ParameterType.HttpHeader)) { @@ -233,7 +233,7 @@ private RestRequest PrepareRequest( { // request.AddParameter("application/json", postBody, ParameterType.RequestBody); request.AddJsonBody(postBody); - } + } } else if (postBody.GetType() == typeof(byte[])) { @@ -665,7 +665,7 @@ public string ParameterToString(object obj) { outDateTime = ((DateTime?)obj).Value.ToString("yyyy-MM-ddTHH:mm:ssZ"); } - + return outDateTime; } else if (obj is DateTimeOffset) { @@ -895,7 +895,7 @@ public static string SanitizeFilename(string filename) return filename; } } - + /// /// Generate Request Authentication Headers using the Authentication SDK /// @@ -952,7 +952,7 @@ public void CallAuthenticationHeaders(string requestType, string requestTarget, // { // authenticationHeaders.Add("v-c-solution-id", Configuration.SolutionId); // } - + if (Configuration.Proxy == null && merchantConfig.UseProxy != null) { if (bool.Parse(merchantConfig.UseProxy)) @@ -990,7 +990,7 @@ public void CallAuthenticationHeaders(string requestType, string requestTarget, { RestClient = new RestClient("https://" + merchantConfig.HostName); } - + if (Configuration.Proxy != null) { RestClient.Options.Proxy = Configuration.Proxy; diff --git a/Model/PtsV2PaymentsPost201Response.cs b/Model/PtsV2PaymentsPost201Response.cs index 9f963aef..6f431461 100644 --- a/Model/PtsV2PaymentsPost201Response.cs +++ b/Model/PtsV2PaymentsPost201Response.cs @@ -53,8 +53,9 @@ public partial class PtsV2PaymentsPost201Response : IEquatableBuyerInformation. /// RiskInformation. /// ConsumerAuthenticationInformation. + /// EmbeddedActions. /// WatchlistScreeningInformation. - public PtsV2PaymentsPost201Response(PtsV2PaymentsPost201ResponseLinks Links = default(PtsV2PaymentsPost201ResponseLinks), string Id = default(string), string SubmitTimeUtc = default(string), string Status = default(string), string ReconciliationId = default(string), PtsV2PaymentsPost201ResponseErrorInformation ErrorInformation = default(PtsV2PaymentsPost201ResponseErrorInformation), PtsV2PaymentsPost201ResponseClientReferenceInformation ClientReferenceInformation = default(PtsV2PaymentsPost201ResponseClientReferenceInformation), PtsV2PaymentsPost201ResponseProcessingInformation ProcessingInformation = default(PtsV2PaymentsPost201ResponseProcessingInformation), PtsV2PaymentsPost201ResponseProcessorInformation ProcessorInformation = default(PtsV2PaymentsPost201ResponseProcessorInformation), PtsV2PaymentsPost201ResponseIssuerInformation IssuerInformation = default(PtsV2PaymentsPost201ResponseIssuerInformation), PtsV2PaymentsPost201ResponsePaymentAccountInformation PaymentAccountInformation = default(PtsV2PaymentsPost201ResponsePaymentAccountInformation), PtsV2PaymentsPost201ResponsePaymentInformation PaymentInformation = default(PtsV2PaymentsPost201ResponsePaymentInformation), PtsV2PaymentsPost201ResponsePaymentInsightsInformation PaymentInsightsInformation = default(PtsV2PaymentsPost201ResponsePaymentInsightsInformation), PtsV2PaymentsPost201ResponseOrderInformation OrderInformation = default(PtsV2PaymentsPost201ResponseOrderInformation), PtsV2PaymentsPost201ResponsePointOfSaleInformation PointOfSaleInformation = default(PtsV2PaymentsPost201ResponsePointOfSaleInformation), PtsV2PaymentsPost201ResponseInstallmentInformation InstallmentInformation = default(PtsV2PaymentsPost201ResponseInstallmentInformation), PtsV2PaymentsPost201ResponseTokenInformation TokenInformation = default(PtsV2PaymentsPost201ResponseTokenInformation), PtsV2PaymentsPost201ResponseBuyerInformation BuyerInformation = default(PtsV2PaymentsPost201ResponseBuyerInformation), PtsV2PaymentsPost201ResponseRiskInformation RiskInformation = default(PtsV2PaymentsPost201ResponseRiskInformation), PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation), PtsV2PaymentsPost201ResponseWatchlistScreeningInformation WatchlistScreeningInformation = default(PtsV2PaymentsPost201ResponseWatchlistScreeningInformation)) + public PtsV2PaymentsPost201Response(PtsV2PaymentsPost201ResponseLinks Links = default(PtsV2PaymentsPost201ResponseLinks), string Id = default(string), string SubmitTimeUtc = default(string), string Status = default(string), string ReconciliationId = default(string), PtsV2PaymentsPost201ResponseErrorInformation ErrorInformation = default(PtsV2PaymentsPost201ResponseErrorInformation), PtsV2PaymentsPost201ResponseClientReferenceInformation ClientReferenceInformation = default(PtsV2PaymentsPost201ResponseClientReferenceInformation), PtsV2PaymentsPost201ResponseProcessingInformation ProcessingInformation = default(PtsV2PaymentsPost201ResponseProcessingInformation), PtsV2PaymentsPost201ResponseProcessorInformation ProcessorInformation = default(PtsV2PaymentsPost201ResponseProcessorInformation), PtsV2PaymentsPost201ResponseIssuerInformation IssuerInformation = default(PtsV2PaymentsPost201ResponseIssuerInformation), PtsV2PaymentsPost201ResponsePaymentAccountInformation PaymentAccountInformation = default(PtsV2PaymentsPost201ResponsePaymentAccountInformation), PtsV2PaymentsPost201ResponsePaymentInformation PaymentInformation = default(PtsV2PaymentsPost201ResponsePaymentInformation), PtsV2PaymentsPost201ResponsePaymentInsightsInformation PaymentInsightsInformation = default(PtsV2PaymentsPost201ResponsePaymentInsightsInformation), PtsV2PaymentsPost201ResponseOrderInformation OrderInformation = default(PtsV2PaymentsPost201ResponseOrderInformation), PtsV2PaymentsPost201ResponsePointOfSaleInformation PointOfSaleInformation = default(PtsV2PaymentsPost201ResponsePointOfSaleInformation), PtsV2PaymentsPost201ResponseInstallmentInformation InstallmentInformation = default(PtsV2PaymentsPost201ResponseInstallmentInformation), PtsV2PaymentsPost201ResponseTokenInformation TokenInformation = default(PtsV2PaymentsPost201ResponseTokenInformation), PtsV2PaymentsPost201ResponseBuyerInformation BuyerInformation = default(PtsV2PaymentsPost201ResponseBuyerInformation), PtsV2PaymentsPost201ResponseRiskInformation RiskInformation = default(PtsV2PaymentsPost201ResponseRiskInformation), PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation), PtsV2PaymentsPost201ResponseEmbeddedActions EmbeddedActions = default(PtsV2PaymentsPost201ResponseEmbeddedActions), PtsV2PaymentsPost201ResponseWatchlistScreeningInformation WatchlistScreeningInformation = default(PtsV2PaymentsPost201ResponseWatchlistScreeningInformation)) { this.Links = Links; this.Id = Id; @@ -76,6 +77,7 @@ public partial class PtsV2PaymentsPost201Response : IEquatable + /// Gets or Sets EmbeddedActions + /// + [DataMember(Name="embeddedActions", EmitDefaultValue=false)] + public PtsV2PaymentsPost201ResponseEmbeddedActions EmbeddedActions { get; set; } + /// /// Gets or Sets WatchlistScreeningInformation /// @@ -237,6 +245,7 @@ public override string ToString() sb.Append(" BuyerInformation: ").Append(BuyerInformation).Append("\n"); sb.Append(" RiskInformation: ").Append(RiskInformation).Append("\n"); sb.Append(" ConsumerAuthenticationInformation: ").Append(ConsumerAuthenticationInformation).Append("\n"); + sb.Append(" EmbeddedActions: ").Append(EmbeddedActions).Append("\n"); sb.Append(" WatchlistScreeningInformation: ").Append(WatchlistScreeningInformation).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -374,6 +383,11 @@ public bool Equals(PtsV2PaymentsPost201Response other) this.ConsumerAuthenticationInformation != null && this.ConsumerAuthenticationInformation.Equals(other.ConsumerAuthenticationInformation) ) && + ( + this.EmbeddedActions == other.EmbeddedActions || + this.EmbeddedActions != null && + this.EmbeddedActions.Equals(other.EmbeddedActions) + ) && ( this.WatchlistScreeningInformation == other.WatchlistScreeningInformation || this.WatchlistScreeningInformation != null && @@ -432,6 +446,8 @@ public override int GetHashCode() hash = hash * 59 + this.RiskInformation.GetHashCode(); if (this.ConsumerAuthenticationInformation != null) hash = hash * 59 + this.ConsumerAuthenticationInformation.GetHashCode(); + if (this.EmbeddedActions != null) + hash = hash * 59 + this.EmbeddedActions.GetHashCode(); if (this.WatchlistScreeningInformation != null) hash = hash * 59 + this.WatchlistScreeningInformation.GetHashCode(); return hash; diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.cs new file mode 100644 index 00000000..41600616 --- /dev/null +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.cs @@ -0,0 +1,192 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// Contains embedded actions, that includes status and response for every actions in the list. + /// + [DataContract] + public partial class PtsV2PaymentsPost201ResponseEmbeddedActions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// CAPTURE. + /// DECISION. + /// CONSUMER_AUTHENTICATION. + /// VALIDATE_CONSUMER_AUTHENTICATION. + /// WATCHLIST_SCREENING. + public PtsV2PaymentsPost201ResponseEmbeddedActions(PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE CAPTURE = default(PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE), PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION DECISION = default(PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION), PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION CONSUMER_AUTHENTICATION = default(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION), PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION VALIDATE_CONSUMER_AUTHENTICATION = default(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION), PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING WATCHLIST_SCREENING = default(PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING)) + { + this.CAPTURE = CAPTURE; + this.DECISION = DECISION; + this.CONSUMER_AUTHENTICATION = CONSUMER_AUTHENTICATION; + this.VALIDATE_CONSUMER_AUTHENTICATION = VALIDATE_CONSUMER_AUTHENTICATION; + this.WATCHLIST_SCREENING = WATCHLIST_SCREENING; + } + + /// + /// Gets or Sets CAPTURE + /// + [DataMember(Name="CAPTURE", EmitDefaultValue=false)] + public PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE CAPTURE { get; set; } + + /// + /// Gets or Sets DECISION + /// + [DataMember(Name="DECISION", EmitDefaultValue=false)] + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION DECISION { get; set; } + + /// + /// Gets or Sets CONSUMER_AUTHENTICATION + /// + [DataMember(Name="CONSUMER_AUTHENTICATION", EmitDefaultValue=false)] + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION CONSUMER_AUTHENTICATION { get; set; } + + /// + /// Gets or Sets VALIDATE_CONSUMER_AUTHENTICATION + /// + [DataMember(Name="VALIDATE_CONSUMER_AUTHENTICATION", EmitDefaultValue=false)] + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION VALIDATE_CONSUMER_AUTHENTICATION { get; set; } + + /// + /// Gets or Sets WATCHLIST_SCREENING + /// + [DataMember(Name="WATCHLIST_SCREENING", EmitDefaultValue=false)] + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING WATCHLIST_SCREENING { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActions {\n"); + sb.Append(" CAPTURE: ").Append(CAPTURE).Append("\n"); + sb.Append(" DECISION: ").Append(DECISION).Append("\n"); + sb.Append(" CONSUMER_AUTHENTICATION: ").Append(CONSUMER_AUTHENTICATION).Append("\n"); + sb.Append(" VALIDATE_CONSUMER_AUTHENTICATION: ").Append(VALIDATE_CONSUMER_AUTHENTICATION).Append("\n"); + sb.Append(" WATCHLIST_SCREENING: ").Append(WATCHLIST_SCREENING).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as PtsV2PaymentsPost201ResponseEmbeddedActions); + } + + /// + /// Returns true if PtsV2PaymentsPost201ResponseEmbeddedActions instances are equal + /// + /// Instance of PtsV2PaymentsPost201ResponseEmbeddedActions to be compared + /// Boolean + public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActions other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.CAPTURE == other.CAPTURE || + this.CAPTURE != null && + this.CAPTURE.Equals(other.CAPTURE) + ) && + ( + this.DECISION == other.DECISION || + this.DECISION != null && + this.DECISION.Equals(other.DECISION) + ) && + ( + this.CONSUMER_AUTHENTICATION == other.CONSUMER_AUTHENTICATION || + this.CONSUMER_AUTHENTICATION != null && + this.CONSUMER_AUTHENTICATION.Equals(other.CONSUMER_AUTHENTICATION) + ) && + ( + this.VALIDATE_CONSUMER_AUTHENTICATION == other.VALIDATE_CONSUMER_AUTHENTICATION || + this.VALIDATE_CONSUMER_AUTHENTICATION != null && + this.VALIDATE_CONSUMER_AUTHENTICATION.Equals(other.VALIDATE_CONSUMER_AUTHENTICATION) + ) && + ( + this.WATCHLIST_SCREENING == other.WATCHLIST_SCREENING || + this.WATCHLIST_SCREENING != null && + this.WATCHLIST_SCREENING.Equals(other.WATCHLIST_SCREENING) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.CAPTURE != null) + hash = hash * 59 + this.CAPTURE.GetHashCode(); + if (this.DECISION != null) + hash = hash * 59 + this.DECISION.GetHashCode(); + if (this.CONSUMER_AUTHENTICATION != null) + hash = hash * 59 + this.CONSUMER_AUTHENTICATION.GetHashCode(); + if (this.VALIDATE_CONSUMER_AUTHENTICATION != null) + hash = hash * 59 + this.VALIDATE_CONSUMER_AUTHENTICATION.GetHashCode(); + if (this.WATCHLIST_SCREENING != null) + hash = hash * 59 + this.WATCHLIST_SCREENING.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.cs new file mode 100644 index 00000000..cb07bd69 --- /dev/null +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.cs @@ -0,0 +1,163 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + /// + [DataContract] + public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The status of the submitted transaction. Possible values: - PENDING . + /// The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED . + /// The detail message related to the status and reason listed above.. + public PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE(string Status = default(string), string Reason = default(string), string Message = default(string)) + { + this.Status = Status; + this.Reason = Reason; + this.Message = Message; + } + + /// + /// The status of the submitted transaction. Possible values: - PENDING + /// + /// The status of the submitted transaction. Possible values: - PENDING + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED + /// + /// The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED + [DataMember(Name="reason", EmitDefaultValue=false)] + public string Reason { get; set; } + + /// + /// The detail message related to the status and reason listed above. + /// + /// The detail message related to the status and reason listed above. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE); + } + + /// + /// Returns true if PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE instances are equal + /// + /// Instance of PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE to be compared + /// Boolean + public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && + ( + this.Reason == other.Reason || + this.Reason != null && + this.Reason.Equals(other.Reason) + ) && + ( + this.Message == other.Message || + this.Message != null && + this.Message.Equals(other.Message) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); + if (this.Reason != null) + hash = hash * 59 + this.Reason.GetHashCode(); + if (this.Message != null) + hash = hash * 59 + this.Message.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs new file mode 100644 index 00000000..3a15b6f0 --- /dev/null +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs @@ -0,0 +1,129 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + /// + [DataContract] + public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. . + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(string Message = default(string)) + { + this.Message = Message; + } + + /// + /// The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. + /// + /// The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION); + } + + /// + /// Returns true if PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION instances are equal + /// + /// Instance of PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION to be compared + /// Boolean + public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.Message == other.Message || + this.Message != null && + this.Message.Equals(other.Message) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.Message != null) + hash = hash * 59 + this.Message.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs new file mode 100644 index 00000000..2ba6b9e9 --- /dev/null +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs @@ -0,0 +1,146 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + /// + [DataContract] + public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` . + /// The detail message related to the status and reason listed above.. + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(string Status = default(string), string Message = default(string)) + { + this.Status = Status; + this.Message = Message; + } + + /// + /// The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` + /// + /// The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// The detail message related to the status and reason listed above. + /// + /// The detail message related to the status and reason listed above. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION); + } + + /// + /// Returns true if PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION instances are equal + /// + /// Instance of PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION to be compared + /// Boolean + public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && + ( + this.Message == other.Message || + this.Message != null && + this.Message.Equals(other.Message) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); + if (this.Message != null) + hash = hash * 59 + this.Message.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs new file mode 100644 index 00000000..59634fff --- /dev/null +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs @@ -0,0 +1,146 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + /// + [DataContract] + public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED . + /// The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match . + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(string Status = default(string), string Message = default(string)) + { + this.Status = Status; + this.Message = Message; + } + + /// + /// The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED + /// + /// The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match + /// + /// The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING); + } + + /// + /// Returns true if PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING instances are equal + /// + /// Instance of PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING to be compared + /// Boolean + public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && + ( + this.Message == other.Message || + this.Message != null && + this.Message.Equals(other.Message) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); + if (this.Message != null) + hash = hash * 59 + this.Message.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/Ptsv2paymentsProcessingInformation.cs b/Model/Ptsv2paymentsProcessingInformation.cs index 5bada486..c170d9ef 100644 --- a/Model/Ptsv2paymentsProcessingInformation.cs +++ b/Model/Ptsv2paymentsProcessingInformation.cs @@ -33,7 +33,7 @@ public partial class Ptsv2paymentsProcessingInformation : IEquatable /// Initializes a new instance of the class. /// - /// Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. . + /// Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. . /// Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement. . /// CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress . /// Bin Source File Identifier. Possible values: - itmx - rupay . @@ -110,9 +110,9 @@ public partial class Ptsv2paymentsProcessingInformation : IEquatable - /// Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. + /// Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. /// - /// Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. + /// Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. [DataMember(Name="actionList", EmitDefaultValue=false)] public List ActionList { get; set; } diff --git a/cybersource-rest-client-dotnet.csproj b/cybersource-rest-client-dotnet.csproj index bb8cc250..b65a2f00 100644 --- a/cybersource-rest-client-dotnet.csproj +++ b/cybersource-rest-client-dotnet.csproj @@ -12,7 +12,7 @@ OpenAPI spec version: 0.0.1 Debug AnyCPU - {E2540C66-D1C4-4AB1-A961-F027431F456A} + {7740019E-7A74-48A6-83BA-BEF5EE52F2AD} Library Properties CyberSource diff --git a/cybersource-rest-client-dotnet.sln b/cybersource-rest-client-dotnet.sln index d73bdb3b..c3871534 100644 --- a/cybersource-rest-client-dotnet.sln +++ b/cybersource-rest-client-dotnet.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{E2540C66-D1C4-4AB1-A961-F027431F456A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{7740019E-7A74-48A6-83BA-BEF5EE52F2AD}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet.Test", "test\cybersource-rest-client-dotnet.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E2540C66-D1C4-4AB1-A961-F027431F456A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E2540C66-D1C4-4AB1-A961-F027431F456A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E2540C66-D1C4-4AB1-A961-F027431F456A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E2540C66-D1C4-4AB1-A961-F027431F456A}.Release|Any CPU.Build.0 = Release|Any CPU + {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/docs/PlansApi.md b/docs/PlansApi.md index cba10611..f713f38a 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -71,7 +71,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -132,7 +132,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -193,7 +193,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -254,7 +254,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -315,7 +315,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -372,7 +372,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -441,7 +441,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -504,7 +504,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/PtsV2PaymentsPost201Response.md b/docs/PtsV2PaymentsPost201Response.md index 027fb701..3997d2fb 100644 --- a/docs/PtsV2PaymentsPost201Response.md +++ b/docs/PtsV2PaymentsPost201Response.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **BuyerInformation** | [**PtsV2PaymentsPost201ResponseBuyerInformation**](PtsV2PaymentsPost201ResponseBuyerInformation.md) | | [optional] **RiskInformation** | [**PtsV2PaymentsPost201ResponseRiskInformation**](PtsV2PaymentsPost201ResponseRiskInformation.md) | | [optional] **ConsumerAuthenticationInformation** | [**PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation**](PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.md) | | [optional] +**EmbeddedActions** | [**PtsV2PaymentsPost201ResponseEmbeddedActions**](PtsV2PaymentsPost201ResponseEmbeddedActions.md) | | [optional] **WatchlistScreeningInformation** | [**PtsV2PaymentsPost201ResponseWatchlistScreeningInformation**](PtsV2PaymentsPost201ResponseWatchlistScreeningInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md new file mode 100644 index 00000000..2074445c --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md @@ -0,0 +1,13 @@ +# CyberSource.Model.PtsV2PaymentsPost201ResponseEmbeddedActions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CAPTURE** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE**](PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md) | | [optional] +**DECISION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION**](PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md) | | [optional] +**CONSUMER_AUTHENTICATION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional] +**VALIDATE_CONSUMER_AUTHENTICATION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional] +**WATCHLIST_SCREENING** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING**](PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md new file mode 100644 index 00000000..75ead1e2 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md @@ -0,0 +1,11 @@ +# CyberSource.Model.PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status of the submitted transaction. Possible values: - PENDING | [optional] +**Reason** | **string** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED | [optional] +**Message** | **string** | The detail message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md new file mode 100644 index 00000000..97608ae6 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md @@ -0,0 +1,9 @@ +# CyberSource.Model.PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md new file mode 100644 index 00000000..fb63b479 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md @@ -0,0 +1,10 @@ +# CyberSource.Model.PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` | [optional] +**Message** | **string** | The detail message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md new file mode 100644 index 00000000..75b6cfbb --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md @@ -0,0 +1,10 @@ +# CyberSource.Model.PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED | [optional] +**Message** | **string** | The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Ptsv2paymentsProcessingInformation.md b/docs/Ptsv2paymentsProcessingInformation.md index 3caad4ad..0b0e46a0 100644 --- a/docs/Ptsv2paymentsProcessingInformation.md +++ b/docs/Ptsv2paymentsProcessingInformation.md @@ -3,7 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ActionList** | **List<string>** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional] +**ActionList** | **List<string>** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional] **EnableEscrowOption** | **bool?** | Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement. | [optional] **ActionTokenTypes** | **List<string>** | CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress | [optional] **BinSource** | **string** | Bin Source File Identifier. Possible values: - itmx - rupay | [optional] diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 9208b3cf..469a47a7 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -71,7 +71,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -132,7 +132,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -193,7 +193,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -260,7 +260,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -321,7 +321,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -378,7 +378,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -439,7 +439,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -502,7 +502,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index e2c4a75b..b0016f77 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -445,7 +445,7 @@ "properties": { "actionList": { "type": "array", - "description": "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment.\n\nPossible values are one or more of follows:\n\n - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request.\n\n - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request.\n\n - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request.\n \n - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.\n\n - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.\n", + "description": "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment.\n\nPossible values are one or more of follows:\n\n - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request.\n\n - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request.\n\n - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request.\n \n - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.\n\n - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.\n", "items": { "type": "string" } @@ -6358,6 +6358,145 @@ } } }, + "embeddedActions": { + "type": "object", + "description": "Contains embedded actions, that includes status and response for every actions in the list.", + "properties": { + "CAPTURE": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted transaction.\n\nPossible values:\n - PENDING\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n - DUPLICATE_REQUEST\n - INVALID_MERCHANT_CONFIGURATION\n - EXCEEDS_AUTH_AMOUNT\n - AUTH_ALREADY_REVERSED\n - TRANSACTION_ALREADY_SETTLED\n - INVALID_AMOUNT\n - MISSING_AUTH\n - TRANSACTION_ALREADY_REVERSED_OR_SETTLED\n - NOT_SUPPORTED\n" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + } + } + }, + "DECISION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted transaction.\n\nPossible values:\n - `ACCEPTED`\n - `REJECTED`\n - `PENDING_REVIEW`\n - `DECLINED`\n - `PENDING_AUTHENTICATION`\n - `INVALID_REQUEST`\n - `AUTHENTICATION_FAILED`\n - `CHALLENGE`\n" + }, + "reason": { + "allOf": [ + { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - `EXPIRED_CARD`\n - `SCORE_EXCEEDS_THRESHOLD`\n - `DECISION_PROFILE_REVIEW`\n - `DECISION_PROFILE_REJECT`\n - `CONSUMER_AUTHENTICATION_REQUIRED`\n - `INVALID_MERCHANT_CONFIGURATION`\n - `CONSUMER_AUTHENTICATION_FAILED`\n - `DECISION_PROFILE_CHALLENGE`\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n" + }, + { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - `MISSING_FIELD`\n - `INVALID_DATA`\n - `INVALID_ACCOUNT`\n" + } + ] + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + } + } + }, + "CONSUMER_AUTHENTICATION": { + "type": "object", + "properties": { + "status": { + "allOf": [ + { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + }, + { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" + } + ] + }, + "reason": { + "allOf": [ + { + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" + }, + { + "type": "string", + "description": "The reason of the status.\n\nPossible Values:\n- `MISSING_FIELD`\n- `INVALID_DATA`\n" + } + ] + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value is:\n- Encountered a Payer Authentication problem. Payer could not be authenticated.\n" + } + } + }, + "VALIDATE_CONSUMER_AUTHENTICATION": { + "type": "object", + "properties": { + "status": { + "allOf": [ + { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + }, + { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" + } + ] + }, + "reason": { + "allOf": [ + { + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" + }, + { + "type": "string", + "description": "The reason of the status.\n\nPossible Values:\n- `MISSING_FIELD`\n- `INVALID_DATA`\n" + } + ] + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value is:\n- Encountered a Payer Authentication problem. Payer could not be authenticated.\n" + } + } + }, + "WATCHLIST_SCREENING": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for the call can be:\n- COMPLETED\n- INVALID_REQUEST\n- DECLINED\n" + }, + "reason": { + "allOf": [ + { + "type": "string", + "description": "The reason of the status. Value can be\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n - `INVALID_MERCHANT_CONFIGURATION`\n" + }, + { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n - DUPLICATE_REQUEST\n - INVALID_MERCHANT_CONFIGURATION\n - PROCESSOR_UNAVAILABLE\n" + } + ] + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value can be\n - The customer matched the Denied Parties List\n - The Export bill_country/ship_country match\n - Export email_country match\n - Export hostname_country/ip_country match\n" + } + } + } + } + }, "watchlistScreeningInformation": { "type": "object", "properties": { @@ -59521,6 +59660,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createPlanRequest", @@ -59844,6 +59986,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "offset", @@ -60126,6 +60271,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60337,6 +60485,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60646,6 +60797,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60768,6 +60922,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60927,6 +61084,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -61081,6 +61241,9 @@ "Plans" ], "operationId": "getPlanCode", + "produces": [ + "application/json;charset=utf-8" + ], "x-devcenter-metaData": { "categoryTag": "Recurring_Billing_Subscriptions", "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", @@ -61184,6 +61347,9 @@ "disableProcessorDropDown": true }, "operationId": "createSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createSubscriptionRequest", @@ -61642,6 +61808,9 @@ "disableProcessorDropDown": true }, "operationId": "getAllSubscriptions", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "offset", @@ -62010,6 +62179,9 @@ "disableProcessorDropDown": true }, "operationId": "getSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62314,6 +62486,9 @@ "disableProcessorDropDown": true }, "operationId": "updateSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62681,6 +62856,9 @@ "disableProcessorDropDown": true }, "operationId": "cancelSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62840,6 +63018,9 @@ "disableProcessorDropDown": true }, "operationId": "suspendSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62999,6 +63180,9 @@ "disableProcessorDropDown": true }, "operationId": "activateSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -63153,6 +63337,9 @@ "Subscriptions" ], "operationId": "getSubscriptionCode", + "produces": [ + "application/json;charset=utf-8" + ], "x-devcenter-metaData": { "categoryTag": "Recurring_Billing_Subscriptions", "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURETests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURETests.cs new file mode 100644 index 00000000..cf731628 --- /dev/null +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURETests.cs @@ -0,0 +1,94 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURETests + { + // TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + //private PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + //instance = new PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + /// + [Test] + public void PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTUREInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + //Assert.IsInstanceOfType (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE"); + } + + /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Reason' + /// + [Test] + public void ReasonTest() + { + // TODO unit test for the property 'Reason' + } + /// + /// Test the property 'Message' + /// + [Test] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs new file mode 100644 index 00000000..c2241e14 --- /dev/null +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs @@ -0,0 +1,78 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests + { + // TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + //private PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + //instance = new PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + /// + [Test] + public void PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + //Assert.IsInstanceOfType (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION"); + } + + /// + /// Test the property 'Message' + /// + [Test] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs new file mode 100644 index 00000000..e34eeda4 --- /dev/null +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs @@ -0,0 +1,86 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests + { + // TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + //private PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + //instance = new PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + /// + [Test] + public void PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + //Assert.IsInstanceOfType (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION"); + } + + /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Message' + /// + [Test] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsTests.cs new file mode 100644 index 00000000..5bddcfa5 --- /dev/null +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsTests.cs @@ -0,0 +1,110 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing PtsV2PaymentsPost201ResponseEmbeddedActions + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class PtsV2PaymentsPost201ResponseEmbeddedActionsTests + { + // TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponseEmbeddedActions + //private PtsV2PaymentsPost201ResponseEmbeddedActions instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponseEmbeddedActions + //instance = new PtsV2PaymentsPost201ResponseEmbeddedActions(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of PtsV2PaymentsPost201ResponseEmbeddedActions + /// + [Test] + public void PtsV2PaymentsPost201ResponseEmbeddedActionsInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponseEmbeddedActions + //Assert.IsInstanceOfType (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponseEmbeddedActions"); + } + + /// + /// Test the property 'CAPTURE' + /// + [Test] + public void CAPTURETest() + { + // TODO unit test for the property 'CAPTURE' + } + /// + /// Test the property 'DECISION' + /// + [Test] + public void DECISIONTest() + { + // TODO unit test for the property 'DECISION' + } + /// + /// Test the property 'CONSUMER_AUTHENTICATION' + /// + [Test] + public void CONSUMER_AUTHENTICATIONTest() + { + // TODO unit test for the property 'CONSUMER_AUTHENTICATION' + } + /// + /// Test the property 'VALIDATE_CONSUMER_AUTHENTICATION' + /// + [Test] + public void VALIDATE_CONSUMER_AUTHENTICATIONTest() + { + // TODO unit test for the property 'VALIDATE_CONSUMER_AUTHENTICATION' + } + /// + /// Test the property 'WATCHLIST_SCREENING' + /// + [Test] + public void WATCHLIST_SCREENINGTest() + { + // TODO unit test for the property 'WATCHLIST_SCREENING' + } + + } + +} diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs new file mode 100644 index 00000000..b79ea77d --- /dev/null +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs @@ -0,0 +1,86 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests + { + // TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + //private PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + //instance = new PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + /// + [Test] + public void PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + //Assert.IsInstanceOfType (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING"); + } + + /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Message' + /// + [Test] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + + } + +} diff --git a/test/Model/PtsV2PaymentsPost201ResponseTests.cs b/test/Model/PtsV2PaymentsPost201ResponseTests.cs index 6aa0bd61..84e1b791 100644 --- a/test/Model/PtsV2PaymentsPost201ResponseTests.cs +++ b/test/Model/PtsV2PaymentsPost201ResponseTests.cs @@ -225,6 +225,14 @@ public void ConsumerAuthenticationInformationTest() // TODO unit test for the property 'ConsumerAuthenticationInformation' } /// + /// Test the property 'EmbeddedActions' + /// + [Test] + public void EmbeddedActionsTest() + { + // TODO unit test for the property 'EmbeddedActions' + } + /// /// Test the property 'WatchlistScreeningInformation' /// [Test] diff --git a/test/cybersource-rest-client-dotnet.Test.csproj b/test/cybersource-rest-client-dotnet.Test.csproj index 2fdea6d5..d140e5e9 100644 --- a/test/cybersource-rest-client-dotnet.Test.csproj +++ b/test/cybersource-rest-client-dotnet.Test.csproj @@ -94,7 +94,7 @@ OpenAPI spec version: 0.0.1 - {E2540C66-D1C4-4AB1-A961-F027431F456A} + {7740019E-7A74-48A6-83BA-BEF5EE52F2AD} cybersource-rest-client-dotnet From 4cf774de5f7ca3182c3b2b96af40899de77aaac2 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Tue, 27 Jun 2023 12:13:20 +0530 Subject: [PATCH 09/10] june spec changes --- ...seEmbeddedActionsCONSUMERAUTHENTICATION.cs | 36 +++++++++- ...sPost201ResponseEmbeddedActionsDECISION.cs | 19 ++++- ...sponseEmbeddedActionsWATCHLISTSCREENING.cs | 19 ++++- cybersource-rest-client-dotnet.csproj | 2 +- cybersource-rest-client-dotnet.sln | 10 +-- ...seEmbeddedActionsCONSUMERAUTHENTICATION.md | 2 + ...sPost201ResponseEmbeddedActionsDECISION.md | 1 + ...sponseEmbeddedActionsWATCHLISTSCREENING.md | 1 + generator/cybersource-rest-spec.json | 72 ++++--------------- ...eddedActionsCONSUMERAUTHENTICATIONTests.cs | 16 +++++ ...201ResponseEmbeddedActionsDECISIONTests.cs | 8 +++ ...eEmbeddedActionsWATCHLISTSCREENINGTests.cs | 8 +++ ...cybersource-rest-client-dotnet.Test.csproj | 2 +- 13 files changed, 126 insertions(+), 70 deletions(-) diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs index 3a15b6f0..253fec98 100644 --- a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.cs @@ -33,12 +33,30 @@ public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTI /// /// Initializes a new instance of the class. /// + /// The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` . + /// The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` . /// The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. . - public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(string Message = default(string)) + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(string Status = default(string), string Reason = default(string), string Message = default(string)) { + this.Status = Status; + this.Reason = Reason; this.Message = Message; } + /// + /// The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + /// + /// The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` + /// + /// The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` + [DataMember(Name="reason", EmitDefaultValue=false)] + public string Reason { get; set; } + /// /// The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. /// @@ -54,6 +72,8 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -91,6 +111,16 @@ public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICA return false; return + ( + this.Status == other.Status || + this.Status != null && + this.Status.Equals(other.Status) + ) && + ( + this.Reason == other.Reason || + this.Reason != null && + this.Reason.Equals(other.Reason) + ) && ( this.Message == other.Message || this.Message != null && @@ -109,6 +139,10 @@ public override int GetHashCode() { int hash = 41; // Suitable nullity checks etc, of course :) + if (this.Status != null) + hash = hash * 59 + this.Status.GetHashCode(); + if (this.Reason != null) + hash = hash * 59 + this.Reason.GetHashCode(); if (this.Message != null) hash = hash * 59 + this.Message.GetHashCode(); return hash; diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs index 2ba6b9e9..cea7a38f 100644 --- a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.cs @@ -34,10 +34,12 @@ public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION : IEqu /// Initializes a new instance of the class. /// /// The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` . + /// The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` . /// The detail message related to the status and reason listed above.. - public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(string Status = default(string), string Message = default(string)) + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(string Status = default(string), string Reason = default(string), string Message = default(string)) { this.Status = Status; + this.Reason = Reason; this.Message = Message; } @@ -48,6 +50,13 @@ public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION : IEqu [DataMember(Name="status", EmitDefaultValue=false)] public string Status { get; set; } + /// + /// The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` + /// + /// The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` + [DataMember(Name="reason", EmitDefaultValue=false)] + public string Reason { get; set; } + /// /// The detail message related to the status and reason listed above. /// @@ -64,6 +73,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION {\n"); sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,6 +116,11 @@ public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION other) this.Status != null && this.Status.Equals(other.Status) ) && + ( + this.Reason == other.Reason || + this.Reason != null && + this.Reason.Equals(other.Reason) + ) && ( this.Message == other.Message || this.Message != null && @@ -126,6 +141,8 @@ public override int GetHashCode() // Suitable nullity checks etc, of course :) if (this.Status != null) hash = hash * 59 + this.Status.GetHashCode(); + if (this.Reason != null) + hash = hash * 59 + this.Reason.GetHashCode(); if (this.Message != null) hash = hash * 59 + this.Message.GetHashCode(); return hash; diff --git a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs index 59634fff..10d1823d 100644 --- a/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs +++ b/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.cs @@ -34,10 +34,12 @@ public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENI /// Initializes a new instance of the class. /// /// The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED . + /// The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` . /// The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match . - public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(string Status = default(string), string Message = default(string)) + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(string Status = default(string), string Reason = default(string), string Message = default(string)) { this.Status = Status; + this.Reason = Reason; this.Message = Message; } @@ -48,6 +50,13 @@ public partial class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENI [DataMember(Name="status", EmitDefaultValue=false)] public string Status { get; set; } + /// + /// The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` + /// + /// The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` + [DataMember(Name="reason", EmitDefaultValue=false)] + public string Reason { get; set; } + /// /// The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match /// @@ -64,6 +73,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING {\n"); sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -106,6 +116,11 @@ public bool Equals(PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING this.Status != null && this.Status.Equals(other.Status) ) && + ( + this.Reason == other.Reason || + this.Reason != null && + this.Reason.Equals(other.Reason) + ) && ( this.Message == other.Message || this.Message != null && @@ -126,6 +141,8 @@ public override int GetHashCode() // Suitable nullity checks etc, of course :) if (this.Status != null) hash = hash * 59 + this.Status.GetHashCode(); + if (this.Reason != null) + hash = hash * 59 + this.Reason.GetHashCode(); if (this.Message != null) hash = hash * 59 + this.Message.GetHashCode(); return hash; diff --git a/cybersource-rest-client-dotnet.csproj b/cybersource-rest-client-dotnet.csproj index b65a2f00..93fb7658 100644 --- a/cybersource-rest-client-dotnet.csproj +++ b/cybersource-rest-client-dotnet.csproj @@ -12,7 +12,7 @@ OpenAPI spec version: 0.0.1 Debug AnyCPU - {7740019E-7A74-48A6-83BA-BEF5EE52F2AD} + {DF1A1518-8D45-46DD-9220-90F6182C2966} Library Properties CyberSource diff --git a/cybersource-rest-client-dotnet.sln b/cybersource-rest-client-dotnet.sln index c3871534..ebbbeae0 100644 --- a/cybersource-rest-client-dotnet.sln +++ b/cybersource-rest-client-dotnet.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{7740019E-7A74-48A6-83BA-BEF5EE52F2AD}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{DF1A1518-8D45-46DD-9220-90F6182C2966}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet.Test", "test\cybersource-rest-client-dotnet.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7740019E-7A74-48A6-83BA-BEF5EE52F2AD}.Release|Any CPU.Build.0 = Release|Any CPU + {DF1A1518-8D45-46DD-9220-90F6182C2966}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DF1A1518-8D45-46DD-9220-90F6182C2966}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DF1A1518-8D45-46DD-9220-90F6182C2966}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DF1A1518-8D45-46DD-9220-90F6182C2966}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md index 97608ae6..64aa4de9 100644 --- a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md @@ -3,6 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional] +**Reason** | **string** | The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` | [optional] **Message** | **string** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md index fb63b479..c45a74d7 100644 --- a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | **string** | The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` | [optional] +**Reason** | **string** | The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` | [optional] **Message** | **string** | The detail message related to the status and reason listed above. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md index 75b6cfbb..f50d436e 100644 --- a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | **string** | The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED | [optional] +**Reason** | **string** | The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` | [optional] **Message** | **string** | The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index b0016f77..77ceeb70 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -6387,16 +6387,8 @@ "description": "The status of the submitted transaction.\n\nPossible values:\n - `ACCEPTED`\n - `REJECTED`\n - `PENDING_REVIEW`\n - `DECLINED`\n - `PENDING_AUTHENTICATION`\n - `INVALID_REQUEST`\n - `AUTHENTICATION_FAILED`\n - `CHALLENGE`\n" }, "reason": { - "allOf": [ - { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - `EXPIRED_CARD`\n - `SCORE_EXCEEDS_THRESHOLD`\n - `DECISION_PROFILE_REVIEW`\n - `DECISION_PROFILE_REJECT`\n - `CONSUMER_AUTHENTICATION_REQUIRED`\n - `INVALID_MERCHANT_CONFIGURATION`\n - `CONSUMER_AUTHENTICATION_FAILED`\n - `DECISION_PROFILE_CHALLENGE`\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n" - }, - { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - `MISSING_FIELD`\n - `INVALID_DATA`\n - `INVALID_ACCOUNT`\n" - } - ] + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - `EXPIRED_CARD`\n - `SCORE_EXCEEDS_THRESHOLD`\n - `DECISION_PROFILE_REVIEW`\n - `DECISION_PROFILE_REJECT`\n - `CONSUMER_AUTHENTICATION_REQUIRED`\n - `INVALID_MERCHANT_CONFIGURATION`\n - `CONSUMER_AUTHENTICATION_FAILED`\n - `DECISION_PROFILE_CHALLENGE`\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n" }, "message": { "type": "string", @@ -6408,28 +6400,12 @@ "type": "object", "properties": { "status": { - "allOf": [ - { - "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" - }, - { - "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" - } - ] + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" }, "reason": { - "allOf": [ - { - "type": "string", - "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" - }, - { - "type": "string", - "description": "The reason of the status.\n\nPossible Values:\n- `MISSING_FIELD`\n- `INVALID_DATA`\n" - } - ] + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" }, "message": { "type": "string", @@ -6441,28 +6417,12 @@ "type": "object", "properties": { "status": { - "allOf": [ - { - "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" - }, - { - "type": "string", - "description": "The status for payerAuthentication 201 enroll and validate calls. Value is:\n- `INVALID_REQUEST`\n" - } - ] + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" }, "reason": { - "allOf": [ - { - "type": "string", - "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" - }, - { - "type": "string", - "description": "The reason of the status.\n\nPossible Values:\n- `MISSING_FIELD`\n- `INVALID_DATA`\n" - } - ] + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" }, "message": { "type": "string", @@ -6478,16 +6438,8 @@ "description": "The status for the call can be:\n- COMPLETED\n- INVALID_REQUEST\n- DECLINED\n" }, "reason": { - "allOf": [ - { - "type": "string", - "description": "The reason of the status. Value can be\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n - `INVALID_MERCHANT_CONFIGURATION`\n" - }, - { - "type": "string", - "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n - DUPLICATE_REQUEST\n - INVALID_MERCHANT_CONFIGURATION\n - PROCESSOR_UNAVAILABLE\n" - } - ] + "type": "string", + "description": "The reason of the status. Value can be\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n - `INVALID_MERCHANT_CONFIGURATION`\n" }, "message": { "type": "string", diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs index c2241e14..f82d1c5f 100644 --- a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONTests.cs @@ -64,6 +64,22 @@ public void PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATIONIns //Assert.IsInstanceOfType (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION"); } + /// + /// Test the property 'Status' + /// + [Test] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Reason' + /// + [Test] + public void ReasonTest() + { + // TODO unit test for the property 'Reason' + } /// /// Test the property 'Message' /// diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs index e34eeda4..90002fe8 100644 --- a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISIONTests.cs @@ -73,6 +73,14 @@ public void StatusTest() // TODO unit test for the property 'Status' } /// + /// Test the property 'Reason' + /// + [Test] + public void ReasonTest() + { + // TODO unit test for the property 'Reason' + } + /// /// Test the property 'Message' /// [Test] diff --git a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs index b79ea77d..9bf6baab 100644 --- a/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs +++ b/test/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENINGTests.cs @@ -73,6 +73,14 @@ public void StatusTest() // TODO unit test for the property 'Status' } /// + /// Test the property 'Reason' + /// + [Test] + public void ReasonTest() + { + // TODO unit test for the property 'Reason' + } + /// /// Test the property 'Message' /// [Test] diff --git a/test/cybersource-rest-client-dotnet.Test.csproj b/test/cybersource-rest-client-dotnet.Test.csproj index d140e5e9..8ed3d9de 100644 --- a/test/cybersource-rest-client-dotnet.Test.csproj +++ b/test/cybersource-rest-client-dotnet.Test.csproj @@ -94,7 +94,7 @@ OpenAPI spec version: 0.0.1 - {7740019E-7A74-48A6-83BA-BEF5EE52F2AD} + {DF1A1518-8D45-46DD-9220-90F6182C2966} cybersource-rest-client-dotnet From 17456e8cc5e639dfb7564adc5c59cd77fc01d380 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Wed, 5 Jul 2023 16:16:55 +0530 Subject: [PATCH 10/10] version update --- Properties/AssemblyInfo.cs | 4 ++-- cybersource-rest-client-dotnet.nuspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 1b655662..97fe1379 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -28,5 +28,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.1.32")] -[assembly: AssemblyFileVersion("0.0.1.32")] +[assembly: AssemblyVersion("0.0.1.33")] +[assembly: AssemblyFileVersion("0.0.1.33")] diff --git a/cybersource-rest-client-dotnet.nuspec b/cybersource-rest-client-dotnet.nuspec index 4f0fdb6f..1cd08443 100644 --- a/cybersource-rest-client-dotnet.nuspec +++ b/cybersource-rest-client-dotnet.nuspec @@ -2,7 +2,7 @@ CyberSource.Rest.Client - 0.0.1.32 + 0.0.1.33 CyberSource.Rest.Client CyberSource Corporation CyberSource