From 6042ac2615750272b17ec2b1091880ab2dff5e13 Mon Sep 17 00:00:00 2001 From: kapilkumar99 <36911550+kapilkumar99@users.noreply.github.com> Date: Thu, 20 Sep 2018 18:22:23 +0530 Subject: [PATCH 1/2] PR1992-Getaujobdetails-Sdk-modification Modified Files 1)AnetApiSchema.generated.cs: Added subscriptionIdsList for auDeleteType and auUpdateType 2)getAUJobDetailsControllerTest.cs modified class to get audetails --- .vs/config/applicationhost.config | 1030 +++++++++++++++++ .../Contracts/V1/AnetApiSchema.generated.cs | 8 + .../MockTest/getAUJobDetailsControllerTest.cs | 21 +- AuthorizeNETtest/AuthorizeNETtest.csproj | 1 + 4 files changed, 1054 insertions(+), 6 deletions(-) create mode 100644 .vs/config/applicationhost.config diff --git a/.vs/config/applicationhost.config b/.vs/config/applicationhost.config new file mode 100644 index 00000000..59de6ee6 --- /dev/null +++ b/.vs/config/applicationhost.config @@ -0,0 +1,1030 @@ + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs b/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs index 7dc1720e..78c1ca93 100644 --- a/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs +++ b/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs @@ -137,6 +137,10 @@ public partial class auDeleteType : auDetailsType { /// public creditCardMaskedType creditCard; + //Declared subscriptionIdsList for auDeleteType + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] SubscriptionIdList; } /// @@ -225,6 +229,10 @@ public partial class auUpdateType : auDetailsType { /// public creditCardMaskedType oldCreditCard; + //Declared subscriptionIdsList for auUpdateType + /// + [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] + public string[] SubscriptionIdList; } /// diff --git a/AuthorizeNETtest/Api/Controllers/MockTest/getAUJobDetailsControllerTest.cs b/AuthorizeNETtest/Api/Controllers/MockTest/getAUJobDetailsControllerTest.cs index 78d0fa6c..a11b67b3 100644 --- a/AuthorizeNETtest/Api/Controllers/MockTest/getAUJobDetailsControllerTest.cs +++ b/AuthorizeNETtest/Api/Controllers/MockTest/getAUJobDetailsControllerTest.cs @@ -45,12 +45,21 @@ public void MockgetAUJobDetailsTest() { merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey}, }; + var audetailsType = new auDetailsType[] + { + new auDetailsType + { + customerPaymentProfileID= 1000040162, + customerProfileID= 40202794, + auReasonCode="NAN" + } + }; var mockResponse = new getAUJobDetailsResponse { - refId = "1234", - sessionToken = "sessiontoken", - Yyyyy = Yyyy, - }; + refId = "1234", + sessionToken = "sessiontoken", + auDetails = audetailsType, + }; var errorResponse = new ANetApiResponse(); var results = new List(); @@ -64,8 +73,8 @@ public void MockgetAUJobDetailsTest() var controllerResponse = mockController.MockObject.GetApiResponse(); Assert.IsNotNull(controllerResponse); - Assert.IsNotNull(controllerResponse.Yyyyy); - LogHelper.info(Logger, "getAUJobDetails: Details:{0}", controllerResponse.Yyyyy); + Assert.IsNotNull(controllerResponse.auDetails); + LogHelper.info(Logger, "getAUJobDetails: Details:{0}", controllerResponse.auDetails); } } } diff --git a/AuthorizeNETtest/AuthorizeNETtest.csproj b/AuthorizeNETtest/AuthorizeNETtest.csproj index b31829d5..ebd76b92 100644 --- a/AuthorizeNETtest/AuthorizeNETtest.csproj +++ b/AuthorizeNETtest/AuthorizeNETtest.csproj @@ -78,6 +78,7 @@ + From d1fbec6b3d813148384cf69adac4edbe81b23832 Mon Sep 17 00:00:00 2001 From: kapilkumar99 <36911550+kapilkumar99@users.noreply.github.com> Date: Tue, 9 Oct 2018 10:45:05 +0530 Subject: [PATCH 2/2] Removed applicationhost.config file 1)Removed applicationhost.config file, 2)Renamed SubscriptionIdList to subscriptionIdList --- .vs/config/applicationhost.config | 1030 ----------------- .../Contracts/V1/AnetApiSchema.generated.cs | 4 +- 2 files changed, 2 insertions(+), 1032 deletions(-) delete mode 100644 .vs/config/applicationhost.config diff --git a/.vs/config/applicationhost.config b/.vs/config/applicationhost.config deleted file mode 100644 index 59de6ee6..00000000 --- a/.vs/config/applicationhost.config +++ /dev/null @@ -1,1030 +0,0 @@ - - - - - - - -
-
-
-
-
-
-
-
- - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
- -
-
-
-
-
- -
-
-
- -
-
- -
-
- -
-
-
- - -
-
-
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs b/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs index 78c1ca93..da5f9443 100644 --- a/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs +++ b/Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs @@ -140,7 +140,7 @@ public partial class auDeleteType : auDetailsType { //Declared subscriptionIdsList for auDeleteType /// [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] - public string[] SubscriptionIdList; + public string[] subscriptionIdList; } /// @@ -232,7 +232,7 @@ public partial class auUpdateType : auDetailsType { //Declared subscriptionIdsList for auUpdateType /// [System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable = false)] - public string[] SubscriptionIdList; + public string[] subscriptionIdList; } ///