Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 4 SampleCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ private static void ShowMethods()
Console.WriteLine(" GetCustomerProfileTransactionList");
Console.WriteLine(" CreateAnAcceptPaymentTransaction");
Console.WriteLine(" GetAccountUpdaterJobSummary");
Console.WriteLine(" GetAccountUpdaterJobDetails");
}

private static void RunMethod(String methodName)
Expand Down Expand Up @@ -364,6 +365,9 @@ private static void RunMethod(String methodName)
//case "GetAccountUpdaterJobSummary":
// GetAccountUpdaterJobSummary.Run(apiLoginId, transactionKey);
// break;
case "GetAccountUpdaterJobDetails":
GetAccountUpdaterJobDetails.Run(apiLoginId, transactionKey);
break;
default:
ShowUsage();
break;
Expand Down
256 changes: 128 additions & 128 deletions 256 SampleCode.csproj
Original file line number Diff line number Diff line change
@@ -1,129 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{EE8CB03C-AFF3-4480-AFD5-1C8B51540570}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>net.authorize.sample</RootNamespace>
<AssemblyName>SampleCode</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>.\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>.\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="AuthorizeNet">
<HintPath>packages\AuthorizeNet.1.9.6\lib\AuthorizeNet.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AcceptSuite\CreateAnAcceptPaymentTransaction.cs" />
<Compile Include="AcceptSuite\GetAcceptCustomerProfilePage.cs" />
<Compile Include="AcceptSuite\GetAnAcceptPaymentPage.cs" />
<Compile Include="MobileInAppTransactions\CreateAnAcceptTransaction.cs" />
<Compile Include="MobileInAppTransactions\CreateAnAndroidPayTransaction.cs" />
<Compile Include="MobileInAppTransactions\CreateAnApplePayTransaction.cs" />
<Compile Include="CustomerProfiles\CreateCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\CreateCustomerProfile.cs" />
<Compile Include="CustomerProfiles\CreateCustomerProfileFromTransaction.cs" />
<Compile Include="CustomerProfiles\CreateCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\DeleteCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\DeleteCustomerProfile.cs" />
<Compile Include="CustomerProfiles\DeleteCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\GetCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\GetCustomerPaymentProfileList.cs" />
<Compile Include="CustomerProfiles\GetCustomerProfile.cs" />
<Compile Include="CustomerProfiles\GetCustomerProfileIds.cs" />
<Compile Include="CustomerProfiles\GetCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\UpdateCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\UpdateCustomerProfile.cs" />
<Compile Include="CustomerProfiles\UpdateCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\ValidateCustomerPaymentProfile.cs" />
<Compile Include="FraudManagement\GetHeldTransactionList.cs" />
<Compile Include="FraudManagement\ApproveOrDeclineHeldTransaction.cs" />
<Compile Include="PaymentTransactions\AuthorizeCreditCard.cs" />
<Compile Include="PaymentTransactions\CaptureFundsAuthorizedThroughAnotherChannel.cs" />
<Compile Include="PaymentTransactions\CapturePreviouslyAuthorizedAmount.cs" />
<Compile Include="PaymentTransactions\ChargeCreditCard.cs" />
<Compile Include="PaymentTransactions\ChargeCustomerProfile.cs" />
<Compile Include="PaymentTransactions\ChargeTrackData.cs" />
<Compile Include="PaymentTransactions\ChargeEncryptedTrackData.cs" />
<Compile Include="PaymentTransactions\ChargeTokenizedCreditCard.cs" />
<Compile Include="PaymentTransactions\CreditBankAccount.cs" />
<Compile Include="PaymentTransactions\DebitBankAccount.cs" />
<Compile Include="PaymentTransactions\RefundTransaction.cs" />
<Compile Include="PaymentTransactions\UpdateSplitTenderGroup.cs" />
<Compile Include="PaymentTransactions\VoidTransaction.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationAndCapture.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationAndCaptureContinued.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationOnly.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationOnlyContinued.cs" />
<Compile Include="PayPalExpressCheckout\Credit.cs" />
<Compile Include="PayPalExpressCheckout\GetDetails.cs" />
<Compile Include="PayPalExpressCheckout\PriorAuthorizationCapture.cs" />
<Compile Include="PayPalExpressCheckout\Void.cs" />
<Compile Include="RecurringBilling\CancelSubscription.cs" />
<Compile Include="RecurringBilling\CreateSubscription.cs" />
<Compile Include="RecurringBilling\CreateSubscriptionFromCustomerProfile.cs" />
<Compile Include="RecurringBilling\GetListOfSubscriptions.cs" />
<Compile Include="RecurringBilling\GetSubscription.cs" />
<Compile Include="RecurringBilling\GetSubscriptionStatus.cs" />
<Compile Include="RecurringBilling\UpdateSubscription.cs" />
<Compile Include="SampleCode.cs" />
<Compile Include="TransactionReporting\GetAccountUpdaterJobDetails.cs" />
<Compile Include="TransactionReporting\GetAccountUpdaterJobSummary.cs" />
<Compile Include="TransactionReporting\GetBatchStatistics.cs" />
<Compile Include="TransactionReporting\GetMerchantDetails.cs" />
<Compile Include="TransactionReporting\GetSettledBatchList.cs" />
<Compile Include="TransactionReporting\GetTransactionDetails.cs" />
<Compile Include="TransactionReporting\GetTransactionList.cs" />
<Compile Include="TransactionReporting\GetCustomerProfileTransactionList.cs" />
<Compile Include="TransactionReporting\GetUnsettledTransactionList.cs" />
<Compile Include="VisaCheckout\DecryptVisaCheckoutData.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="VisaCheckout\CreateVisaCheckoutTransaction.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{EE8CB03C-AFF3-4480-AFD5-1C8B51540570}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>net.authorize.sample</RootNamespace>
<AssemblyName>SampleCode</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>.\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>.\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="AuthorizeNet">
<HintPath>packages\AuthorizeNet.1.9.6\lib\AuthorizeNet.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AcceptSuite\CreateAnAcceptPaymentTransaction.cs" />
<Compile Include="AcceptSuite\GetAcceptCustomerProfilePage.cs" />
<Compile Include="AcceptSuite\GetAnAcceptPaymentPage.cs" />
<Compile Include="MobileInAppTransactions\CreateAnAcceptTransaction.cs" />
<Compile Include="MobileInAppTransactions\CreateAnAndroidPayTransaction.cs" />
<Compile Include="MobileInAppTransactions\CreateAnApplePayTransaction.cs" />
<Compile Include="CustomerProfiles\CreateCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\CreateCustomerProfile.cs" />
<Compile Include="CustomerProfiles\CreateCustomerProfileFromTransaction.cs" />
<Compile Include="CustomerProfiles\CreateCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\DeleteCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\DeleteCustomerProfile.cs" />
<Compile Include="CustomerProfiles\DeleteCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\GetCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\GetCustomerPaymentProfileList.cs" />
<Compile Include="CustomerProfiles\GetCustomerProfile.cs" />
<Compile Include="CustomerProfiles\GetCustomerProfileIds.cs" />
<Compile Include="CustomerProfiles\GetCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\UpdateCustomerPaymentProfile.cs" />
<Compile Include="CustomerProfiles\UpdateCustomerProfile.cs" />
<Compile Include="CustomerProfiles\UpdateCustomerShippingAddress.cs" />
<Compile Include="CustomerProfiles\ValidateCustomerPaymentProfile.cs" />
<Compile Include="FraudManagement\GetHeldTransactionList.cs" />
<Compile Include="FraudManagement\ApproveOrDeclineHeldTransaction.cs" />
<Compile Include="PaymentTransactions\AuthorizeCreditCard.cs" />
<Compile Include="PaymentTransactions\CaptureFundsAuthorizedThroughAnotherChannel.cs" />
<Compile Include="PaymentTransactions\CapturePreviouslyAuthorizedAmount.cs" />
<Compile Include="PaymentTransactions\ChargeCreditCard.cs" />
<Compile Include="PaymentTransactions\ChargeCustomerProfile.cs" />
<Compile Include="PaymentTransactions\ChargeTrackData.cs" />
<Compile Include="PaymentTransactions\ChargeEncryptedTrackData.cs" />
<Compile Include="PaymentTransactions\ChargeTokenizedCreditCard.cs" />
<Compile Include="PaymentTransactions\CreditBankAccount.cs" />
<Compile Include="PaymentTransactions\DebitBankAccount.cs" />
<Compile Include="PaymentTransactions\RefundTransaction.cs" />
<Compile Include="PaymentTransactions\UpdateSplitTenderGroup.cs" />
<Compile Include="PaymentTransactions\VoidTransaction.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationAndCapture.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationAndCaptureContinued.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationOnly.cs" />
<Compile Include="PayPalExpressCheckout\AuthorizationOnlyContinued.cs" />
<Compile Include="PayPalExpressCheckout\Credit.cs" />
<Compile Include="PayPalExpressCheckout\GetDetails.cs" />
<Compile Include="PayPalExpressCheckout\PriorAuthorizationCapture.cs" />
<Compile Include="PayPalExpressCheckout\Void.cs" />
<Compile Include="RecurringBilling\CancelSubscription.cs" />
<Compile Include="RecurringBilling\CreateSubscription.cs" />
<Compile Include="RecurringBilling\CreateSubscriptionFromCustomerProfile.cs" />
<Compile Include="RecurringBilling\GetListOfSubscriptions.cs" />
<Compile Include="RecurringBilling\GetSubscription.cs" />
<Compile Include="RecurringBilling\GetSubscriptionStatus.cs" />
<Compile Include="RecurringBilling\UpdateSubscription.cs" />
<Compile Include="SampleCode.cs" />
<Compile Include="TransactionReporting\GetAccountUpdaterJobDetails.cs" />
<Compile Include="TransactionReporting\GetAccountUpdaterJobSummary.cs" />
<Compile Include="TransactionReporting\GetBatchStatistics.cs" />
<Compile Include="TransactionReporting\GetMerchantDetails.cs" />
<Compile Include="TransactionReporting\GetSettledBatchList.cs" />
<Compile Include="TransactionReporting\GetTransactionDetails.cs" />
<Compile Include="TransactionReporting\GetTransactionList.cs" />
<Compile Include="TransactionReporting\GetCustomerProfileTransactionList.cs" />
<Compile Include="TransactionReporting\GetUnsettledTransactionList.cs" />
<Compile Include="VisaCheckout\DecryptVisaCheckoutData.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="VisaCheckout\CreateVisaCheckoutTransaction.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
4 changes: 4 additions & 0 deletions 4 SampleCodeTest/TestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,5 +468,9 @@ public ANetApiResponse TestGetAnAcceptPaymentPage()
return GetAnAcceptPaymentPage.Run(apiLoginId, transactionKey, GetAmount());
}

public ANetApiResponse TestGetAccountUpdaterJobDetails()
{
return GetAccountUpdaterJobDetails.Run(apiLoginId, transactionKey);
}
}
}
16 changes: 13 additions & 3 deletions 16 TransactionReporting/GetAccountUpdaterJobDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Bases;
using System.Collections;

namespace net.authorize.sample
{
Expand All @@ -25,14 +26,15 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey)
};

// parameters for request

string month = "2018-05";

var request = new getAUJobDetailsRequest();
request.month = month;
request.modifiedTypeFilter = AUJobTypeEnum.all;
request.paging = new Paging
{
limit = 1000,
limit = 100,
offset = 1
};

Expand All @@ -45,6 +47,7 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey)

if (response != null && response.messages.resultCode == messageTypeEnum.Ok)
{
Console.WriteLine("SUCCESS: Get Account Updater job details for Month : " + month);
if (response.auDetails == null)
return response;

Expand All @@ -63,13 +66,20 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey)
Console.WriteLine("Reason Code: {0}", delete.auReasonCode);
Console.WriteLine("Reason Description: {0}", delete.reasonDescription);
}

}

else if (response != null)
{
Console.WriteLine("Error: " + response.messages.message[0].code + " " +
response.messages.message[0].text);
response.messages.message[0].text);
}
else if (response == null)
{
var errResponse = controller.GetErrorResponse();
Console.WriteLine("Error: " + errResponse.messages.message[0].code + " " +
response.messages.message[0].text);
}

return response;
}
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.