Repository: AuthorizeNet/sdk-dotnet
Branch: master
Commit: f9f674a22ff1
Files: 170
Total size: 1.0 MB
Directory structure:
gitextract_8bz_t022/
├── .github/
│ └── workflows/
│ └── dotnet-workflow.yml
├── .gitignore
├── .gitmodules
├── .travis.yml
├── Authorize.NET/
│ ├── Api/
│ │ ├── Contracts/
│ │ │ └── V1/
│ │ │ ├── AnetApiSchema.generated.cs
│ │ │ ├── RequestFactoryWithSpecified.cs
│ │ │ └── RequestFactoryWithSpecified.generated.org
│ │ ├── ControllerTemplate.cst
│ │ └── Controllers/
│ │ ├── ARBCancelSubscriptionController.cs
│ │ ├── ARBCreateSubscriptionController.cs
│ │ ├── ARBGetSubscriptionController.cs
│ │ ├── ARBGetSubscriptionListController.cs
│ │ ├── ARBGetSubscriptionStatusController.cs
│ │ ├── ARBUpdateSubscriptionController.cs
│ │ ├── Bases/
│ │ │ ├── ApiOperationBase.cs
│ │ │ ├── ErrorResponse.cs
│ │ │ └── IApiOperation.cs
│ │ ├── authenticateTestController.cs
│ │ ├── createCustomerPaymentProfileController.cs
│ │ ├── createCustomerProfileController.cs
│ │ ├── createCustomerProfileFromTransactionController.cs
│ │ ├── createCustomerProfileTransactionController.cs
│ │ ├── createCustomerShippingAddressController.cs
│ │ ├── createFingerPrintController.cs
│ │ ├── createProfileController.cs
│ │ ├── createTransactionController.cs
│ │ ├── decryptPaymentDataController.cs
│ │ ├── deleteCustomerPaymentProfileController.cs
│ │ ├── deleteCustomerProfileController.cs
│ │ ├── deleteCustomerShippingAddressController.cs
│ │ ├── getAUJobDetailsController.cs
│ │ ├── getAUJobSummaryController.cs
│ │ ├── getBatchStatisticsController.cs
│ │ ├── getCustomerPaymentProfileController.cs
│ │ ├── getCustomerPaymentProfileListController.cs
│ │ ├── getCustomerPaymentProfileNonceController.cs
│ │ ├── getCustomerProfileController.cs
│ │ ├── getCustomerProfileIdsController.cs
│ │ ├── getCustomerShippingAddressController.cs
│ │ ├── getHostedPaymentPageController.cs
│ │ ├── getHostedProfilePageController.cs
│ │ ├── getMerchantDetailsController.cs
│ │ ├── getSettledBatchListController.cs
│ │ ├── getTransactionDetailsController.cs
│ │ ├── getTransactionListController.cs
│ │ ├── getTransactionListForCustomerController.cs
│ │ ├── getUnsettledTransactionListController.cs
│ │ ├── isAliveController.cs
│ │ ├── logoutController.cs
│ │ ├── mobileDeviceLoginController.cs
│ │ ├── mobileDeviceRegistrationController.cs
│ │ ├── securePaymentContainerController.cs
│ │ ├── sendCustomerTransactionReceiptController.cs
│ │ ├── transactionController.cs
│ │ ├── transactionResponseEmvController.cs
│ │ ├── updateCustomerPaymentProfileController.cs
│ │ ├── updateCustomerProfileController.cs
│ │ ├── updateCustomerShippingAddressController.cs
│ │ ├── updateHeldTransactionController.cs
│ │ ├── updateMerchantDetailsController.cs
│ │ ├── updateSplitTenderGroupController.cs
│ │ └── validateCustomerPaymentProfileController.cs
│ ├── AuthorizeNET.csproj
│ ├── Environment.cs
│ ├── MarketType.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── TestFriends.cs
│ ├── Util/
│ │ ├── Constants.cs
│ │ ├── EnumHelper.cs
│ │ ├── HtmlHelper.cs
│ │ ├── HttpUtility.cs
│ │ ├── LogHelper.cs
│ │ ├── SensitiveDataConfigType.cs
│ │ ├── SensitiveDataConsoleLogger.cs
│ │ ├── SensitiveDataTextLogger.cs
│ │ ├── StringUtils.cs
│ │ └── XmlUtility.cs
│ └── Utility/
│ ├── AnetApiSchema.generated.cs
│ ├── AnetRandom.cs
│ ├── ApiFields.cs
│ └── CryptoRandom.cs
├── AuthorizeNET.sln
├── AuthorizeNET.vsmdi
├── AuthorizeNETtest/
│ ├── Api/
│ │ ├── ControllerTemplateTest.cst
│ │ └── Controllers/
│ │ ├── MockTest/
│ │ │ ├── ARBCancelSubscriptionControllerTest.cs
│ │ │ ├── ARBCreateSubscriptionControllerTest.cs
│ │ │ ├── ARBGetSubscriptionControllerTest.cs
│ │ │ ├── ARBGetSubscriptionListControllerTest.cs
│ │ │ ├── ARBGetSubscriptionStatusControllerTest.cs
│ │ │ ├── ARBUpdateSubscriptionControllerTest.cs
│ │ │ ├── authenticateTestControllerTest.cs
│ │ │ ├── createCustomerPaymentProfileControllerTest.cs
│ │ │ ├── createCustomerProfileControllerTest.cs
│ │ │ ├── createCustomerProfileFromTransactionControllerTest.cs
│ │ │ ├── createCustomerProfileTransactionControllerTest.cs
│ │ │ ├── createCustomerShippingAddressControllerTest.cs
│ │ │ ├── createFingerPrintControllerTest.cs
│ │ │ ├── createProfileControllerTest.cs
│ │ │ ├── createTransactionControllerTest.cs
│ │ │ ├── decryptPaymentDataControllerTest.cs
│ │ │ ├── deleteCustomerPaymentProfileControllerTest.cs
│ │ │ ├── deleteCustomerProfileControllerTest.cs
│ │ │ ├── deleteCustomerShippingAddressControllerTest.cs
│ │ │ ├── getAUJobDetailsControllerTest.cs
│ │ │ ├── getAUJobSummaryControllerTest.cs
│ │ │ ├── getBatchStatisticsControllerTest.cs
│ │ │ ├── getCustomerPaymentProfileControllerTest.cs
│ │ │ ├── getCustomerPaymentProfileListControllerTest.cs
│ │ │ ├── getCustomerProfileControllerTest.cs
│ │ │ ├── getCustomerProfileIdsControllerTest.cs
│ │ │ ├── getCustomerShippingAddressControllerTest.cs
│ │ │ ├── getHostedPaymentPageControllerTest.cs
│ │ │ ├── getHostedProfilePageControllerTest.cs
│ │ │ ├── getMerchantDetailsControllerTest.cs
│ │ │ ├── getSettledBatchListControllerTest.cs
│ │ │ ├── getTransactionDetailsControllerTest.cs
│ │ │ ├── getTransactionListControllerTest.cs
│ │ │ ├── getTransactionListForCustomerControllerTest.cs
│ │ │ ├── getUnsettledTransactionListControllerTest.cs
│ │ │ ├── isAliveControllerTest.cs
│ │ │ ├── logoutControllerTest.cs
│ │ │ ├── mobileDeviceLoginControllerTest.cs
│ │ │ ├── mobileDeviceRegistrationControllerTest.cs
│ │ │ ├── securePaymentContainerControllerTest.cs
│ │ │ ├── sendCustomerTransactionReceiptControllerTest.cs
│ │ │ ├── transactionControllerTest.cs
│ │ │ ├── transactionResponseEmvControllerTest.cs
│ │ │ ├── updateCustomerPaymentProfileControllerTest.cs
│ │ │ ├── updateCustomerProfileControllerTest.cs
│ │ │ ├── updateCustomerShippingAddressControllerTest.cs
│ │ │ ├── updateHeldTransactionControllerTest.cs
│ │ │ ├── updateMerchantDetailsControllerTest.cs
│ │ │ ├── updateSplitTenderGroupControllerTest.cs
│ │ │ └── validateCustomerPaymentProfileControllerTest.cs
│ │ ├── SampleTest/
│ │ │ ├── ArbSubscriptionSampleTest.cs
│ │ │ ├── CreateCustomerProfileFromTransactionSampleTest.cs
│ │ │ ├── CreateTransactionSampleTest.cs
│ │ │ ├── CustomerProfileSampleTest.cs
│ │ │ ├── ErrorMessagesSampleTest.cs
│ │ │ └── eCheckTransactionSampleTest.cs
│ │ └── Test/
│ │ ├── APIInvalidCredentials.cs
│ │ ├── AllGeneratedEnumTest.cs
│ │ ├── ApiCoreTestBase.cs
│ │ ├── ArbSubscriptionTest.cs
│ │ └── CreateTransactionTest.cs
│ ├── App.config
│ ├── AuthorizeNETtest.csproj
│ ├── BaseTest.cs
│ ├── NMock3/
│ │ └── NMockTest.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── UnitTestData.cs
│ ├── WebRequestLocal.cs
│ └── packages.config
├── AuthorizeNet.nuspec
├── CONTRIBUTING.md
├── LICENSE.txt
├── LocalTestRun.testrunconfig
├── MIGRATING.md
├── NUnit-2.6.3/
│ └── license.txt
├── README.md
└── scripts/
├── EnumTemplate.cst
├── generateControllersFromTemplate.cmd
├── generateObjectsFromXsd.cmd
├── generateRequestFactorySpecified.cmd
├── generateTestControllersFromTemplate.cmd
├── generateTestForEnums.cmd
├── getXsdWsdl.cmd
├── masterUpdate.cmd
├── prepareBinariesForVeracodeScan.cmd
└── validateCygwinBinaries.cmd
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/workflows/dotnet-workflow.yml
================================================
name: Authorize.net DotNet CI
on:
push:
pull_request:
workflow_dispatch:
env:
sdk_dotnet: 'sdk-dotnet'
sample_code_csharp: 'sample-code-csharp'
jobs:
workflow-job-build:
defaults:
run:
shell: bash
runs-on: windows-2019
steps:
- name: Checkout authorizenet/sdk-dotnet
uses: actions/checkout@v4
with:
path: ${{env.sdk_dotnet}}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Compile the SDK
shell: pwsh
run: |
cd $Env:sdk_dotnet
(Get-Content ./AuthorizeNETtest/App.config) | ForEach-Object { $_ -replace '', '' } | ForEach-Object { $_ -replace '', '' } | ForEach-Object { $_ -replace '', '' } | Set-Content ./AuthorizeNETtest/App.config
nuget install ./AuthorizeNETtest/packages.config -OutputDirectory packages
msbuild -version
msbuild "./AuthorizeNET.sln" -property:Configuration=Release -t:rebuild
Write-Output "Build Successful"
nuget pack AuthorizeNet.nuspec
- name: Upload SDK Nupkg
uses: actions/upload-artifact@v4
with:
name: sdk-nupkg
path: ${{env.sdk_dotnet}}/*.nupkg
- name: Run UnitTests
uses: josepho0918/vstest-action@main
with:
testAssembly: AuthorizeNETtest.dll
searchFolder: ${{env.sdk_dotnet}}/AuthorizeNETtest/bin/Release/
runInParallel: true
workflow-job-integration-tests:
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
operating-system: [windows-latest, windows-2019]
net-framework-version: [4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1]
exclude:
- operating-system: windows-2019
net-framework-version: 4.8.1
- operating-system: windows-latest
net-framework-version: 4.6.1
needs: workflow-job-build
runs-on: ${{matrix.operating-system}}
steps:
- name: Download SDK from previous job
uses: actions/download-artifact@v4
with:
name: sdk-nupkg
path: sdk-nupkg
- name: Checkout authorizenet/sample-code-csharp
uses: actions/checkout@v4
with:
repository: 'authorizenet/sample-code-csharp'
ref: 'master'
path: ${{env.sample_code_csharp}}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Compile the Sample Application
shell: pwsh
run: |
$clientSdkFolderName = (Get-ChildItem -Path sdk-nupkg -Filter "*nupkg" | Select-Object -First 1).BaseName
$clientSdkVersion = $clientSdkFolderName.Substring(13)
nuget Sources Add -Name "temporary_nuget_source" -Source ((Get-Location).Path + "\sdk-nupkg")
cd $Env:sample_code_csharp
(Get-Content ./packages.config) | ForEach-Object { $_ -replace '.*', "" } | Set-Content ./packages.config
nuget install ./packages.config -OutputDirectory packages -Source temporary_nuget_source -Source https://api.nuget.org/v3/index.json
nuget install ./SampleCodeTest/packages.config -OutputDirectory packages -Source temporary_nuget_source -Source https://api.nuget.org/v3/index.json
(Get-Content ./SampleCode.csproj) | ForEach-Object { $_ -replace "()(.)+(AuthorizeNet.dll)", "packages\\$clientSdkFolderName\\lib\\AuthorizeNet.dll" } | Set-Content ./SampleCode.csproj
(Get-Content ./SampleCodeTest/SampleCodeTest.csproj) | ForEach-Object { $_ -replace "()(.)+(AuthorizeNet.dll)", "..\\packages\\$clientSdkFolderName\\lib\\AuthorizeNet.dll" } | Set-Content ./SampleCodeTest/SampleCodeTest.csproj
(Get-Content ./SampleCode.csproj) | ForEach-Object { $_ -replace "()(.)+()", "v${{matrix.net-framework-version}}" } | Set-Content ./SampleCode.csproj
(Get-Content ./SampleCodeTest/SampleCodeTest.csproj) | ForEach-Object { $_ -replace "()(.)+()", "v${{matrix.net-framework-version}}" } | Set-Content ./SampleCodeTest/SampleCodeTest.csproj
msbuild -version
msbuild "./SampleCode.sln" -property:Configuration=Debug -t:rebuild
Write-Output "Build Successful"
- name: Run UnitTests
uses: josepho0918/vstest-action@main
with:
testAssembly: SampleCodeTest.dll
searchFolder: ${{env.sample_code_csharp}}/SampleCodeTest/bin/Debug/
runInParallel: true
================================================
FILE: .gitignore
================================================
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/
# Roslyn cache directories
*.ide/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
#NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding addin-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# If using the old MSBuild-Integrated Package Restore, uncomment this:
#!**/packages/repositories.config
# Windows Azure Build Output
csx/
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
/NUnit.ConsoleRunner.3.13.0
/.vs
/nuget.exe
================================================
FILE: .gitmodules
================================================
[submodule "sample-code-csharp"]
path = sample-code-csharp
url = https://github.com/Authorizenet/sample-code-csharp.git
================================================
FILE: .travis.yml
================================================
language:
csharp
dist: trusty
install:
- sudo apt-get install nunit-console
before_script:
- git submodule update --remote --recursive
script:
- xbuild ./Authorize.NET/AuthorizeNET.csproj
- xbuild ./AuthorizeNETtest/AuthorizeNETtest.csproj
# make mono happy by copying the config file with project name
- cp AuthorizeNETtest/App.config AuthorizeNETtest/AuthorizeNETtest.config
- nunit-console ./AuthorizeNETtest/AuthorizeNETtest.csproj -run=AuthorizeNet.Api.Controllers.MockTest -exclude Integration,NotWorkingOnMono
- cp ./Authorize.NET/bin/Debug/AuthorizeNet.dll ./sample-code-csharp/
- xbuild ./sample-code-csharp/SampleCode.csproj
- xbuild ./sample-code-csharp/SampleCodeTest/SampleCodeTest.csproj
- nunit-console ./sample-code-csharp/SampleCodeTest/SampleCodeTest.csproj -run=SampleCodeTest
================================================
FILE: Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs
================================================
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
//
// This source code was auto-generated by xsd, Version=4.6.1055.0.
//
namespace AuthorizeNet.Api.Contracts.V1 {
using System.Xml.Serialization;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class decryptPaymentDataRequest : ANetApiRequest {
///
public opaqueDataType opaqueData;
///
public string callId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class opaqueDataType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string dataDescriptor;
///
public string dataValue;
///
public string dataKey;
///
public System.DateTime expirationTimeStamp;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool expirationTimeStampSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class processorType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
public int id;
///
[System.Xml.Serialization.XmlArrayItemAttribute("cardType")]
public string[] cardTypes;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(auDeleteType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(auUpdateType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
///
public long customerProfileID;
///
public long customerPaymentProfileID;
///
public string firstName;
///
public string lastName;
///
public string updateTimeUTC;
///
public string auReasonCode;
///
public string reasonDescription;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auDeleteType : auDetailsType {
///
public creditCardMaskedType creditCard;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardMaskedType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string cardNumber;
///
public string expirationDate;
///
public string cardType;
///
public cardArt cardArt;
///
public string issuerNumber;
///
public bool isPaymentToken;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isPaymentTokenSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class cardArt : object, System.ComponentModel.INotifyPropertyChanged {
///
public string cardBrand;
///
public string cardImageHeight;
///
public string cardImageUrl;
///
public string cardImageWidth;
///
public string cardType;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auUpdateType : auDetailsType {
///
public creditCardMaskedType newCreditCard;
///
public creditCardMaskedType oldCreditCard;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auResponseType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string auReasonCode;
///
public long profileCount;
///
public string reasonDescription;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileListItemType : object, System.ComponentModel.INotifyPropertyChanged {
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public int customerPaymentProfileId;
///
public int customerProfileId;
///
public customerAddressType billTo;
///
public paymentMaskedType payment;
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public bool excludeFromAccountUpdater;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool excludeFromAccountUpdaterSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerAddressType : nameAndAddressType {
///
public string phoneNumber;
///
public string faxNumber;
///
public string email;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class nameAndAddressType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string firstName;
///
public string lastName;
///
public string company;
///
public string address;
///
public string city;
///
public string state;
///
public string zip;
///
public string country;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerAddressExType : customerAddressType {
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentMaskedType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountMaskedType))]
[System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardMaskedType))]
[System.Xml.Serialization.XmlElementAttribute("tokenInformation", typeof(tokenMaskedType))]
public object Item;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class bankAccountMaskedType : object, System.ComponentModel.INotifyPropertyChanged {
///
public bankAccountTypeEnum accountType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool accountTypeSpecified;
///
public string routingNumber;
///
public string accountNumber;
///
public string nameOnAccount;
///
public echeckTypeEnum echeckType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool echeckTypeSpecified;
///
public string bankName;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum bankAccountTypeEnum {
///
checking,
///
savings,
///
businessChecking,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum echeckTypeEnum {
///
PPD,
///
WEB,
///
CCD,
///
TEL,
///
ARC,
///
BOC,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class tokenMaskedType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string tokenSource;
///
public string tokenNumber;
///
public string expirationDate;
///
public string tokenRequestorId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class CustomerPaymentProfileSorting : object, System.ComponentModel.INotifyPropertyChanged {
///
public CustomerPaymentProfileOrderFieldEnum orderBy;
///
public bool orderDescending;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum CustomerPaymentProfileOrderFieldEnum {
///
id,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileSummaryType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string customerProfileId;
///
public string description;
///
public string merchantCustomerId;
///
public string email;
///
public System.DateTime createdDate;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class SubscriptionDetail : object, System.ComponentModel.INotifyPropertyChanged {
///
public int id;
///
public string name;
///
public ARBSubscriptionStatusEnum status;
///
public System.DateTime createTimeStampUTC;
///
public string firstName;
///
public string lastName;
///
public int totalOccurrences;
///
public int pastOccurrences;
///
public paymentMethodEnum paymentMethod;
///
public string accountNumber;
///
public string invoice;
///
public decimal amount;
///
public string currencyCode;
///
public int customerProfileId;
///
public int customerPaymentProfileId;
///
public int customerShippingProfileId;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool customerShippingProfileIdSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBSubscriptionStatusEnum {
///
active,
///
expired,
///
suspended,
///
canceled,
///
terminated,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum paymentMethodEnum {
///
creditCard,
///
eCheck,
///
payPal,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ARBGetSubscriptionListSorting : object, System.ComponentModel.INotifyPropertyChanged {
///
public ARBGetSubscriptionListOrderFieldEnum orderBy;
///
public bool orderDescending;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBGetSubscriptionListOrderFieldEnum {
///
id,
///
name,
///
status,
///
createTimeStampUTC,
///
lastName,
///
firstName,
///
accountNumber,
///
amount,
///
pastOccurrences,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class Paging : object, System.ComponentModel.INotifyPropertyChanged {
///
public int limit;
///
public int offset;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class TransactionListSorting : object, System.ComponentModel.INotifyPropertyChanged {
///
public TransactionListOrderFieldEnum orderBy;
///
public bool orderDescending;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum TransactionListOrderFieldEnum {
///
id,
///
submitTimeUTC,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class heldTransactionRequestType : object, System.ComponentModel.INotifyPropertyChanged {
///
public afdsTransactionEnum action;
///
public string refTransId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum afdsTransactionEnum {
///
approve,
///
decline,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class createProfileResponse : object, System.ComponentModel.INotifyPropertyChanged {
///
public messagesType messages;
///
public string customerProfileId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerPaymentProfileIdList;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerShippingAddressIdList;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class messagesType : object, System.ComponentModel.INotifyPropertyChanged {
///
public messageTypeEnum resultCode;
///
[System.Xml.Serialization.XmlElementAttribute("message")]
public messagesTypeMessage[] message;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum messageTypeEnum {
///
Ok,
///
Error,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class messagesTypeMessage : object, System.ComponentModel.INotifyPropertyChanged {
///
public string code;
///
public string text;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponse : object, System.ComponentModel.INotifyPropertyChanged {
///
public string responseCode;
///
public string rawResponseCode;
///
public string authCode;
///
public string avsResultCode;
///
public string cvvResultCode;
///
public string cavvResultCode;
///
public string transId;
///
public string refTransID;
///
public string transHash;
///
public string testRequest;
///
public string accountNumber;
///
public string entryMode;
///
public string accountType;
///
public string splitTenderId;
///
public transactionResponsePrePaidCard prePaidCard;
///
[System.Xml.Serialization.XmlArrayItemAttribute("message", IsNullable=false)]
public transactionResponseMessage[] messages;
///
[System.Xml.Serialization.XmlArrayItemAttribute("error", IsNullable=false)]
public transactionResponseError[] errors;
///
[System.Xml.Serialization.XmlArrayItemAttribute("splitTenderPayment", IsNullable=false)]
public transactionResponseSplitTenderPayment[] splitTenderPayments;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public userField[] userFields;
///
public nameAndAddressType shipTo;
///
public transactionResponseSecureAcceptance secureAcceptance;
///
public transactionResponseEmvResponse emvResponse;
///
public string transHashSha2;
///
public customerProfileIdType profile;
///
public string networkTransId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponsePrePaidCard : object, System.ComponentModel.INotifyPropertyChanged {
///
public string requestedAmount;
///
public string approvedAmount;
///
public string balanceOnCard;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseMessage : object, System.ComponentModel.INotifyPropertyChanged {
///
public string code;
///
public string description;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseError : object, System.ComponentModel.INotifyPropertyChanged {
///
public string errorCode;
///
public string errorText;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseSplitTenderPayment : object, System.ComponentModel.INotifyPropertyChanged {
///
public string transId;
///
public string responseCode;
///
public string responseToCustomer;
///
public string authCode;
///
public string accountNumber;
///
public string accountType;
///
public string requestedAmount;
///
public string approvedAmount;
///
public string balanceOnCard;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class userField : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
public string value;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseSecureAcceptance : object, System.ComponentModel.INotifyPropertyChanged {
///
public string SecureAcceptanceUrl;
///
public string PayerID;
///
public string PayerEmail;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseEmvResponse : object, System.ComponentModel.INotifyPropertyChanged {
///
public string tlvData;
///
[System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)]
public emvTag[] tags;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class emvTag : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
public string value;
///
public string formatted;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileIdType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerAddressId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class returnedItemType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string id;
///
public System.DateTime dateUTC;
///
public System.DateTime dateLocal;
///
public string code;
///
public string description;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string transId;
///
public string refTransId;
///
public string splitTenderId;
///
public System.DateTime submitTimeUTC;
///
public System.DateTime submitTimeLocal;
///
public string transactionType;
///
public string transactionStatus;
///
public int responseCode;
///
public int responseReasonCode;
///
public subscriptionPaymentType subscription;
///
public string responseReasonDescription;
///
public string authCode;
///
public string AVSResponse;
///
public string cardCodeResponse;
///
public string CAVVResponse;
///
public string FDSFilterAction;
///
[System.Xml.Serialization.XmlArrayItemAttribute("FDSFilter", IsNullable=false)]
public FDSFilterType[] FDSFilters;
///
public batchDetailsType batch;
///
public orderExType order;
///
public decimal requestedAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool requestedAmountSpecified;
///
public decimal authAmount;
///
public decimal settleAmount;
///
public extendedAmountType tax;
///
public extendedAmountType shipping;
///
public extendedAmountType duty;
///
[System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)]
public lineItemType[] lineItems;
///
public decimal prepaidBalanceRemaining;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool prepaidBalanceRemainingSpecified;
///
public bool taxExempt;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxExemptSpecified;
///
public paymentMaskedType payment;
///
public customerDataType customer;
///
public customerAddressType billTo;
///
public nameAndAddressType shipTo;
///
public bool recurringBilling;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool recurringBillingSpecified;
///
public string customerIP;
///
public string product;
///
public string entryMode;
///
public string marketType;
///
public string mobileDeviceId;
///
public string customerSignature;
///
[System.Xml.Serialization.XmlArrayItemAttribute("returnedItem", IsNullable=false)]
public returnedItemType[] returnedItems;
///
public solutionType solution;
///
[System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)]
public transactionDetailsTypeTag[] emvDetails;
///
public customerProfileIdType profile;
///
public extendedAmountType surcharge;
///
public string employeeId;
///
public extendedAmountType tip;
///
public otherTaxType otherTax;
///
public nameAndAddressType shipFrom;
///
public string networkTransId;
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public string authorizationIndicator;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subscriptionPaymentType : object, System.ComponentModel.INotifyPropertyChanged {
///
public int id;
///
public int payNum;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class FDSFilterType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
public string action;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class batchDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string batchId;
///
public System.DateTime settlementTimeUTC;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool settlementTimeUTCSpecified;
///
public System.DateTime settlementTimeLocal;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool settlementTimeLocalSpecified;
///
public string settlementState;
///
public string paymentMethod;
///
public string marketType;
///
public string product;
///
[System.Xml.Serialization.XmlArrayItemAttribute("statistic", IsNullable=false)]
public batchStatisticType[] statistics;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class batchStatisticType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string accountType;
///
public decimal chargeAmount;
///
public int chargeCount;
///
public decimal refundAmount;
///
public int refundCount;
///
public int voidCount;
///
public int declineCount;
///
public int errorCount;
///
public decimal returnedItemAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool returnedItemAmountSpecified;
///
public int returnedItemCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool returnedItemCountSpecified;
///
public decimal chargebackAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargebackAmountSpecified;
///
public int chargebackCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargebackCountSpecified;
///
public int correctionNoticeCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool correctionNoticeCountSpecified;
///
public decimal chargeChargeBackAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeChargeBackAmountSpecified;
///
public int chargeChargeBackCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeChargeBackCountSpecified;
///
public decimal refundChargeBackAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundChargeBackAmountSpecified;
///
public int refundChargeBackCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundChargeBackCountSpecified;
///
public decimal chargeReturnedItemsAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeReturnedItemsAmountSpecified;
///
public int chargeReturnedItemsCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeReturnedItemsCountSpecified;
///
public decimal refundReturnedItemsAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundReturnedItemsAmountSpecified;
///
public int refundReturnedItemsCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundReturnedItemsCountSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class orderExType : orderType {
///
public string purchaseOrderNumber;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(orderExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class orderType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string invoiceNumber;
///
public string description;
///
public decimal discountAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool discountAmountSpecified;
///
public bool taxIsAfterDiscount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxIsAfterDiscountSpecified;
///
public string totalTaxTypeCode;
///
public string purchaserVATRegistrationNumber;
///
public string merchantVATRegistrationNumber;
///
public string vatInvoiceReferenceNumber;
///
public string purchaserCode;
///
public string summaryCommodityCode;
///
[System.Xml.Serialization.XmlElementAttribute(DataType="date")]
public System.DateTime purchaseOrderDateUTC;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool purchaseOrderDateUTCSpecified;
///
public string supplierOrderReference;
///
public string authorizedContactName;
///
public string cardAcceptorRefNumber;
///
public string amexDataTAA1;
///
public string amexDataTAA2;
///
public string amexDataTAA3;
///
public string amexDataTAA4;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class extendedAmountType : object, System.ComponentModel.INotifyPropertyChanged {
///
public decimal amount;
///
public string name;
///
public string description;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class lineItemType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string itemId;
///
public string name;
///
public string description;
///
public decimal quantity;
///
public decimal unitPrice;
///
public bool taxable;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxableSpecified;
///
public string unitOfMeasure;
///
public string typeOfSupply;
///
public decimal taxRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxRateSpecified;
///
public decimal taxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxAmountSpecified;
///
public decimal nationalTax;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool nationalTaxSpecified;
///
public decimal localTax;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool localTaxSpecified;
///
public decimal vatRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool vatRateSpecified;
///
public string alternateTaxId;
///
public string alternateTaxType;
///
public string alternateTaxTypeApplied;
///
public decimal alternateTaxRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool alternateTaxRateSpecified;
///
public decimal alternateTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool alternateTaxAmountSpecified;
///
public decimal totalAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalAmountSpecified;
///
public string commodityCode;
///
public string productCode;
///
public string productSKU;
///
public decimal discountRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool discountRateSpecified;
///
public decimal discountAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool discountAmountSpecified;
///
public bool taxIncludedInTotal;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxIncludedInTotalSpecified;
///
public bool taxIsAfterDiscount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxIsAfterDiscountSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerDataType : object, System.ComponentModel.INotifyPropertyChanged {
///
public customerTypeEnum type;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool typeSpecified;
///
public string id;
///
public string email;
///
public driversLicenseType driversLicense;
///
public string taxId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum customerTypeEnum {
///
individual,
///
business,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class driversLicenseType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string number;
///
public string state;
///
public string dateOfBirth;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class solutionType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string id;
///
public string name;
///
public string vendorName;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionDetailsTypeTag : object, System.ComponentModel.INotifyPropertyChanged {
///
public string tagId;
///
public string data;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class otherTaxType : object, System.ComponentModel.INotifyPropertyChanged {
///
public decimal nationalTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool nationalTaxAmountSpecified;
///
public decimal localTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool localTaxAmountSpecified;
///
public decimal alternateTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool alternateTaxAmountSpecified;
///
public string alternateTaxId;
///
public decimal vatTaxRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool vatTaxRateSpecified;
///
public decimal vatTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool vatTaxAmountSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransactionType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlElementAttribute("profileTransAuthCapture", typeof(profileTransAuthCaptureType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransAuthOnly", typeof(profileTransAuthOnlyType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransCaptureOnly", typeof(profileTransCaptureOnlyType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransPriorAuthCapture", typeof(profileTransPriorAuthCaptureType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransRefund", typeof(profileTransRefundType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransVoid", typeof(profileTransVoidType))]
public object Item;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransAuthCaptureType : profileTransOrderType {
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransOrderType : profileTransAmountType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public orderExType order;
///
public bool taxExempt;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxExemptSpecified;
///
public bool recurringBilling;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool recurringBillingSpecified;
///
public string cardCode;
///
public string splitTenderId;
///
public processingOptions processingOptions;
///
public subsequentAuthInformation subsequentAuthInformation;
///
public authorizationIndicatorType authorizationIndicatorType;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class processingOptions : object, System.ComponentModel.INotifyPropertyChanged {
///
public bool isFirstRecurringPayment;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isFirstRecurringPaymentSpecified;
///
public bool isFirstSubsequentAuth;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isFirstSubsequentAuthSpecified;
///
public bool isSubsequentAuth;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isSubsequentAuthSpecified;
///
public bool isStoredCredentials;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isStoredCredentialsSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subsequentAuthInformation : object, System.ComponentModel.INotifyPropertyChanged {
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public merchantInitTransReasonEnum reason;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool reasonSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum merchantInitTransReasonEnum {
///
resubmission,
///
delayedCharge,
///
reauthorization,
///
noShow,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class authorizationIndicatorType : object, System.ComponentModel.INotifyPropertyChanged {
///
public authIndicatorEnum authorizationIndicator;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool authorizationIndicatorSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum authIndicatorEnum {
///
pre,
///
final,
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransRefundType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransPriorAuthCaptureType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransOrderType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransAmountType : object, System.ComponentModel.INotifyPropertyChanged {
///
public decimal amount;
///
public extendedAmountType tax;
///
public extendedAmountType shipping;
///
public extendedAmountType duty;
///
[System.Xml.Serialization.XmlElementAttribute("lineItems")]
public lineItemType[] lineItems;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransRefundType : profileTransAmountType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string creditCardNumberMasked;
///
public string bankRoutingNumberMasked;
///
public string bankAccountNumberMasked;
///
public orderExType order;
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransPriorAuthCaptureType : profileTransAmountType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransCaptureOnlyType : profileTransOrderType {
///
public string approvalCode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransAuthOnlyType : profileTransOrderType {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransVoidType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string transId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentProfile : object, System.ComponentModel.INotifyPropertyChanged {
///
public string paymentProfileId;
///
public string cardCode;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfilePaymentType : object, System.ComponentModel.INotifyPropertyChanged {
///
public bool createProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool createProfileSpecified;
///
public string customerProfileId;
///
public paymentProfile paymentProfile;
///
public string shippingProfileId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionRequestType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string transactionType;
///
public decimal amount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool amountSpecified;
///
public string currencyCode;
///
public paymentType payment;
///
public customerProfilePaymentType profile;
///
public solutionType solution;
///
public string callId;
///
public string terminalNumber;
///
public string authCode;
///
public string refTransId;
///
public string splitTenderId;
///
public orderType order;
///
[System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)]
public lineItemType[] lineItems;
///
public extendedAmountType tax;
///
public extendedAmountType duty;
///
public extendedAmountType shipping;
///
public bool taxExempt;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxExemptSpecified;
///
public string poNumber;
///
public customerDataType customer;
///
public customerAddressType billTo;
///
public nameAndAddressType shipTo;
///
public string customerIP;
///
public ccAuthenticationType cardholderAuthentication;
///
public transRetailInfoType retail;
///
public string employeeId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)]
public settingType[] transactionSettings;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public userField[] userFields;
///
public extendedAmountType surcharge;
///
public string merchantDescriptor;
///
public subMerchantType subMerchant;
///
public extendedAmountType tip;
///
public processingOptions processingOptions;
///
public subsequentAuthInformation subsequentAuthInformation;
///
public otherTaxType otherTax;
///
public nameAndAddressType shipFrom;
///
public authorizationIndicatorType authorizationIndicatorType;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))]
[System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardType))]
[System.Xml.Serialization.XmlElementAttribute("emv", typeof(paymentEmvType))]
[System.Xml.Serialization.XmlElementAttribute("encryptedTrackData", typeof(encryptedTrackDataType))]
[System.Xml.Serialization.XmlElementAttribute("opaqueData", typeof(opaqueDataType))]
[System.Xml.Serialization.XmlElementAttribute("payPal", typeof(payPalType))]
[System.Xml.Serialization.XmlElementAttribute("trackData", typeof(creditCardTrackType))]
public object Item;
///
public string dataSource;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class bankAccountType : object, System.ComponentModel.INotifyPropertyChanged {
///
public bankAccountTypeEnum accountType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool accountTypeSpecified;
///
public string routingNumber;
///
public string accountNumber;
///
public string nameOnAccount;
///
public echeckTypeEnum echeckType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool echeckTypeSpecified;
///
public string bankName;
///
public string checkNumber;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardType : creditCardSimpleType {
///
public string cardCode;
///
public bool isPaymentToken;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isPaymentTokenSpecified;
///
public string cryptogram;
///
public string tokenRequestorName;
///
public string tokenRequestorId;
///
public string tokenRequestorEci;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(creditCardType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardSimpleType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string cardNumber;
///
public string expirationDate;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentEmvType : object, System.ComponentModel.INotifyPropertyChanged {
///
public object emvData;
///
public object emvDescriptor;
///
public object emvVersion;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class encryptedTrackDataType : object, System.ComponentModel.INotifyPropertyChanged {
///
public KeyBlock FormOfPayment;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyBlock : object, System.ComponentModel.INotifyPropertyChanged {
///
public KeyValue Value;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyValue : object, System.ComponentModel.INotifyPropertyChanged {
///
public EncodingType Encoding;
///
public EncryptionAlgorithmType EncryptionAlgorithm;
///
public KeyManagementScheme Scheme;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum EncodingType {
///
Base64,
///
Hex,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum EncryptionAlgorithmType {
///
TDES,
///
AES,
///
RSA,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementScheme : object, System.ComponentModel.INotifyPropertyChanged {
///
public KeyManagementSchemeDUKPT DUKPT;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPT : object, System.ComponentModel.INotifyPropertyChanged {
///
public OperationType Operation;
///
public KeyManagementSchemeDUKPTMode Mode;
///
public KeyManagementSchemeDUKPTDeviceInfo DeviceInfo;
///
public KeyManagementSchemeDUKPTEncryptedData EncryptedData;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum OperationType {
///
DECRYPT,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPTMode : object, System.ComponentModel.INotifyPropertyChanged {
///
public string PIN;
///
public string Data;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPTDeviceInfo : object, System.ComponentModel.INotifyPropertyChanged {
///
public string Description;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPTEncryptedData : object, System.ComponentModel.INotifyPropertyChanged {
///
public string Value;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class payPalType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string successUrl;
///
public string cancelUrl;
///
public string paypalLc;
///
public string paypalHdrImg;
///
public string paypalPayflowcolor;
///
public string payerID;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardTrackType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlElementAttribute("track1", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("track2", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public string Item;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType1 ItemElementName;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)]
public enum ItemChoiceType1 {
///
track1,
///
track2,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ccAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string authenticationIndicator;
///
public string cardholderAuthenticationValue;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transRetailInfoType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.ComponentModel.DefaultValueAttribute("2")]
public string marketType;
///
public string deviceType;
///
public string customerSignature;
///
public string terminalNumber;
public transRetailInfoType() {
this.marketType = "2";
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class settingType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string settingName;
///
public string settingValue;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subMerchantType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string identifier;
///
public string doingBusinessAs;
///
public string paymentServiceProviderName;
///
public string paymentServiceFacilitator;
///
public string streetAddress;
///
public string phone;
///
public string email;
///
public string postalCode;
///
public string city;
///
public string regionCode;
///
public string countryCode;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class mobileDeviceType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string mobileDeviceId;
///
public string description;
///
public string phoneNumber;
///
public string devicePlatform;
///
public deviceActivationEnum deviceActivation;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool deviceActivationSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum deviceActivationEnum {
///
Activate,
///
Disable,
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileMaskedType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileBaseType : object, System.ComponentModel.INotifyPropertyChanged {
///
public customerTypeEnum customerType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool customerTypeSpecified;
///
public customerAddressType billTo;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileMaskedType : customerPaymentProfileBaseType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public paymentMaskedType payment;
///
public driversLicenseMaskedType driversLicense;
///
public string taxId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)]
public string[] subscriptionIds;
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public bool excludeFromAccountUpdater;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool excludeFromAccountUpdaterSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class driversLicenseMaskedType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string number;
///
public string state;
///
public string dateOfBirth;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileType : customerPaymentProfileBaseType {
///
public paymentType payment;
///
public driversLicenseType driversLicense;
///
public string taxId;
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public subsequentAuthInformation subsequentAuthInformation;
///
public bool excludeFromAccountUpdater;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool excludeFromAccountUpdaterSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileExType : customerPaymentProfileType {
///
public string customerPaymentProfileId;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileExType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileBaseType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string merchantCustomerId;
///
public string description;
///
public string email;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileExType : customerProfileBaseType {
///
public string customerProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileMaskedType : customerProfileExType {
///
[System.Xml.Serialization.XmlElementAttribute("paymentProfiles")]
public customerPaymentProfileMaskedType[] paymentProfiles;
///
[System.Xml.Serialization.XmlElementAttribute("shipToList")]
public customerAddressExType[] shipToList;
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum customerProfileTypeEnum {
///
regular,
///
guest,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileInfoExType : customerProfileExType {
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subscriptionCustomerProfileType : customerProfileExType {
///
public customerPaymentProfileMaskedType paymentProfile;
///
public customerAddressExType shippingProfile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileType : customerProfileBaseType {
///
[System.Xml.Serialization.XmlElementAttribute("paymentProfiles")]
public customerPaymentProfileType[] paymentProfiles;
///
[System.Xml.Serialization.XmlElementAttribute("shipToList")]
public customerAddressType[] shipToList;
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ARBSubscriptionMaskedType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
public paymentScheduleType paymentSchedule;
///
public decimal amount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool amountSpecified;
///
public decimal trialAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool trialAmountSpecified;
///
public ARBSubscriptionStatusEnum status;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool statusSpecified;
///
public subscriptionCustomerProfileType profile;
///
public orderType order;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public arbTransaction[] arbTransactions;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentScheduleType : object, System.ComponentModel.INotifyPropertyChanged {
///
public paymentScheduleTypeInterval interval;
///
[System.Xml.Serialization.XmlElementAttribute(DataType="date")]
public System.DateTime startDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool startDateSpecified;
///
public short totalOccurrences;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalOccurrencesSpecified;
///
public short trialOccurrences;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool trialOccurrencesSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentScheduleTypeInterval : object, System.ComponentModel.INotifyPropertyChanged {
///
public short length;
///
public ARBSubscriptionUnitEnum unit;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBSubscriptionUnitEnum {
///
days,
///
months,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class arbTransaction : object, System.ComponentModel.INotifyPropertyChanged {
///
public string transId;
///
public string response;
///
public System.DateTime submitTimeUTC;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool submitTimeUTCSpecified;
///
public int payNum;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool payNumSpecified;
///
public int attemptNum;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool attemptNumSpecified;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class securePaymentContainerErrorType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string code;
///
public string description;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerType : object, System.ComponentModel.INotifyPropertyChanged {
///
public customerTypeEnum type;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool typeSpecified;
///
public string id;
///
public string email;
///
public string phoneNumber;
///
public string faxNumber;
///
public driversLicenseType driversLicense;
///
public string taxId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentSimpleType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))]
[System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardSimpleType))]
public object Item;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class merchantContactType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string merchantName;
///
public string merchantAddress;
///
public string merchantCity;
///
public string merchantState;
///
public string merchantZip;
///
public string merchantPhone;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ContactDetailType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string email;
///
public string firstName;
///
public string lastName;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class permissionType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string permissionName;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(emailSettingsType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ArrayOfSetting : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlElementAttribute("setting")]
public settingType[] setting;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class emailSettingsType : ArrayOfSetting {
///
[System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
public string version;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class fraudInformationType : object, System.ComponentModel.INotifyPropertyChanged {
///
[System.Xml.Serialization.XmlArrayItemAttribute("fraudFilter", IsNullable=false)]
public string[] fraudFilterList;
///
public string fraudAction;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionSummaryType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string transId;
///
public System.DateTime submitTimeUTC;
///
public System.DateTime submitTimeLocal;
///
public string transactionStatus;
///
public string invoiceNumber;
///
public string firstName;
///
public string lastName;
///
public string accountType;
///
public string accountNumber;
///
public decimal settleAmount;
///
public string marketType;
///
public string product;
///
public string mobileDeviceId;
///
public subscriptionPaymentType subscription;
///
public bool hasReturnedItems;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool hasReturnedItemsSpecified;
///
public fraudInformationType fraudInformation;
///
public customerProfileIdType profile;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ARBSubscriptionType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
public paymentScheduleType paymentSchedule;
///
public decimal amount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool amountSpecified;
///
public decimal trialAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool trialAmountSpecified;
///
public paymentType payment;
///
public orderType order;
///
public customerType customer;
///
public nameAndAddressType billTo;
///
public nameAndAddressType shipTo;
///
public customerProfileIdType profile;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class webCheckOutDataTypeToken : object, System.ComponentModel.INotifyPropertyChanged {
///
public string cardNumber;
///
public string expirationDate;
///
public string cardCode;
///
public string zip;
///
public string fullName;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class webCheckOutDataType : object, System.ComponentModel.INotifyPropertyChanged {
///
public webCheckOutTypeEnum type;
///
public string id;
///
public webCheckOutDataTypeToken token;
///
public bankAccountType bankToken;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum webCheckOutTypeEnum {
///
PAN,
///
TOKEN,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentDetails : object, System.ComponentModel.INotifyPropertyChanged {
///
public string currency;
///
public string promoCode;
///
public string misc;
///
public string giftWrap;
///
public string discount;
///
public string tax;
///
public string shippingHandling;
///
public string subTotal;
///
public string orderID;
///
public string amount;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class fingerPrintType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string hashValue;
///
public string sequence;
///
public string timestamp;
///
public string currencyCode;
///
public string amount;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class impersonationAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string partnerLoginId;
///
public string partnerTransactionKey;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class merchantAuthenticationType : object, System.ComponentModel.INotifyPropertyChanged {
///
public string name;
///
[System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))]
[System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))]
[System.Xml.Serialization.XmlElementAttribute("password", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("sessionToken", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("transactionKey", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public object Item;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType ItemElementName;
///
public string mobileDeviceId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)]
public enum ItemChoiceType {
///
accessToken,
///
clientKey,
///
fingerPrint,
///
impersonationAuthentication,
///
password,
///
sessionToken,
///
transactionKey,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ANetApiRequest : object, System.ComponentModel.INotifyPropertyChanged {
///
public merchantAuthenticationType merchantAuthentication;
///
public string clientId;
///
public string refId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class decryptPaymentDataResponse : ANetApiResponse {
///
public customerAddressType shippingInfo;
///
public customerAddressType billingInfo;
///
public creditCardMaskedType cardInfo;
///
public paymentDetails paymentDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute("ErrorResponse", Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ANetApiResponse : object, System.ComponentModel.INotifyPropertyChanged {
///
public string refId;
///
public messagesType messages;
///
public string sessionToken;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class securePaymentContainerRequest : ANetApiRequest {
///
public webCheckOutDataType data;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class securePaymentContainerResponse : ANetApiResponse {
///
public opaqueDataType opaqueData;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class isAliveRequest : object, System.ComponentModel.INotifyPropertyChanged {
///
public string refId;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class isAliveResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class authenticateTestRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class authenticateTestResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCreateSubscriptionRequest : ANetApiRequest {
///
public ARBSubscriptionType subscription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCreateSubscriptionResponse : ANetApiResponse {
///
public string subscriptionId;
///
public customerProfileIdType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBUpdateSubscriptionRequest : ANetApiRequest {
///
public string subscriptionId;
///
public ARBSubscriptionType subscription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBUpdateSubscriptionResponse : ANetApiResponse {
///
public customerProfileIdType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCancelSubscriptionRequest : ANetApiRequest {
///
public string subscriptionId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCancelSubscriptionResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionStatusRequest : ANetApiRequest {
///
public string subscriptionId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionStatusResponse : ANetApiResponse {
///
public ARBSubscriptionStatusEnum status;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool statusSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileRequest : ANetApiRequest {
///
public customerProfileType profile;
///
public validationModeEnum validationMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool validationModeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum validationModeEnum {
///
none,
///
testMode,
///
liveMode,
///
oldLiveMode,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileResponse : ANetApiResponse {
///
public string customerProfileId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerPaymentProfileIdList;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerShippingAddressIdList;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public string[] validationDirectResponseList;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerPaymentProfileType paymentProfile;
///
public validationModeEnum validationMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool validationModeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerPaymentProfileResponse : ANetApiResponse {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string validationDirectResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerAddressType address;
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerShippingAddressResponse : ANetApiResponse {
///
public string customerProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileFromTransactionRequest : ANetApiRequest {
///
public string transId;
///
public customerProfileBaseType customer;
///
public string customerProfileId;
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string merchantCustomerId;
///
public string email;
///
public bool unmaskExpirationDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool unmaskExpirationDateSpecified;
///
public bool includeIssuerInfo;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeIssuerInfoSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileResponse : ANetApiResponse {
///
public customerProfileMaskedType profile;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)]
public string[] subscriptionIds;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public bool unmaskExpirationDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool unmaskExpirationDateSpecified;
///
public bool includeIssuerInfo;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeIssuerInfoSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileResponse : ANetApiResponse {
///
public customerPaymentProfileMaskedType paymentProfile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerShippingAddressResponse : ANetApiResponse {
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
///
public customerAddressExType address;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)]
public string[] subscriptionIds;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerProfileRequest : ANetApiRequest {
///
public customerProfileInfoExType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerProfileResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerPaymentProfileExType paymentProfile;
///
public validationModeEnum validationMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool validationModeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerPaymentProfileResponse : ANetApiResponse {
///
public string validationDirectResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerAddressExType address;
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerShippingAddressResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerProfileRequest : ANetApiRequest {
///
public string customerProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerProfileResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerPaymentProfileResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerShippingAddressResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileTransactionRequest : ANetApiRequest {
///
public profileTransactionType transaction;
///
public string extraOptions;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileTransactionResponse : ANetApiResponse {
///
public transactionResponse transactionResponse;
///
public string directResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class validateCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string cardCode;
///
public validationModeEnum validationMode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class validateCustomerPaymentProfileResponse : ANetApiResponse {
///
public string directResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileIdsRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileIdsResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] ids;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateSplitTenderGroupRequest : ANetApiRequest {
///
public string splitTenderId;
///
public splitTenderStatusEnum splitTenderStatus;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum splitTenderStatusEnum {
///
completed,
///
held,
///
voided,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateSplitTenderGroupResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionDetailsRequest : ANetApiRequest {
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionDetailsResponse : ANetApiResponse {
///
public transactionDetailsType transaction;
///
public string clientId;
///
public string transrefId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createTransactionRequest : ANetApiRequest {
///
public transactionRequestType transactionRequest;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createTransactionResponse : ANetApiResponse {
///
public transactionResponse transactionResponse;
///
public createProfileResponse profileResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateHeldTransactionRequest : ANetApiRequest {
///
public heldTransactionRequestType heldTransactionRequest;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateHeldTransactionResponse : ANetApiResponse {
///
public transactionResponse transactionResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getBatchStatisticsRequest : ANetApiRequest {
///
public string batchId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getBatchStatisticsResponse : ANetApiResponse {
///
public batchDetailsType batch;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getSettledBatchListRequest : ANetApiRequest {
///
public bool includeStatistics;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeStatisticsSpecified;
///
public System.DateTime firstSettlementDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool firstSettlementDateSpecified;
///
public System.DateTime lastSettlementDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool lastSettlementDateSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getSettledBatchListResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("batch", IsNullable=false)]
public batchDetailsType[] batchList;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionListRequest : ANetApiRequest {
///
public string batchId;
///
public TransactionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionListResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)]
public transactionSummaryType[] transactions;
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedProfilePageRequest : ANetApiRequest {
///
public string customerProfileId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)]
public settingType[] hostedProfileSettings;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedProfilePageResponse : ANetApiResponse {
///
public string token;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getUnsettledTransactionListRequest : ANetApiRequest {
///
public TransactionGroupStatusEnum status;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool statusSpecified;
///
public TransactionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum TransactionGroupStatusEnum {
///
any,
///
pendingApproval,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedPaymentPageRequest : ANetApiRequest {
///
public transactionRequestType transactionRequest;
///
[System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)]
public settingType[] hostedPaymentSettings;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedPaymentPageResponse : ANetApiResponse {
///
public string token;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getUnsettledTransactionListResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)]
public transactionSummaryType[] transactions;
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceRegistrationRequest : ANetApiRequest {
///
public mobileDeviceType mobileDevice;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceRegistrationResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceLoginRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceLoginResponse : ANetApiResponse {
///
public merchantContactType merchantContact;
///
[System.Xml.Serialization.XmlArrayItemAttribute("permission", IsNullable=false)]
public permissionType[] userPermissions;
///
public transRetailInfoType merchantAccount;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class logoutRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class logoutResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class sendCustomerTransactionReceiptRequest : ANetApiRequest {
///
public string transId;
///
public string customerEmail;
///
public emailSettingsType emailSettings;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class sendCustomerTransactionReceiptResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionListRequest : ANetApiRequest {
///
public ARBGetSubscriptionListSearchTypeEnum searchType;
///
public ARBGetSubscriptionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBGetSubscriptionListSearchTypeEnum {
///
cardExpiringThisMonth,
///
subscriptionActive,
///
subscriptionExpiringThisMonth,
///
subscriptionInactive,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionListResponse : ANetApiResponse {
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionDetail")]
public SubscriptionDetail[] subscriptionDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class EnumCollection : object, System.ComponentModel.INotifyPropertyChanged {
///
public customerProfileSummaryType customerProfileSummaryType;
///
public paymentSimpleType paymentSimpleType;
///
public accountTypeEnum accountTypeEnum;
///
public cardTypeEnum cardTypeEnum;
///
public FDSFilterActionEnum FDSFilterActionEnum;
///
public permissionsEnum permissionsEnum;
///
public settingNameEnum settingNameEnum;
///
public settlementStateEnum settlementStateEnum;
///
public transactionStatusEnum transactionStatusEnum;
///
public transactionTypeEnum transactionTypeEnum;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum accountTypeEnum {
///
Visa,
///
MasterCard,
///
AmericanExpress,
///
Discover,
///
JCB,
///
DinersClub,
///
eCheck,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum cardTypeEnum {
///
Visa,
///
MasterCard,
///
AmericanExpress,
///
Discover,
///
JCB,
///
DinersClub,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum FDSFilterActionEnum {
///
reject,
///
decline,
///
hold,
///
authAndHold,
///
report,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum permissionsEnum {
///
API_Merchant_BasicReporting,
///
Submit_Charge,
///
Submit_Refund,
///
Submit_Update,
///
Mobile_Admin,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum settingNameEnum {
///
emailCustomer,
///
merchantEmail,
///
allowPartialAuth,
///
headerEmailReceipt,
///
footerEmailReceipt,
///
recurringBilling,
///
duplicateWindow,
///
testRequest,
///
hostedProfileReturnUrl,
///
hostedProfileReturnUrlText,
///
hostedProfilePageBorderVisible,
///
hostedProfileIFrameCommunicatorUrl,
///
hostedProfileHeadingBgColor,
///
hostedProfileValidationMode,
///
hostedProfileBillingAddressRequired,
///
hostedProfileCardCodeRequired,
///
hostedProfileBillingAddressOptions,
///
hostedProfileManageOptions,
///
hostedPaymentIFrameCommunicatorUrl,
///
hostedPaymentButtonOptions,
///
hostedPaymentReturnOptions,
///
hostedPaymentOrderOptions,
///
hostedPaymentPaymentOptions,
///
hostedPaymentBillingAddressOptions,
///
hostedPaymentShippingAddressOptions,
///
hostedPaymentSecurityOptions,
///
hostedPaymentCustomerOptions,
///
hostedPaymentStyleOptions,
///
typeEmailReceipt,
///
hostedProfilePaymentOptions,
///
hostedProfileSaveButtonText,
///
hostedPaymentVisaCheckoutOptions,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum settlementStateEnum {
///
settledSuccessfully,
///
settlementError,
///
pendingSettlement,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum transactionStatusEnum {
///
authorizedPendingCapture,
///
capturedPendingSettlement,
///
communicationError,
///
refundSettledSuccessfully,
///
refundPendingSettlement,
///
approvedReview,
///
declined,
///
couldNotVoid,
///
expired,
///
generalError,
///
pendingFinalSettlement,
///
pendingSettlement,
///
failedReview,
///
settledSuccessfully,
///
settlementError,
///
underReview,
///
updatingSettlement,
///
voided,
///
FDSPendingReview,
///
FDSAuthorizedPendingReview,
///
returnedItem,
///
chargeback,
///
chargebackReversal,
///
authorizedPendingRelease,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum transactionTypeEnum {
///
authOnlyTransaction,
///
authCaptureTransaction,
///
captureOnlyTransaction,
///
refundTransaction,
///
priorAuthCaptureTransaction,
///
voidTransaction,
///
getDetailsTransaction,
///
authOnlyContinueTransaction,
///
authCaptureContinueTransaction,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileListRequest : ANetApiRequest {
///
public CustomerPaymentProfileSearchTypeEnum searchType;
///
public string month;
///
public CustomerPaymentProfileSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum CustomerPaymentProfileSearchTypeEnum {
///
cardsExpiringInMonth,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileListResponse : ANetApiResponse {
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlArrayItemAttribute("paymentProfile")]
public customerPaymentProfileListItemType[] paymentProfiles;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionRequest : ANetApiRequest {
///
public string subscriptionId;
///
public bool includeTransactions;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeTransactionsSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionResponse : ANetApiResponse {
///
public ARBSubscriptionMaskedType subscription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionListForCustomerRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public TransactionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobSummaryRequest : ANetApiRequest {
///
public string month;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobSummaryResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("auResponse", IsNullable=false)]
public auResponseType[] auSummary;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobDetailsRequest : ANetApiRequest {
///
public string month;
///
public AUJobTypeEnum modifiedTypeFilter;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool modifiedTypeFilterSpecified;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum AUJobTypeEnum {
///
all,
///
updates,
///
deletes,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobDetailsResponse : ANetApiResponse {
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
///
[System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable=false)]
[System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable=false)]
public auDetailsType[] auDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getMerchantDetailsRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getMerchantDetailsResponse : ANetApiResponse {
///
public bool isTestMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isTestModeSpecified;
///
[System.Xml.Serialization.XmlArrayItemAttribute("processor")]
public processorType[] processors;
///
public string merchantName;
///
public string gatewayId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("marketType")]
public string[] marketTypes;
///
[System.Xml.Serialization.XmlArrayItemAttribute("productCode")]
public string[] productCodes;
///
[System.Xml.Serialization.XmlArrayItemAttribute("paymentMethod")]
public System.Nullable[] paymentMethods;
///
[System.Xml.Serialization.XmlArrayItemAttribute("currency")]
public string[] currencies;
///
public string publicClientKey;
///
public customerAddressType businessInformation;
///
public string merchantTimeZone;
///
[System.Xml.Serialization.XmlArrayItemAttribute("contactDetail", IsNullable=false)]
public ContactDetailType[] contactDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum paymentMethodsTypeEnum {
///
Visa,
///
MasterCard,
///
Discover,
///
AmericanExpress,
///
DinersClub,
///
JCB,
///
EnRoute,
///
Echeck,
///
Paypal,
///
VisaCheckout,
///
ApplePay,
///
AndroidPay,
///
GooglePay,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateMerchantDetailsRequest : ANetApiRequest {
///
public bool isTestMode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateMerchantDetailsResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileNonceRequest : ANetApiRequest {
///
public string connectedAccessToken;
///
public string customerProfileId;
///
public string customerPaymentProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileNonceResponse : ANetApiResponse {
///
public opaqueDataType opaqueData;
}
}
================================================
FILE: Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs
================================================
namespace AuthorizeNet.Api.Contracts.V1
{
using System;
#pragma warning disable 169
#pragma warning disable 1591
// ReSharper disable InconsistentNaming
///
/// Special case handlers
///
/// validated on ????/??/?? for objects listed at the end
/// should be validated after each update of AnetApiSchema.cs
/// for fields/properties that are minOccurs="0" since xsd.exe
/// generates "specified" property for such fields and requires
/// special handling to set them seamlessly
/// Make sure to update the respective controllers to call the respective request hand
///
///
public static class RequestFactoryWithSpecified
{
public static void decryptPaymentDataRequest(decryptPaymentDataRequest argument)
{
if (null != argument)
{
opaqueDataType(argument.opaqueData);
}
}
public static void opaqueDataType(opaqueDataType argument)
{
if (null != argument)
{
if (argument.expirationTimeStamp!=null) { argument.expirationTimeStampSpecified = true; }
}
}
public static void processorType(processorType argument)
{
if(null != argument)
{
}
}
public static void customerPaymentProfileListItemType(customerPaymentProfileListItemType argument)
{
if (null != argument)
{
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true; }
customerAddressType(argument.billTo);
paymentMaskedType(argument.payment);
if(argument.excludeFromAccountUpdater) { argument.excludeFromAccountUpdaterSpecified=true; }
}
}
public static void CustomerPaymentProfileSorting(CustomerPaymentProfileSorting argument)
{
if (null != argument)
{
//(argument.orderDescending);
}
}
public static void ARBSubscriptionMaskedType(ARBSubscriptionMaskedType argument)
{
if (null != argument)
{
paymentScheduleType(argument.paymentSchedule);
if (0 <= argument.amount) { argument.amountSpecified = true; }
if (0 <= argument.trialAmount) { argument.trialAmountSpecified = true; }
if (0 <= argument.status) { argument.statusSpecified = true; }
subscriptionCustomerProfileType(argument.profile);
orderType(argument.order);
}
}
public static void subscriptionCustomerProfileType(subscriptionCustomerProfileType argument)
{
if (null != argument)
{
customerProfileExType(argument);
customerPaymentProfileMaskedType(argument.paymentProfile);
customerAddressExType(argument.shippingProfile);
}
}
public static void paymentSimpleType(paymentSimpleType argument)
{
if (null != argument)
{
if (argument.Item is bankAccountType) { bankAccountType(argument.Item as bankAccountType); }
if (argument.Item is creditCardSimpleType) { creditCardSimpleType(argument.Item as creditCardSimpleType); }
}
}
public static void bankAccountType(bankAccountType argument)
{
if (null != argument)
{
if (0 <= (int)argument.accountType) { argument.accountTypeSpecified = true; }
if (0 <= (int)argument.echeckType) { argument.echeckTypeSpecified = true; }
}
}
public static void creditCardSimpleType(creditCardSimpleType argument)
{
if (null != argument)
{
}
}
public static void creditCardType(creditCardType argument)
{
if (null != argument)
{
creditCardSimpleType(argument);
if (argument.isPaymentToken) { argument.isPaymentTokenSpecified = true; }
}
}
public static void customerProfileSummaryType(customerProfileSummaryType argument)
{
if (null != argument)
{
}
}
public static void SubscriptionDetail(SubscriptionDetail argument)
{
if (null != argument)
{
}
}
public static void Paging(Paging argument)
{
if (null != argument)
{
}
}
public static void TransactionListSorting(TransactionListSorting argument)
{
if(null != argument)
{
//(argument.orderDescending);
}
}
public static void heldTransactionRequestType(heldTransactionRequestType argument)
{
if(null != argument)
{
}
}
public static void ARBGetSubscriptionListSorting(ARBGetSubscriptionListSorting argument)
{
if (null != argument)
{
}
}
public static void permissionType(permissionType argument)
{
if (null != argument)
{
}
}
public static void merchantContactType(merchantContactType argument)
{
if (null != argument)
{
}
}
public static void mobileDeviceType(mobileDeviceType argument)
{
if (null != argument)
{
if (0 <= (int)argument.deviceActivation) { argument.deviceActivationSpecified = true; }
}
}
public static void transactionSummaryType(transactionSummaryType argument)
{
if (null != argument)
{
subscriptionPaymentType(argument.subscription);
if (argument.hasReturnedItems) { argument.hasReturnedItemsSpecified = true; }
fraudInformationType(argument.fraudInformation);
customerProfileIdType(argument.profile);
}
}
public static void subscriptionPaymentType(subscriptionPaymentType argument)
{
if (null != argument)
{
}
}
public static void createProfileResponse(createProfileResponse argument)
{
if (null != argument)
{
messagesType(argument.messages);
}
}
public static void messagesType(messagesType argument)
{
if (null != argument)
{
if (null != argument.message) { foreach (var value in argument.message) { messagesTypeMessage(value); } }
}
}
public static void messagesTypeMessage(messagesTypeMessage argument)
{
if (null != argument)
{
}
}
public static void ArrayOfSetting(ArrayOfSetting argument)
{
if (null != argument)
{
if (null != argument.setting) { foreach (var value in argument.setting) { settingType(value); } }
}
}
public static void settingType(settingType argument)
{
if (null != argument)
{
}
}
public static void subMerchantType(subMerchantType argument)
{
if(null != argument)
{
}
}
public static void emailSettingsType(emailSettingsType argument)
{
if (null != argument)
{
ArrayOfSetting(argument);
}
}
public static void fraudInformationType(fraudInformationType argument)
{
if(null != argument)
{
}
}
public static void transRetailInfoType(transRetailInfoType argument)
{
if (null != argument)
{
//marketType should not be assigned here
//argument.marketType = "2";
}
}
public static void ccAuthenticationType(ccAuthenticationType argument)
{
if (null != argument)
{
}
}
public static void paymentProfile(paymentProfile argument)
{
if (null != argument)
{
}
}
public static void customerProfilePaymentType(customerProfilePaymentType argument)
{
if (null != argument)
{
if (argument.createProfile) { argument.createProfileSpecified = true; }
paymentProfile(argument.paymentProfile);
}
}
public static void transactionRequestType(transactionRequestType argument)
{
if (null != argument)
{
if (0 <= argument.amount) { argument.amountSpecified = true; }
paymentType(argument.payment);
customerProfilePaymentType(argument.profile);
solutionType(argument.solution);
orderType(argument.order);
if (null != argument.lineItems) { foreach (var value in argument.lineItems) { lineItemType(value); } }
extendedAmountType(argument.tax);
extendedAmountType(argument.duty);
extendedAmountType(argument.shipping);
if (argument.taxExempt) { argument.taxExemptSpecified = true; }
customerDataType(argument.customer);
customerAddressType(argument.billTo);
nameAndAddressType(argument.shipTo);
ccAuthenticationType(argument.cardholderAuthentication);
transRetailInfoType(argument.retail);
if (null != argument.transactionSettings) { foreach (var value in argument.transactionSettings) { settingType(value); } }
if (null != argument.userFields) { foreach (var value in argument.userFields) { userField(value); } }
extendedAmountType(argument.surcharge);
subMerchantType(argument.subMerchant);
extendedAmountType(argument.tip);
processingOptions(argument.processingOptions);
subsequentAuthInformation(argument.subsequentAuthInformation);
otherTaxType(argument.otherTax);
nameAndAddressType(argument.shipFrom);
authorizationIndicatorType(argument.authorizationIndicatorType);
}
}
public static void paymentType(paymentType argument)
{
if (null != argument)
{
if (argument.Item is bankAccountType) { bankAccountType(argument.Item as bankAccountType); }
if (argument.Item is creditCardType) { creditCardType(argument.Item as creditCardType); }
if (argument.Item is encryptedTrackDataType)
{
encryptedTrackDataType(argument.Item as encryptedTrackDataType);
}
if (argument.Item is paymentEmvType) { paymentEmvType(argument.Item as paymentEmvType); }
if (argument.Item is opaqueDataType) { opaqueDataType(argument.Item as opaqueDataType); }
if (argument.Item is payPalType) { payPalType(argument.Item as payPalType); }
if (argument.Item is creditCardTrackType) { creditCardTrackType(argument.Item as creditCardTrackType); }
}
}
public static void encryptedTrackDataType(encryptedTrackDataType argument)
{
if (null != argument)
{
KeyBlock(argument.FormOfPayment);
}
}
public static void paymentEmvType(paymentEmvType argument)
{
if(null != argument)
{
}
}
public static void KeyBlock(KeyBlock argument)
{
if (null != argument)
{
KeyValue(argument.Value);
}
}
public static void KeyValue(KeyValue argument)
{
if (null != argument)
{
KeyManagementScheme(argument.Scheme);
}
}
public static void KeyManagementScheme(KeyManagementScheme argument)
{
if (null != argument)
{
KeyManagementSchemeDUKPT(argument.DUKPT);
}
}
public static void KeyManagementSchemeDUKPT(KeyManagementSchemeDUKPT argument)
{
if (null != argument)
{
KeyManagementSchemeDUKPTMode(argument.Mode);
KeyManagementSchemeDUKPTDeviceInfo(argument.DeviceInfo);
KeyManagementSchemeDUKPTEncryptedData(argument.EncryptedData);
}
}
public static void KeyManagementSchemeDUKPTMode(KeyManagementSchemeDUKPTMode argument)
{
if (null != argument)
{
}
}
public static void KeyManagementSchemeDUKPTDeviceInfo(KeyManagementSchemeDUKPTDeviceInfo argument)
{
if (null != argument)
{
}
}
public static void KeyManagementSchemeDUKPTEncryptedData(KeyManagementSchemeDUKPTEncryptedData argument)
{
if (null != argument)
{
}
}
public static void payPalType(payPalType argument)
{
if (null != argument)
{
}
}
public static void creditCardTrackType(creditCardTrackType argument)
{
if (null != argument)
{
}
}
public static void solutionType(solutionType argument)
{
if (null != argument)
{
}
}
public static void orderType(orderType argument)
{
if (null != argument)
{
if (argument.discountAmount >= 0) { argument.discountAmountSpecified = true; }
if (argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified = true; }
if (DateTime.MinValue != argument.purchaseOrderDateUTC) { argument.purchaseOrderDateUTCSpecified = true; }
}
}
public static void orderExType(orderExType argument)
{
if (null != argument)
{
orderType(argument);
}
}
public static void lineItemType(lineItemType argument)
{
if (null != argument)
{
if (argument.taxable) { argument.taxableSpecified = true;
if (argument.taxRate >= 0) { argument.taxRateSpecified = true; }
if (argument.taxAmount >= 0) { argument.taxAmountSpecified = true; }
if (argument.nationalTax>=0) { argument.nationalTaxSpecified = true; }
if (argument.localTax>=0) { argument.localTaxSpecified = true; }
if (argument.vatRate>=0) { argument.vatRateSpecified = true; }
if (argument.alternateTaxRate>=0) { argument.alternateTaxRateSpecified = true; }
if (argument.alternateTaxAmount>=0) { argument.alternateTaxAmountSpecified = true; }
if (argument.totalAmount>=0) { argument.totalAmountSpecified = true; }
if (argument.discountRate >=0) { argument.discountRateSpecified = true; }
if (argument.discountAmount>= 0) { argument.discountAmountSpecified = true; }
if (argument.taxIncludedInTotal) { argument.taxIncludedInTotalSpecified = true; }
if (argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified = true; }
}
}
}
public static void extendedAmountType(extendedAmountType argument)
{
if (null != argument)
{
}
}
public static void customerDataType(customerDataType argument)
{
if (null != argument)
{
if (0 <= (int)argument.type) { argument.typeSpecified = true; }
driversLicenseType(argument.driversLicense);
}
}
public static void driversLicenseType(driversLicenseType argument)
{
if (null != argument)
{
}
}
public static void customerAddressType(customerAddressType argument)
{
if (null != argument)
{
nameAndAddressType(argument);
}
}
public static void nameAndAddressType(nameAndAddressType argument)
{
if (null != argument)
{
}
}
public static void customerAddressExType(customerAddressExType argument)
{
if (null != argument)
{
customerAddressType(argument);
}
}
public static void userField(userField argument)
{
if (null != argument)
{
}
}
public static void returnedItemType(returnedItemType argument)
{
if (null != argument)
{
}
}
public static void batchStatisticType(batchStatisticType argument)
{
if (null != argument)
{
if (0 <= argument.returnedItemAmount) { argument.returnedItemAmountSpecified = true; }
if (0 <= argument.returnedItemCount) { argument.returnedItemCountSpecified = true; }
if (0 <= argument.chargebackAmount) { argument.chargebackAmountSpecified = true; }
if (0 <= argument.chargebackCount) { argument.chargebackCountSpecified = true; }
if (0 <= argument.correctionNoticeCount) { argument.correctionNoticeCountSpecified = true; }
if (0 <= argument.chargeChargeBackAmount) { argument.chargeChargeBackAmountSpecified = true; }
if (0 <= argument.chargeChargeBackCount) { argument.chargeChargeBackCountSpecified = true; }
if (0 <= argument.refundChargeBackAmount) { argument.refundChargeBackAmountSpecified = true; }
if (0 <= argument.refundChargeBackCount) { argument.refundChargeBackCountSpecified = true; }
if (0 <= argument.chargeReturnedItemsAmount) { argument.chargeReturnedItemsAmountSpecified = true; }
if (0 <= argument.chargeReturnedItemsCount) { argument.chargeReturnedItemsCountSpecified = true; }
if (0 <= argument.refundReturnedItemsAmount) { argument.refundReturnedItemsAmountSpecified = true; }
if (0 <= argument.refundReturnedItemsCount) { argument.refundReturnedItemsCountSpecified = true; }
}
}
public static void batchDetailsType(batchDetailsType argument)
{
if (null != argument)
{
if (DateTime.MinValue != argument.settlementTimeUTC) { argument.settlementTimeUTCSpecified = true; }
if (DateTime.MinValue != argument.settlementTimeLocal) { argument.settlementTimeLocalSpecified = true; }
if (null != argument.statistics) { foreach (var value in argument.statistics) { batchStatisticType(value); } }
}
}
public static void FDSFilterType(FDSFilterType argument)
{
if (null != argument)
{
}
}
public static void transactionDetailsTypeTag(transactionDetailsTypeTag argument)
{
if (null != argument)
{
}
}
public static void otherTaxType(otherTaxType argument)
{
if (null != argument)
{
if (argument.nationalTaxAmount>=0) { argument.nationalTaxAmountSpecified = true; }
if (argument.localTaxAmount >= 0) { argument.localTaxAmountSpecified = true; }
if (argument.alternateTaxAmount >= 0) { argument.alternateTaxAmountSpecified = true; }
if (argument.vatTaxRate >= 0) { argument.vatTaxRateSpecified = true; }
if (argument.vatTaxAmount >= 0) { argument.vatTaxAmountSpecified = true; }
}
}
public static void transactionDetailsType(transactionDetailsType argument)
{
if (null != argument)
{
subscriptionPaymentType(argument.subscription);
if (null != argument.FDSFilters) { foreach (var value in argument.FDSFilters) { FDSFilterType(value); } }
batchDetailsType(argument.batch);
orderExType(argument.order);
if (0 <= argument.requestedAmount) { argument.requestedAmountSpecified = true; }
extendedAmountType(argument.tax);
extendedAmountType(argument.shipping);
extendedAmountType(argument.duty);
if (null != argument.lineItems) { foreach (var value in argument.lineItems) { lineItemType(value); } }
if (0 <= argument.prepaidBalanceRemaining) { argument.prepaidBalanceRemainingSpecified = true; }
if (argument.taxExempt) { argument.taxExemptSpecified = true; }
paymentMaskedType(argument.payment);
customerDataType(argument.customer);
customerAddressType(argument.billTo);
nameAndAddressType(argument.shipTo);
if (argument.recurringBilling) { argument.recurringBillingSpecified = true; }
if (null != argument.returnedItems) { foreach (var value in argument.returnedItems) { returnedItemType(value); } }
solutionType(argument.solution);
if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value); } }
customerProfileIdType(argument.profile);
extendedAmountType(argument.surcharge);
extendedAmountType(argument.tip);
otherTaxType(argument.otherTax);
nameAndAddressType(argument.shipFrom);
}
}
public static void paymentMaskedType(paymentMaskedType argument)
{
if (null != argument)
{
if (argument.Item is bankAccountMaskedType) { bankAccountMaskedType(argument.Item as bankAccountMaskedType); }
if (argument.Item is creditCardMaskedType) { creditCardMaskedType(argument.Item as creditCardMaskedType); }
if (argument.Item is tokenMaskedType)
{
tokenMaskedType(argument.Item as tokenMaskedType);
}
}
}
public static void bankAccountMaskedType(bankAccountMaskedType argument)
{
if (null != argument)
{
if (0 <= argument.accountType) { argument.accountTypeSpecified = true; }
if (0 <= argument.echeckType) { argument.echeckTypeSpecified = true; }
}
}
public static void creditCardMaskedType(creditCardMaskedType argument)
{
if (null != argument)
{
cardArt(argument.cardArt);
if(argument.isPaymentToken) { argument.isPaymentTokenSpecified=true; }
}
}
public static void cardArt(cardArt argument)
{
if (null != argument)
{
}
}
public static void tokenMaskedType(tokenMaskedType argument)
{
if (null != argument)
{
}
}
public static void transactionResponse(transactionResponse argument)
{
if (null != argument)
{
transactionResponsePrePaidCard(argument.prePaidCard);
if (null != argument.messages) { foreach (var value in argument.messages) { transactionResponseMessage(value); } }
if (null != argument.errors) { foreach (var value in argument.errors) { transactionResponseError(value); } }
if (null != argument.splitTenderPayments) { foreach (var value in argument.splitTenderPayments) { transactionResponseSplitTenderPayment(value); } }
if (null != argument.userFields) { foreach (var value in argument.userFields) { userField(value); } }
nameAndAddressType(argument.shipTo);
transactionResponseSecureAcceptance(argument.secureAcceptance);
transactionResponseEmvResponse(argument.emvResponse);
customerProfileIdType(argument.profile);
}
}
public static void transactionResponseEmvResponse(transactionResponseEmvResponse argument)
{
if (null != argument)
{
if (null != argument.tags) { foreach (var value in argument.tags) { emvTag(value); } }
}
}
public static void transactionResponsePrePaidCard(transactionResponsePrePaidCard argument)
{
if (null != argument)
{
}
}
public static void transactionResponseMessage(transactionResponseMessage argument)
{
if (null != argument)
{
}
}
public static void transactionResponseError(transactionResponseError argument)
{
if (null != argument)
{
}
}
public static void transactionResponseSplitTenderPayment(transactionResponseSplitTenderPayment argument)
{
if (null != argument)
{
}
}
public static void transactionResponseSecureAcceptance(transactionResponseSecureAcceptance argument)
{
if (null != argument)
{
}
}
public static void profileTransVoidType(profileTransVoidType argument)
{
if (null != argument)
{
}
}
public static void profileTransAmountType(profileTransAmountType argument)
{
if (null != argument)
{
extendedAmountType(argument.tax);
extendedAmountType(argument.shipping);
extendedAmountType(argument.duty);
if (null != argument.lineItems) { foreach (var value in argument.lineItems) { lineItemType(value); } }
}
}
public static void profileTransRefundType(profileTransRefundType argument)
{
if (null != argument)
{
profileTransAmountType(argument);
orderExType(argument.order);
}
}
public static void profileTransPriorAuthCaptureType(profileTransPriorAuthCaptureType argument)
{
if (null != argument)
{
profileTransAmountType(argument);
}
}
public static void profileTransOrderType(profileTransOrderType argument)
{
if (null != argument)
{
profileTransAmountType(argument);
orderExType(argument.order);
if (argument.taxExempt) { argument.taxExemptSpecified = true; }
if (argument.recurringBilling) { argument.recurringBillingSpecified = true;
processingOptions(argument.processingOptions);
subsequentAuthInformation(argument.subsequentAuthInformation);
authorizationIndicatorType(argument.authorizationIndicatorType);
}
}
}
public static void processingOptions(processingOptions argument)
{
if (null != argument)
{
if (argument.isFirstRecurringPayment) { argument.isFirstRecurringPaymentSpecified = true; }
if (argument.isFirstSubsequentAuth) { argument.isFirstSubsequentAuthSpecified = true; }
if (argument.isSubsequentAuth) { argument.isSubsequentAuthSpecified = true; }
if (argument.isStoredCredentials) { argument.isStoredCredentialsSpecified = true; }
}
}
public static void subsequentAuthInformation(subsequentAuthInformation argument)
{
if (null != argument)
{
if (0 <= argument.reason) { argument.reasonSpecified = true; }
}
}
public static void authorizationIndicatorType(authorizationIndicatorType argument)
{
if(null != argument)
{
}
}
public static void profileTransCaptureOnlyType(profileTransCaptureOnlyType argument)
{
if (null != argument)
{
profileTransOrderType(argument);
}
}
public static void profileTransAuthOnlyType(profileTransAuthOnlyType argument)
{
if (null != argument)
{
profileTransOrderType(argument);
}
}
public static void profileTransAuthCaptureType(profileTransAuthCaptureType argument)
{
if (null != argument)
{
profileTransOrderType(argument);
}
}
public static void profileTransactionType(profileTransactionType argument)
{
if (null != argument)
{
if (argument.Item is profileTransAuthCaptureType) { profileTransAuthCaptureType(argument.Item as profileTransAuthCaptureType); }
if (argument.Item is profileTransAuthOnlyType) { profileTransAuthOnlyType(argument.Item as profileTransAuthOnlyType); }
if (argument.Item is profileTransCaptureOnlyType) { profileTransCaptureOnlyType(argument.Item as profileTransCaptureOnlyType); }
if (argument.Item is profileTransPriorAuthCaptureType) { profileTransPriorAuthCaptureType(argument.Item as profileTransPriorAuthCaptureType); }
if (argument.Item is profileTransRefundType) { profileTransRefundType(argument.Item as profileTransRefundType); }
if (argument.Item is profileTransVoidType) { profileTransVoidType(argument.Item as profileTransVoidType); }
}
}
public static void driversLicenseMaskedType(driversLicenseMaskedType argument)
{
if (null != argument)
{
}
}
public static void customerPaymentProfileBaseType(customerPaymentProfileBaseType argument)
{
if (null != argument)
{
if (0 <= argument.customerType) { argument.customerTypeSpecified = true; }
customerAddressType(argument.billTo);
}
}
public static void customerPaymentProfileMaskedType(customerPaymentProfileMaskedType argument)
{
if (null != argument)
{
customerPaymentProfileBaseType(argument);
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true; }
paymentMaskedType(argument.payment);
driversLicenseMaskedType(argument.driversLicense);
if(argument.excludeFromAccountUpdater) { argument.excludeFromAccountUpdaterSpecified=true; }
}
}
public static void customerPaymentProfileType(customerPaymentProfileType argument)
{
if (null != argument)
{
customerPaymentProfileBaseType(argument);
paymentType(argument.payment);
driversLicenseType(argument.driversLicense);
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true; }
subsequentAuthInformation(argument.subsequentAuthInformation);
if(argument.excludeFromAccountUpdater) { argument.excludeFromAccountUpdaterSpecified=true; }
}
}
public static void customerPaymentProfileExType(customerPaymentProfileExType argument)
{
if (null != argument)
{
customerPaymentProfileType(argument);
}
}
public static void customerProfileBaseType(customerProfileBaseType argument)
{
if (null != argument)
{
}
}
public static void customerProfileExType(customerProfileExType argument)
{
if (null != argument)
{
customerProfileBaseType(argument);
}
}
public static void customerProfileMaskedType(customerProfileMaskedType argument)
{
if (null != argument)
{
customerProfileExType(argument);
if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { customerPaymentProfileMaskedType(value); } }
if (null != argument.shipToList) { foreach (var value in argument.shipToList) { customerAddressExType(value); } }
if(0 <= argument.profileType) { argument.profileTypeSpecified=true; }
}
}
public static void customerProfileInfoExType(customerProfileInfoExType argument)
{
if(null != argument)
{
customerProfileExType (argument);
if(0 <= argument.profileType) { argument.profileTypeSpecified=true; }
}
}
public static void customerProfileType(customerProfileType argument)
{
if (null != argument)
{
customerProfileBaseType(argument);
if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { customerPaymentProfileType(value); } }
if (null != argument.shipToList) { foreach (var value in argument.shipToList) { customerAddressType(value); } }
if(0 <= argument.profileType) { argument.profileTypeSpecified=true; }
}
}
public static void ContactDetailType(ContactDetailType argument)
{
}
public static void securePaymentContainerErrorType(securePaymentContainerErrorType argument)
{
if(null != argument)
{
}
}
public static void customerType(customerType argument)
{
if (null != argument)
{
if (0 <= argument.type) { argument.typeSpecified = true; }
driversLicenseType(argument.driversLicense);
}
}
public static void paymentScheduleType(paymentScheduleType argument)
{
if (null != argument)
{
paymentScheduleTypeInterval(argument.interval);
if (DateTime.MinValue != argument.startDate) { argument.startDateSpecified = true; }
if (0 <= argument.totalOccurrences) { argument.totalOccurrencesSpecified = true; }
if (0 <= argument.trialOccurrences) { argument.trialOccurrencesSpecified = true; }
}
}
public static void paymentScheduleTypeInterval(paymentScheduleTypeInterval argument)
{
}
public static void customerProfileIdType(customerProfileIdType argument)
{
if (null != argument)
{
}
}
public static void ARBSubscriptionType(ARBSubscriptionType argument)
{
if (null != argument)
{
paymentScheduleType(argument.paymentSchedule);
if (0 < argument.amount) { argument.amountSpecified = true; }
paymentType(argument.payment);
orderType(argument.order);
customerType(argument.customer);
nameAndAddressType(argument.billTo);
nameAndAddressType(argument.shipTo);
customerProfileIdType(argument.profile);
}
}
public static void ARBSubscriptionTypeSetTrialAmountSpecified(ARBSubscriptionType argument)
{
if (null != argument)
{
if (0 <= argument.trialAmount) { argument.trialAmountSpecified = true; }
}
}
public static void paymentDetails(paymentDetails argument)
{
if (null != argument)
{
}
}
public static void fingerPrintType(fingerPrintType argument)
{
if (null != argument)
{
}
}
public static void impersonationAuthenticationType(impersonationAuthenticationType argument)
{
if (null != argument)
{
}
}
public static void merchantAuthenticationType(merchantAuthenticationType argument)
{
if (null != argument)
{
if (argument.Item is fingerPrintType)
{
fingerPrintType(argument.Item as fingerPrintType);
}
if (argument.Item is impersonationAuthenticationType) { impersonationAuthenticationType(argument.Item as impersonationAuthenticationType); }
}
}
public static void ANetApiRequest(ANetApiRequest argument)
{
if (null != argument)
{
merchantAuthenticationType(argument.merchantAuthentication);
}
}
public static void decryptPaymentDataResponse(decryptPaymentDataResponse argument)
{
if (null != argument)
{
customerAddressType(argument.shippingInfo);
customerAddressType(argument.billingInfo);
creditCardMaskedType(argument.cardInfo);
paymentDetails(argument.paymentDetails);
}
}
public static void ANetApiResponse(ANetApiResponse argument)
{
if (null != argument)
{
messagesType(argument.messages);
}
}
public static void securePaymentContainerRequest(securePaymentContainerRequest argument)
{
if(null != argument)
{
webCheckOutDataType(argument.data);
}
}
public static void securePaymentContainerResponse(securePaymentContainerResponse argument)
{
if(null != argument)
{
opaqueDataType(argument.opaqueData);
}
}
public static void webCheckOutDataType(webCheckOutDataType argument)
{
if (null != argument)
{
webCheckOutDataTypeToken(argument.token);
}
}
public static void webCheckOutDataTypeToken(webCheckOutDataTypeToken argument)
{
if (null != argument)
{
}
}
public static void isAliveRequest(isAliveRequest argument)
{
if (null != argument)
{
}
}
// Added this method because isAliveRequest take AnetApiRequest as argument.
// AnetApiSchema.generated.cs - isAliveRequest is not the child class of AnetApiRequest class.
public static void isAliveRequest(ANetApiRequest argument)
{
if (null != argument)
{
}
}
public static void isAliveResponse(isAliveResponse argument)
{
if (null != argument)
{
}
}
public static void authenticateTestRequest(authenticateTestRequest argument)
{
if (null != argument)
{
}
}
public static void authenticateTestResponse(authenticateTestResponse argument)
{
if (null != argument)
{
}
}
public static void ARBCreateSubscriptionRequest(ARBCreateSubscriptionRequest argument)
{
if (null != argument)
{
ARBSubscriptionType(argument.subscription);
ARBSubscriptionTypeSetTrialAmountSpecified(argument.subscription);
}
}
public static void ARBCreateSubscriptionResponse(ARBCreateSubscriptionResponse argument)
{
if (null != argument)
{
customerProfileIdType(argument.profile);
}
}
public static void ARBUpdateSubscriptionRequest(ARBUpdateSubscriptionRequest argument)
{
if (null != argument)
{
ARBSubscriptionType(argument.subscription);
}
}
public static void ARBUpdateSubscriptionResponse(ARBUpdateSubscriptionResponse argument)
{
if (null != argument)
{
customerProfileIdType(argument.profile);
}
}
public static void ARBCancelSubscriptionRequest(ARBCancelSubscriptionRequest argument)
{
if (null != argument)
{
}
}
public static void ARBCancelSubscriptionResponse(ARBCancelSubscriptionResponse argument)
{
if (null != argument)
{
}
}
public static void ARBGetSubscriptionStatusRequest(ARBGetSubscriptionStatusRequest argument)
{
if (null != argument)
{
}
}
public static void ARBGetSubscriptionStatusResponse(ARBGetSubscriptionStatusResponse argument)
{
if (null != argument)
{
if (0 <= argument.status) { argument.statusSpecified = true; }
}
}
public static void createCustomerProfileRequest(createCustomerProfileRequest argument)
{
if (null != argument)
{
customerProfileType(argument.profile);
if (0 <= argument.validationMode) { argument.validationModeSpecified = true; }
}
}
public static void createCustomerProfileResponse(createCustomerProfileResponse argument)
{
if (null != argument)
{
}
}
public static void createCustomerPaymentProfileRequest(createCustomerPaymentProfileRequest argument)
{
if (null != argument)
{
customerPaymentProfileType(argument.paymentProfile);
if (0 <= argument.validationMode) { argument.validationModeSpecified = true; }
}
}
public static void createCustomerPaymentProfileResponse(createCustomerPaymentProfileResponse argument)
{
if (null != argument)
{
}
}
public static void createCustomerShippingAddressRequest(createCustomerShippingAddressRequest argument)
{
if (null != argument)
{
customerAddressType(argument.address);
}
}
public static void createCustomerShippingAddressResponse(createCustomerShippingAddressResponse argument)
{
if (null != argument)
{
}
}
public static void createCustomerProfileFromTransactionRequest(createCustomerProfileFromTransactionRequest argument)
{
if (null != argument)
{
customerProfileBaseType(argument.customer);
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true; }
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true; }
if(0 <= argument.profileType) { argument.profileTypeSpecified=true; }
}
}
public static void getCustomerProfileRequest(getCustomerProfileRequest argument)
{
if (null != argument)
{
if(argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified=true; }
if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true; }
}
}
public static void getCustomerProfileResponse(getCustomerProfileResponse argument)
{
if (null != argument)
{
customerProfileMaskedType(argument.profile);
}
}
public static void getCustomerPaymentProfileRequest(getCustomerPaymentProfileRequest argument)
{
if (null != argument)
{
if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true; }
}
}
public static void getCustomerPaymentProfileResponse(getCustomerPaymentProfileResponse argument)
{
if (null != argument)
{
customerPaymentProfileMaskedType(argument.paymentProfile);
}
}
public static void getCustomerShippingAddressRequest(getCustomerShippingAddressRequest argument)
{
if (null != argument)
{
}
}
public static void getCustomerShippingAddressResponse(getCustomerShippingAddressResponse argument)
{
if (null != argument)
{
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true; }
customerAddressExType(argument.address);
}
}
public static void updateCustomerProfileRequest(updateCustomerProfileRequest argument)
{
if (null != argument)
{
if (null != argument.profile && argument.profile.GetType() == typeof(customerProfileInfoExType))
{
customerProfileInfoExType((customerProfileInfoExType)argument.profile);
}
else
{
customerProfileExType(argument.profile);
}
}
}
public static void updateCustomerProfileResponse(updateCustomerProfileResponse argument)
{
if (null != argument)
{
}
}
public static void updateCustomerPaymentProfileRequest(updateCustomerPaymentProfileRequest argument)
{
if (null != argument)
{
customerPaymentProfileExType(argument.paymentProfile);
if (0 <= argument.validationMode) { argument.validationModeSpecified = true; }
}
}
public static void updateCustomerPaymentProfileResponse(updateCustomerPaymentProfileResponse argument)
{
if (null != argument)
{
}
}
public static void updateCustomerShippingAddressRequest(updateCustomerShippingAddressRequest argument)
{
if (null != argument)
{
customerAddressExType(argument.address);
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true; }
}
}
public static void updateCustomerShippingAddressResponse(updateCustomerShippingAddressResponse argument)
{
if (null != argument)
{
}
}
public static void deleteCustomerProfileRequest(deleteCustomerProfileRequest argument)
{
if (null != argument)
{
}
}
public static void deleteCustomerProfileResponse(deleteCustomerProfileResponse argument)
{
if (null != argument)
{
}
}
public static void deleteCustomerPaymentProfileRequest(deleteCustomerPaymentProfileRequest argument)
{
if (null != argument)
{
}
}
public static void deleteCustomerPaymentProfileResponse(deleteCustomerPaymentProfileResponse argument)
{
if (null != argument)
{
}
}
public static void deleteCustomerShippingAddressRequest(deleteCustomerShippingAddressRequest argument)
{
if (null != argument)
{
}
}
public static void deleteCustomerShippingAddressResponse(deleteCustomerShippingAddressResponse argument)
{
if (null != argument)
{
}
}
public static void createCustomerProfileTransactionRequest(createCustomerProfileTransactionRequest argument)
{
if (null != argument)
{
profileTransactionType(argument.transaction);
}
}
public static void createCustomerProfileTransactionResponse(createCustomerProfileTransactionResponse argument)
{
if (null != argument)
{
transactionResponse(argument.transactionResponse);
}
}
public static void validateCustomerPaymentProfileRequest(validateCustomerPaymentProfileRequest argument)
{
if (null != argument)
{
}
}
public static void validateCustomerPaymentProfileResponse(validateCustomerPaymentProfileResponse argument)
{
if (null != argument)
{
}
}
public static void getCustomerProfileIdsRequest(getCustomerProfileIdsRequest argument)
{
if (null != argument)
{
}
}
public static void getCustomerProfileIdsResponse(getCustomerProfileIdsResponse argument)
{
if (null != argument)
{
}
}
public static void updateSplitTenderGroupRequest(updateSplitTenderGroupRequest argument)
{
if (null != argument)
{
}
}
public static void updateSplitTenderGroupResponse(updateSplitTenderGroupResponse argument)
{
if (null != argument)
{
}
}
public static void getTransactionDetailsRequest(getTransactionDetailsRequest argument)
{
if (null != argument)
{
}
}
public static void getTransactionDetailsResponse(getTransactionDetailsResponse argument)
{
if (null != argument)
{
transactionDetailsType(argument.transaction);
}
}
public static void createTransactionRequest(createTransactionRequest argument)
{
if (null != argument)
{
transactionRequestType(argument.transactionRequest);
}
}
public static void createTransactionResponse(createTransactionResponse argument)
{
if (null != argument)
{
transactionResponse(argument.transactionResponse);
createProfileResponse(argument.profileResponse);
}
}
public static void updateHeldTransactionRequest(updateHeldTransactionRequest argument)
{
if(null != argument)
{
heldTransactionRequestType(argument.heldTransactionRequest);
}
}
public static void updateHeldTransactionResponse(updateHeldTransactionResponse argument)
{
if(null != argument)
{
transactionResponse(argument.transactionResponse);
}
}
public static void getBatchStatisticsRequest(getBatchStatisticsRequest argument)
{
if (null != argument)
{
}
}
public static void getBatchStatisticsResponse(getBatchStatisticsResponse argument)
{
if (null != argument)
{
batchDetailsType(argument.batch);
}
}
public static void getSettledBatchListRequest(getSettledBatchListRequest argument)
{
if (null != argument)
{
if (argument.includeStatistics) { argument.includeStatisticsSpecified = true; }
if (DateTime.MinValue != argument.firstSettlementDate) { argument.firstSettlementDateSpecified = true; }
if (DateTime.MinValue != argument.lastSettlementDate) { argument.lastSettlementDateSpecified = true; }
}
}
public static void getSettledBatchListResponse(getSettledBatchListResponse argument)
{
if (null != argument)
{
if (null != argument.batchList) { foreach (var value in argument.batchList) { batchDetailsType(value); } }
}
}
public static void getTransactionListRequest(getTransactionListRequest argument)
{
if (null != argument)
{
TransactionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getTransactionListResponse(getTransactionListResponse argument)
{
if (null != argument)
{
if (null != argument.transactions) { foreach (var value in argument.transactions) { transactionSummaryType(value); } }
if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; }
}
}
public static void getHostedProfilePageRequest(getHostedProfilePageRequest argument)
{
if (null != argument)
{
if (null != argument.hostedProfileSettings) { foreach (var value in argument.hostedProfileSettings) { settingType(value); } }
}
}
public static void getHostedProfilePageResponse(getHostedProfilePageResponse argument)
{
if (null != argument)
{
}
}
public static void getUnsettledTransactionListRequest(getUnsettledTransactionListRequest argument)
{
if (null != argument)
{
if (0 <= argument.status) { argument.statusSpecified = true; }
TransactionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getHostedPaymentPageRequest(getHostedPaymentPageRequest argument)
{
if(null != argument)
{
transactionRequestType(argument.transactionRequest);
if(null != argument.hostedPaymentSettings){ foreach( var value in argument.hostedPaymentSettings) { settingType(value); } }
}
}
public static void getHostedPaymentPageResponse(getHostedPaymentPageResponse argument)
{
if(null != argument)
{
}
}
public static void getUnsettledTransactionListResponse(getUnsettledTransactionListResponse argument)
{
if (null != argument)
{
if (null != argument.transactions) { foreach (var value in argument.transactions) { transactionSummaryType(value); } }
if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; }
}
}
public static void mobileDeviceRegistrationRequest(mobileDeviceRegistrationRequest argument)
{
if (null != argument)
{
mobileDeviceType(argument.mobileDevice);
}
}
public static void mobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument)
{
if (null != argument)
{
}
}
public static void mobileDeviceLoginRequest(mobileDeviceLoginRequest argument)
{
if (null != argument)
{
}
}
public static void mobileDeviceLoginResponse(mobileDeviceLoginResponse argument)
{
if (null != argument)
{
merchantContactType(argument.merchantContact);
if (null != argument.userPermissions) { foreach (var value in argument.userPermissions) { permissionType(value); } }
transRetailInfoType(argument.merchantAccount);
}
}
public static void logoutRequest(logoutRequest argument)
{
if (null != argument)
{
}
}
public static void logoutResponse(logoutResponse argument)
{
if (null != argument)
{
}
}
public static void sendCustomerTransactionReceiptRequest(sendCustomerTransactionReceiptRequest argument)
{
if (null != argument)
{
emailSettingsType(argument.emailSettings);
}
}
public static void sendCustomerTransactionReceiptResponse(sendCustomerTransactionReceiptResponse argument)
{
if (null != argument)
{
}
}
public static void ARBGetSubscriptionListRequest(ARBGetSubscriptionListRequest argument)
{
if (null != argument)
{
ARBGetSubscriptionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void ARBGetSubscriptionListResponse(ARBGetSubscriptionListResponse argument)
{
if (null != argument)
{
if (0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified = true; }
if (null != argument.subscriptionDetails) { foreach (var value in argument.subscriptionDetails) { SubscriptionDetail(value); } }
}
}
public static void getCustomerPaymentProfileListRequest(getCustomerPaymentProfileListRequest argument)
{
if (null != argument)
{
CustomerPaymentProfileSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getCustomerPaymentProfileListResponse(getCustomerPaymentProfileListResponse argument)
{
if (null != argument)
{
if (null != argument.paymentProfiles) { foreach (var value in argument.paymentProfiles) { customerPaymentProfileListItemType(value); } }
}
}
public static void ARBGetSubscriptionRequest(ARBGetSubscriptionRequest argument)
{
if (null != argument)
{
}
}
public static void ARBGetSubscriptionResponse(ARBGetSubscriptionResponse argument)
{
if (null != argument)
{
ARBSubscriptionMaskedType(argument.subscription);
}
}
public static void EnumCollection(EnumCollection argument)
{
if (null != argument)
{
customerProfileSummaryType(argument.customerProfileSummaryType);
paymentSimpleType(argument.paymentSimpleType);
}
}
public static void auDetailsType(auDetailsType argument)
{
if(null != argument)
{
}
}
public static void auDeleteType(auDeleteType argument)
{
if(null != argument)
{
auDetailsType (argument);
creditCardMaskedType(argument.creditCard);
}
}
public static void auUpdateType(auUpdateType argument)
{
if(null != argument)
{
auDetailsType (argument);
creditCardMaskedType(argument.newCreditCard);
creditCardMaskedType(argument.oldCreditCard);
}
}
public static void auResponseType(auResponseType argument)
{
if(null != argument)
{
}
}
public static void emvTag(emvTag argument)
{
if(null != argument)
{
}
}
public static void getAUJobSummaryRequest(getAUJobSummaryRequest argument)
{
if(null != argument)
{
}
}
public static void getAUJobSummaryResponse(getAUJobSummaryResponse argument)
{
if(null != argument)
{
if(null != argument.auSummary){ foreach( var value in argument.auSummary) { auResponseType(value); } }
}
}
public static void getAUJobDetailsRequest(getAUJobDetailsRequest argument)
{
if(null != argument)
{
if(0 <= argument.modifiedTypeFilter) { argument.modifiedTypeFilterSpecified=true; }
Paging(argument.paging);
}
}
public static void getAUJobDetailsResponse(getAUJobDetailsResponse argument)
{
if(null != argument)
{
if(0 <= argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true; }
if(null != argument.auDetails){ foreach( var value in argument.auDetails) { auDetailsType(value); } }
}
}
public static void getMerchantDetailsRequest(getMerchantDetailsRequest argument)
{
}
public static void getMerchantDetailsResponse(getMerchantDetailsResponse argument)
{
if(null != argument)
{
if(argument.isTestMode) { argument.isTestModeSpecified=true; }
if(null != argument.processors){ foreach( var value in argument.processors) { processorType(value); } }
customerAddressType(argument.businessInformation);
if (null != argument.contactDetails) { foreach (var value in argument.contactDetails) { ContactDetailType(value); } }
}
}
public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument)
{
if(null != argument)
{
TransactionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void updateMerchantDetailsRequest(updateMerchantDetailsRequest argument)
{
if (null != argument)
{
}
}
public static void updateMerchantDetailsResponse(updateMerchantDetailsResponse argument)
{
if (null != argument)
{
}
}
public static void getCustomerPaymentProfileNonceRequest(getCustomerPaymentProfileNonceRequest argument)
{
}
public static void getCustomerPaymentProfileNonceResponse(getCustomerPaymentProfileNonceResponse argument)
{
if (null != argument)
{
opaqueDataType(argument.opaqueData);
}
}
}
// ReSharper restore InconsistentNaming
#pragma warning restore 1591
#pragma warning restore 169
}
/*
Requests
ARBCreateSubscriptionRequest
ARBUpdateSubscriptionRequest
createCustomerPaymentProfileRequest
createCustomerProfileRequest
createCustomerProfileTransactionRequest
createTransactionRequest
getSettledBatchListRequest
mobileDeviceRegistrationRequest
updateCustomerPaymentProfileRequest
XXDoNotUseDummyRequest
ECHO is off.
*/
/*
Objects
ECHO is off.
ARBSubscriptionType
bankAccountMaskedType
bankAccountType
batchDetailsType
batchStatisticType
customerDataType
customerPaymentProfileBaseType
customerPaymentProfileExType
customerPaymentProfileMaskedType
customerPaymentProfileType
customerProfileMaskedType
customerProfileType
customerType
lineItemType
mobileDeviceType
paymentMaskedType
paymentScheduleType
paymentSimpleType
paymentType
profileTransactionType
profileTransAmountType
profileTransAuthCaptureType
profileTransAuthOnlyType
profileTransCaptureOnlyType
profileTransOrderType
profileTransPriorAuthCaptureType
profileTransRefundType
transactionDetailsType
transactionRequestType
transactionSummaryType
ECHO is off.
*/
================================================
FILE: Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.generated.org
================================================
namespace AuthorizeNet.Api.Contracts.V1
{
using System;
#pragma warning disable 169
#pragma warning disable 1591
// ReSharper disable InconsistentNaming
///
/// Special case handlers
///
/// validated on ????/??/?? for objects listed at the end
/// should be validated after each update of AnetApiSchema.cs
/// for fields/properties that are minOccurs="0" since xsd.exe
/// generates "specified" property for such fields and requires
/// special handling to set them seamlessly
/// Make sure to update the respective controllers to call the respective request hand
///
///
public static class RequestFactoryWithSpecified
{
}
}
public static void decryptPaymentDataRequest(decryptPaymentDataRequest argument)
{
if(null != argument)
{
opaqueDataType(argument.opaqueData);
}
}
public static void opaqueDataType(opaqueDataType argument)
{
if(null != argument)
{
if(argument.expirationTimeStamp) { argument.expirationTimeStampSpecified=true;}
}
}
public static void processorType(processorType argument)
{
if(null != argument)
{
[System.Xml.Serialization.XmlArrayItemAttribute("cardType")]
}
}
public static void auDetailsType(auDetailsType argument)
{
if(null != argument)
{
long(argument.customerProfileID);
long(argument.customerPaymentProfileID);
}
}
public static void auDeleteType(auDeleteType argument)
{
if(null != argument)
{
auDetailsType (argument);
creditCardMaskedType(argument.creditCard);
}
}
public static void creditCardMaskedType(creditCardMaskedType argument)
{
if(null != argument)
{
cardArt(argument.cardArt);
if(argument.isPaymentToken) { argument.isPaymentTokenSpecified=true;}
}
}
public static void cardArt(cardArt argument)
{
if(null != argument)
{
}
}
public static void auUpdateType(auUpdateType argument)
{
if(null != argument)
{
auDetailsType (argument);
creditCardMaskedType(argument.newCreditCard);
creditCardMaskedType(argument.oldCreditCard);
}
}
public static void auResponseType(auResponseType argument)
{
if(null != argument)
{
long(argument.profileCount);
}
}
public static void customerPaymentProfileListItemType(customerPaymentProfileListItemType argument)
{
if(null != argument)
{
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;}
customerAddressType(argument.billTo);
paymentMaskedType(argument.payment);
if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;}
if(argument.excludeFromAccountUpdater) { argument.excludeFromAccountUpdaterSpecified=true;}
}
}
public static void customerAddressType(customerAddressType argument)
{
if(null != argument)
{
nameAndAddressType (argument);
}
}
public static void nameAndAddressType(nameAndAddressType argument)
{
if(null != argument)
{
}
}
public static void customerAddressExType(customerAddressExType argument)
{
if(null != argument)
{
customerAddressType (argument);
}
}
public static void paymentMaskedType(paymentMaskedType argument)
{
if(null != argument)
{
bankAccountMaskedType(argument);
creditCardMaskedType(argument);
tokenMaskedType(argument);
}
}
public static void bankAccountMaskedType(bankAccountMaskedType argument)
{
if(null != argument)
{
if(argument.accountType) { argument.accountTypeSpecified=true;}
if(argument.echeckType) { argument.echeckTypeSpecified=true;}
}
}
public static void tokenMaskedType(tokenMaskedType argument)
{
if(null != argument)
{
}
}
public static void CustomerPaymentProfileSorting(CustomerPaymentProfileSorting argument)
{
if(null != argument)
{
(argument.orderDescending);
}
}
public static void customerProfileSummaryType(customerProfileSummaryType argument)
{
if(null != argument)
{
}
}
public static void SubscriptionDetail(SubscriptionDetail argument)
{
if(null != argument)
{
if(argument.customerShippingProfileId) { argument.customerShippingProfileIdSpecified=true;}
}
}
public static void ARBGetSubscriptionListSorting(ARBGetSubscriptionListSorting argument)
{
if(null != argument)
{
(argument.orderDescending);
}
}
public static void Paging(Paging argument)
{
if(null != argument)
{
}
}
public static void TransactionListSorting(TransactionListSorting argument)
{
if(null != argument)
{
(argument.orderDescending);
}
}
public static void heldTransactionRequestType(heldTransactionRequestType argument)
{
if(null != argument)
{
}
}
public static void createProfileResponse(createProfileResponse argument)
{
if(null != argument)
{
messagesType(argument.messages);
}
}
public static void messagesType(messagesType argument)
{
if(null != argument)
{
if(null != argument.message){ foreach( var value in argument.message) { messagesTypeMessage(value);} }
}
}
public static void messagesTypeMessage(messagesTypeMessage argument)
{
if(null != argument)
{
}
}
public static void transactionResponse(transactionResponse argument)
{
if(null != argument)
{
transactionResponsePrePaidCard(argument.prePaidCard);
if(null != argument.messages){ foreach( var value in argument.messages) { transactionResponseMessage(value);} }
if(null != argument.errors){ foreach( var value in argument.errors) { transactionResponseError(value);} }
if(null != argument.splitTenderPayments){ foreach( var value in argument.splitTenderPayments) { transactionResponseSplitTenderPayment(value);} }
if(null != argument.userFields){ foreach( var value in argument.userFields) { userField(value);} }
nameAndAddressType(argument.shipTo);
transactionResponseSecureAcceptance(argument.secureAcceptance);
transactionResponseEmvResponse(argument.emvResponse);
customerProfileIdType(argument.profile);
}
}
public static void transactionResponsePrePaidCard(transactionResponsePrePaidCard argument)
{
if(null != argument)
{
}
}
public static void transactionResponseMessage(transactionResponseMessage argument)
{
if(null != argument)
{
}
}
public static void transactionResponseError(transactionResponseError argument)
{
if(null != argument)
{
}
}
public static void transactionResponseSplitTenderPayment(transactionResponseSplitTenderPayment argument)
{
if(null != argument)
{
}
}
public static void userField(userField argument)
{
if(null != argument)
{
}
}
public static void transactionResponseSecureAcceptance(transactionResponseSecureAcceptance argument)
{
if(null != argument)
{
}
}
public static void transactionResponseEmvResponse(transactionResponseEmvResponse argument)
{
if(null != argument)
{
if(null != argument.tags){ foreach( var value in argument.tags) { emvTag(value);} }
}
}
public static void emvTag(emvTag argument)
{
if(null != argument)
{
}
}
public static void customerProfileIdType(customerProfileIdType argument)
{
if(null != argument)
{
}
}
public static void returnedItemType(returnedItemType argument)
{
if(null != argument)
{
}
}
public static void transactionDetailsType(transactionDetailsType argument)
{
if(null != argument)
{
subscriptionPaymentType(argument.subscription);
if(null != argument.FDSFilters){ foreach( var value in argument.FDSFilters) { FDSFilterType(value);} }
batchDetailsType(argument.batch);
orderExType(argument.order);
if(argument.requestedAmount) { argument.requestedAmountSpecified=true;}
extendedAmountType(argument.tax);
extendedAmountType(argument.shipping);
extendedAmountType(argument.duty);
if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} }
if(argument.prepaidBalanceRemaining) { argument.prepaidBalanceRemainingSpecified=true;}
if(argument.taxExempt) { argument.taxExemptSpecified=true;}
paymentMaskedType(argument.payment);
customerDataType(argument.customer);
customerAddressType(argument.billTo);
nameAndAddressType(argument.shipTo);
if(argument.recurringBilling) { argument.recurringBillingSpecified=true;}
if(null != argument.returnedItems){ foreach( var value in argument.returnedItems) { returnedItemType(value);} }
solutionType(argument.solution);
if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value);} }
customerProfileIdType(argument.profile);
extendedAmountType(argument.surcharge);
extendedAmountType(argument.tip);
otherTaxType(argument.otherTax);
nameAndAddressType(argument.shipFrom);
if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;}
}
}
public static void subscriptionPaymentType(subscriptionPaymentType argument)
{
if(null != argument)
{
}
}
public static void FDSFilterType(FDSFilterType argument)
{
if(null != argument)
{
}
}
public static void batchDetailsType(batchDetailsType argument)
{
if(null != argument)
{
if(argument.settlementTimeUTC) { argument.settlementTimeUTCSpecified=true;}
if(argument.settlementTimeLocal) { argument.settlementTimeLocalSpecified=true;}
if(null != argument.statistics){ foreach( var value in argument.statistics) { batchStatisticType(value);} }
}
}
public static void batchStatisticType(batchStatisticType argument)
{
if(null != argument)
{
if(argument.returnedItemAmount) { argument.returnedItemAmountSpecified=true;}
if(argument.returnedItemCount) { argument.returnedItemCountSpecified=true;}
if(argument.chargebackAmount) { argument.chargebackAmountSpecified=true;}
if(argument.chargebackCount) { argument.chargebackCountSpecified=true;}
if(argument.correctionNoticeCount) { argument.correctionNoticeCountSpecified=true;}
if(argument.chargeChargeBackAmount) { argument.chargeChargeBackAmountSpecified=true;}
if(argument.chargeChargeBackCount) { argument.chargeChargeBackCountSpecified=true;}
if(argument.refundChargeBackAmount) { argument.refundChargeBackAmountSpecified=true;}
if(argument.refundChargeBackCount) { argument.refundChargeBackCountSpecified=true;}
if(argument.chargeReturnedItemsAmount) { argument.chargeReturnedItemsAmountSpecified=true;}
if(argument.chargeReturnedItemsCount) { argument.chargeReturnedItemsCountSpecified=true;}
if(argument.refundReturnedItemsAmount) { argument.refundReturnedItemsAmountSpecified=true;}
if(argument.refundReturnedItemsCount) { argument.refundReturnedItemsCountSpecified=true;}
}
}
public static void orderExType(orderExType argument)
{
if(null != argument)
{
orderType (argument);
}
}
public static void orderType(orderType argument)
{
if(null != argument)
{
if(argument.discountAmount) { argument.discountAmountSpecified=true;}
if(argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified=true;}
if(argument.purchaseOrderDateUTC) { argument.purchaseOrderDateUTCSpecified=true;}
}
}
public static void extendedAmountType(extendedAmountType argument)
{
if(null != argument)
{
}
}
public static void lineItemType(lineItemType argument)
{
if(null != argument)
{
if(argument.taxable) { argument.taxableSpecified=true;}
if(argument.taxRate) { argument.taxRateSpecified=true;}
if(argument.taxAmount) { argument.taxAmountSpecified=true;}
if(argument.nationalTax) { argument.nationalTaxSpecified=true;}
if(argument.localTax) { argument.localTaxSpecified=true;}
if(argument.vatRate) { argument.vatRateSpecified=true;}
if(argument.alternateTaxRate) { argument.alternateTaxRateSpecified=true;}
if(argument.alternateTaxAmount) { argument.alternateTaxAmountSpecified=true;}
if(argument.totalAmount) { argument.totalAmountSpecified=true;}
if(argument.discountRate) { argument.discountRateSpecified=true;}
if(argument.discountAmount) { argument.discountAmountSpecified=true;}
if(argument.taxIncludedInTotal) { argument.taxIncludedInTotalSpecified=true;}
if(argument.taxIsAfterDiscount) { argument.taxIsAfterDiscountSpecified=true;}
}
}
public static void customerDataType(customerDataType argument)
{
if(null != argument)
{
if(argument.type) { argument.typeSpecified=true;}
driversLicenseType(argument.driversLicense);
}
}
public static void driversLicenseType(driversLicenseType argument)
{
if(null != argument)
{
}
}
public static void solutionType(solutionType argument)
{
if(null != argument)
{
}
}
public static void transactionDetailsTypeTag(transactionDetailsTypeTag argument)
{
if(null != argument)
{
}
}
public static void otherTaxType(otherTaxType argument)
{
if(null != argument)
{
if(argument.nationalTaxAmount) { argument.nationalTaxAmountSpecified=true;}
if(argument.localTaxAmount) { argument.localTaxAmountSpecified=true;}
if(argument.alternateTaxAmount) { argument.alternateTaxAmountSpecified=true;}
if(argument.vatTaxRate) { argument.vatTaxRateSpecified=true;}
if(argument.vatTaxAmount) { argument.vatTaxAmountSpecified=true;}
}
}
public static void profileTransactionType(profileTransactionType argument)
{
if(null != argument)
{
profileTransAuthCaptureType(argument);
profileTransAuthOnlyType(argument);
profileTransCaptureOnlyType(argument);
profileTransPriorAuthCaptureType(argument);
profileTransRefundType(argument);
profileTransVoidType(argument);
}
}
public static void profileTransAuthCaptureType(profileTransAuthCaptureType argument)
{
if(null != argument)
{
profileTransOrderType (argument);
}
}
public static void profileTransOrderType(profileTransOrderType argument)
{
if(null != argument)
{
profileTransAmountType (argument);
orderExType(argument.order);
if(argument.taxExempt) { argument.taxExemptSpecified=true;}
if(argument.recurringBilling) { argument.recurringBillingSpecified=true;}
processingOptions(argument.processingOptions);
subsequentAuthInformation(argument.subsequentAuthInformation);
authorizationIndicatorType(argument.authorizationIndicatorType);
}
}
public static void processingOptions(processingOptions argument)
{
if(null != argument)
{
if(argument.isFirstRecurringPayment) { argument.isFirstRecurringPaymentSpecified=true;}
if(argument.isFirstSubsequentAuth) { argument.isFirstSubsequentAuthSpecified=true;}
if(argument.isSubsequentAuth) { argument.isSubsequentAuthSpecified=true;}
if(argument.isStoredCredentials) { argument.isStoredCredentialsSpecified=true;}
}
}
public static void subsequentAuthInformation(subsequentAuthInformation argument)
{
if(null != argument)
{
if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;}
if(argument.reason) { argument.reasonSpecified=true;}
}
}
public static void authorizationIndicatorType(authorizationIndicatorType argument)
{
if(null != argument)
{
if(argument.authorizationIndicator) { argument.authorizationIndicatorSpecified=true;}
}
}
public static void profileTransAmountType(profileTransAmountType argument)
{
if(null != argument)
{
extendedAmountType(argument.tax);
extendedAmountType(argument.shipping);
extendedAmountType(argument.duty);
if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} }
}
}
public static void profileTransRefundType(profileTransRefundType argument)
{
if(null != argument)
{
profileTransAmountType (argument);
orderExType(argument.order);
}
}
public static void profileTransPriorAuthCaptureType(profileTransPriorAuthCaptureType argument)
{
if(null != argument)
{
profileTransAmountType (argument);
}
}
public static void profileTransCaptureOnlyType(profileTransCaptureOnlyType argument)
{
if(null != argument)
{
profileTransOrderType (argument);
}
}
public static void profileTransAuthOnlyType(profileTransAuthOnlyType argument)
{
if(null != argument)
{
profileTransOrderType (argument);
}
}
public static void profileTransVoidType(profileTransVoidType argument)
{
if(null != argument)
{
}
}
public static void paymentProfile(paymentProfile argument)
{
if(null != argument)
{
}
}
public static void customerProfilePaymentType(customerProfilePaymentType argument)
{
if(null != argument)
{
if(argument.createProfile) { argument.createProfileSpecified=true;}
paymentProfile(argument.paymentProfile);
}
}
public static void transactionRequestType(transactionRequestType argument)
{
if(null != argument)
{
if(argument.amount) { argument.amountSpecified=true;}
paymentType(argument.payment);
customerProfilePaymentType(argument.profile);
solutionType(argument.solution);
orderType(argument.order);
if(null != argument.lineItems){ foreach( var value in argument.lineItems) { lineItemType(value);} }
extendedAmountType(argument.tax);
extendedAmountType(argument.duty);
extendedAmountType(argument.shipping);
if(argument.taxExempt) { argument.taxExemptSpecified=true;}
customerDataType(argument.customer);
customerAddressType(argument.billTo);
nameAndAddressType(argument.shipTo);
ccAuthenticationType(argument.cardholderAuthentication);
transRetailInfoType(argument.retail);
if(null != argument.transactionSettings){ foreach( var value in argument.transactionSettings) { settingType(value);} }
if(null != argument.userFields){ foreach( var value in argument.userFields) { userField(value);} }
extendedAmountType(argument.surcharge);
subMerchantType(argument.subMerchant);
extendedAmountType(argument.tip);
processingOptions(argument.processingOptions);
subsequentAuthInformation(argument.subsequentAuthInformation);
otherTaxType(argument.otherTax);
nameAndAddressType(argument.shipFrom);
authorizationIndicatorType(argument.authorizationIndicatorType);
}
}
public static void paymentType(paymentType argument)
{
if(null != argument)
{
bankAccountType(argument);
creditCardType(argument);
paymentEmvType(argument);
encryptedTrackDataType(argument);
opaqueDataType(argument);
payPalType(argument);
creditCardTrackType(argument);
}
}
public static void bankAccountType(bankAccountType argument)
{
if(null != argument)
{
if(argument.accountType) { argument.accountTypeSpecified=true;}
if(argument.echeckType) { argument.echeckTypeSpecified=true;}
}
}
public static void creditCardType(creditCardType argument)
{
if(null != argument)
{
creditCardSimpleType (argument);
if(argument.isPaymentToken) { argument.isPaymentTokenSpecified=true;}
}
}
public static void creditCardSimpleType(creditCardSimpleType argument)
{
if(null != argument)
{
}
}
public static void paymentEmvType(paymentEmvType argument)
{
if(null != argument)
{
}
}
public static void encryptedTrackDataType(encryptedTrackDataType argument)
{
if(null != argument)
{
KeyBlock(argument.FormOfPayment);
}
}
public static void KeyBlock(KeyBlock argument)
{
if(null != argument)
{
KeyValue(argument.Value);
}
}
public static void KeyValue(KeyValue argument)
{
if(null != argument)
{
EncodingType(argument.Encoding);
EncryptionAlgorithmType(argument.EncryptionAlgorithm);
KeyManagementScheme(argument.Scheme);
}
}
public static void KeyManagementScheme(KeyManagementScheme argument)
{
if(null != argument)
{
KeyManagementSchemeDUKPT(argument.DUKPT);
}
}
public static void KeyManagementSchemeDUKPT(KeyManagementSchemeDUKPT argument)
{
if(null != argument)
{
OperationType(argument.Operation);
KeyManagementSchemeDUKPTMode(argument.Mode);
KeyManagementSchemeDUKPTDeviceInfo(argument.DeviceInfo);
KeyManagementSchemeDUKPTEncryptedData(argument.EncryptedData);
}
}
public static void KeyManagementSchemeDUKPTMode(KeyManagementSchemeDUKPTMode argument)
{
if(null != argument)
{
}
}
public static void KeyManagementSchemeDUKPTDeviceInfo(KeyManagementSchemeDUKPTDeviceInfo argument)
{
if(null != argument)
{
}
}
public static void KeyManagementSchemeDUKPTEncryptedData(KeyManagementSchemeDUKPTEncryptedData argument)
{
if(null != argument)
{
}
}
public static void payPalType(payPalType argument)
{
if(null != argument)
{
}
}
public static void creditCardTrackType(creditCardTrackType argument)
{
if(null != argument)
{
}
}
public static void ccAuthenticationType(ccAuthenticationType argument)
{
if(null != argument)
{
}
}
public static void transRetailInfoType(transRetailInfoType argument)
{
if(null != argument)
{
transRetailInfoType() {
this.marketType = "2";
}
}
public static void settingType(settingType argument)
{
if(null != argument)
{
}
}
public static void subMerchantType(subMerchantType argument)
{
if(null != argument)
{
}
}
public static void mobileDeviceType(mobileDeviceType argument)
{
if(null != argument)
{
if(argument.deviceActivation) { argument.deviceActivationSpecified=true;}
}
}
public static void customerPaymentProfileBaseType(customerPaymentProfileBaseType argument)
{
if(null != argument)
{
if(argument.customerType) { argument.customerTypeSpecified=true;}
customerAddressType(argument.billTo);
}
}
public static void customerPaymentProfileMaskedType(customerPaymentProfileMaskedType argument)
{
if(null != argument)
{
customerPaymentProfileBaseType (argument);
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;}
paymentMaskedType(argument.payment);
driversLicenseMaskedType(argument.driversLicense);
if(argument.originalAuthAmount) { argument.originalAuthAmountSpecified=true;}
if(argument.excludeFromAccountUpdater) { argument.excludeFromAccountUpdaterSpecified=true;}
}
}
public static void driversLicenseMaskedType(driversLicenseMaskedType argument)
{
if(null != argument)
{
}
}
public static void customerPaymentProfileType(customerPaymentProfileType argument)
{
if(null != argument)
{
customerPaymentProfileBaseType (argument);
paymentType(argument.payment);
driversLicenseType(argument.driversLicense);
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;}
subsequentAuthInformation(argument.subsequentAuthInformation);
if(argument.excludeFromAccountUpdater) { argument.excludeFromAccountUpdaterSpecified=true;}
}
}
public static void customerPaymentProfileExType(customerPaymentProfileExType argument)
{
if(null != argument)
{
customerPaymentProfileType (argument);
}
}
public static void customerProfileBaseType(customerProfileBaseType argument)
{
if(null != argument)
{
}
}
public static void customerProfileExType(customerProfileExType argument)
{
if(null != argument)
{
customerProfileBaseType (argument);
}
}
public static void customerProfileMaskedType(customerProfileMaskedType argument)
{
if(null != argument)
{
customerProfileExType (argument);
if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileMaskedType(value);} }
if(null != argument.shipToList){ foreach( var value in argument.shipToList) { customerAddressExType(value);} }
if(argument.profileType) { argument.profileTypeSpecified=true;}
}
}
public static void customerProfileInfoExType(customerProfileInfoExType argument)
{
if(null != argument)
{
customerProfileExType (argument);
if(argument.profileType) { argument.profileTypeSpecified=true;}
}
}
public static void subscriptionCustomerProfileType(subscriptionCustomerProfileType argument)
{
if(null != argument)
{
customerProfileExType (argument);
customerPaymentProfileMaskedType(argument.paymentProfile);
customerAddressExType(argument.shippingProfile);
}
}
public static void customerProfileType(customerProfileType argument)
{
if(null != argument)
{
customerProfileBaseType (argument);
if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileType(value);} }
if(null != argument.shipToList){ foreach( var value in argument.shipToList) { customerAddressType(value);} }
if(argument.profileType) { argument.profileTypeSpecified=true;}
}
}
public static void ARBSubscriptionMaskedType(ARBSubscriptionMaskedType argument)
{
if(null != argument)
{
paymentScheduleType(argument.paymentSchedule);
if(argument.amount) { argument.amountSpecified=true;}
if(argument.trialAmount) { argument.trialAmountSpecified=true;}
if(argument.status) { argument.statusSpecified=true;}
subscriptionCustomerProfileType(argument.profile);
orderType(argument.order);
if(null != argument.arbTransactions){ foreach( var value in argument.arbTransactions) { arbTransaction(value);} }
}
}
public static void paymentScheduleType(paymentScheduleType argument)
{
if(null != argument)
{
paymentScheduleTypeInterval(argument.interval);
if(argument.startDate) { argument.startDateSpecified=true;}
if(argument.totalOccurrences) { argument.totalOccurrencesSpecified=true;}
if(argument.trialOccurrences) { argument.trialOccurrencesSpecified=true;}
}
}
public static void paymentScheduleTypeInterval(paymentScheduleTypeInterval argument)
{
if(null != argument)
{
}
}
public static void arbTransaction(arbTransaction argument)
{
if(null != argument)
{
if(argument.submitTimeUTC) { argument.submitTimeUTCSpecified=true;}
if(argument.payNum) { argument.payNumSpecified=true;}
if(argument.attemptNum) { argument.attemptNumSpecified=true;}
}
}
public static void securePaymentContainerErrorType(securePaymentContainerErrorType argument)
{
if(null != argument)
{
}
}
public static void customerType(customerType argument)
{
if(null != argument)
{
if(argument.type) { argument.typeSpecified=true;}
driversLicenseType(argument.driversLicense);
}
}
public static void paymentSimpleType(paymentSimpleType argument)
{
if(null != argument)
{
bankAccountType(argument);
creditCardSimpleType(argument);
}
}
public static void merchantContactType(merchantContactType argument)
{
if(null != argument)
{
}
}
public static void ContactDetailType(ContactDetailType argument)
{
if(null != argument)
{
}
}
public static void permissionType(permissionType argument)
{
if(null != argument)
{
}
}
public static void ArrayOfSetting(ArrayOfSetting argument)
{
if(null != argument)
{
if(null != argument.setting){ foreach( var value in argument.setting) { settingType(value);} }
}
}
public static void emailSettingsType(emailSettingsType argument)
{
if(null != argument)
{
ArrayOfSetting (argument);
}
}
public static void fraudInformationType(fraudInformationType argument)
{
if(null != argument)
{
}
}
public static void transactionSummaryType(transactionSummaryType argument)
{
if(null != argument)
{
subscriptionPaymentType(argument.subscription);
if(argument.hasReturnedItems) { argument.hasReturnedItemsSpecified=true;}
fraudInformationType(argument.fraudInformation);
customerProfileIdType(argument.profile);
}
}
public static void ARBSubscriptionType(ARBSubscriptionType argument)
{
if(null != argument)
{
paymentScheduleType(argument.paymentSchedule);
if(argument.amount) { argument.amountSpecified=true;}
if(argument.trialAmount) { argument.trialAmountSpecified=true;}
paymentType(argument.payment);
orderType(argument.order);
customerType(argument.customer);
nameAndAddressType(argument.billTo);
nameAndAddressType(argument.shipTo);
customerProfileIdType(argument.profile);
}
}
public static void webCheckOutDataTypeToken(webCheckOutDataTypeToken argument)
{
if(null != argument)
{
}
}
public static void webCheckOutDataType(webCheckOutDataType argument)
{
if(null != argument)
{
webCheckOutDataTypeToken(argument.token);
bankAccountType(argument.bankToken);
}
}
public static void paymentDetails(paymentDetails argument)
{
if(null != argument)
{
}
}
public static void fingerPrintType(fingerPrintType argument)
{
if(null != argument)
{
}
}
public static void impersonationAuthenticationType(impersonationAuthenticationType argument)
{
if(null != argument)
{
}
}
public static void merchantAuthenticationType(merchantAuthenticationType argument)
{
if(null != argument)
{
fingerPrintType(argument);
impersonationAuthenticationType(argument);
}
}
public static void ANetApiRequest(ANetApiRequest argument)
{
if(null != argument)
{
merchantAuthenticationType(argument.merchantAuthentication);
}
}
public static void decryptPaymentDataResponse(decryptPaymentDataResponse argument)
{
if(null != argument)
{
customerAddressType(argument.shippingInfo);
customerAddressType(argument.billingInfo);
creditCardMaskedType(argument.cardInfo);
paymentDetails(argument.paymentDetails);
}
}
public static void ANetApiResponse(ANetApiResponse argument)
{
if(null != argument)
{
messagesType(argument.messages);
}
}
public static void securePaymentContainerRequest(securePaymentContainerRequest argument)
{
if(null != argument)
{
webCheckOutDataType(argument.data);
}
}
public static void securePaymentContainerResponse(securePaymentContainerResponse argument)
{
if(null != argument)
{
opaqueDataType(argument.opaqueData);
}
}
public static void isAliveRequest(isAliveRequest argument)
{
if(null != argument)
{
}
}
public static void isAliveResponse(isAliveResponse argument)
{
if(null != argument)
{
}
}
public static void authenticateTestRequest(authenticateTestRequest argument)
{
if(null != argument)
{
}
}
public static void authenticateTestResponse(authenticateTestResponse argument)
{
if(null != argument)
{
}
}
public static void ARBCreateSubscriptionRequest(ARBCreateSubscriptionRequest argument)
{
if(null != argument)
{
ARBSubscriptionType(argument.subscription);
}
}
public static void ARBCreateSubscriptionResponse(ARBCreateSubscriptionResponse argument)
{
if(null != argument)
{
customerProfileIdType(argument.profile);
}
}
public static void ARBUpdateSubscriptionRequest(ARBUpdateSubscriptionRequest argument)
{
if(null != argument)
{
ARBSubscriptionType(argument.subscription);
}
}
public static void ARBUpdateSubscriptionResponse(ARBUpdateSubscriptionResponse argument)
{
if(null != argument)
{
customerProfileIdType(argument.profile);
}
}
public static void ARBCancelSubscriptionRequest(ARBCancelSubscriptionRequest argument)
{
if(null != argument)
{
}
}
public static void ARBCancelSubscriptionResponse(ARBCancelSubscriptionResponse argument)
{
if(null != argument)
{
}
}
public static void ARBGetSubscriptionStatusRequest(ARBGetSubscriptionStatusRequest argument)
{
if(null != argument)
{
}
}
public static void ARBGetSubscriptionStatusResponse(ARBGetSubscriptionStatusResponse argument)
{
if(null != argument)
{
if(argument.status) { argument.statusSpecified=true;}
}
}
public static void createCustomerProfileRequest(createCustomerProfileRequest argument)
{
if(null != argument)
{
customerProfileType(argument.profile);
if(argument.validationMode) { argument.validationModeSpecified=true;}
}
}
public static void createCustomerProfileResponse(createCustomerProfileResponse argument)
{
if(null != argument)
{
}
}
public static void createCustomerPaymentProfileRequest(createCustomerPaymentProfileRequest argument)
{
if(null != argument)
{
customerPaymentProfileType(argument.paymentProfile);
if(argument.validationMode) { argument.validationModeSpecified=true;}
}
}
public static void createCustomerPaymentProfileResponse(createCustomerPaymentProfileResponse argument)
{
if(null != argument)
{
}
}
public static void createCustomerShippingAddressRequest(createCustomerShippingAddressRequest argument)
{
if(null != argument)
{
customerAddressType(argument.address);
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;}
}
}
public static void createCustomerShippingAddressResponse(createCustomerShippingAddressResponse argument)
{
if(null != argument)
{
}
}
public static void createCustomerProfileFromTransactionRequest(createCustomerProfileFromTransactionRequest argument)
{
if(null != argument)
{
customerProfileBaseType(argument.customer);
if(argument.defaultPaymentProfile) { argument.defaultPaymentProfileSpecified=true;}
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;}
if(argument.profileType) { argument.profileTypeSpecified=true;}
}
}
public static void getCustomerProfileRequest(getCustomerProfileRequest argument)
{
if(null != argument)
{
if(argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified=true;}
if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true;}
}
}
public static void getCustomerProfileResponse(getCustomerProfileResponse argument)
{
if(null != argument)
{
customerProfileMaskedType(argument.profile);
}
}
public static void getCustomerPaymentProfileRequest(getCustomerPaymentProfileRequest argument)
{
if(null != argument)
{
if(argument.unmaskExpirationDate) { argument.unmaskExpirationDateSpecified=true;}
if(argument.includeIssuerInfo) { argument.includeIssuerInfoSpecified=true;}
}
}
public static void getCustomerPaymentProfileResponse(getCustomerPaymentProfileResponse argument)
{
if(null != argument)
{
customerPaymentProfileMaskedType(argument.paymentProfile);
}
}
public static void getCustomerShippingAddressRequest(getCustomerShippingAddressRequest argument)
{
if(null != argument)
{
}
}
public static void getCustomerShippingAddressResponse(getCustomerShippingAddressResponse argument)
{
if(null != argument)
{
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;}
customerAddressExType(argument.address);
}
}
public static void updateCustomerProfileRequest(updateCustomerProfileRequest argument)
{
if(null != argument)
{
customerProfileInfoExType(argument.profile);
}
}
public static void updateCustomerProfileResponse(updateCustomerProfileResponse argument)
{
if(null != argument)
{
}
}
public static void updateCustomerPaymentProfileRequest(updateCustomerPaymentProfileRequest argument)
{
if(null != argument)
{
customerPaymentProfileExType(argument.paymentProfile);
if(argument.validationMode) { argument.validationModeSpecified=true;}
}
}
public static void updateCustomerPaymentProfileResponse(updateCustomerPaymentProfileResponse argument)
{
if(null != argument)
{
}
}
public static void updateCustomerShippingAddressRequest(updateCustomerShippingAddressRequest argument)
{
if(null != argument)
{
customerAddressExType(argument.address);
if(argument.defaultShippingAddress) { argument.defaultShippingAddressSpecified=true;}
}
}
public static void updateCustomerShippingAddressResponse(updateCustomerShippingAddressResponse argument)
{
if(null != argument)
{
}
}
public static void deleteCustomerProfileRequest(deleteCustomerProfileRequest argument)
{
if(null != argument)
{
}
}
public static void deleteCustomerProfileResponse(deleteCustomerProfileResponse argument)
{
if(null != argument)
{
}
}
public static void deleteCustomerPaymentProfileRequest(deleteCustomerPaymentProfileRequest argument)
{
if(null != argument)
{
}
}
public static void deleteCustomerPaymentProfileResponse(deleteCustomerPaymentProfileResponse argument)
{
if(null != argument)
{
}
}
public static void deleteCustomerShippingAddressRequest(deleteCustomerShippingAddressRequest argument)
{
if(null != argument)
{
}
}
public static void deleteCustomerShippingAddressResponse(deleteCustomerShippingAddressResponse argument)
{
if(null != argument)
{
}
}
public static void createCustomerProfileTransactionRequest(createCustomerProfileTransactionRequest argument)
{
if(null != argument)
{
profileTransactionType(argument.transaction);
}
}
public static void createCustomerProfileTransactionResponse(createCustomerProfileTransactionResponse argument)
{
if(null != argument)
{
transactionResponse(argument.transactionResponse);
}
}
public static void validateCustomerPaymentProfileRequest(validateCustomerPaymentProfileRequest argument)
{
if(null != argument)
{
}
}
public static void validateCustomerPaymentProfileResponse(validateCustomerPaymentProfileResponse argument)
{
if(null != argument)
{
}
}
public static void getCustomerProfileIdsRequest(getCustomerProfileIdsRequest argument)
{
if(null != argument)
{
}
}
public static void getCustomerProfileIdsResponse(getCustomerProfileIdsResponse argument)
{
if(null != argument)
{
}
}
public static void updateSplitTenderGroupRequest(updateSplitTenderGroupRequest argument)
{
if(null != argument)
{
}
}
public static void updateSplitTenderGroupResponse(updateSplitTenderGroupResponse argument)
{
if(null != argument)
{
}
}
public static void getTransactionDetailsRequest(getTransactionDetailsRequest argument)
{
if(null != argument)
{
}
}
public static void getTransactionDetailsResponse(getTransactionDetailsResponse argument)
{
if(null != argument)
{
transactionDetailsType(argument.transaction);
}
}
public static void createTransactionRequest(createTransactionRequest argument)
{
if(null != argument)
{
transactionRequestType(argument.transactionRequest);
}
}
public static void createTransactionResponse(createTransactionResponse argument)
{
if(null != argument)
{
transactionResponse(argument.transactionResponse);
createProfileResponse(argument.profileResponse);
}
}
public static void updateHeldTransactionRequest(updateHeldTransactionRequest argument)
{
if(null != argument)
{
heldTransactionRequestType(argument.heldTransactionRequest);
}
}
public static void updateHeldTransactionResponse(updateHeldTransactionResponse argument)
{
if(null != argument)
{
transactionResponse(argument.transactionResponse);
}
}
public static void getBatchStatisticsRequest(getBatchStatisticsRequest argument)
{
if(null != argument)
{
}
}
public static void getBatchStatisticsResponse(getBatchStatisticsResponse argument)
{
if(null != argument)
{
batchDetailsType(argument.batch);
}
}
public static void getSettledBatchListRequest(getSettledBatchListRequest argument)
{
if(null != argument)
{
if(argument.includeStatistics) { argument.includeStatisticsSpecified=true;}
if(argument.firstSettlementDate) { argument.firstSettlementDateSpecified=true;}
if(argument.lastSettlementDate) { argument.lastSettlementDateSpecified=true;}
}
}
public static void getSettledBatchListResponse(getSettledBatchListResponse argument)
{
if(null != argument)
{
if(null != argument.batchList){ foreach( var value in argument.batchList) { batchDetailsType(value);} }
}
}
public static void getTransactionListRequest(getTransactionListRequest argument)
{
if(null != argument)
{
TransactionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getTransactionListResponse(getTransactionListResponse argument)
{
if(null != argument)
{
if(null != argument.transactions){ foreach( var value in argument.transactions) { transactionSummaryType(value);} }
if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;}
}
}
public static void getHostedProfilePageRequest(getHostedProfilePageRequest argument)
{
if(null != argument)
{
if(null != argument.hostedProfileSettings){ foreach( var value in argument.hostedProfileSettings) { settingType(value);} }
}
}
public static void getHostedProfilePageResponse(getHostedProfilePageResponse argument)
{
if(null != argument)
{
}
}
public static void getUnsettledTransactionListRequest(getUnsettledTransactionListRequest argument)
{
if(null != argument)
{
if(argument.status) { argument.statusSpecified=true;}
TransactionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getHostedPaymentPageRequest(getHostedPaymentPageRequest argument)
{
if(null != argument)
{
transactionRequestType(argument.transactionRequest);
if(null != argument.hostedPaymentSettings){ foreach( var value in argument.hostedPaymentSettings) { settingType(value);} }
}
}
public static void getHostedPaymentPageResponse(getHostedPaymentPageResponse argument)
{
if(null != argument)
{
}
}
public static void getUnsettledTransactionListResponse(getUnsettledTransactionListResponse argument)
{
if(null != argument)
{
if(null != argument.transactions){ foreach( var value in argument.transactions) { transactionSummaryType(value);} }
if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;}
}
}
public static void mobileDeviceRegistrationRequest(mobileDeviceRegistrationRequest argument)
{
if(null != argument)
{
mobileDeviceType(argument.mobileDevice);
}
}
public static void mobileDeviceRegistrationResponse(mobileDeviceRegistrationResponse argument)
{
if(null != argument)
{
}
}
public static void mobileDeviceLoginRequest(mobileDeviceLoginRequest argument)
{
if(null != argument)
{
}
}
public static void mobileDeviceLoginResponse(mobileDeviceLoginResponse argument)
{
if(null != argument)
{
merchantContactType(argument.merchantContact);
if(null != argument.userPermissions){ foreach( var value in argument.userPermissions) { permissionType(value);} }
transRetailInfoType(argument.merchantAccount);
}
}
public static void logoutRequest(logoutRequest argument)
{
if(null != argument)
{
}
}
public static void logoutResponse(logoutResponse argument)
{
if(null != argument)
{
}
}
public static void sendCustomerTransactionReceiptRequest(sendCustomerTransactionReceiptRequest argument)
{
if(null != argument)
{
emailSettingsType(argument.emailSettings);
}
}
public static void sendCustomerTransactionReceiptResponse(sendCustomerTransactionReceiptResponse argument)
{
if(null != argument)
{
}
}
public static void ARBGetSubscriptionListRequest(ARBGetSubscriptionListRequest argument)
{
if(null != argument)
{
ARBGetSubscriptionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void ARBGetSubscriptionListResponse(ARBGetSubscriptionListResponse argument)
{
if(null != argument)
{
if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;}
if(null != argument.subscriptionDetails){ foreach( var value in argument.subscriptionDetails) { SubscriptionDetail(value);} }
}
}
public static void EnumCollection(EnumCollection argument)
{
if(null != argument)
{
customerProfileSummaryType(argument.customerProfileSummaryType);
paymentSimpleType(argument.paymentSimpleType);
typeEmailReceipt,
}
}
public static void getCustomerPaymentProfileListRequest(getCustomerPaymentProfileListRequest argument)
{
if(null != argument)
{
CustomerPaymentProfileSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getCustomerPaymentProfileListResponse(getCustomerPaymentProfileListResponse argument)
{
if(null != argument)
{
if(null != argument.paymentProfiles){ foreach( var value in argument.paymentProfiles) { customerPaymentProfileListItemType(value);} }
}
}
public static void ARBGetSubscriptionRequest(ARBGetSubscriptionRequest argument)
{
if(null != argument)
{
if(argument.includeTransactions) { argument.includeTransactionsSpecified=true;}
}
}
public static void ARBGetSubscriptionResponse(ARBGetSubscriptionResponse argument)
{
if(null != argument)
{
ARBSubscriptionMaskedType(argument.subscription);
}
}
public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument)
{
if(null != argument)
{
TransactionListSorting(argument.sorting);
Paging(argument.paging);
}
}
public static void getAUJobSummaryRequest(getAUJobSummaryRequest argument)
{
if(null != argument)
{
}
}
public static void getAUJobSummaryResponse(getAUJobSummaryResponse argument)
{
if(null != argument)
{
if(null != argument.auSummary){ foreach( var value in argument.auSummary) { auResponseType(value);} }
}
}
public static void getAUJobDetailsRequest(getAUJobDetailsRequest argument)
{
if(null != argument)
{
if(argument.modifiedTypeFilter) { argument.modifiedTypeFilterSpecified=true;}
Paging(argument.paging);
}
}
public static void getAUJobDetailsResponse(getAUJobDetailsResponse argument)
{
if(null != argument)
{
if(argument.totalNumInResultSet) { argument.totalNumInResultSetSpecified=true;}
[System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable=false)]
[System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable=false)]
if(null != argument.auDetails){ foreach( var value in argument.auDetails) { auDetailsType(value);} }
}
}
public static void getMerchantDetailsRequest(getMerchantDetailsRequest argument)
{
if(null != argument)
{
}
}
public static void getMerchantDetailsResponse(getMerchantDetailsResponse argument)
{
if(null != argument)
{
if(argument.isTestMode) { argument.isTestModeSpecified=true;}
if(null != argument.processors){ foreach( var value in argument.processors) { processorType(value);} }
[System.Xml.Serialization.XmlArrayItemAttribute("marketType")]
System.Nullable<
customerAddressType(argument.businessInformation);
if(null != argument.contactDetails){ foreach( var value in argument.contactDetails) { ContactDetailType(value);} }
}
}
public static void updateMerchantDetailsRequest(updateMerchantDetailsRequest argument)
{
if(null != argument)
{
}
}
public static void updateMerchantDetailsResponse(updateMerchantDetailsResponse argument)
{
if(null != argument)
{
}
}
public static void getCustomerPaymentProfileNonceRequest(getCustomerPaymentProfileNonceRequest argument)
{
if(null != argument)
{
}
}
public static void getCustomerPaymentProfileNonceResponse(getCustomerPaymentProfileNonceResponse argument)
{
if(null != argument)
{
opaqueDataType(argument.opaqueData);
}
}
}
// ReSharper restore InconsistentNaming
#pragma warning restore 1591
#pragma warning restore 169
}
/*
Requests
ARBCreateSubscriptionRequest
ARBUpdateSubscriptionRequest
createCustomerPaymentProfileRequest
createCustomerProfileRequest
createCustomerProfileTransactionRequest
createTransactionRequest
getSettledBatchListRequest
mobileDeviceRegistrationRequest
updateCustomerPaymentProfileRequest
XXDoNotUseDummyRequest
ECHO is off.
*/
/*
Objects
ECHO is off.
ARBSubscriptionType
bankAccountMaskedType
bankAccountType
batchDetailsType
batchStatisticType
customerDataType
customerPaymentProfileBaseType
customerPaymentProfileExType
customerPaymentProfileMaskedType
customerPaymentProfileType
customerProfileMaskedType
customerProfileType
customerType
lineItemType
mobileDeviceType
paymentMaskedType
paymentScheduleType
paymentSimpleType
paymentType
profileTransactionType
profileTransAmountType
profileTransAuthCaptureType
profileTransAuthOnlyType
profileTransCaptureOnlyType
profileTransOrderType
profileTransPriorAuthCaptureType
profileTransRefundType
transactionDetailsType
transactionRequestType
transactionSummaryType
ECHO is off.
*/
================================================
FILE: Authorize.NET/Api/ControllerTemplate.cst
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class APICONTROLLERNAMEController : ApiOperationBase {
public APICONTROLLERNAMEController(APICONTROLLERNAMERequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.APICONTROLLERNAMEType(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/ARBCancelSubscriptionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class ARBCancelSubscriptionController : ApiOperationBase {
public ARBCancelSubscriptionController(ARBCancelSubscriptionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/ARBCreateSubscriptionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class ARBCreateSubscriptionController : ApiOperationBase {
public ARBCreateSubscriptionController(ARBCreateSubscriptionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
if (null == request.subscription) throw new ArgumentException("subscription cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.ARBCreateSubscriptionRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/ARBGetSubscriptionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class ARBGetSubscriptionController : ApiOperationBase {
public ARBGetSubscriptionController(ARBGetSubscriptionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
if ( request.subscriptionId == null) throw new ArgumentException( "Subscription ID cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.ARBGetSubscriptionRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/ARBGetSubscriptionListController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class ARBGetSubscriptionListController : ApiOperationBase {
public ARBGetSubscriptionListController(ARBGetSubscriptionListRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/ARBGetSubscriptionStatusController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class ARBGetSubscriptionStatusController : ApiOperationBase {
public ARBGetSubscriptionStatusController(ARBGetSubscriptionStatusRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/ARBUpdateSubscriptionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class ARBUpdateSubscriptionController : ApiOperationBase {
public ARBUpdateSubscriptionController(ARBUpdateSubscriptionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.ARBUpdateSubscriptionRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/Bases/ApiOperationBase.cs
================================================
namespace AuthorizeNet.Api.Controllers.Bases
{
using System.Collections.Generic;
using System.Globalization;
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Util;
/**
* @author ramittal
*
*/
#pragma warning disable 1591
public abstract class ApiOperationBase : IApiOperation
where TQ : ANetApiRequest
where TS : ANetApiResponse
{
// ReSharper disable StaticFieldInGenericType
protected static Log Logger = LogFactory.getLog(typeof(ApiOperationBase));
// ReSharper restore StaticFieldInGenericType
public static AuthorizeNet.Environment RunEnvironment { get; set; }
public static merchantAuthenticationType MerchantAuthentication { get; set; }
private TQ _apiRequest;
private TS _apiResponse;
readonly Type _requestClass;
readonly Type _responseClass;
private ANetApiResponse _errorResponse;
protected ApiOperationBase(TQ apiRequest)
{
if ( null == apiRequest)
{
Logger.error("null apiRequest");
throw new ArgumentNullException( "apiRequest", "Input request cannot be null");
}
if ( null != GetApiResponse())
{
Logger.error(GetApiResponse());
throw new InvalidOperationException( "Response should be null");
}
_requestClass = typeof(TQ);//Type) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
_responseClass = typeof(TS);// GetResponseType();
SetApiRequest(apiRequest);
Logger.debug(string.Format("Creating instance for request:'{0}' and response:'{1}'", _requestClass, _responseClass));
//Logger.debug(string.Format("Request:'{0}'", apiRequest));
//Logger.debug(string.Format("Request(Ctor):'{0}'", XmlUtility.GetXml(apiRequest)));
Validate();
}
protected TQ GetApiRequest() {
return _apiRequest;
}
protected void SetApiRequest(TQ apiRequest) {
_apiRequest = apiRequest;
}
public TS GetApiResponse() {
return _apiResponse;
}
private void SetApiResponse(TS apiResponse) {
_apiResponse = apiResponse;
}
public ANetApiResponse GetErrorResponse() {
return _errorResponse;
}
private void SetErrorResponse(ANetApiResponse errorResponse) {
_errorResponse = errorResponse;
}
public TS ExecuteWithApiResponse(AuthorizeNet.Environment environment = null)
{
Execute(environment);
return GetApiResponse();
}
const String NullEnvironmentErrorMessage = "Environment not set. Set environment using setter or use overloaded method to pass appropriate environment";
public void Execute(AuthorizeNet.Environment environment = null)
{
BeforeExecute();
Logger.debug(string.Format(CultureInfo.InvariantCulture, "Executing Request:'{0}'", XmlUtility.GetXml(GetApiRequest())));
if (null == environment) { environment = ApiOperationBase.RunEnvironment; }
if (null == environment) throw new ArgumentException(NullEnvironmentErrorMessage);
var httpApiResponse = HttpUtility.PostData(environment, GetApiRequest());
if (null != httpApiResponse)
{
Logger.debug(string.Format(CultureInfo.InvariantCulture, "Received Response:'{0}' for request:'{1}'", httpApiResponse, GetApiRequest()));
if (httpApiResponse.GetType() == _responseClass)
{
var response = (TS) httpApiResponse;
SetApiResponse( response);
Logger.debug(string.Format(CultureInfo.InvariantCulture, "Setting response: '{0}'", response));
}
else if (httpApiResponse.GetType() == typeof(AuthorizeNet.Api.Controllers.Bases.ErrorResponse))
{
SetErrorResponse(httpApiResponse);
Logger.debug(string.Format(CultureInfo.InvariantCulture, "Received ErrorResponse:'{0}'", httpApiResponse));
} else {
SetErrorResponse(httpApiResponse);
Logger.error(string.Format(CultureInfo.InvariantCulture, "Invalid response:'{0}'", httpApiResponse));
}
Logger.debug(string.Format("Response obtained: {0}", GetApiResponse()));
SetResultStatus();
} else {
Logger.debug(string.Format(CultureInfo.InvariantCulture, "Got a 'null' Response for request:'{0}'\n", GetApiRequest()));
}
AfterExecute();
}
public messageTypeEnum GetResultCode() {
return ResultCode;
}
private void SetResultStatus() {
Results = new List();
var messageTypes = GetResultMessage();
if (null != messageTypes) {
ResultCode = messageTypes.resultCode;
}
if (null != messageTypes) {
foreach ( var amessage in messageTypes.message) {
Results.Add(string.Format(CultureInfo.InvariantCulture, "{0}:{1}", amessage.code, amessage.text));
}
}
}
public List GetResults() {
return Results;
}
private messagesType GetResultMessage() {
messagesType messageTypes = null;
if ( null != GetErrorResponse())
{
messageTypes = GetErrorResponse().messages;
} else if ( null != GetApiResponse()) {
messageTypes = GetApiResponse().messages;
}
return messageTypes;
}
protected List Results = null;
protected messageTypeEnum ResultCode = messageTypeEnum.Ok;
protected virtual void BeforeExecute() {}
protected virtual void AfterExecute() { }
protected abstract void ValidateRequest();
private void Validate() {
ANetApiRequest request = GetApiRequest();
//validate not nulls
ValidateAndSetMerchantAuthentication();
//set the client Id
SetClientId();
//validate nulls
var merchantAuthenticationType = request.merchantAuthentication;
//if ( null != ) throw new IllegalArgumentException(" needs to be null");
//TODO
/*
if ( null != merchantAuthenticationType.Item.GetType(). sessionToken) throw new IllegalArgumentException("SessionToken needs to be null");
if ( null != merchantAuthenticationType.getPass_word()) throw new IllegalArgumentException("Pass_word needs to be null");
if ( null != merchantAuthenticationType.getMobileDeviceId()) throw new IllegalArgumentException("MobileDeviceId needs to be null");
var impersonationAuthenticationType = merchantAuthenticationType.impersonationAuthentication;
if ( null != impersonationAuthenticationType) throw new IllegalArgumentException("ImpersonationAuthenticationType needs to be null");
*/
// impersonationAuthenticationType.setPartnerLoginId(CnpApiLoginIdKey);
// impersonationAuthenticationType.setPartnerTransactionKey(CnpTransactionKey);
// merchantAuthenticationType.setImpersonationAuthentication(impersonationAuthenticationType);
ValidateRequest();
}
private void ValidateAndSetMerchantAuthentication()
{
ANetApiRequest request = GetApiRequest();
if (null == request.merchantAuthentication)
{
if (null != ApiOperationBase.MerchantAuthentication)
{
request.merchantAuthentication = ApiOperationBase.MerchantAuthentication;
}
else
{
throw new ArgumentException("MerchantAuthentication cannot be null");
}
}
}
private void SetClientId()
{
ANetApiRequest request = GetApiRequest();
request.clientId = "sdk-dotnet-" + Constants.SDKVersion;
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/Bases/ErrorResponse.cs
================================================
namespace AuthorizeNet.Api.Controllers.Bases
{
using System.Text;
using AuthorizeNet.Api.Contracts.V1;
//@XmlRootElement(name = "ErrorResponse")
/**
* Since JAXB does not generate the class for this element, custom coding it
* @author ramittal
*
*/
abstract class ErrorResponse : ANetApiResponse {
public new string ToString() {
var builder = new StringBuilder();
builder.Append("ErrorResponse: ");
builder.Append(base.ToString());
builder.Append(", Id: ").Append( refId);
builder.Append(", SessionToken: ").Append(sessionToken);
var messagesType = messages;
builder.Append(", MessagesType: ");
if ( null != messagesType)
{
builder.Append(", ResultCode:").Append(messagesType.resultCode);
var resultMessages = messagesType.message;
if ( null != resultMessages) {
foreach (var message in resultMessages)
{
builder.Append(", Message-> ");
builder.Append(", Code: ").Append(message.code);
builder.Append(", Text: ").Append(message.text);
}
}
}
return builder.ToString();
}
}
}
================================================
FILE: Authorize.NET/Api/Controllers/Bases/IApiOperation.cs
================================================
namespace AuthorizeNet.Api.Controllers.Bases
{
using System.Collections.Generic;
/**
* @author ramittal
*
*/
#pragma warning disable 1591
public interface IApiOperation
where TQ : AuthorizeNet.Api.Contracts.V1.ANetApiRequest
where TS : AuthorizeNet.Api.Contracts.V1.ANetApiResponse
{
TS GetApiResponse();
AuthorizeNet.Api.Contracts.V1.ANetApiResponse GetErrorResponse();
TS ExecuteWithApiResponse(AuthorizeNet.Environment environment = null);
void Execute(AuthorizeNet.Environment environment = null);
AuthorizeNet.Api.Contracts.V1.messageTypeEnum GetResultCode();
List GetResults();
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/authenticateTestController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class authenticateTestController : ApiOperationBase {
public authenticateTestController(authenticateTestRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.authenticateTestRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createCustomerPaymentProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createCustomerPaymentProfileController : ApiOperationBase {
public createCustomerPaymentProfileController(createCustomerPaymentProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.createCustomerPaymentProfileRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createCustomerProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createCustomerProfileController : ApiOperationBase {
public createCustomerProfileController(createCustomerProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.createCustomerProfileRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createCustomerProfileFromTransactionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createCustomerProfileFromTransactionController : ApiOperationBase
{
public createCustomerProfileFromTransactionController(createCustomerProfileFromTransactionRequest apiRequest)
: base(apiRequest)
{
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
if (null == request.transId) throw new ArgumentException("transactionId cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createCustomerProfileTransactionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createCustomerProfileTransactionController : ApiOperationBase {
public createCustomerProfileTransactionController(createCustomerProfileTransactionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
if (null == request.transaction) throw new ArgumentException("transaction cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createCustomerShippingAddressController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createCustomerShippingAddressController : ApiOperationBase {
public createCustomerShippingAddressController(createCustomerShippingAddressRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createFingerPrintController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createFingerPrintController : ApiOperationBase {
public createFingerPrintController(createFingerPrintRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
if (null == request.supportInformation) throw new ArgumentException("supportInformation cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.createFingerPrintRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createProfileController
//: ApiOperationBase
{
public createProfileController(customerProfilePaymentType apiRequest)// : base(apiRequest)
{
}
//override
protected void ValidateRequest() {
//var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
//protected override void BeforeExecute()
protected void BeforeExecute()
{
//var request = GetApiRequest();
//RequestFactoryWithSpecified.createProfileType(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/createTransactionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class createTransactionController : ApiOperationBase {
public createTransactionController(createTransactionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.createTransactionRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/decryptPaymentDataController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class decryptPaymentDataController : ApiOperationBase {
public decryptPaymentDataController(decryptPaymentDataRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.decryptPaymentDataRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/deleteCustomerPaymentProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class deleteCustomerPaymentProfileController : ApiOperationBase {
public deleteCustomerPaymentProfileController(deleteCustomerPaymentProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/deleteCustomerProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class deleteCustomerProfileController : ApiOperationBase {
public deleteCustomerProfileController(deleteCustomerProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/deleteCustomerShippingAddressController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class deleteCustomerShippingAddressController : ApiOperationBase {
public deleteCustomerShippingAddressController(deleteCustomerShippingAddressRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getAUJobDetailsController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getAUJobDetailsController : ApiOperationBase {
public getAUJobDetailsController(getAUJobDetailsRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getAUJobSummaryController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getAUJobSummaryController : ApiOperationBase {
public getAUJobSummaryController(getAUJobSummaryRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getBatchStatisticsController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getBatchStatisticsController : ApiOperationBase {
public getBatchStatisticsController(getBatchStatisticsRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getCustomerPaymentProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getCustomerPaymentProfileController : ApiOperationBase {
public getCustomerPaymentProfileController(getCustomerPaymentProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getCustomerPaymentProfileListController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getCustomerPaymentProfileListController : ApiOperationBase {
public getCustomerPaymentProfileListController(getCustomerPaymentProfileListRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
if (request.searchType < 0) throw new ArgumentException("SearchType cannot be null");
if (request.month == null) throw new ArgumentException("month cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.getCustomerPaymentProfileListRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getCustomerPaymentProfileNonceController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getCustomerPaymentProfileNonceController : ApiOperationBase {
public getCustomerPaymentProfileNonceController(getCustomerPaymentProfileNonceRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
// RequestFactoryWithSpecified.getCustomerPaymentProfileNonceType(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getCustomerProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getCustomerProfileController : ApiOperationBase {
public getCustomerProfileController(getCustomerProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getCustomerProfileIdsController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getCustomerProfileIdsController : ApiOperationBase {
public getCustomerProfileIdsController(getCustomerProfileIdsRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getCustomerShippingAddressController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getCustomerShippingAddressController : ApiOperationBase {
public getCustomerShippingAddressController(getCustomerShippingAddressRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getHostedPaymentPageController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getHostedPaymentPageController : ApiOperationBase {
public getHostedPaymentPageController(getHostedPaymentPageRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.getHostedPaymentPageRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getHostedProfilePageController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getHostedProfilePageController : ApiOperationBase {
public getHostedProfilePageController(getHostedProfilePageRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getMerchantDetailsController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getMerchantDetailsController : ApiOperationBase {
public getMerchantDetailsController(getMerchantDetailsRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.getMerchantDetailsRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getSettledBatchListController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getSettledBatchListController : ApiOperationBase {
public getSettledBatchListController(getSettledBatchListRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.getSettledBatchListRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getTransactionDetailsController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getTransactionDetailsController : ApiOperationBase {
public getTransactionDetailsController(getTransactionDetailsRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getTransactionListController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getTransactionListController : ApiOperationBase {
public getTransactionListController(getTransactionListRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getTransactionListForCustomerController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getTransactionListForCustomerController : ApiOperationBase {
public getTransactionListForCustomerController(getTransactionListForCustomerRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.getTransactionListForCustomerRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/getUnsettledTransactionListController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class getUnsettledTransactionListController : ApiOperationBase {
public getUnsettledTransactionListController(getUnsettledTransactionListRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/isAliveController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class isAliveController : ApiOperationBase
{
public isAliveController(ANetApiRequest apiRequest)
: base(apiRequest)
{
}
override protected void ValidateRequest() {
var request = GetApiRequest();
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.isAliveRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/logoutController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class logoutController : ApiOperationBase {
public logoutController(logoutRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.logoutRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/mobileDeviceLoginController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class mobileDeviceLoginController : ApiOperationBase {
public mobileDeviceLoginController(mobileDeviceLoginRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/mobileDeviceRegistrationController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class mobileDeviceRegistrationController : ApiOperationBase {
public mobileDeviceRegistrationController(mobileDeviceRegistrationRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.mobileDeviceRegistrationRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/securePaymentContainerController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class securePaymentContainerController : ApiOperationBase {
public securePaymentContainerController(securePaymentContainerRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.securePaymentContainerRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/sendCustomerTransactionReceiptController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class sendCustomerTransactionReceiptController : ApiOperationBase {
public sendCustomerTransactionReceiptController(sendCustomerTransactionReceiptRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/transactionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class transactionController
//: ApiOperationBase
{
public transactionController(transactionRequestType apiRequest)
//: base(apiRequest)
{
}
//override
protected void ValidateRequest() {
//var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
//protected override void BeforeExecute()
protected void BeforeExecute()
{
//var request = GetApiRequest();
//RequestFactoryWithSpecified.transactionRequestType(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/transactionResponseEmvController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class transactionResponseEmvController : ApiOperationBase {
public transactionResponseEmvController(transactionResponseEmvRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.transactionResponseEmvType(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/updateCustomerPaymentProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class updateCustomerPaymentProfileController : ApiOperationBase {
public updateCustomerPaymentProfileController(updateCustomerPaymentProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.updateCustomerPaymentProfileRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/updateCustomerProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class updateCustomerProfileController : ApiOperationBase {
public updateCustomerProfileController(updateCustomerProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.updateCustomerProfileRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/updateCustomerShippingAddressController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class updateCustomerShippingAddressController : ApiOperationBase {
public updateCustomerShippingAddressController(updateCustomerShippingAddressRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/updateHeldTransactionController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class updateHeldTransactionController : ApiOperationBase {
public updateHeldTransactionController(updateHeldTransactionRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.updateHeldTransactionRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/updateMerchantDetailsController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class updateMerchantDetailsController : ApiOperationBase {
public updateMerchantDetailsController(updateMerchantDetailsRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
protected override void BeforeExecute()
{
var request = GetApiRequest();
RequestFactoryWithSpecified.updateMerchantDetailsRequest(request);
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/updateSplitTenderGroupController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class updateSplitTenderGroupController : ApiOperationBase {
public updateSplitTenderGroupController(updateSplitTenderGroupRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Api/Controllers/validateCustomerPaymentProfileController.cs
================================================
namespace AuthorizeNet.Api.Controllers
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public class validateCustomerPaymentProfileController : ApiOperationBase {
public validateCustomerPaymentProfileController(validateCustomerPaymentProfileRequest apiRequest) : base(apiRequest) {
}
override protected void ValidateRequest() {
var request = GetApiRequest();
//validate required fields
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
//validate not-required fields
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/AuthorizeNET.csproj
================================================
Debug
AnyCPU
9.0.30729
2.0
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}
Library
Properties
AuthorizeNet
AuthorizeNet
v4.6.1
512
3.5
AnyCPU
true
full
false
bin/Debug/
DEBUG;TRACE
prompt
4
bin/Debug/AuthorizeNet.XML
0219,1591,1635
false
AnyCPU
pdbonly
true
bin/Release
TRACE
prompt
4
bin/Release/AuthorizeNet.XML
false
================================================
FILE: Authorize.NET/Environment.cs
================================================
namespace AuthorizeNet
{
using System;
using System.Configuration;
using System.Linq;
/*================================================================================
*
* Determines the target environment to post transactions.
*
* SANDBOX should be used for testing. Transactions submitted to the sandbox
* will not result in an actual card payment. Instead, the sandbox simulates
* the response. Use the Testing Guide to generate specific gateway responses.
*
* PRODUCTION connects to the production gateway environment.
*
*===============================================================================*/
public class Environment {
public static readonly Environment SANDBOX = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net");
public static readonly Environment PRODUCTION = new Environment("https://secure2.authorize.net","https://api2.authorize.net","https://cardpresent.authorize.net");
public static readonly Environment LOCAL_VM = new Environment(null, null, null);
public static readonly Environment HOSTED_VM = new Environment(null, null, null);
public static Environment CUSTOM = new Environment(null, null, null);
private String _baseUrl;
private String _xmlBaseUrl;
private String _cardPresentUrl;
private Environment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) {
_baseUrl = baseUrl;
_xmlBaseUrl = xmlBaseUrl;
_cardPresentUrl = cardPresentUrl;
}
/**
* @return the baseUrl
*/
public String getBaseUrl() {
return _baseUrl;
}
/**
* @return the xmlBaseUrl
*/
public String getXmlBaseUrl() {
return _xmlBaseUrl;
}
/**
* @return the cardPresentUrl
*/
public String getCardPresentUrl() {
return _cardPresentUrl;
}
/**
* If a custom environment needs to be supported, this convenience create
* method can be used to pass in a custom baseUrl.
*
* @param baseUrl
* @param xmlBaseUrl
* @return Environment object
*/
public static Environment createEnvironment(String baseUrl, String xmlBaseUrl) {
return createEnvironment( baseUrl, xmlBaseUrl, null);
}
/**
* If a custom environment needs to be supported, this convenience create
* method can be used to pass in a custom baseUrl.
*
* @param baseUrl
* @param xmlBaseUrl
* @param cardPresentUrl
*
* @return Environment object
*/
public static Environment createEnvironment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) {
var environment = Environment.CUSTOM;
environment._baseUrl = baseUrl;
environment._xmlBaseUrl = xmlBaseUrl;
environment._cardPresentUrl = cardPresentUrl;
return environment;
}
/**
* Reads a integer value from property file and/or the environment
* Values in property file supersede the values set in environment
* @param propertyName name of the integer property to read
* @return int property value
*/
public static int getIntProperty( String propertyName)
{
var stringValue = GetProperty(propertyName);
var value = (AuthorizeNet.Util.StringUtils.ParseInt(stringValue));
return value;
}
/**
* Reads a boolean value from property file and/or the environment
* Values in property file supersede the values set in environment
* @param propertyName name of the boolean property to read
* @return boolean property value
*/
public static bool getBooleanProperty( String propertyName)
{
var value = false;
var stringValue = GetProperty(propertyName);
if ( null != stringValue)
{
Boolean.TryParse(stringValue.Trim(), out value);
}
return value;
}
private static object mutex = new object();
///
/// Reads the value from property file and/or the environment
/// Values in property file supersede the values set in environmen
///
/// propertyName name of the property to read
/// String property value
public static String GetProperty(String propertyName) {
String stringValue = null;
String propValue = null;
lock(mutex) {
if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings.Get(propertyName)))
{
propValue = ConfigurationManager.AppSettings.Get(propertyName);
}
}
var envValue = System.Environment.GetEnvironmentVariable(propertyName);
if ( null != propValue && propValue.Trim().Length > 0 )
{
stringValue = propValue;
}
else if ( null != envValue && envValue.Trim().Length > 0 )
{
stringValue = envValue;
}
return stringValue;
}
}
}
================================================
FILE: Authorize.NET/MarketType.cs
================================================
namespace AuthorizeNet
{
#pragma warning disable 1591
// MarketType is used for Card Present transactions.
public enum MarketType {
RETAIL = 2,
}
#pragma warning disable 1591
}
================================================
FILE: Authorize.NET/Properties/AssemblyInfo.cs
================================================
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Official .NET SDK for Authorize.Net")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Visa Inc")]
[assembly: AssemblyProduct("Official .NET SDK for Authorize.Net")]
[assembly: AssemblyCopyright("Copyright © Visa Inc 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("135241b2-017e-4f07-aca1-e71887b470ab")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// See AssemblyFileVersion.cs for Product and Assembly Version
//[assembly: AssemblyVersion("2.0.4.0")]
[assembly: AssemblyFileVersion("2.0.5.0")]
[assembly: AssemblyVersion("2.0.5.0")]
================================================
FILE: Authorize.NET/TestFriends.cs
================================================
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("AuthorizeNETtest")]
================================================
FILE: Authorize.NET/Util/Constants.cs
================================================
namespace AuthorizeNet.Util
{
#pragma warning disable 1591
public static class Constants {
public const string ProxyProtocol = "http";
public const string HttpsUseProxy = "https.proxyUse";
public const string HttpsProxyHost = "https.proxyHost";
public const string HttpsProxyPort = "https.proxyPort";
public const string HttpUseProxy = "http.proxyUse";
public const string HttpProxyHost = "http.proxyHost";
public const string HttpProxyPort = "http.proxyPort";
public const string EnvApiLoginid = "API_LOGIN_ID";
public const string EnvTransactionKey = "TRANSACTION_KEY";
public const string EnvMd5Hashkey = "MD5_HASH_KEY";
public const string PropApiLoginid = "api.login.id";
public const string PropTransactionKey = "transaction.key";
public const string PropMd5Hashkey = "md5.hash.key";
public const string HttpConnectionTimeout = "http.connectionTimeout";
public const string HttpReadWriteTimeout = "http.readWriteTimeout";
public const int HttpConnectionDefaultTimeout = 30000;
public const int HttpReadWriteDefaultTimeout = 30000;
public const string SDKVersion = "2.0.5";
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Util/EnumHelper.cs
================================================
namespace AuthorizeNet.Util
{
using System;
using System.ComponentModel;
#pragma warning disable 1591
//@deprecated since version 1.9.8
//@deprecated Since it is not using by New model Code
[Obsolete("Since the classes using it are deprecated", false)]
public class EnumHelper
{
public static string GetEnumDescription(Enum value)
{
string description = value.ToString();
var fi = value.GetType().GetField(value.ToString());
var attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
// ReSharper disable ConditionIsAlwaysTrueOrFalse
if (null != attributes && attributes.Length > 0)
// ReSharper restore ConditionIsAlwaysTrueOrFalse
{
description = attributes[0].Description;
}
return description;
}
}
#pragma warning restore 1591
}
================================================
FILE: Authorize.NET/Util/HtmlHelper.cs
================================================
using System;
using System.Text;
namespace AuthorizeNet.Util
{
//@deprecated since version 1.9.8
//@deprecated Since it is not using by New model Code
[Obsolete("Since the classes using it are deprecated", false)]
class HtmlHelper
{
///
/// This will issue a full HTML document with a built-in script, which will redirect the browser away from
/// Authorize.NET to the URL you pass in. Be sure the toURL is absolute. This can be used in your DPM Replay Response Endpoint
///
///
///
public static string RelayResponseRedirecter(string toUrl) {
return string.Format("", toUrl);
}
}
}
================================================
FILE: Authorize.NET/Util/HttpUtility.cs
================================================
namespace AuthorizeNet.Util
{
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
#pragma warning disable 1591
public static class HttpUtility {
//Max response size allowed: 64 MB
private const int MaxResponseLength = 67108864;
private static readonly Log Logger = LogFactory.getLog(typeof(HttpUtility));
private static bool _proxySet;// = false;
static readonly bool UseProxy = AuthorizeNet.Environment.getBooleanProperty(Constants.HttpsUseProxy);
static readonly String ProxyHost = AuthorizeNet.Environment.GetProperty(Constants.HttpsProxyHost);
static readonly int ProxyPort = AuthorizeNet.Environment.getIntProperty(Constants.HttpsProxyPort);
private static Uri GetPostUrl(AuthorizeNet.Environment env)
{
var postUrl = new Uri(env.getXmlBaseUrl() + "/xml/v1/request.api");
Logger.debug(string.Format("Creating PostRequest Url: '{0}'", postUrl));
return postUrl;
}
public static ANetApiResponse PostData(AuthorizeNet.Environment env, TQ request)
where TQ : ANetApiRequest
where TS : ANetApiResponse
{
ANetApiResponse response = null;
if (null == request)
{
throw new ArgumentNullException("request");
}
//Logger.debug(string.Format("MerchantInfo->LoginId/TransactionKey: '{0}':'{1}'->{2}",
//request.merchantAuthentication.name, request.merchantAuthentication.ItemElementName, request.merchantAuthentication.Item));
// Set Tls to Tls1.2
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
var postUrl = GetPostUrl(env);
var webRequest = (HttpWebRequest) WebRequest.Create(postUrl);
webRequest.Method = "POST";
webRequest.ContentType = "text/xml";
webRequest.KeepAlive = true;
webRequest.Proxy = SetProxyIfRequested(webRequest.Proxy);
//set the http connection timeout
var httpConnectionTimeout = AuthorizeNet.Environment.getIntProperty(Constants.HttpConnectionTimeout);
webRequest.Timeout = (httpConnectionTimeout != 0 ? httpConnectionTimeout : Constants.HttpConnectionDefaultTimeout);
//set the time out to read/write from stream
var httpReadWriteTimeout = AuthorizeNet.Environment.getIntProperty(Constants.HttpReadWriteTimeout);
webRequest.ReadWriteTimeout = (httpReadWriteTimeout != 0 ? httpReadWriteTimeout : Constants.HttpReadWriteDefaultTimeout);
var requestType = typeof (TQ);
var serializer = new XmlSerializer(requestType);
using (var writer = new XmlTextWriter(webRequest.GetRequestStream(), Encoding.UTF8))
{
serializer.Serialize(writer, request);
}
// Get the response
String responseAsString = null;
Logger.debug(string.Format("Retreiving Response from Url: '{0}'", postUrl));
using (var webResponse = webRequest.GetResponse())
{
Logger.debug(string.Format("Received Response: '{0}'", webResponse));
using (var responseStream = webResponse.GetResponseStream())
{
if (null != responseStream)
{
var result = new StringBuilder();
using (var reader = new StreamReader(responseStream))
{
while (!reader.EndOfStream)
{
try
{
result.Append((char)reader.Read());
}
catch (Exception)
{
throw new Exception("Cannot read response.");
}
if (result.Length >= MaxResponseLength)
{
throw new Exception("response is too long.");
}
}
responseAsString = result.Length > 0 ? result.ToString() : null;
}
Logger.debug(string.Format("Response from Stream: '{0}'", responseAsString));
}
}
}
if (null != responseAsString)
{
using (var memoryStreamForResponseAsString = new MemoryStream(Encoding.UTF8.GetBytes(responseAsString)))
{
var responseType = typeof (TS);
var deSerializer = new XmlSerializer(responseType);
Object deSerializedObject;
try
{
// try deserializing to the expected response type
deSerializedObject = deSerializer.Deserialize(memoryStreamForResponseAsString);
}
catch (Exception)
{
// probably a bad response, try if this is an error response
memoryStreamForResponseAsString.Seek(0, SeekOrigin.Begin); //start from beginning of stream
var genericDeserializer = new XmlSerializer(typeof (ANetApiResponse));
deSerializedObject = genericDeserializer.Deserialize(memoryStreamForResponseAsString);
}
//if error response
if (deSerializedObject is ErrorResponse)
{
response = deSerializedObject as ErrorResponse;
}
else
{
//actual response of type expected
if (deSerializedObject is TS)
{
response = deSerializedObject as TS;
}
else if (deSerializedObject is ANetApiResponse) //generic response
{
response = deSerializedObject as ANetApiResponse;
}
}
}
}
return response;
}
public static IWebProxy SetProxyIfRequested(IWebProxy proxy)
{
var newProxy = proxy as WebProxy;
if (UseProxy)
{
var proxyUri = new Uri(string.Format("{0}://{1}:{2}", Constants.ProxyProtocol, ProxyHost, ProxyPort));
if (!_proxySet)
{
Logger.info(string.Format("Setting up proxy to URL: '{0}'", proxyUri));
_proxySet = true;
}
if (null == proxy || null == newProxy)
{
newProxy = new WebProxy(proxyUri);
}
newProxy.UseDefaultCredentials = true;
newProxy.BypassProxyOnLocal = true;
}
return (newProxy ?? proxy);
}
}
#pragma warning restore 1591
}
//http://ecommerce.shopify.com/c/shopify-apis-and-technology/t/c-webrequest-put-and-xml-49458
//http://www.808.dk/?code-csharp-httpwebrequest
================================================
FILE: Authorize.NET/Util/LogHelper.cs
================================================
namespace AuthorizeNet.Util
{
using System;
using System.Diagnostics;
using System.Globalization;
///
///
///
///
public static class LogHelper {
static LogHelper() {
}
public static void debug(Log logger, string format, params object[] arguments) {
string logMessage = getMessage(logger, format, arguments);
if ( null != logMessage) { logger.debug(logMessage); }
}
public static void error(Log logger, string format, params object[] arguments) {
string logMessage = getMessage(logger, format, arguments);
if ( null != logMessage) { logger.error(logMessage); }
}
public static void info(Log logger, string format, params object[] arguments) {
string logMessage = getMessage(logger, format, arguments);
if ( null != logMessage) { logger.info(logMessage); }
}
public static void warn(Log logger, string format, params object[] arguments) {
string logMessage = getMessage(logger, format, arguments);
if ( null != logMessage) { logger.warn(logMessage); }
}
private static string getMessage(Log logger, string format, params object[] arguments) {
string logMessage = null;
if ( null != logger && null != format && 0 < format.Trim().Length) {
logMessage = string.Format(CultureInfo.InvariantCulture, format, arguments);
//do encoding etc here or output neutralization as necessary
}
return logMessage;
}
}
public class Log
{
private static TraceSource traceSource = new TraceSource("AnetDotNetSdkTrace");
public void error(string logMessage) { Trace(TraceEventType.Error, logMessage); }
public void info(string logMessage) { Trace(TraceEventType.Information, logMessage); }
public void debug(string logMessage) { Trace(TraceEventType.Verbose, logMessage); }
public void warn(string logMessage) { Trace(TraceEventType.Warning, logMessage); }
public void error(object logMessage) { error(logMessage.ToString()); }
public void info(object logMessage) { info(logMessage.ToString()); }
public void debug(object logMessage) { debug(logMessage.ToString()); }
public void warn(object logMessage) { warn(logMessage.ToString()); }
public static void Trace(TraceEventType eventType, string message)
{
try
{
if (traceSource.Switch.ShouldTrace(eventType))
{
string tracemessage = string.Format("{0}\t[{1}]\t{2}", DateTime.Now.ToString("MM/dd/yy HH:mm:ss"), eventType, message);
foreach (TraceListener listener in traceSource.Listeners)
{
listener.WriteLine(tracemessage);
listener.Flush();
}
}
}
catch (Exception)
{
}
}
}
public class LogFactory
{
private static readonly Log Logger = new Log();
public static Log getLog(Type classType)
{
return Logger;
}
}
}
================================================
FILE: Authorize.NET/Util/SensitiveDataConfigType.cs
================================================
namespace AuthorizeNet.Util
{
public class SensitiveTag
{
public string tagName { get; set; }
public string pattern { get; set; }
public string replacement { get; set; }
public bool disableMask { get; set; }
public SensitiveTag(string tagName, string pattern, string replacement, bool disableMask)
{
this.tagName = tagName;
this.pattern = pattern;
this.replacement = replacement;
this.disableMask = disableMask;
}
}
public static class SensitiveDataConfigType
{
public static SensitiveTag[] sensitiveTags = new SensitiveTag[]
{
new SensitiveTag("cardCode", "", "XXX", false),
new SensitiveTag("cardNumber", "(\\p{N}+)(\\p{N}{4})", "XXXX-$2", false),
new SensitiveTag("expirationDate", "", "XXX", false),
new SensitiveTag("accountNumber", "(\\p{N}+)(\\p{N}{4})", "XXXX-$2", false),
new SensitiveTag("nameOnAccount", "", "XXX", false),
new SensitiveTag("transactionKey", "", "XXX", false)
};
public static string[] sensitiveStringRegexes = new string[] {
"4\\p{N}{3}([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}",
"4\\p{N}{3}([\\ \\-]?)(?:\\p{N}{4}\\1){2}\\p{N}(?:\\p{N}{3})?",
"5[1-5]\\p{N}{2}([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}",
"6(?:011|22(?:1(?=[\\ \\-]?(?:2[6-9]|[3-9]))|[2-8]|9(?=[\\ \\-]?(?:[01]|2[0-5])))|4[4-9]\\p{N}|5\\p{N}\\p{N})([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}",
"35(?:2[89]|[3-8]\\p{N})([\\ \\-]?)\\p{N}{4}\\1\\p{N}{4}\\1\\p{N}{4}",
"3[47]\\p{N}\\p{N}([\\ \\-]?)\\p{N}{6}\\1\\p{N}{5}"};
}
}
================================================
FILE: Authorize.NET/Util/SensitiveDataConsoleLogger.cs
================================================
namespace AuthorizeNet.Util
{
using System;
public class SensitiveDataConsoleLogger : SensitiveDataTextLogger
{
public SensitiveDataConsoleLogger() : base (Console.Out) {
}
public SensitiveDataConsoleLogger(bool useErrorStream) : base (useErrorStream ? Console.Error : Console.Out) {
}
}
}
================================================
FILE: Authorize.NET/Util/SensitiveDataTextLogger.cs
================================================
namespace AuthorizeNet.Util
{
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
public class SensitiveDataTextLogger : TextWriterTraceListener
{
private static string[] cardPatterns;
private static string[] tagPatterns;
private static string[] tagReplacements;
static SensitiveDataTextLogger()
{
LoadSensitiveDataConfig();
}
public SensitiveDataTextLogger(System.IO.Stream stream) : base(stream)
{
}
public SensitiveDataTextLogger(System.IO.Stream stream, string name) : base(stream, name)
{
}
public SensitiveDataTextLogger(string FileName, string name) : base(FileName, name)
{
}
public SensitiveDataTextLogger(string FileName) : base(FileName)
{
}
public SensitiveDataTextLogger(System.IO.TextWriter writer, string name) : base(writer, name)
{
}
public SensitiveDataTextLogger(System.IO.TextWriter writer) : base(writer)
{
}
private static void LoadSensitiveDataConfig()
{
cardPatterns = SensitiveDataConfigType.sensitiveStringRegexes;
int noOfSensitiveTags = SensitiveDataConfigType.sensitiveTags.Length;
tagPatterns = new string[noOfSensitiveTags];
tagReplacements = new string[noOfSensitiveTags];
for (int i = 0; i < noOfSensitiveTags; i++)
{
String tagName = SensitiveDataConfigType.sensitiveTags[i].tagName;
String pattern = SensitiveDataConfigType.sensitiveTags[i].pattern;
String replacement = SensitiveDataConfigType.sensitiveTags[i].replacement;
if (!String.IsNullOrEmpty(pattern))
tagPatterns[i] = "<" + tagName + ">" + pattern + "" + tagName + ">";
else
tagPatterns[i] = "<" + tagName + ">" + ".+" + "" + tagName + ">";
tagReplacements[i] = "<" + tagName + ">" + replacement + "" + tagName + ">";
}
}
public override void Write(string Msg)
{
base.Write(Msg);
base.Flush();
}
public override void WriteLine(string Msg)
{
string maskXmlMessage = maskSensitiveXmlString(Msg);
base.WriteLine(maskCreditCards(maskXmlMessage));
base.Flush();
}
public static String maskCreditCards(String str)
{
for (int i = 0; i < cardPatterns.Length; i++)
{
str = Regex.Replace(str, cardPatterns[i], "XXXX");
}
return str;
}
public static String maskSensitiveXmlString(String str)
{
for (int i = 0; i < tagPatterns.Length; i++)
{
str = Regex.Replace(str, tagPatterns[i], tagReplacements[i]);
}
return str;
}
}
}
================================================
FILE: Authorize.NET/Util/StringUtils.cs
================================================
namespace AuthorizeNet.Util
{
///
///
///
public class StringUtils {
/*
private static Log _logger = LogFactory.getLog(typeof( StringUtils));
*/
///
///
///
///
///
public static double ParseDouble(string doublestringValue) {
double amount = 0.0;
if ( null != doublestringValue && 0 < doublestringValue.Trim().Length)
{
double.TryParse(doublestringValue.Trim(), out amount );
}
return amount;
}
///
///
///
///
///
public static int ParseInt(string intstringValue) {
int amount = 0;
if ( null != intstringValue && 0 < intstringValue.Trim().Length)
{
int.TryParse(intstringValue.Trim(), out amount);
}
return amount;
}
///
///
///
///
///
public static bool ParseBool(string boolstringValue) {
bool result = false;
if ( null != boolstringValue && 0 < boolstringValue.Trim().Length)
{
bool.TryParse(boolstringValue.Trim(), out result);
}
return result;
}
}
}
================================================
FILE: Authorize.NET/Util/XmlUtility.cs
================================================
namespace AuthorizeNet.Util
{
using System;
using System.IO;
using System.Xml.Serialization;
#pragma warning disable 1591
public static class XmlUtility {
private static readonly Log Logger = LogFactory.getLog(typeof(XmlUtility));
public static string GetXml(T entity) //where T: object //MarshalByRefObject //Serializable
{
string xmlString;
var requestType = typeof (T);
try
{
var serializer = new XmlSerializer(requestType);
using (var writer = new Utf8StringWriter())
{
serializer.Serialize(writer, entity);
xmlString = writer.ToString();
}
}
catch (Exception e)
{
LogHelper.error(Logger, "Error:'{0}' when serializing object:'{1}' to xml", e.Message, requestType);
throw;
}
return xmlString;
}
public static T Create(string xml) //where T: object //MarshalByRefObject
{
var entity = default(T);
//make sure we have not null and not-empty string to de-serialize
if ( null != xml && 0 != xml.Trim().Length)
{
var responseType = typeof (T);
try
{
object deSerializedobject;
var serializer = new XmlSerializer(responseType);
using (var reader = new StringReader(xml))
{
deSerializedobject = serializer.Deserialize(reader);
}
if (deSerializedobject is T)
{
entity = (T) deSerializedobject;
}
}
catch (Exception e)
{
LogHelper.error(Logger, "Error:'{0}' when deserializing the into object:'{1}' from xml:'{2}'", e.Message, responseType, xml);
throw;
}
}
return entity;
}
}
public sealed class Utf8StringWriter : StringWriter
{
public override System.Text.Encoding Encoding { get { return System.Text.Encoding.UTF8; } }
}
#pragma warning disable 1591
}
================================================
FILE: Authorize.NET/Utility/AnetApiSchema.generated.cs
================================================
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
//
// This source code was auto-generated by xsd, Version=4.6.1055.0.
//
namespace AuthorizeNet.APICore {
using System.Xml.Serialization;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class decryptPaymentDataRequest : ANetApiRequest {
///
public opaqueDataType opaqueData;
///
public string callId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class opaqueDataType {
///
public string dataDescriptor;
///
public string dataValue;
///
public string dataKey;
///
public System.DateTime expirationTimeStamp;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool expirationTimeStampSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class processorType {
///
public string name;
///
public int id;
///
[System.Xml.Serialization.XmlArrayItemAttribute("cardType")]
public string[] cardTypes;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(auDeleteType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(auUpdateType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auDetailsType {
///
public long customerProfileID;
///
public long customerPaymentProfileID;
///
public string firstName;
///
public string lastName;
///
public string updateTimeUTC;
///
public string auReasonCode;
///
public string reasonDescription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auDeleteType : auDetailsType {
///
public creditCardMaskedType creditCard;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardMaskedType {
///
public string cardNumber;
///
public string expirationDate;
///
public string cardType;
///
public cardArt cardArt;
///
public string issuerNumber;
///
public bool isPaymentToken;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isPaymentTokenSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class cardArt {
///
public string cardBrand;
///
public string cardImageHeight;
///
public string cardImageUrl;
///
public string cardImageWidth;
///
public string cardType;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auUpdateType : auDetailsType {
///
public creditCardMaskedType newCreditCard;
///
public creditCardMaskedType oldCreditCard;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class auResponseType {
///
public string auReasonCode;
///
public long profileCount;
///
public string reasonDescription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileListItemType {
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public int customerPaymentProfileId;
///
public int customerProfileId;
///
public customerAddressType billTo;
///
public paymentMaskedType payment;
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public bool excludeFromAccountUpdater;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool excludeFromAccountUpdaterSpecified;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerAddressType : nameAndAddressType {
///
public string phoneNumber;
///
public string faxNumber;
///
public string email;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerAddressExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class nameAndAddressType {
///
public string firstName;
///
public string lastName;
///
public string company;
///
public string address;
///
public string city;
///
public string state;
///
public string zip;
///
public string country;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerAddressExType : customerAddressType {
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentMaskedType {
///
[System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountMaskedType))]
[System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardMaskedType))]
[System.Xml.Serialization.XmlElementAttribute("tokenInformation", typeof(tokenMaskedType))]
public object Item;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class bankAccountMaskedType {
///
public bankAccountTypeEnum accountType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool accountTypeSpecified;
///
public string routingNumber;
///
public string accountNumber;
///
public string nameOnAccount;
///
public echeckTypeEnum echeckType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool echeckTypeSpecified;
///
public string bankName;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum bankAccountTypeEnum {
///
checking,
///
savings,
///
businessChecking,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum echeckTypeEnum {
///
PPD,
///
WEB,
///
CCD,
///
TEL,
///
ARC,
///
BOC,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class tokenMaskedType {
///
public string tokenSource;
///
public string tokenNumber;
///
public string expirationDate;
///
public string tokenRequestorId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class CustomerPaymentProfileSorting {
///
public CustomerPaymentProfileOrderFieldEnum orderBy;
///
public bool orderDescending;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum CustomerPaymentProfileOrderFieldEnum {
///
id,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileSummaryType {
///
public string customerProfileId;
///
public string description;
///
public string merchantCustomerId;
///
public string email;
///
public System.DateTime createdDate;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class SubscriptionDetail {
///
public int id;
///
public string name;
///
public ARBSubscriptionStatusEnum status;
///
public System.DateTime createTimeStampUTC;
///
public string firstName;
///
public string lastName;
///
public int totalOccurrences;
///
public int pastOccurrences;
///
public paymentMethodEnum paymentMethod;
///
public string accountNumber;
///
public string invoice;
///
public decimal amount;
///
public string currencyCode;
///
public int customerProfileId;
///
public int customerPaymentProfileId;
///
public int customerShippingProfileId;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool customerShippingProfileIdSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBSubscriptionStatusEnum {
///
active,
///
expired,
///
suspended,
///
canceled,
///
terminated,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum paymentMethodEnum {
///
creditCard,
///
eCheck,
///
payPal,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ARBGetSubscriptionListSorting {
///
public ARBGetSubscriptionListOrderFieldEnum orderBy;
///
public bool orderDescending;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBGetSubscriptionListOrderFieldEnum {
///
id,
///
name,
///
status,
///
createTimeStampUTC,
///
lastName,
///
firstName,
///
accountNumber,
///
amount,
///
pastOccurrences,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class Paging {
///
public int limit;
///
public int offset;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class TransactionListSorting {
///
public TransactionListOrderFieldEnum orderBy;
///
public bool orderDescending;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum TransactionListOrderFieldEnum {
///
id,
///
submitTimeUTC,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class heldTransactionRequestType {
///
public afdsTransactionEnum action;
///
public string refTransId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum afdsTransactionEnum {
///
approve,
///
decline,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class createProfileResponse {
///
public messagesType messages;
///
public string customerProfileId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerPaymentProfileIdList;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerShippingAddressIdList;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class messagesType {
///
public messageTypeEnum resultCode;
///
[System.Xml.Serialization.XmlElementAttribute("message")]
public messagesTypeMessage[] message;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum messageTypeEnum {
///
Ok,
///
Error,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class messagesTypeMessage {
///
public string code;
///
public string text;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponse {
///
public string responseCode;
///
public string rawResponseCode;
///
public string authCode;
///
public string avsResultCode;
///
public string cvvResultCode;
///
public string cavvResultCode;
///
public string transId;
///
public string refTransID;
///
public string transHash;
///
public string testRequest;
///
public string accountNumber;
///
public string entryMode;
///
public string accountType;
///
public string splitTenderId;
///
public transactionResponsePrePaidCard prePaidCard;
///
[System.Xml.Serialization.XmlArrayItemAttribute("message", IsNullable=false)]
public transactionResponseMessage[] messages;
///
[System.Xml.Serialization.XmlArrayItemAttribute("error", IsNullable=false)]
public transactionResponseError[] errors;
///
[System.Xml.Serialization.XmlArrayItemAttribute("splitTenderPayment", IsNullable=false)]
public transactionResponseSplitTenderPayment[] splitTenderPayments;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public userField[] userFields;
///
public nameAndAddressType shipTo;
///
public transactionResponseSecureAcceptance secureAcceptance;
///
public transactionResponseEmvResponse emvResponse;
///
public string transHashSha2;
///
public customerProfileIdType profile;
///
public string networkTransId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponsePrePaidCard {
///
public string requestedAmount;
///
public string approvedAmount;
///
public string balanceOnCard;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseMessage {
///
public string code;
///
public string description;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseError {
///
public string errorCode;
///
public string errorText;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseSplitTenderPayment {
///
public string transId;
///
public string responseCode;
///
public string responseToCustomer;
///
public string authCode;
///
public string accountNumber;
///
public string accountType;
///
public string requestedAmount;
///
public string approvedAmount;
///
public string balanceOnCard;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class userField {
///
public string name;
///
public string value;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseSecureAcceptance {
///
public string SecureAcceptanceUrl;
///
public string PayerID;
///
public string PayerEmail;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionResponseEmvResponse {
///
public string tlvData;
///
[System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)]
public emvTag[] tags;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class emvTag {
///
public string name;
///
public string value;
///
public string formatted;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileIdType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class returnedItemType {
///
public string id;
///
public System.DateTime dateUTC;
///
public System.DateTime dateLocal;
///
public string code;
///
public string description;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionDetailsType {
///
public string transId;
///
public string refTransId;
///
public string splitTenderId;
///
public System.DateTime submitTimeUTC;
///
public System.DateTime submitTimeLocal;
///
public string transactionType;
///
public string transactionStatus;
///
public int responseCode;
///
public int responseReasonCode;
///
public subscriptionPaymentType subscription;
///
public string responseReasonDescription;
///
public string authCode;
///
public string AVSResponse;
///
public string cardCodeResponse;
///
public string CAVVResponse;
///
public string FDSFilterAction;
///
[System.Xml.Serialization.XmlArrayItemAttribute("FDSFilter", IsNullable=false)]
public FDSFilterType[] FDSFilters;
///
public batchDetailsType batch;
///
public orderExType order;
///
public decimal requestedAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool requestedAmountSpecified;
///
public decimal authAmount;
///
public decimal settleAmount;
///
public extendedAmountType tax;
///
public extendedAmountType shipping;
///
public extendedAmountType duty;
///
[System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)]
public lineItemType[] lineItems;
///
public decimal prepaidBalanceRemaining;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool prepaidBalanceRemainingSpecified;
///
public bool taxExempt;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxExemptSpecified;
///
public paymentMaskedType payment;
///
public customerDataType customer;
///
public customerAddressType billTo;
///
public nameAndAddressType shipTo;
///
public bool recurringBilling;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool recurringBillingSpecified;
///
public string customerIP;
///
public string product;
///
public string entryMode;
///
public string marketType;
///
public string mobileDeviceId;
///
public string customerSignature;
///
[System.Xml.Serialization.XmlArrayItemAttribute("returnedItem", IsNullable=false)]
public returnedItemType[] returnedItems;
///
public solutionType solution;
///
[System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)]
public transactionDetailsTypeTag[] emvDetails;
///
public customerProfileIdType profile;
///
public extendedAmountType surcharge;
///
public string employeeId;
///
public extendedAmountType tip;
///
public otherTaxType otherTax;
///
public nameAndAddressType shipFrom;
///
public string networkTransId;
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public string authorizationIndicator;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subscriptionPaymentType {
///
public int id;
///
public int payNum;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class FDSFilterType {
///
public string name;
///
public string action;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class batchDetailsType {
///
public string batchId;
///
public System.DateTime settlementTimeUTC;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool settlementTimeUTCSpecified;
///
public System.DateTime settlementTimeLocal;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool settlementTimeLocalSpecified;
///
public string settlementState;
///
public string paymentMethod;
///
public string marketType;
///
public string product;
///
[System.Xml.Serialization.XmlArrayItemAttribute("statistic", IsNullable=false)]
public batchStatisticType[] statistics;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class batchStatisticType {
///
public string accountType;
///
public decimal chargeAmount;
///
public int chargeCount;
///
public decimal refundAmount;
///
public int refundCount;
///
public int voidCount;
///
public int declineCount;
///
public int errorCount;
///
public decimal returnedItemAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool returnedItemAmountSpecified;
///
public int returnedItemCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool returnedItemCountSpecified;
///
public decimal chargebackAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargebackAmountSpecified;
///
public int chargebackCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargebackCountSpecified;
///
public int correctionNoticeCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool correctionNoticeCountSpecified;
///
public decimal chargeChargeBackAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeChargeBackAmountSpecified;
///
public int chargeChargeBackCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeChargeBackCountSpecified;
///
public decimal refundChargeBackAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundChargeBackAmountSpecified;
///
public int refundChargeBackCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundChargeBackCountSpecified;
///
public decimal chargeReturnedItemsAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeReturnedItemsAmountSpecified;
///
public int chargeReturnedItemsCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool chargeReturnedItemsCountSpecified;
///
public decimal refundReturnedItemsAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundReturnedItemsAmountSpecified;
///
public int refundReturnedItemsCount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool refundReturnedItemsCountSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class orderExType : orderType {
///
public string purchaseOrderNumber;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(orderExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class orderType {
///
public string invoiceNumber;
///
public string description;
///
public decimal discountAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool discountAmountSpecified;
///
public bool taxIsAfterDiscount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxIsAfterDiscountSpecified;
///
public string totalTaxTypeCode;
///
public string purchaserVATRegistrationNumber;
///
public string merchantVATRegistrationNumber;
///
public string vatInvoiceReferenceNumber;
///
public string purchaserCode;
///
public string summaryCommodityCode;
///
[System.Xml.Serialization.XmlElementAttribute(DataType="date")]
public System.DateTime purchaseOrderDateUTC;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool purchaseOrderDateUTCSpecified;
///
public string supplierOrderReference;
///
public string authorizedContactName;
///
public string cardAcceptorRefNumber;
///
public string amexDataTAA1;
///
public string amexDataTAA2;
///
public string amexDataTAA3;
///
public string amexDataTAA4;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class extendedAmountType {
///
public decimal amount;
///
public string name;
///
public string description;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class lineItemType {
///
public string itemId;
///
public string name;
///
public string description;
///
public decimal quantity;
///
public decimal unitPrice;
///
public bool taxable;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxableSpecified;
///
public string unitOfMeasure;
///
public string typeOfSupply;
///
public decimal taxRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxRateSpecified;
///
public decimal taxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxAmountSpecified;
///
public decimal nationalTax;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool nationalTaxSpecified;
///
public decimal localTax;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool localTaxSpecified;
///
public decimal vatRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool vatRateSpecified;
///
public string alternateTaxId;
///
public string alternateTaxType;
///
public string alternateTaxTypeApplied;
///
public decimal alternateTaxRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool alternateTaxRateSpecified;
///
public decimal alternateTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool alternateTaxAmountSpecified;
///
public decimal totalAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalAmountSpecified;
///
public string commodityCode;
///
public string productCode;
///
public string productSKU;
///
public decimal discountRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool discountRateSpecified;
///
public decimal discountAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool discountAmountSpecified;
///
public bool taxIncludedInTotal;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxIncludedInTotalSpecified;
///
public bool taxIsAfterDiscount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxIsAfterDiscountSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerDataType {
///
public customerTypeEnum type;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool typeSpecified;
///
public string id;
///
public string email;
///
public driversLicenseType driversLicense;
///
public string taxId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum customerTypeEnum {
///
individual,
///
business,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class driversLicenseType {
///
public string number;
///
public string state;
///
public string dateOfBirth;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class solutionType {
///
public string id;
///
public string name;
///
public string vendorName;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionDetailsTypeTag {
///
public string tagId;
///
public string data;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class otherTaxType {
///
public decimal nationalTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool nationalTaxAmountSpecified;
///
public decimal localTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool localTaxAmountSpecified;
///
public decimal alternateTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool alternateTaxAmountSpecified;
///
public string alternateTaxId;
///
public decimal vatTaxRate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool vatTaxRateSpecified;
///
public decimal vatTaxAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool vatTaxAmountSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransactionType {
///
[System.Xml.Serialization.XmlElementAttribute("profileTransAuthCapture", typeof(profileTransAuthCaptureType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransAuthOnly", typeof(profileTransAuthOnlyType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransCaptureOnly", typeof(profileTransCaptureOnlyType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransPriorAuthCapture", typeof(profileTransPriorAuthCaptureType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransRefund", typeof(profileTransRefundType))]
[System.Xml.Serialization.XmlElementAttribute("profileTransVoid", typeof(profileTransVoidType))]
public object Item;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransAuthCaptureType : profileTransOrderType {
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransOrderType : profileTransAmountType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public orderExType order;
///
public bool taxExempt;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxExemptSpecified;
///
public bool recurringBilling;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool recurringBillingSpecified;
///
public string cardCode;
///
public string splitTenderId;
///
public processingOptions processingOptions;
///
public subsequentAuthInformation subsequentAuthInformation;
///
public authorizationIndicatorType authorizationIndicatorType;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class processingOptions {
///
public bool isFirstRecurringPayment;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isFirstRecurringPaymentSpecified;
///
public bool isFirstSubsequentAuth;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isFirstSubsequentAuthSpecified;
///
public bool isSubsequentAuth;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isSubsequentAuthSpecified;
///
public bool isStoredCredentials;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isStoredCredentialsSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subsequentAuthInformation {
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public merchantInitTransReasonEnum reason;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool reasonSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum merchantInitTransReasonEnum {
///
resubmission,
///
delayedCharge,
///
reauthorization,
///
noShow,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class authorizationIndicatorType {
///
public authIndicatorEnum authorizationIndicator;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool authorizationIndicatorSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum authIndicatorEnum {
///
pre,
///
final,
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransRefundType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransPriorAuthCaptureType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransOrderType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransCaptureOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthOnlyType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(profileTransAuthCaptureType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransAmountType {
///
public decimal amount;
///
public extendedAmountType tax;
///
public extendedAmountType shipping;
///
public extendedAmountType duty;
///
[System.Xml.Serialization.XmlElementAttribute("lineItems")]
public lineItemType[] lineItems;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransRefundType : profileTransAmountType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string creditCardNumberMasked;
///
public string bankRoutingNumberMasked;
///
public string bankAccountNumberMasked;
///
public orderExType order;
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransPriorAuthCaptureType : profileTransAmountType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransCaptureOnlyType : profileTransOrderType {
///
public string approvalCode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransAuthOnlyType : profileTransOrderType {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class profileTransVoidType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentProfile {
///
public string paymentProfileId;
///
public string cardCode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfilePaymentType {
///
public bool createProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool createProfileSpecified;
///
public string customerProfileId;
///
public paymentProfile paymentProfile;
///
public string shippingProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionRequestType {
///
public string transactionType;
///
public decimal amount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool amountSpecified;
///
public string currencyCode;
///
public paymentType payment;
///
public customerProfilePaymentType profile;
///
public solutionType solution;
///
public string callId;
///
public string terminalNumber;
///
public string authCode;
///
public string refTransId;
///
public string splitTenderId;
///
public orderType order;
///
[System.Xml.Serialization.XmlArrayItemAttribute("lineItem", IsNullable=false)]
public lineItemType[] lineItems;
///
public extendedAmountType tax;
///
public extendedAmountType duty;
///
public extendedAmountType shipping;
///
public bool taxExempt;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool taxExemptSpecified;
///
public string poNumber;
///
public customerDataType customer;
///
public customerAddressType billTo;
///
public nameAndAddressType shipTo;
///
public string customerIP;
///
public ccAuthenticationType cardholderAuthentication;
///
public transRetailInfoType retail;
///
public string employeeId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)]
public settingType[] transactionSettings;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public userField[] userFields;
///
public extendedAmountType surcharge;
///
public string merchantDescriptor;
///
public subMerchantType subMerchant;
///
public extendedAmountType tip;
///
public processingOptions processingOptions;
///
public subsequentAuthInformation subsequentAuthInformation;
///
public otherTaxType otherTax;
///
public nameAndAddressType shipFrom;
///
public authorizationIndicatorType authorizationIndicatorType;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentType {
///
[System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))]
[System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardType))]
[System.Xml.Serialization.XmlElementAttribute("emv", typeof(paymentEmvType))]
[System.Xml.Serialization.XmlElementAttribute("encryptedTrackData", typeof(encryptedTrackDataType))]
[System.Xml.Serialization.XmlElementAttribute("opaqueData", typeof(opaqueDataType))]
[System.Xml.Serialization.XmlElementAttribute("payPal", typeof(payPalType))]
[System.Xml.Serialization.XmlElementAttribute("trackData", typeof(creditCardTrackType))]
public object Item;
///
public string dataSource;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class bankAccountType {
///
public bankAccountTypeEnum accountType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool accountTypeSpecified;
///
public string routingNumber;
///
public string accountNumber;
///
public string nameOnAccount;
///
public echeckTypeEnum echeckType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool echeckTypeSpecified;
///
public string bankName;
///
public string checkNumber;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardType : creditCardSimpleType {
///
public string cardCode;
///
public bool isPaymentToken;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isPaymentTokenSpecified;
///
public string cryptogram;
///
public string tokenRequestorName;
///
public string tokenRequestorId;
///
public string tokenRequestorEci;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(creditCardType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardSimpleType {
///
public string cardNumber;
///
public string expirationDate;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentEmvType {
///
public object emvData;
///
public object emvDescriptor;
///
public object emvVersion;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class encryptedTrackDataType {
///
public KeyBlock FormOfPayment;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyBlock {
///
public KeyValue Value;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyValue {
///
public EncodingType Encoding;
///
public EncryptionAlgorithmType EncryptionAlgorithm;
///
public KeyManagementScheme Scheme;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum EncodingType {
///
Base64,
///
Hex,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum EncryptionAlgorithmType {
///
TDES,
///
AES,
///
RSA,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementScheme {
///
public KeyManagementSchemeDUKPT DUKPT;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPT {
///
public OperationType Operation;
///
public KeyManagementSchemeDUKPTMode Mode;
///
public KeyManagementSchemeDUKPTDeviceInfo DeviceInfo;
///
public KeyManagementSchemeDUKPTEncryptedData EncryptedData;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum OperationType {
///
DECRYPT,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPTMode {
///
public string PIN;
///
public string Data;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPTDeviceInfo {
///
public string Description;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class KeyManagementSchemeDUKPTEncryptedData {
///
public string Value;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class payPalType {
///
public string successUrl;
///
public string cancelUrl;
///
public string paypalLc;
///
public string paypalHdrImg;
///
public string paypalPayflowcolor;
///
public string payerID;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class creditCardTrackType {
///
[System.Xml.Serialization.XmlElementAttribute("track1", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("track2", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public string Item;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType1 ItemElementName;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)]
public enum ItemChoiceType1 {
///
track1,
///
track2,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ccAuthenticationType {
///
public string authenticationIndicator;
///
public string cardholderAuthenticationValue;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transRetailInfoType {
///
[System.ComponentModel.DefaultValueAttribute("2")]
public string marketType;
///
public string deviceType;
///
public string customerSignature;
///
public string terminalNumber;
public transRetailInfoType() {
this.marketType = "2";
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class settingType {
///
public string settingName;
///
public string settingValue;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subMerchantType {
///
public string identifier;
///
public string doingBusinessAs;
///
public string paymentServiceProviderName;
///
public string paymentServiceFacilitator;
///
public string streetAddress;
///
public string phone;
///
public string email;
///
public string postalCode;
///
public string city;
///
public string regionCode;
///
public string countryCode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class mobileDeviceType {
///
public string mobileDeviceId;
///
public string description;
///
public string phoneNumber;
///
public string devicePlatform;
///
public deviceActivationEnum deviceActivation;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool deviceActivationSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum deviceActivationEnum {
///
Activate,
///
Disable,
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileMaskedType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileBaseType {
///
public customerTypeEnum customerType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool customerTypeSpecified;
///
public customerAddressType billTo;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileMaskedType : customerPaymentProfileBaseType {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public paymentMaskedType payment;
///
public driversLicenseMaskedType driversLicense;
///
public string taxId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)]
public string[] subscriptionIds;
///
public string originalNetworkTransId;
///
public decimal originalAuthAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool originalAuthAmountSpecified;
///
public bool excludeFromAccountUpdater;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool excludeFromAccountUpdaterSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class driversLicenseMaskedType {
///
public string number;
///
public string state;
///
public string dateOfBirth;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerPaymentProfileExType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileType : customerPaymentProfileBaseType {
///
public paymentType payment;
///
public driversLicenseType driversLicense;
///
public string taxId;
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public subsequentAuthInformation subsequentAuthInformation;
///
public bool excludeFromAccountUpdater;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool excludeFromAccountUpdaterSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerPaymentProfileExType : customerPaymentProfileType {
///
public string customerPaymentProfileId;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileExType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileBaseType {
///
public string merchantCustomerId;
///
public string description;
///
public string email;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileMaskedType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(customerProfileInfoExType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(subscriptionCustomerProfileType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileExType : customerProfileBaseType {
///
public string customerProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileMaskedType : customerProfileExType {
///
[System.Xml.Serialization.XmlElementAttribute("paymentProfiles")]
public customerPaymentProfileMaskedType[] paymentProfiles;
///
[System.Xml.Serialization.XmlElementAttribute("shipToList")]
public customerAddressExType[] shipToList;
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum customerProfileTypeEnum {
///
regular,
///
guest,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileInfoExType : customerProfileExType {
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class subscriptionCustomerProfileType : customerProfileExType {
///
public customerPaymentProfileMaskedType paymentProfile;
///
public customerAddressExType shippingProfile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerProfileType : customerProfileBaseType {
///
[System.Xml.Serialization.XmlElementAttribute("paymentProfiles")]
public customerPaymentProfileType[] paymentProfiles;
///
[System.Xml.Serialization.XmlElementAttribute("shipToList")]
public customerAddressType[] shipToList;
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ARBSubscriptionMaskedType {
///
public string name;
///
public paymentScheduleType paymentSchedule;
///
public decimal amount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool amountSpecified;
///
public decimal trialAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool trialAmountSpecified;
///
public ARBSubscriptionStatusEnum status;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool statusSpecified;
///
public subscriptionCustomerProfileType profile;
///
public orderType order;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public arbTransaction[] arbTransactions;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentScheduleType {
///
public paymentScheduleTypeInterval interval;
///
[System.Xml.Serialization.XmlElementAttribute(DataType="date")]
public System.DateTime startDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool startDateSpecified;
///
public short totalOccurrences;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalOccurrencesSpecified;
///
public short trialOccurrences;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool trialOccurrencesSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentScheduleTypeInterval {
///
public short length;
///
public ARBSubscriptionUnitEnum unit;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBSubscriptionUnitEnum {
///
days,
///
months,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class arbTransaction {
///
public string transId;
///
public string response;
///
public System.DateTime submitTimeUTC;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool submitTimeUTCSpecified;
///
public int payNum;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool payNumSpecified;
///
public int attemptNum;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool attemptNumSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class securePaymentContainerErrorType {
///
public string code;
///
public string description;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class customerType {
///
public customerTypeEnum type;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool typeSpecified;
///
public string id;
///
public string email;
///
public string phoneNumber;
///
public string faxNumber;
///
public driversLicenseType driversLicense;
///
public string taxId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentSimpleType {
///
[System.Xml.Serialization.XmlElementAttribute("bankAccount", typeof(bankAccountType))]
[System.Xml.Serialization.XmlElementAttribute("creditCard", typeof(creditCardSimpleType))]
public object Item;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class merchantContactType {
///
public string merchantName;
///
public string merchantAddress;
///
public string merchantCity;
///
public string merchantState;
///
public string merchantZip;
///
public string merchantPhone;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ContactDetailType {
///
public string email;
///
public string firstName;
///
public string lastName;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class permissionType {
///
public string permissionName;
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(emailSettingsType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ArrayOfSetting {
///
[System.Xml.Serialization.XmlElementAttribute("setting")]
public settingType[] setting;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class emailSettingsType : ArrayOfSetting {
///
[System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
public string version;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class fraudInformationType {
///
[System.Xml.Serialization.XmlArrayItemAttribute("fraudFilter", IsNullable=false)]
public string[] fraudFilterList;
///
public string fraudAction;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class transactionSummaryType {
///
public string transId;
///
public System.DateTime submitTimeUTC;
///
public System.DateTime submitTimeLocal;
///
public string transactionStatus;
///
public string invoiceNumber;
///
public string firstName;
///
public string lastName;
///
public string accountType;
///
public string accountNumber;
///
public decimal settleAmount;
///
public string marketType;
///
public string product;
///
public string mobileDeviceId;
///
public subscriptionPaymentType subscription;
///
public bool hasReturnedItems;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool hasReturnedItemsSpecified;
///
public fraudInformationType fraudInformation;
///
public customerProfileIdType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ARBSubscriptionType {
///
public string name;
///
public paymentScheduleType paymentSchedule;
///
public decimal amount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool amountSpecified;
///
public decimal trialAmount;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool trialAmountSpecified;
///
public paymentType payment;
///
public orderType order;
///
public customerType customer;
///
public nameAndAddressType billTo;
///
public nameAndAddressType shipTo;
///
public customerProfileIdType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class webCheckOutDataTypeToken {
///
public string cardNumber;
///
public string expirationDate;
///
public string cardCode;
///
public string zip;
///
public string fullName;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class webCheckOutDataType {
///
public webCheckOutTypeEnum type;
///
public string id;
///
public webCheckOutDataTypeToken token;
///
public bankAccountType bankToken;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum webCheckOutTypeEnum {
///
PAN,
///
TOKEN,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class paymentDetails {
///
public string currency;
///
public string promoCode;
///
public string misc;
///
public string giftWrap;
///
public string discount;
///
public string tax;
///
public string shippingHandling;
///
public string subTotal;
///
public string orderID;
///
public string amount;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class fingerPrintType {
///
public string hashValue;
///
public string sequence;
///
public string timestamp;
///
public string currencyCode;
///
public string amount;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class impersonationAuthenticationType {
///
public string partnerLoginId;
///
public string partnerTransactionKey;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class merchantAuthenticationType {
///
public string name;
///
[System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))]
[System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))]
[System.Xml.Serialization.XmlElementAttribute("password", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("sessionToken", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("transactionKey", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public object Item;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType ItemElementName;
///
public string mobileDeviceId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)]
public enum ItemChoiceType {
///
accessToken,
///
clientKey,
///
fingerPrint,
///
impersonationAuthentication,
///
password,
///
sessionToken,
///
transactionKey,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public partial class ANetApiRequest {
///
public merchantAuthenticationType merchantAuthentication;
///
public string clientId;
///
public string refId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class decryptPaymentDataResponse : ANetApiResponse {
///
public customerAddressType shippingInfo;
///
public customerAddressType billingInfo;
///
public creditCardMaskedType cardInfo;
///
public paymentDetails paymentDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute("ErrorResponse", Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ANetApiResponse {
///
public string refId;
///
public messagesType messages;
///
public string sessionToken;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class securePaymentContainerRequest : ANetApiRequest {
///
public webCheckOutDataType data;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class securePaymentContainerResponse : ANetApiResponse {
///
public opaqueDataType opaqueData;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class isAliveRequest {
///
public string refId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class isAliveResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class authenticateTestRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class authenticateTestResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCreateSubscriptionRequest : ANetApiRequest {
///
public ARBSubscriptionType subscription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCreateSubscriptionResponse : ANetApiResponse {
///
public string subscriptionId;
///
public customerProfileIdType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBUpdateSubscriptionRequest : ANetApiRequest {
///
public string subscriptionId;
///
public ARBSubscriptionType subscription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBUpdateSubscriptionResponse : ANetApiResponse {
///
public customerProfileIdType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCancelSubscriptionRequest : ANetApiRequest {
///
public string subscriptionId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBCancelSubscriptionResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionStatusRequest : ANetApiRequest {
///
public string subscriptionId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionStatusResponse : ANetApiResponse {
///
public ARBSubscriptionStatusEnum status;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool statusSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileRequest : ANetApiRequest {
///
public customerProfileType profile;
///
public validationModeEnum validationMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool validationModeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum validationModeEnum {
///
none,
///
testMode,
///
liveMode,
///
oldLiveMode,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileResponse : ANetApiResponse {
///
public string customerProfileId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerPaymentProfileIdList;
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] customerShippingAddressIdList;
///
[System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public string[] validationDirectResponseList;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerPaymentProfileType paymentProfile;
///
public validationModeEnum validationMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool validationModeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerPaymentProfileResponse : ANetApiResponse {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string validationDirectResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerAddressType address;
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerShippingAddressResponse : ANetApiResponse {
///
public string customerProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileFromTransactionRequest : ANetApiRequest {
///
public string transId;
///
public customerProfileBaseType customer;
///
public string customerProfileId;
///
public bool defaultPaymentProfile;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultPaymentProfileSpecified;
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
///
public customerProfileTypeEnum profileType;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool profileTypeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string merchantCustomerId;
///
public string email;
///
public bool unmaskExpirationDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool unmaskExpirationDateSpecified;
///
public bool includeIssuerInfo;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeIssuerInfoSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileResponse : ANetApiResponse {
///
public customerProfileMaskedType profile;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)]
public string[] subscriptionIds;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public bool unmaskExpirationDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool unmaskExpirationDateSpecified;
///
public bool includeIssuerInfo;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeIssuerInfoSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileResponse : ANetApiResponse {
///
public customerPaymentProfileMaskedType paymentProfile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerShippingAddressResponse : ANetApiResponse {
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
///
public customerAddressExType address;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionId", IsNullable=false)]
public string[] subscriptionIds;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerProfileRequest : ANetApiRequest {
///
public customerProfileInfoExType profile;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerProfileResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerPaymentProfileExType paymentProfile;
///
public validationModeEnum validationMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool validationModeSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerPaymentProfileResponse : ANetApiResponse {
///
public string validationDirectResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public customerAddressExType address;
///
public bool defaultShippingAddress;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool defaultShippingAddressSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateCustomerShippingAddressResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerProfileRequest : ANetApiRequest {
///
public string customerProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerProfileResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerPaymentProfileResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerShippingAddressRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerAddressId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class deleteCustomerShippingAddressResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileTransactionRequest : ANetApiRequest {
///
public profileTransactionType transaction;
///
public string extraOptions;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createCustomerProfileTransactionResponse : ANetApiResponse {
///
public transactionResponse transactionResponse;
///
public string directResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class validateCustomerPaymentProfileRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public string customerShippingAddressId;
///
public string cardCode;
///
public validationModeEnum validationMode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class validateCustomerPaymentProfileResponse : ANetApiResponse {
///
public string directResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileIdsRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerProfileIdsResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("numericString", IsNullable=false)]
public string[] ids;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateSplitTenderGroupRequest : ANetApiRequest {
///
public string splitTenderId;
///
public splitTenderStatusEnum splitTenderStatus;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum splitTenderStatusEnum {
///
completed,
///
held,
///
voided,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateSplitTenderGroupResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionDetailsRequest : ANetApiRequest {
///
public string transId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionDetailsResponse : ANetApiResponse {
///
public transactionDetailsType transaction;
///
public string clientId;
///
public string transrefId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createTransactionRequest : ANetApiRequest {
///
public transactionRequestType transactionRequest;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class createTransactionResponse : ANetApiResponse {
///
public transactionResponse transactionResponse;
///
public createProfileResponse profileResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateHeldTransactionRequest : ANetApiRequest {
///
public heldTransactionRequestType heldTransactionRequest;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateHeldTransactionResponse : ANetApiResponse {
///
public transactionResponse transactionResponse;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getBatchStatisticsRequest : ANetApiRequest {
///
public string batchId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getBatchStatisticsResponse : ANetApiResponse {
///
public batchDetailsType batch;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getSettledBatchListRequest : ANetApiRequest {
///
public bool includeStatistics;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeStatisticsSpecified;
///
public System.DateTime firstSettlementDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool firstSettlementDateSpecified;
///
public System.DateTime lastSettlementDate;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool lastSettlementDateSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getSettledBatchListResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("batch", IsNullable=false)]
public batchDetailsType[] batchList;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionListRequest : ANetApiRequest {
///
public string batchId;
///
public TransactionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionListResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)]
public transactionSummaryType[] transactions;
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedProfilePageRequest : ANetApiRequest {
///
public string customerProfileId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)]
public settingType[] hostedProfileSettings;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedProfilePageResponse : ANetApiResponse {
///
public string token;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getUnsettledTransactionListRequest : ANetApiRequest {
///
public TransactionGroupStatusEnum status;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool statusSpecified;
///
public TransactionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum TransactionGroupStatusEnum {
///
any,
///
pendingApproval,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedPaymentPageRequest : ANetApiRequest {
///
public transactionRequestType transactionRequest;
///
[System.Xml.Serialization.XmlArrayItemAttribute("setting", IsNullable=false)]
public settingType[] hostedPaymentSettings;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getHostedPaymentPageResponse : ANetApiResponse {
///
public string token;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getUnsettledTransactionListResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("transaction", IsNullable=false)]
public transactionSummaryType[] transactions;
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceRegistrationRequest : ANetApiRequest {
///
public mobileDeviceType mobileDevice;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceRegistrationResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceLoginRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class mobileDeviceLoginResponse : ANetApiResponse {
///
public merchantContactType merchantContact;
///
[System.Xml.Serialization.XmlArrayItemAttribute("permission", IsNullable=false)]
public permissionType[] userPermissions;
///
public transRetailInfoType merchantAccount;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class logoutRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class logoutResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class sendCustomerTransactionReceiptRequest : ANetApiRequest {
///
public string transId;
///
public string customerEmail;
///
public emailSettingsType emailSettings;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class sendCustomerTransactionReceiptResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionListRequest : ANetApiRequest {
///
public ARBGetSubscriptionListSearchTypeEnum searchType;
///
public ARBGetSubscriptionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum ARBGetSubscriptionListSearchTypeEnum {
///
cardExpiringThisMonth,
///
subscriptionActive,
///
subscriptionExpiringThisMonth,
///
subscriptionInactive,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionListResponse : ANetApiResponse {
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
///
[System.Xml.Serialization.XmlArrayItemAttribute("subscriptionDetail")]
public SubscriptionDetail[] subscriptionDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class EnumCollection {
///
public customerProfileSummaryType customerProfileSummaryType;
///
public paymentSimpleType paymentSimpleType;
///
public accountTypeEnum accountTypeEnum;
///
public cardTypeEnum cardTypeEnum;
///
public FDSFilterActionEnum FDSFilterActionEnum;
///
public permissionsEnum permissionsEnum;
///
public settingNameEnum settingNameEnum;
///
public settlementStateEnum settlementStateEnum;
///
public transactionStatusEnum transactionStatusEnum;
///
public transactionTypeEnum transactionTypeEnum;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum accountTypeEnum {
///
Visa,
///
MasterCard,
///
AmericanExpress,
///
Discover,
///
JCB,
///
DinersClub,
///
eCheck,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum cardTypeEnum {
///
Visa,
///
MasterCard,
///
AmericanExpress,
///
Discover,
///
JCB,
///
DinersClub,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum FDSFilterActionEnum {
///
reject,
///
decline,
///
hold,
///
authAndHold,
///
report,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum permissionsEnum {
///
API_Merchant_BasicReporting,
///
Submit_Charge,
///
Submit_Refund,
///
Submit_Update,
///
Mobile_Admin,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum settingNameEnum {
///
emailCustomer,
///
merchantEmail,
///
allowPartialAuth,
///
headerEmailReceipt,
///
footerEmailReceipt,
///
recurringBilling,
///
duplicateWindow,
///
testRequest,
///
hostedProfileReturnUrl,
///
hostedProfileReturnUrlText,
///
hostedProfilePageBorderVisible,
///
hostedProfileIFrameCommunicatorUrl,
///
hostedProfileHeadingBgColor,
///
hostedProfileValidationMode,
///
hostedProfileBillingAddressRequired,
///
hostedProfileCardCodeRequired,
///
hostedProfileBillingAddressOptions,
///
hostedProfileManageOptions,
///
hostedPaymentIFrameCommunicatorUrl,
///
hostedPaymentButtonOptions,
///
hostedPaymentReturnOptions,
///
hostedPaymentOrderOptions,
///
hostedPaymentPaymentOptions,
///
hostedPaymentBillingAddressOptions,
///
hostedPaymentShippingAddressOptions,
///
hostedPaymentSecurityOptions,
///
hostedPaymentCustomerOptions,
///
hostedPaymentStyleOptions,
///
typeEmailReceipt,
///
hostedProfilePaymentOptions,
///
hostedProfileSaveButtonText,
///
hostedPaymentVisaCheckoutOptions,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum settlementStateEnum {
///
settledSuccessfully,
///
settlementError,
///
pendingSettlement,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum transactionStatusEnum {
///
authorizedPendingCapture,
///
capturedPendingSettlement,
///
communicationError,
///
refundSettledSuccessfully,
///
refundPendingSettlement,
///
approvedReview,
///
declined,
///
couldNotVoid,
///
expired,
///
generalError,
///
pendingFinalSettlement,
///
pendingSettlement,
///
failedReview,
///
settledSuccessfully,
///
settlementError,
///
underReview,
///
updatingSettlement,
///
voided,
///
FDSPendingReview,
///
FDSAuthorizedPendingReview,
///
returnedItem,
///
chargeback,
///
chargebackReversal,
///
authorizedPendingRelease,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum transactionTypeEnum {
///
authOnlyTransaction,
///
authCaptureTransaction,
///
captureOnlyTransaction,
///
refundTransaction,
///
priorAuthCaptureTransaction,
///
voidTransaction,
///
getDetailsTransaction,
///
authOnlyContinueTransaction,
///
authCaptureContinueTransaction,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileListRequest : ANetApiRequest {
///
public CustomerPaymentProfileSearchTypeEnum searchType;
///
public string month;
///
public CustomerPaymentProfileSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum CustomerPaymentProfileSearchTypeEnum {
///
cardsExpiringInMonth,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileListResponse : ANetApiResponse {
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlArrayItemAttribute("paymentProfile")]
public customerPaymentProfileListItemType[] paymentProfiles;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionRequest : ANetApiRequest {
///
public string subscriptionId;
///
public bool includeTransactions;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool includeTransactionsSpecified;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class ARBGetSubscriptionResponse : ANetApiResponse {
///
public ARBSubscriptionMaskedType subscription;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getTransactionListForCustomerRequest : ANetApiRequest {
///
public string customerProfileId;
///
public string customerPaymentProfileId;
///
public TransactionListSorting sorting;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobSummaryRequest : ANetApiRequest {
///
public string month;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobSummaryResponse : ANetApiResponse {
///
[System.Xml.Serialization.XmlArrayItemAttribute("auResponse", IsNullable=false)]
public auResponseType[] auSummary;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobDetailsRequest : ANetApiRequest {
///
public string month;
///
public AUJobTypeEnum modifiedTypeFilter;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool modifiedTypeFilterSpecified;
///
public Paging paging;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum AUJobTypeEnum {
///
all,
///
updates,
///
deletes,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getAUJobDetailsResponse : ANetApiResponse {
///
public int totalNumInResultSet;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool totalNumInResultSetSpecified;
///
[System.Xml.Serialization.XmlArrayItemAttribute("auDelete", typeof(auDeleteType), IsNullable=false)]
[System.Xml.Serialization.XmlArrayItemAttribute("auUpdate", typeof(auUpdateType), IsNullable=false)]
public auDetailsType[] auDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getMerchantDetailsRequest : ANetApiRequest {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getMerchantDetailsResponse : ANetApiResponse {
///
public bool isTestMode;
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool isTestModeSpecified;
///
[System.Xml.Serialization.XmlArrayItemAttribute("processor")]
public processorType[] processors;
///
public string merchantName;
///
public string gatewayId;
///
[System.Xml.Serialization.XmlArrayItemAttribute("marketType")]
public string[] marketTypes;
///
[System.Xml.Serialization.XmlArrayItemAttribute("productCode")]
public string[] productCodes;
///
[System.Xml.Serialization.XmlArrayItemAttribute("paymentMethod")]
public System.Nullable[] paymentMethods;
///
[System.Xml.Serialization.XmlArrayItemAttribute("currency")]
public string[] currencies;
///
public string publicClientKey;
///
public customerAddressType businessInformation;
///
public string merchantTimeZone;
///
[System.Xml.Serialization.XmlArrayItemAttribute("contactDetail", IsNullable=false)]
public ContactDetailType[] contactDetails;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
public enum paymentMethodsTypeEnum {
///
Visa,
///
MasterCard,
///
Discover,
///
AmericanExpress,
///
DinersClub,
///
JCB,
///
EnRoute,
///
Echeck,
///
Paypal,
///
VisaCheckout,
///
ApplePay,
///
AndroidPay,
///
GooglePay,
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateMerchantDetailsRequest : ANetApiRequest {
///
public bool isTestMode;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class updateMerchantDetailsResponse : ANetApiResponse {
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileNonceRequest : ANetApiRequest {
///
public string connectedAccessToken;
///
public string customerProfileId;
///
public string customerPaymentProfileId;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
public partial class getCustomerPaymentProfileNonceResponse : ANetApiResponse {
///
public opaqueDataType opaqueData;
}
}
================================================
FILE: Authorize.NET/Utility/AnetRandom.cs
================================================
using System;
using System.Security.Cryptography;
namespace AuthorizeNet.Utility
{
public class AnetRandom
{
private const int BufferSize = 1024; // must be a multiple of 4
private readonly byte[] randomBuffer;
private int bufferOffset;
private readonly RNGCryptoServiceProvider rngCryptoServiceProvider;
private readonly int seed;
public AnetRandom() : this(0)
{
}
public AnetRandom(int seed)
{
this.seed = seed;
randomBuffer = new byte[BufferSize];
rngCryptoServiceProvider = new RNGCryptoServiceProvider();
bufferOffset = randomBuffer.Length;
}
private void FillBuffer()
{
rngCryptoServiceProvider.GetBytes(randomBuffer);
bufferOffset = 0;
}
private int Next()
{
if (bufferOffset >= randomBuffer.Length)
{
FillBuffer();
}
// BitConverter.ToInt32 gets the next four bytes in the array and returns a 32 bit integer.
int val = BitConverter.ToInt32(randomBuffer, bufferOffset) & 0x7fffffff;
//this makes sure number is positive.
bufferOffset += sizeof(int);
return val;
}
// if seed is greater than or equal to max value, next() % maxValue is always less than seed.
// if seed is less than max value, (maxValue - seed) ensures that this method result is always less than seed.
public int Next(int maxValue)
{
return seed >= maxValue ? Next() % maxValue : Next() % (maxValue - seed) + seed;
}
public int Next(int minValue, int maxValue)
{
if (maxValue < minValue)
{
throw new ArgumentOutOfRangeException("maxValue must be greater than or equal to minValue");
}
var range = maxValue - minValue;
return minValue + Next(range);
}
}
}
================================================
FILE: Authorize.NET/Utility/ApiFields.cs
================================================
using System;
using System.Collections.Generic;
namespace AuthorizeNet
{
///
/// These are field names and explanations only
///
public class ApiFields
{
public const string CardholderAuthenticationValue = "x_cardholder_authentication_value";
public const string FooterEmailReceipt = "x_footer_email_receipt";
public const string EncapChar = "x_encap_char";
public const string HeaderEmailReceipt = "x_header_email_receipt";
public const string AuthenticationIndicator = "x_authentication_indicator";
public const string BankABACode = "x_bank_aba_code";
public const string BankAcctNum = "x_bank_acct_num";
public const string BankAcctType = "x_bank_acct_type";
public const string BankName = "x_bank_name";
public const string BankAcctName = "x_bank_acct_name";
public const string EcheckType = "x_echeck_type";
public const string BankCheckNumber = "x_bank_check_number";
public const string LineItem = "x_line_item";
public const string ShipToAddress = "x_ship_to_address";
public const string ShipToCity = "x_ship_to_city";
public const string ShipToState = "x_ship_to_state";
public const string ShipToZip = "x_ship_to_zip";
public const string ShipToCountry = "x_ship_to_country";
public const string ShipToCompany = "x_ship_to_company";
public const string ShipToFirstName = "x_ship_to_first_name";
public const string ShipToLastName = "x_ship_to_last_name";
public const string TestRequest = "x_test_request";
public const string Type = "x_type";
public const string Version = "x_version";
///
/// The merchant's unique API Login ID
///
public const string ApiLogin = "x_login";
///
/// The merchant's unique Transaction Key
///
public const string TransactionKey = "x_tran_key";
///
/// True, False
///
public const string AllowPartialAuth = "x_allow_partial_Auth";
///
/// Whether to return the data in delimited fashion
///
public const string DelimitData = "x_delim_data";
///
/// If the return from AuthorizeNet is delimited - this is the character to use. Default is pipe
///
public const string DelimitCharacter = "x_delim_char";
///
/// The relay response - leave this set as TRUE
///
public const string RelayResponse = "x_relay_response";
///
/// The solution ID of your product or integration used for better reporting
///
public const string SolutionID = "x_solution_id";
public ApiFields() {
ApiKeys = new List();
ApiKeys.Add("x_login");
ApiKeys.Add("x_tran_key");
ApiKeys.Add("x_allow_partial_Auth");
ApiKeys.Add("x_delim_data");
ApiKeys.Add("x_delim_char");
ApiKeys.Add("x_relay_response");
ApiKeys.Add("x_version");
ApiKeys.Add("x_type");
ApiKeys.Add("x_method");
ApiKeys.Add("x_recurring_billing");
ApiKeys.Add("x_amount");
ApiKeys.Add("x_card_num");
ApiKeys.Add("x_exp_date");
ApiKeys.Add("x_card_code");
ApiKeys.Add("x_card_type");
ApiKeys.Add("x_trans_id");
ApiKeys.Add("x_split_tender");
ApiKeys.Add("x_auth_code");
ApiKeys.Add("x_test_request");
ApiKeys.Add("x_duplicate_window");
ApiKeys.Add("x_invoice_num");
ApiKeys.Add("x_description");
ApiKeys.Add("x_first_name");
ApiKeys.Add("x_last_name");
ApiKeys.Add("x_company");
ApiKeys.Add("x_address");
ApiKeys.Add("x_city");
ApiKeys.Add("x_state");
ApiKeys.Add("x_zip");
ApiKeys.Add("x_country");
ApiKeys.Add("x_phone");
ApiKeys.Add("x_fax");
ApiKeys.Add("x_email");
ApiKeys.Add("x_email_customer");
ApiKeys.Add("x_merchant_email");
ApiKeys.Add("x_cust_id");
ApiKeys.Add("x_customer_ip");
ApiKeys.Add("x_ship_to_first_name");
ApiKeys.Add("x_ship_to_last_name");
ApiKeys.Add("x_ship_to_company");
ApiKeys.Add("x_ship_to_address");
ApiKeys.Add("x_ship_to_city");
ApiKeys.Add("x_ship_to_state");
ApiKeys.Add("x_ship_to_zip");
ApiKeys.Add("x_ship_to_country");
ApiKeys.Add("x_tax");
ApiKeys.Add("x_freight");
ApiKeys.Add("x_duty");
ApiKeys.Add("x_tax_exempt");
ApiKeys.Add("x_po_num");
ApiKeys.Add("x_solution_id");
}
public List ApiKeys {
get;
set;
}
///
/// Required - The merchant's transaction version
///
public const string ApiVersion = "x_version";
///
/// The type of transaction:
/// AUTH_CAPTURE (default), AUTH_ONLY, CAPTURE_ONLY, CREDIT, PRIOR_AUTH_CAPTURE, VOID
///
public const string TransactionType = "x_type";
///
/// CC or ECHECK
///
public const string Method = "x_method";
///
/// The recurring billing status
///
public const string RecurringBilling = "x_recurring_billing";
///
/// The amount of the transaction
///
public const string Amount = "x_amount";
///
/// The credit card number - between 13 and 16 digits without spaces. When x_type=CREDIT, only the last four digits are required
///
public const string CreditCardNumber = "x_card_num";
///
/// The expiration date - MMYY, MM/YY, MM-YY, MMYYYY, MM/YYYY, MM-YYYY
///
public const string CreditCardExpiration = "x_exp_date";
///
/// The three- or four-digit number on the back of a credit card (on the front for American Express).
///
public const string CreditCardCode = "x_card_code";
///
/// The credit card type or echeck in the case of echeck transactions.
///
public const string CreditCardType = "x_card_type";
///
/// The payment gateway assigned transaction ID of an original transaction - Required only for CREDIT, PRIOR_ AUTH_ CAPTURE, and VOID transactions
///
public const string TransactionID = "x_trans_id";
///
/// The payment gateway-assitned ID assigned when the original transaction includes two or more partial payments. This is the identifier that is used to group transactions that are part of a split tender order.
///
public const string SplitTenderId = "x_split_tender_id";
///
/// The authorization code of an original transaction not authorized on the payment gateway
///
public const string AuthorizationCode = "x_auth_code";
///
/// The request to process test transactions
///
public const string IsTestRequest = "x_test_request";
///
/// The window of time after the submission of a transaction that a duplicate transaction can not be submitted
///
public const string DuplicateWindowTime = "x_duplicate_window";
///
/// The merchant assigned invoice number for the transaction
///
public const string InvoiceNumber = "x_invoice_num";
///
/// The transaction description
///
public const string Description = "x_description";
public const string FirstName = "x_first_name";
public const string LastName = "x_last_name";
public const string Company = "x_company";
public const string Address = "x_address";
public const string City = "x_city";
public const string State = "x_state";
public const string Zip = "x_zip";
public const string Country = "x_country";
public const string Phone = "x_phone";
public const string Fax = "x_fax";
public const string Email = "x_email";
public const string EmailCustomer = "x_email_customer";
public const string MerchantEmail = "x_merchant_email";
///
/// The ID of the Customer as relates to your application
///
public const string CustomerID = "x_cust_id";
public const string CustomerIPAddress = "x_customer_ip";
public const string ShipFirstName = "x_ship_to_first_name";
public const string ShipLastName = "x_ship_to_last_name";
public const string ShipCompany = "x_ship_to_company";
public const string ShipAddress = "x_ship_to_address";
public const string ShipCity = "x_ship_to_city";
public const string ShipState = "x_ship_to_state";
public const string ShipZip = "x_ship_to_zip";
public const string ShipCountry = "x_ship_to_country";
public const string Tax = "x_tax";
public const string Freight = "x_freight";
public const string Duty = "x_duty";
public const string TaxExempt = "x_tax_exempt";
public const string PONumber = "x_po_num";
public bool ApiContainsKey (string key)
{
return ApiKeys.Contains (key);
}
}
}
================================================
FILE: Authorize.NET/Utility/CryptoRandom.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace AuthorizeNet
{
///
/// Source Code from MSDN article http://msdn.microsoft.com/en-us/magazine/cc163367.aspx
///
public class CryptoRandom
{
private RNGCryptoServiceProvider _rng =
new RNGCryptoServiceProvider();
private byte[] _uint32Buffer = new byte[4];
public CryptoRandom() { }
public CryptoRandom(Int32 ignoredSeed) { }
public Int32 Next()
{
_rng.GetBytes(_uint32Buffer);
return BitConverter.ToInt32(_uint32Buffer, 0) & 0x7FFFFFFF;
}
public Int32 Next(Int32 maxValue)
{
if (maxValue < 0)
throw new ArgumentOutOfRangeException("maxValue");
return Next(0, maxValue);
}
public Int32 Next(Int32 minValue, Int32 maxValue)
{
if (minValue > maxValue)
throw new ArgumentOutOfRangeException("minValue");
if (minValue == maxValue) return minValue;
Int64 diff = maxValue - minValue;
while (true)
{
_rng.GetBytes(_uint32Buffer);
UInt32 rand = BitConverter.ToUInt32(_uint32Buffer, 0);
Int64 max = (1 + (Int64)UInt32.MaxValue);
Int64 remainder = max % diff;
if (rand < max - remainder)
{
return (Int32)(minValue + (rand % diff));
}
}
}
public double NextDouble()
{
_rng.GetBytes(_uint32Buffer);
UInt32 rand = BitConverter.ToUInt32(_uint32Buffer, 0);
return rand / (1.0 + UInt32.MaxValue);
}
public void NextBytes(byte[] buffer)
{
if (buffer == null) throw new ArgumentNullException("buffer");
_rng.GetBytes(buffer);
}
}
}
================================================
FILE: AuthorizeNET.sln
================================================
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35027.167
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthorizeNET", "Authorize.NET\AuthorizeNET.csproj", "{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthorizeNETtest", "AuthorizeNETtest\AuthorizeNETtest.csproj", "{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
USELOCAL|Any CPU = USELOCAL|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}.Release|Any CPU.Build.0 = Release|Any CPU
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}.USELOCAL|Any CPU.ActiveCfg = Release|Any CPU
{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}.USELOCAL|Any CPU.Build.0 = Release|Any CPU
{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}.Release|Any CPU.Build.0 = Release|Any CPU
{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}.USELOCAL|Any CPU.ActiveCfg = Release|Any CPU
{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}.USELOCAL|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = AuthorizeNET.vsmdi
EndGlobalSection
EndGlobal
================================================
FILE: AuthorizeNET.vsmdi
================================================
================================================
FILE: AuthorizeNETtest/Api/ControllerTemplateTest.cst
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class APICONTROLLERNAMETest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockAPICONTROLLERNAMETest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new APICONTROLLERNAMERequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new APICONTROLLERNAMEResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "APICONTROLLERNAME: Details:{0}", controllerResponse.Yyyyy);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/ARBCancelSubscriptionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ARBCancelSubscriptionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockARBCancelSubscriptionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ARBCancelSubscriptionRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new ARBCancelSubscriptionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
LogHelper.info(Logger, "ARBCancelSubscription: ");
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/ARBCreateSubscriptionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ARBCreateSubscriptionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockARBCreateSubscriptionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ARBCreateSubscriptionRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
subscription = ArbSubscriptionOne,
};
var mockResponse = new ARBCreateSubscriptionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
subscriptionId = "1234",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.subscriptionId);
LogHelper.info(Logger, "ARBCreateSubscription: Details:{0}", controllerResponse.subscriptionId);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionControllerTest.cs
================================================
using AuthorizeNet.Utility;
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ARBGetSubscriptionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockARBGetSubscriptionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ARBGetSubscriptionRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
subscriptionId = "1234"
};
var customerPaymentProfileMaskedType = new customerPaymentProfileMaskedType
{
customerPaymentProfileId = "1234",
};
var rnd = new AnetRandom(DateTime.Now.Millisecond);
var SubscriptionMaskedType = new ARBSubscriptionMaskedType()
{
name = "Test",
paymentSchedule = new paymentScheduleType
{
interval = new paymentScheduleTypeInterval
{
length = 1,
unit = ARBSubscriptionUnitEnum.months,
},
startDate = DateTime.UtcNow,
totalOccurrences = 12
},
amount = 9.99M,
amountSpecified = true,
trialAmount = 100,
trialAmountSpecified = true,
status = ARBSubscriptionStatusEnum.active,
statusSpecified = true,
profile = new subscriptionCustomerProfileType()
{
paymentProfile = customerPaymentProfileMaskedType,
},
order = new orderType { description = string.Format("member monthly {0}", rnd.Next(99999)) }
};
var mockResponse = new ARBGetSubscriptionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
subscription = SubscriptionMaskedType
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.subscription);
LogHelper.info(Logger, "ARBGetSubscription: Details:{0}", controllerResponse.subscription);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionListControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ARBGetSubscriptionListTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockARBGetSubscriptionListTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ARBGetSubscriptionListRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
refId = RefId,
searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive,
paging = new Paging { limit = 100, offset = 1 },
sorting = new ARBGetSubscriptionListSorting
{
orderBy = ARBGetSubscriptionListOrderFieldEnum.id,
orderDescending = false
},
};
var subscriptionDetail = new SubscriptionDetail
{
id = 1234,
accountNumber = "1234",
amount = SetValidTransactionAmount(Counter) / 100,
};
var subscriptionDetails = new List { subscriptionDetail };
var mockResponse = new ARBGetSubscriptionListResponse
{
refId = "1234",
sessionToken = "sessiontoken",
subscriptionDetails = subscriptionDetails.ToArray(),
totalNumInResultSet = subscriptionDetails.Count,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.subscriptionDetails);
LogHelper.info(Logger, "ARBGetSubscriptionList: Count:{0}, Details:{1}", controllerResponse.totalNumInResultSet, controllerResponse.subscriptionDetails);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/ARBGetSubscriptionStatusControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ARBGetSubscriptionStatusTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockARBGetSubscriptionStatusTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ARBGetSubscriptionStatusRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new ARBGetSubscriptionStatusResponse
{
refId = "1234",
sessionToken = "sessiontoken",
status = ARBSubscriptionStatusEnum.active,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.status);
LogHelper.info(Logger, "ARBGetSubscriptionStatus: Details:{0}", controllerResponse.status);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/ARBUpdateSubscriptionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ARBUpdateSubscriptionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockARBUpdateSubscriptionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ARBUpdateSubscriptionRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new ARBUpdateSubscriptionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/authenticateTestControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class authenticateTestTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockauthenticateTestTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new authenticateTestRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new authenticateTestResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
// Assert.IsNotNull(controllerResponse.);
LogHelper.info(Logger, "authenticateTest: Details:{0}", controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createCustomerPaymentProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createCustomerPaymentProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateCustomerPaymentProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createCustomerPaymentProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new createCustomerPaymentProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
customerPaymentProfileId = "1234",
validationDirectResponse = "mockValidation",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.customerPaymentProfileId);
LogHelper.info(Logger, "createCustomerPaymentProfile: Details:{0}", controllerResponse.customerPaymentProfileId);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createCustomerProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateCustomerProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createCustomerProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new createCustomerProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
customerProfileId = "1234",
customerPaymentProfileIdList = new [] {"12345"},
customerShippingAddressIdList = new[] { "12345" },
validationDirectResponseList = new string[] {},
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.customerProfileId);
LogHelper.info(Logger, "createCustomerProfile: Details:{0}", controllerResponse.customerProfileId);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileFromTransactionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createCustomerProfileFromTransactionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateCustomerProfileFromTransactionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createCustomerProfileFromTransactionRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
transId = CounterStr,
};
var mockResponse = new createCustomerProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
customerProfileId = CounterStr,
customerPaymentProfileIdList = new [] {CounterStr},
customerShippingAddressIdList = new [] {CounterStr},
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.customerProfileId);
LogHelper.info(Logger, "createCustomerProfileFromTransaction: Details:{0}", controllerResponse.customerProfileId);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createCustomerProfileTransactionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createCustomerProfileTransactionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateCustomerProfileTransactionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createCustomerProfileTransactionRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
transaction = new profileTransactionType
{
Item = new profileTransAuthCaptureType(),
},
};
var transactionResponse = new transactionResponse()
{
accountNumber = "1234",
};
var mockResponse = new createCustomerProfileTransactionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
transactionResponse = transactionResponse,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.transactionResponse);
LogHelper.info(Logger, "createCustomerProfileTransaction: Details:{0}", controllerResponse.transactionResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createCustomerShippingAddressControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createCustomerShippingAddressTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateCustomerShippingAddressTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createCustomerShippingAddressRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new createCustomerShippingAddressResponse
{
refId = "1234",
sessionToken = "sessiontoken",
customerAddressId = "1234",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.customerAddressId);
LogHelper.info(Logger, "createCustomerShippingAddress: Details:{0}", controllerResponse.customerAddressId);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createFingerPrintControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using System.Globalization;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createFingerPrintTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateFingerPrintTest()
{
var fingerPrintSupportInformation = new fingerPrintSupportInformationType
{
amount = SetValidTransactionAmount(Counter) / 100,
currencyCode = "INR",
sequence = CounterStr,
timestamp = DateTime.UtcNow.ToString(CultureInfo.InvariantCulture),
};
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createFingerPrintRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
supportInformation = fingerPrintSupportInformation,
};
var mockResponse = new createFingerPrintResponse
{
refId = "1234",
sessionToken = "sessiontoken",
supportInformation = fingerPrintSupportInformation,
fingerPrint = new fingerPrintType
{
sequence = fingerPrintSupportInformation.sequence,
timestamp = fingerPrintSupportInformation.timestamp,
hashValue = CounterStr,
},
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.fingerPrint);
LogHelper.info(Logger, "createFingerPrint: Details:{0}", controllerResponse.fingerPrint);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
//using System;
//using System.Collections.Generic;
//using AuthorizeNet.Api.Contracts.V1;
//using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
//using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateProfileTest()
{
//createProfileRequest does not exist
/*
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createProfileRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new createProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "createProfile: Details:{0}", controllerResponse.Yyyyy);
*/
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/createTransactionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class createTransactionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockcreateTransactionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new createTransactionRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var transactionResponse = new transactionResponse()
{
accountNumber = "1234",
};
var mockResponse = new createTransactionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
transactionResponse = transactionResponse,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.transactionResponse);
LogHelper.info(Logger, "createTransaction: Details:{0}", controllerResponse.transactionResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/decryptPaymentDataControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class decryptPaymentDataTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockdecryptPaymentDataTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new decryptPaymentDataRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new decryptPaymentDataResponse
{
refId = "1234",
sessionToken = "sessiontoken",
paymentDetails = new paymentDetails() { amount = "15.50" }
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.paymentDetails);
LogHelper.info(Logger, "decryptPaymentData: PaymentDetailsAmount:{0}", controllerResponse.paymentDetails.amount);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerPaymentProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class deleteCustomerPaymentProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockdeleteCustomerPaymentProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new deleteCustomerPaymentProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new deleteCustomerPaymentProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class deleteCustomerProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockdeleteCustomerProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new deleteCustomerProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new deleteCustomerProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/deleteCustomerShippingAddressControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class deleteCustomerShippingAddressTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockdeleteCustomerShippingAddressTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new deleteCustomerShippingAddressRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new deleteCustomerShippingAddressResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getAUJobDetailsControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getAUJobDetailsTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetAUJobDetailsTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getAUJobDetailsRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getAUJobDetailsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "getAUJobDetails: Details:{0}", controllerResponse.Yyyyy);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getAUJobSummaryControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getAUJobSummaryTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetAUJobSummaryTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getAUJobSummaryRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getAUJobSummaryResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "getAUJobSummary: Details:{0}", controllerResponse.Yyyyy);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getBatchStatisticsControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getBatchStatisticsTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetBatchStatisticsTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getBatchStatisticsRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var batchDetaisType = new batchDetailsType
{
batchId = "1234",
};
var mockResponse = new getBatchStatisticsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
batch = batchDetaisType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.batch);
LogHelper.info(Logger, "getBatchStatistics: Details:{0}", controllerResponse.batch);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getCustomerPaymentProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetCustomerPaymentProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getCustomerPaymentProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var customerPaymentProfileMaskedType = new customerPaymentProfileMaskedType
{
customerPaymentProfileId = "1234",
};
var mockResponse = new getCustomerPaymentProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
paymentProfile = customerPaymentProfileMaskedType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.paymentProfile);
LogHelper.info(Logger, "getCustomerPaymentProfile: Details:{0}", controllerResponse.paymentProfile);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getCustomerPaymentProfileListControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getCustomerPaymentProfileListTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
string GetRandomString(string title)
{
return String.Format("{0}{1}", title, Counter);
}
[Test]
public void MockgetCustomerPaymentProfileListTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getCustomerPaymentProfileListRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
searchType = CustomerPaymentProfileSearchTypeEnum.cardsExpiringInMonth,
month = "2020-12"
};
var BankAccountMaskedType = new bankAccountMaskedType()
{
accountType = bankAccountTypeEnum.savings,
accountTypeSpecified = true,
routingNumber = "1234",
accountNumber = "1234",
nameOnAccount = "Test",
echeckType = echeckTypeEnum.ARC
};
var PaymentMaskedType = new paymentMaskedType()
{
Item = BankAccountMaskedType
};
var CustomerAddress = new customerAddressType
{
firstName = GetRandomString("FName"),
lastName = GetRandomString("LName"),
company = GetRandomString("Company"),
address = GetRandomString("StreetAdd"),
city = "Bellevue",
state = "WA",
zip = "98000",
country = "USA",
phoneNumber = FormatToPhone(Counter),
faxNumber = FormatToPhone(Counter + 1),
};
var paymentProfile = new customerPaymentProfileListItemType()
{
customerPaymentProfileId = 1234,
customerProfileId = 1234,
billTo = CustomerAddress,
payment = PaymentMaskedType
};
var PaymentProfiles = new List { paymentProfile };
var mockResponse = new getCustomerPaymentProfileListResponse
{
refId = "1234",
sessionToken = "sessiontoken",
totalNumInResultSet = PaymentProfiles.Count,
paymentProfiles = PaymentProfiles.ToArray()
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.totalNumInResultSet);
Assert.IsNotNull(controllerResponse.paymentProfiles);
LogHelper.info(Logger, "getCustomerPaymentProfileList: Details:{0}", controllerResponse.paymentProfiles);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getCustomerProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetCustomerProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getCustomerProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var customerProfileMaskedType = new customerProfileMaskedType
{
customerProfileId = "1234",
};
var mockResponse = new getCustomerProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
profile = customerProfileMaskedType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.profile);
LogHelper.info(Logger, "getCustomerProfile: Details:{0}", controllerResponse.profile);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getCustomerProfileIdsControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getCustomerProfileIdsTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetCustomerProfileIdsTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getCustomerProfileIdsRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getCustomerProfileIdsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
ids = new [] {"1234"},
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.ids);
LogHelper.info(Logger, "getCustomerProfileIds: Details:{0}", controllerResponse.ids);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getCustomerShippingAddressControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getCustomerShippingAddressTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetCustomerShippingAddressTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getCustomerShippingAddressRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var customerAddressExType = new customerAddressExType
{
customerAddressId = "1234",
};
var mockResponse = new getCustomerShippingAddressResponse
{
refId = "1234",
sessionToken = "sessiontoken",
address = customerAddressExType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.address);
LogHelper.info(Logger, "getCustomerShippingAddress: Details:{0}", controllerResponse.address);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getHostedPaymentPageControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getHostedPaymentPageTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetHostedPaymentPageTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getHostedPaymentPageRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getHostedPaymentPageResponse
{
refId = "1234",
sessionToken = "sessiontoken",
token = "123123"
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.token);
LogHelper.info(Logger, "getHostedPaymentPage: Details:{0}", controllerResponse.token);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getHostedProfilePageControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getHostedProfilePageTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetHostedProfilePageTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getHostedProfilePageRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getHostedProfilePageResponse
{
refId = "1234",
sessionToken = "sessiontoken",
token = "token1234",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.token);
LogHelper.info(Logger, "getHostedProfilePage: Details:{0}", controllerResponse.token);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getMerchantDetailsControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getMerchantDetailsTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetMerchantDetailsTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getMerchantDetailsRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getMerchantDetailsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
gatewayId = "41234"
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.gatewayId);
LogHelper.info(Logger, "getMerchantDetails: Details:{0}", controllerResponse.gatewayId);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getSettledBatchListControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getSettledBatchListTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetSettledBatchListTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getSettledBatchListRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var batchDetailsType = new batchDetailsType[]
{
new batchDetailsType
{
batchId = "1234",
}
};
var mockResponse = new getSettledBatchListResponse
{
refId = "1234",
sessionToken = "sessiontoken",
batchList = batchDetailsType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.batchList);
LogHelper.info(Logger, "getSettledBatchList: Details:{0}", controllerResponse.batchList);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getTransactionDetailsControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getTransactionDetailsTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetTransactionDetailsTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getTransactionDetailsRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var transactionDetailsType = new transactionDetailsType
{
AVSResponse = "avs",
};
var mockResponse = new getTransactionDetailsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
transaction = transactionDetailsType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.transaction);
LogHelper.info(Logger, "getTransactionDetails: Details:{0}", controllerResponse.transaction);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getTransactionListControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getTransactionListTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetTransactionListTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getTransactionListRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var transactionSummaryType = new transactionSummaryType[]
{
new transactionSummaryType
{
accountNumber = "1234",
}
};
var mockResponse = new getTransactionListResponse
{
refId = "1234",
sessionToken = "sessiontoken",
transactions = transactionSummaryType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.transactions);
LogHelper.info(Logger, "getTransactionList: Details:{0}", controllerResponse.transactions);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getTransactionListForCustomerControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getTransactionListForCustomerTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetTransactionListForCustomerTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getTransactionListForCustomerRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new getTransactionListForCustomerResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "getTransactionListForCustomer: Details:{0}", controllerResponse.Yyyyy);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/getUnsettledTransactionListControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class getUnsettledTransactionListTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockgetUnsettledTransactionListTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new getUnsettledTransactionListRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var transactionSummaryType = new transactionSummaryType[]
{
new transactionSummaryType
{
accountNumber = "1234",
}
};
var mockResponse = new getUnsettledTransactionListResponse
{
refId = "1234",
sessionToken = "sessiontoken",
transactions = transactionSummaryType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.transactions);
LogHelper.info(Logger, "getUnsettledTransactionList: Details:{0}", controllerResponse.transactions);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/isAliveControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class isAliveTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockisAliveTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new ANetApiRequest
{
merchantAuthentication = new merchantAuthenticationType() { name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey },
};
var mockResponse = new isAliveResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
//Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "isAlive: Details:{0}", controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/logoutControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class logoutTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MocklogoutTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new logoutRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new logoutResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
//Assert.IsNotNull(controllerResponse.);
LogHelper.info(Logger, "logout: Details:{0}", controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceLoginControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class mobileDeviceLoginTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockmobileDeviceLoginTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new mobileDeviceLoginRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var transRetailInfoType = new transRetailInfoType
{
deviceType = "android",
marketType = "marketplace",
};
var mockResponse = new mobileDeviceLoginResponse
{
refId = "1234",
sessionToken = "sessiontoken",
merchantAccount = transRetailInfoType,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.merchantAccount);
LogHelper.info(Logger, "mobileDeviceLogin: Details:{0}", controllerResponse.merchantAccount);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/mobileDeviceRegistrationControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class mobileDeviceRegistrationTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockmobileDeviceRegistrationTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new mobileDeviceRegistrationRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new mobileDeviceRegistrationResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/securePaymentContainerControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class securePaymentContainerTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MocksecurePaymentContainerTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new securePaymentContainerRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new securePaymentContainerResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/sendCustomerTransactionReceiptControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class sendCustomerTransactionReceiptTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MocksendCustomerTransactionReceiptTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new sendCustomerTransactionReceiptRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new sendCustomerTransactionReceiptResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/transactionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
//using System;
//using System.Collections.Generic;
//using AuthorizeNet.Api.Contracts.V1;
//using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
//using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class transactionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MocktransactionTest()
{
//object transactionRequest does not exist
/*
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new transactionRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new transactionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "transaction: Details:{0}", controllerResponse.Yyyyy);
*/
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/transactionResponseEmvControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class transactionResponseEmvTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MocktransactionResponseEmvTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new transactionResponseEmvRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new transactionResponseEmvResponse
{
refId = "1234",
sessionToken = "sessiontoken",
Yyyyy = Yyyy,
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.Yyyyy);
LogHelper.info(Logger, "transactionResponseEmv: Details:{0}", controllerResponse.Yyyyy);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerPaymentProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class updateCustomerPaymentProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockupdateCustomerPaymentProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new updateCustomerPaymentProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new updateCustomerPaymentProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
validationDirectResponse = "validatedResp",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.validationDirectResponse);
LogHelper.info(Logger, "updateCustomerPaymentProfile: Details:{0}", controllerResponse.validationDirectResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class updateCustomerProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockupdateCustomerProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new updateCustomerProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new updateCustomerProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/updateCustomerShippingAddressControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class updateCustomerShippingAddressTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockupdateCustomerShippingAddressTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new updateCustomerShippingAddressRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new updateCustomerShippingAddressResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/updateHeldTransactionControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class updateHeldTransactionTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockupdateHeldTransactionTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new updateHeldTransactionRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var transactionResponse = new transactionResponse()
{
accountNumber = "1234",
};
var mockResponse = new updateHeldTransactionResponse
{
refId = "1234",
sessionToken = "sessiontoken",
transactionResponse = transactionResponse
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.transactionResponse);
LogHelper.info(Logger, "updateHeldTransaction: Details:{0}", controllerResponse.transactionResponse.accountNumber);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/updateMerchantDetailsControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class updateMerchantDetailsTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockupdateMerchantDetailsTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new updateMerchantDetailsRequest
{
merchantAuthentication = new merchantAuthenticationType() {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new updateMerchantDetailsResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/updateSplitTenderGroupControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class updateSplitTenderGroupTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockupdateSplitTenderGroupTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new updateSplitTenderGroupRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new updateSplitTenderGroupResponse
{
refId = "1234",
sessionToken = "sessiontoken",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/MockTest/validateCustomerPaymentProfileControllerTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.MockTest
{
using System;
using System.Collections.Generic;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class validateCustomerPaymentProfileTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void MockvalidateCustomerPaymentProfileTest()
{
//define all mocked objects as final
var mockController = GetMockController();
var mockRequest = new validateCustomerPaymentProfileRequest
{
merchantAuthentication = new merchantAuthenticationType {name = "mocktest", Item = "mockKey", ItemElementName = ItemChoiceType.transactionKey},
};
var mockResponse = new validateCustomerPaymentProfileResponse
{
refId = "1234",
sessionToken = "sessiontoken",
directResponse = "direct",
};
var errorResponse = new ANetApiResponse();
var results = new List();
const messageTypeEnum messageTypeOk = messageTypeEnum.Ok;
SetMockControllerExpectations(
mockController.MockObject, mockRequest, mockResponse, errorResponse, results, messageTypeOk);
mockController.MockObject.Execute(AuthorizeNet.Environment.CUSTOM);
//mockController.MockObject.Execute();
// or var controllerResponse = mockController.MockObject.ExecuteWithApiResponse(AuthorizeNet.Environment.CUSTOM);
var controllerResponse = mockController.MockObject.GetApiResponse();
Assert.IsNotNull(controllerResponse);
Assert.IsNotNull(controllerResponse.directResponse);
LogHelper.info(Logger, "validateCustomerPaymentProfile: Details:{0}", controllerResponse.directResponse);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/SampleTest/ArbSubscriptionSampleTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.SampleTest
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Bases;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class ArbSubscriptionSampleTest : ApiCoreTestBase {
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp() {
base.SetUp();
}
[TearDown]
public new void TearDown() {
base.TearDown();
}
[Test]
public void SampleCodeGetSubscriptionList()
{
LogHelper.info(Logger, "Sample GetSubscriptionList");
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
//create a subscription
var createRequest = new ARBCreateSubscriptionRequest
{
refId = RefId,
subscription = ArbSubscriptionOne,
};
var createController = new ARBCreateSubscriptionController(createRequest);
createController.Execute();
var createResponse = createController.GetApiResponse();
Assert.IsNotNull(createResponse.subscriptionId);
LogHelper.info(Logger, "Created Subscription: {0}", createResponse.subscriptionId);
var subscriptionId = createResponse.subscriptionId;
//get subscription details
var getRequest = new ARBGetSubscriptionStatusRequest
{
refId = RefId,
subscriptionId = subscriptionId
};
var getController = new ARBGetSubscriptionStatusController(getRequest);
var getResponse = getController.ExecuteWithApiResponse();
Assert.IsNotNull(getResponse.status);
Logger.info(String.Format("Subscription Status: {0}", getResponse.status));
//get subscription list that contains only the subscription created above.
var listRequest = new ARBGetSubscriptionListRequest
{
refId = RefId,
searchType = ARBGetSubscriptionListSearchTypeEnum.subscriptionActive,
sorting = new ARBGetSubscriptionListSorting
{
orderDescending = true,
orderBy = ARBGetSubscriptionListOrderFieldEnum.createTimeStampUTC,
},
paging = new Paging
{
limit = 500,
offset = 1,
},
};
var listController = new ARBGetSubscriptionListController(listRequest);
var listResponse = listController.ExecuteWithApiResponse();
LogHelper.info(Logger, "Subscription Count: {0}", listResponse.totalNumInResultSet);
Assert.IsTrue(0 < listResponse.totalNumInResultSet);
//validation of list
var subscriptionsArray = listResponse.subscriptionDetails;
foreach (var aSubscription in subscriptionsArray)
{
Assert.IsTrue(0 < aSubscription.id);
LogHelper.info(Logger, "Subscription Id: {0}, Status:{1}, PaymentMethod: {2}, Amount: {3}, Account:{4}",
aSubscription.id, aSubscription.status, aSubscription.paymentMethod, aSubscription.amount, aSubscription.accountNumber);
}
//cancel subscription
var cancelRequest = new ARBCancelSubscriptionRequest
{
merchantAuthentication = CustomMerchantAuthenticationType,
refId = RefId,
subscriptionId = subscriptionId
};
var cancelController = new ARBCancelSubscriptionController(cancelRequest);
var cancelResponse = cancelController.ExecuteWithApiResponse(TestEnvironment);
Assert.IsNotNull(cancelResponse.messages);
Logger.info(String.Format("Subscription Cancelled: {0}", subscriptionId));
}
[Test]
public void ARBGetSubscriptionSampleTest()
{
LogHelper.info(Logger, "Sample GetSubscriptionList");
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
//create a subscription
var createRequest = new ARBCreateSubscriptionRequest
{
refId = RefId,
subscription = ArbSubscriptionOne,
};
var createController = new ARBCreateSubscriptionController(createRequest);
createController.Execute();
var createResponse = createController.GetApiResponse();
Assert.IsNotNull(createResponse.subscriptionId);
LogHelper.info(Logger, "Created Subscription: {0}", createResponse.subscriptionId);
var subscriptionId = createResponse.subscriptionId;
//get subscription details
var getRequest = new ARBGetSubscriptionRequest
{
refId = RefId,
subscriptionId = subscriptionId
};
var getController = new ARBGetSubscriptionController(getRequest);
var getResponse = getController.ExecuteWithApiResponse();
Assert.IsNotNull(getResponse.subscription);
Logger.info(String.Format("Subscription Name : {0}", getResponse.subscription.name));
Assert.AreEqual(ArbSubscriptionOne.name, getResponse.subscription.name);
Assert.AreEqual(ArbSubscriptionOne.amountSpecified, getResponse.subscription.amountSpecified);
//cancel subscription
var cancelRequest = new ARBCancelSubscriptionRequest
{
merchantAuthentication = CustomMerchantAuthenticationType,
refId = RefId,
subscriptionId = subscriptionId
};
var cancelController = new ARBCancelSubscriptionController(cancelRequest);
var cancelResponse = cancelController.ExecuteWithApiResponse(TestEnvironment);
Assert.IsNotNull(cancelResponse.messages);
Logger.info(String.Format("Subscription Cancelled: {0}", subscriptionId));
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs
================================================
namespace AuthorizeNet.Api.Controllers.SampleTest
{
using System;
using System.Globalization;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Bases;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class CreateCustomerProfileFromTransactionSampleTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void SampleCodeCreateCustomerProfileFromTransaction()
{
LogHelper.info(Logger, "Sample createCustomerProfileFromTransaction");
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
//setup transaction to use
var transactionId = GetTransactionId();
var createRequest = new createCustomerProfileFromTransactionRequest
{
refId = RefId,
transId = transactionId.ToString(CultureInfo.InvariantCulture),
};
//execute and get response
var createController = new createCustomerProfileFromTransactionController(createRequest);
var createResponse = createController.ExecuteWithApiResponse();
//validate
Assert.NotNull(createResponse);
Assert.NotNull(createResponse.messages);
Assert.AreEqual(messageTypeEnum.Ok, createResponse.messages.resultCode);
Assert.NotNull(createResponse.customerProfileId);
Assert.NotNull(createResponse.customerPaymentProfileIdList);
Assert.AreNotEqual(0, createResponse.customerPaymentProfileIdList.Length);
long customerProfileId;
long.TryParse(createResponse.customerProfileId, out customerProfileId);
Assert.AreNotEqual(0, customerProfileId);
long customerPaymentProfileId;
long.TryParse(createResponse.customerPaymentProfileIdList[0], out customerPaymentProfileId);
Assert.AreNotEqual(0, customerPaymentProfileId);
//if shipping profile is added, shipping profile id will be retrieved too
}
private long GetTransactionId()
{
//Creates a credit card transaction and returns the transactions ID.
//Common code to set for all requests
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
//set up data based on transaction
var transactionAmount = SetValidTransactionAmount(Counter);
var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" };
var aCustomer = new customerDataType { email = string.Format( "{0}@b.bla", Counter)};
//standard api call to retrieve response
var paymentType = new paymentType { Item = creditCard };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(),
payment = paymentType,
amount = transactionAmount,
customer = aCustomer,
};
var request = new createTransactionRequest { transactionRequest = transactionRequest };
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
//validate
Assert.NotNull(response);
Assert.NotNull(response.messages);
Assert.NotNull(response.transactionResponse);
Assert.AreEqual(messageTypeEnum.Ok, response.messages.resultCode);
Assert.False(string.IsNullOrEmpty(response.transactionResponse.transId));
long transactionId;
long.TryParse(response.transactionResponse.transId, out transactionId);
Assert.AreNotEqual(0, transactionId);
return transactionId;
}
[Test]
public void CreateTransactionFromProfile()
{
//Creates a customer profile and customer payment profile
//Then uses those profiles to create a transaction request
//Common code to set for all requests
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
Random rnd = new Random(DateTime.Now.Millisecond);
string profileRandom = rnd.Next(9999).ToString();
//Create profile to use in transaction creation
var profileShipTo = new customerAddressType
{
address = profileRandom + " First St NE",
city = "Bellevue",
state = "WA",
zip = "98007",
company = "Sample Co " + profileRandom,
country = "USA",
firstName = "Sample" + profileRandom,
lastName = "Name" + profileRandom,
phoneNumber = "425 123 4567",
};
var paymentProfile = new customerPaymentProfileType
{
billTo = profileShipTo,
customerType = customerTypeEnum.individual,
payment = new paymentType { Item = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" } },
};
var createProfileReq = new createCustomerProfileRequest
{
profile = new customerProfileType
{
description = "SampleProfile " + profileRandom,
email = "SampleEmail" + profileRandom + "@Visa.com",
shipToList = new customerAddressType[] { profileShipTo },
paymentProfiles = new customerPaymentProfileType[] { paymentProfile }
}
};
var createProfileCont = new createCustomerProfileController(createProfileReq);
createProfileCont.Execute();
var createProfileResp = createProfileCont.GetApiResponse();
//Get profile using getCustomerProfileRequest
var getCustReq = new getCustomerProfileRequest { customerProfileId = createProfileResp.customerProfileId };
var getCustCont = new getCustomerProfileController(getCustReq);
getCustCont.Execute();
var getCustResp = getCustCont.GetApiResponse();
//Create Transaction
//Create instance of customer payment profile using the profile IDs from the profile we loaded above.
var custPaymentProfile = new AuthorizeNet.Api.Contracts.V1.customerProfilePaymentType { customerProfileId = getCustResp.profile.customerProfileId, paymentProfile = new paymentProfile { paymentProfileId = getCustResp.profile.paymentProfiles[0].customerPaymentProfileId } };
var testTxn = new transactionRequestType
{
profile = custPaymentProfile,
amount = (decimal)rnd.Next(9999) / 100,
transactionType = transactionTypeEnum.authCaptureTransaction.ToString()
};
var txnControler = new createTransactionController(new createTransactionRequest { transactionRequest = testTxn });
txnControler.Execute();
var txnControlerResp = txnControler.GetApiResponse();
//verify transaction succeeded.
Assert.AreEqual("1", txnControlerResp.transactionResponse.messages[0].code);
}
}
}
================================================
FILE: AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs
================================================
using AuthorizeNet.Utility;
namespace AuthorizeNet.Api.Controllers.SampleTest
{
using System;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Bases;
using AuthorizeNet.Api.Controllers.Test;
using AuthorizeNet.Util;
using NUnit.Framework;
[TestFixture]
public class CreateTransactionSampleTest : ApiCoreTestBase
{
[TestFixtureSetUp]
public new static void SetUpBeforeClass()
{
ApiCoreTestBase.SetUpBeforeClass();
}
[TestFixtureTearDown]
public new static void TearDownAfterClass()
{
ApiCoreTestBase.TearDownAfterClass();
}
[SetUp]
public new void SetUp()
{
base.SetUp();
}
[TearDown]
public new void TearDown()
{
base.TearDown();
}
[Test]
public void SampleCodeCreateTransaction()
{
LogHelper.info(Logger, "Sample createTransaction");
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
//create a transaction
var transactionRequestType = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
amount = SetValidTransactionAmount(Counter),
payment = PaymentOne,
order = OrderType,
customer = CustomerDataOne,
billTo = CustomerAddressOne,
};
var createRequest = new createTransactionRequest
{
refId = RefId,
transactionRequest = transactionRequestType,
};
//create controller, execute request and get response
var createController = new createTransactionController(createRequest);
createController.Execute();
var createResponse = createController.GetApiResponse();
//Test response
Assert.IsNotNull(createResponse.transactionResponse);
LogHelper.info(Logger, "Response: {0}", createResponse);
DisplayResponse(createResponse, "Create Transaction Response");
LogHelper.info(Logger, "Created Transaction: {0}", createResponse.transactionResponse);
Assert.IsNotNull(createResponse.transactionResponse.transId);
long transId;
Assert.IsTrue( long.TryParse(createResponse.transactionResponse.transId, out transId));
if (0 == transId)
{
ValidateFailure(createController, createResponse);
Assert.IsNotNull(createResponse.transactionResponse.errors);
foreach (var error in createResponse.transactionResponse.errors)
{
LogHelper.info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText);
}
}
else
{
Assert.AreNotEqual(0, transId);
ValidateSuccess(createController, createResponse);
}
}
///
/// This sample demonstrates charging a profile using the CreateTransaction API method
/// See API example here http://developer.authorize.net/api/reference/#payment-transactions-charge-a-customer-profile
///
[Test]
public void SampleCodeCreateTransactionUsingProfile()
{
LogHelper.info(Logger, "Sample createTransaction using Profile");
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
// Use CIM to create the profile we're going to charge
var customerProfileId = "0";
var paymentProfileId = "0";
Assert.IsTrue(createProfile(out customerProfileId, out paymentProfileId));
//create a customer payment profile
customerProfilePaymentType profileToCharge = new customerProfilePaymentType();
profileToCharge.customerProfileId = customerProfileId;
profileToCharge.paymentProfile = new paymentProfile { paymentProfileId = paymentProfileId};
var transactionRequestType = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
amount = SetValidTransactionAmount(Counter),
profile = profileToCharge
};
var createRequest = new createTransactionRequest
{
refId = RefId,
transactionRequest = transactionRequestType,
};
//create controller, execute and get response
var createController = new createTransactionController(createRequest);
createController.Execute();
var createResponse = createController.GetApiResponse();
//test response
Assert.IsNotNull(createResponse.transactionResponse);
LogHelper.info(Logger, "Response: {0}", createResponse);
DisplayResponse(createResponse, "Create Transaction Response");
LogHelper.info(Logger, "Created Transaction: {0}", createResponse.transactionResponse);
Assert.IsNotNull(createResponse.transactionResponse.transId);
long transId;
Assert.IsTrue(long.TryParse(createResponse.transactionResponse.transId, out transId));
if (0 == transId)
{
ValidateFailure(createController, createResponse);
Assert.IsNotNull(createResponse.transactionResponse.errors);
foreach (var error in createResponse.transactionResponse.errors)
{
LogHelper.info(Logger, "Error-> Code:{0}, Text:{1}", error.errorCode, error.errorText);
}
}
else
{
Assert.AreNotEqual(0, transId);
ValidateSuccess(createController, createResponse);
}
}
//Create Customer Profile and Customer Payment Profile, returning their IDs.
private Boolean createProfile(out String customerProfileId, out String paymentProfileId)
{
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
var rnd = new AnetRandom(DateTime.Now.Millisecond);
string custIndx = rnd.Next(99999).ToString();
var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" };
var paymentType = new paymentType {Item = creditCard};
var paymentProfile = new customerPaymentProfileType{ payment = paymentType };
var createRequest = new createCustomerProfileRequest
{
profile = new customerProfileType{
merchantCustomerId = "TSTCSTER"+custIndx,
paymentProfiles = new customerPaymentProfileType[]{ paymentProfile }
}
};
//create profiles and get response
var createController = new createCustomerProfileController(createRequest);
var createResponse = createController.ExecuteWithApiResponse();
//validate response
if (messageTypeEnum.Ok != createResponse.messages.resultCode)
{
customerProfileId = "0";
paymentProfileId = "0";
return false;
}
else
{
Assert.NotNull(createResponse.customerProfileId);
Assert.NotNull(createResponse.customerPaymentProfileIdList);
Assert.AreNotEqual(0, createResponse.customerPaymentProfileIdList.Length);
customerProfileId = createResponse.customerProfileId;
paymentProfileId = createResponse.customerPaymentProfileIdList[0];
return true;
}
}
[Test]
public void SampleCodeCreateTransactionWithCreditCard()
{
//Common code to set for all requests
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase.RunEnvironment = TestEnvironment;
//set up data for transaction
var transactionAmount = SetValidTransactionAmount(Counter);
var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" };
//standard api call to retrieve response
var paymentType = new paymentType {Item = creditCard};
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(),
payment = paymentType,
amount = transactionAmount,
};
var request = new createTransactionRequest {transactionRequest = transactionRequest};
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
//validate
Assert.AreEqual("1", response.transactionResponse.messages[0].code);
}
[Test]
[Ignore("To run this test, use your ApplePay ApiLoginIdKey and TransactionKey to configure this test below.")]
public void SampleCodeCreateTransactionWithApplePay()
{
// The test setup.
ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType
{
name = "????", // your ApplyPay ApiLoginIdKey
ItemElementName = ItemChoiceType.transactionKey,
Item = "????" // your ApplyPay TransactionKey
};
ApiOperationBase.RunEnvironment = TestEnvironment;
//set up data based on transaction
var transactionAmount = SetValidTransactionAmount(Counter);
var opaqueData = new opaqueDataType
{
dataDescriptor = "COMMON.APPLE.INAPP.PAYMENT",
dataValue =
"eyJkYXRhIjoiQkRQTldTdE1tR2V3UVVXR2c0bzdFXC9qKzFjcTFUNzhxeVU4NGI2N2l0amNZSTh3UFlBT2hzaGpoWlBycWRVcjRYd1BNYmo0emNHTWR5KysxSDJWa1BPWStCT01GMjV1YjE5Y1g0bkN2a1hVVU9UakRsbEIxVGdTcjhKSFp4Z3A5ckNnc1NVZ2JCZ0tmNjBYS3V0WGY2YWpcL284WkliS25yS1E4U2gwb3VMQUtsb1VNbit2UHU0K0E3V0tycXJhdXo5SnZPUXA2dmhJcStIS2pVY1VOQ0lUUHlGaG1PRXRxK0grdzB2UmExQ0U2V2hGQk5uQ0hxenpXS2NrQlwvMG5xTFpSVFliRjBwK3Z5QmlWYVdIZWdoRVJmSHhSdGJ6cGVjelJQUHVGc2ZwSFZzNDhvUExDXC9rXC8xTU5kNDdrelwvcEhEY1JcL0R5NmFVTStsTmZvaWx5XC9RSk4rdFMzbTBIZk90SVNBUHFPbVhlbXZyNnhKQ2pDWmxDdXcwQzltWHpcL29iSHBvZnVJRVM4cjljcUdHc1VBUERwdzdnNjQybTRQendLRitIQnVZVW5lV0RCTlNEMnU2amJBRzMiLCJ2ZXJzaW9uIjoiRUNfdjEiLCJoZWFkZXIiOnsiYXBwbGljYXRpb25EYXRhIjoiOTRlZTA1OTMzNWU1ODdlNTAxY2M0YmY5MDYxM2UwODE0ZjAwYTdiMDhiYzdjNjQ4ZmQ4NjVhMmFmNmEyMmNjMiIsInRyYW5zYWN0aW9uSWQiOiJjMWNhZjVhZTcyZjAwMzlhODJiYWQ5MmI4MjgzNjM3MzRmODViZjJmOWNhZGYxOTNkMWJhZDlkZGNiNjBhNzk1IiwiZXBoZW1lcmFsUHVibGljS2V5IjoiTUlJQlN6Q0NBUU1HQnlxR1NNNDlBZ0V3Z2ZjQ0FRRXdMQVlIS29aSXpqMEJBUUloQVBcL1wvXC9cLzhBQUFBQkFBQUFBQUFBQUFBQUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL01Gc0VJUFwvXC9cL1wvOEFBQUFCQUFBQUFBQUFBQUFBQUFBQVwvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cLzhCQ0JheGpYWXFqcVQ1N1BydlZWMm1JYThaUjBHc014VHNQWTd6ancrSjlKZ1N3TVZBTVNkTmdpRzV3U1RhbVo0NFJPZEpyZUJuMzZRQkVFRWF4ZlI4dUVzUWtmNHZPYmxZNlJBOG5jRGZZRXQ2ek9nOUtFNVJkaVl3cFpQNDBMaVwvaHBcL200N242MHA4RDU0V0s4NHpWMnN4WHM3THRrQm9ONzlSOVFJaEFQXC9cL1wvXC84QUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cLys4NXZxdHB4ZWVoUE81eXNMOFl5VlJBZ0VCQTBJQUJHbStnc2wwUFpGVFwva0RkVVNreHd5Zm84SnB3VFFRekJtOWxKSm5tVGw0REdVdkFENEdzZUdqXC9wc2hCWjBLM1RldXFEdFwvdERMYkUrOFwvbTB5Q21veHc9IiwicHVibGljS2V5SGFzaCI6IlwvYmI5Q05DMzZ1QmhlSEZQYm1vaEI3T28xT3NYMkora0pxdjQ4ek9WVmlRPSJ9LCJzaWduYXR1cmUiOiJNSUlEUWdZSktvWklodmNOQVFjQ29JSURNekNDQXk4Q0FRRXhDekFKQmdVckRnTUNHZ1VBTUFzR0NTcUdTSWIzRFFFSEFhQ0NBaXN3Z2dJbk1JSUJsS0FEQWdFQ0FoQmNsK1BmMytVNHBrMTNuVkQ5bndRUU1Ba0dCU3NPQXdJZEJRQXdKekVsTUNNR0ExVUVBeDRjQUdNQWFBQnRBR0VBYVFCQUFIWUFhUUJ6QUdFQUxnQmpBRzhBYlRBZUZ3MHhOREF4TURFd05qQXdNREJhRncweU5EQXhNREV3TmpBd01EQmFNQ2N4SlRBakJnTlZCQU1lSEFCakFHZ0FiUUJoQUdrQVFBQjJBR2tBY3dCaEFDNEFZd0J2QUcwd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFOQzgra2d0Z212V0YxT3pqZ0ROcmpURUJSdW9cLzVNS3ZsTTE0NnBBZjdHeDQxYmxFOXc0ZklYSkFEN0ZmTzdRS2pJWFlOdDM5ckx5eTd4RHdiXC81SWtaTTYwVFoyaUkxcGo1NVVjOGZkNGZ6T3BrM2Z0WmFRR1hOTFlwdEcxZDlWN0lTODJPdXA5TU1vMUJQVnJYVFBITmNzTTk5RVBVblBxZGJlR2M4N20wckFnTUJBQUdqWERCYU1GZ0dBMVVkQVFSUk1FK0FFSFpXUHJXdEpkN1laNDMxaENnN1lGU2hLVEFuTVNVd0l3WURWUVFESGh3QVl3Qm9BRzBBWVFCcEFFQUFkZ0JwQUhNQVlRQXVBR01BYndCdGdoQmNsK1BmMytVNHBrMTNuVkQ5bndRUU1Ba0dCU3NPQXdJZEJRQURnWUVBYlVLWUNrdUlLUzlRUTJtRmNNWVJFSW0ybCtYZzhcL0pYditHQlZRSmtPS29zY1k0aU5ERkFcL2JRbG9nZjlMTFU4NFRId05SbnN2VjNQcnY3UlRZODFncTBkdEM4elljQWFBa0NISUkzeXFNbko0QU91NkVPVzlrSmsyMzJnU0U3V2xDdEhiZkxTS2Z1U2dRWDhLWFFZdVpMazJScjYzTjhBcFhzWHdCTDNjSjB4Z2VBd2dkMENBUUV3T3pBbk1TVXdJd1lEVlFRREhod0FZd0JvQUcwQVlRQnBBRUFBZGdCcEFITUFZUUF1QUdNQWJ3QnRBaEJjbCtQZjMrVTRwazEzblZEOW53UVFNQWtHQlNzT0F3SWFCUUF3RFFZSktvWklodmNOQVFFQkJRQUVnWUJhSzNFbE9zdGJIOFdvb3NlREFCZitKZ1wvMTI5SmNJYXdtN2M2VnhuN1phc05iQXEzdEF0OFB0eSt1UUNnc3NYcVprTEE3a3oyR3pNb2xOdHY5d1ltdTlVandhcjFQSFlTK0JcL29Hbm96NTkxd2phZ1hXUnowbk1vNXkzTzFLelgwZDhDUkhBVmE4OFNyVjFhNUpJaVJldjNvU3RJcXd2NXh1WmxkYWc2VHI4dz09In0="
};
//standard api call to retrieve response
var paymentType = new paymentType { Item = opaqueData };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
payment = paymentType,
amount = transactionAmount,
};
var request = new createTransactionRequest { transactionRequest = transactionRequest };
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
//validate
Assert.AreEqual("1", response.transactionResponse.messages[0].code);
}
[Test]
[Ignore("To run this test, use dataKey, dataValue, callId details and Merchant ApiLoginIdKey and TransactionKey to configure this test below.")]
public void SampleCodeCreateTransactionWithVisaCheckOut()
{
// The test setup.
ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType()
{
name = "5KP3u95bQpv",
ItemElementName = ItemChoiceType.transactionKey,
Item = "346HZ32z3fP4hTG2",
};
ApiOperationBase.RunEnvironment = TestEnvironment;
//set up data based on transaction
var transactionAmount = SetValidTransactionAmount(Counter);
var opaqueDataType = new opaqueDataType
{
dataDescriptor = "COMMON.VCO.ONLINE.PAYMENT",
dataKey = "NQzcMISSxLX789w+CGX+tXi3lKntO1dpZbZaREOUprVRByJkg1xnpc2Wx9aT5/BLOxQmHqmIsjjy+tF6HqKKGwovvXjIS3fE3y3tBRNbz8D7y6vYMup+AWbEvZqDEBSi",
dataValue = "+6hn53rUcggeZZti2IdBp3qNLa9ohAH87cFSc1BggZFNEpsrfdJbRViWwv/JbCNkHkOD6CpFlRO3gCDH2VEQTd8laqWR1ccHiZpdYDnOxfhUQpU9E18ZByW7j17puVWogh7HaItbDUL0YvIxxfClX9bohurOo1JHyUgBO9YxTj3CLY2RdRkjmipAQqOyxiGX9enFQjAHdPgKj2RxnVMYe8on5ei94zbtYUbI3fXrp3I+DJcZCGZ4SzrlnPAPpcn20qaIoaOTX/xuD+voRAUKb/KE5oy+CuSNBtyMBgrvWU0Lf3SLjGfE/FJx3Bh9/LABCwWBYQvtpo3DQkDItp8P5/3EOz7JwBFbFd9UQs8wm/J8YvJMd3Kf4MkQ1+KYyg17RH6OAcoNaqQxT3MjOSvVv3KAlKV82ZDco+IRTVPcjyVd/Vff0qDIqes08fPCQDhttefl/bh18urrmCnM9PcP7xJ0A8Ek7LRMLF19c81O7IIaEn0FXxq+UuV5oZArY+mE4GD08xizyd0hoW9pvsdZ7RkuPu4yK1yXPTAKbc3vTxrj0kamFWd4kRHapwLxcvawIQzrlQGQj5AUFkpEg1o1UGWz0vtGgqE08hplJehsTZwPw9KSaA+u5M79gXM3uLR8g2RlE5cEDRLy3aEv0ufeag+lt8zME9wzrfTK8zhjTdBGIAJqSUYto1JbiW9IEMJgjLaqEJhwO49pNlUgOJVp7BXO9JoHPM8PyS+vZlOCX6b0bip/+mCEok09L9B0IhnLjs95Q4kDZfCcQNfDIdLEPe5tLp8eGaSkK3HDoQFbZKCFyGmUTEEF19PScZURbYuGrwpxHqqAAhU87ZmdhRRdJbMTrWPhIvk9/kRzRIP2ciKu8ClNZIJ9azafIUBo7WdlYs+6QbLCn8UCNvYczrLXo3tGhVvHPheWWgmuxDYbHDyJu7SIPKgVvi6LrPYgg8g+I0pMWPojWmBdp85tMt+sQrWk2x325/pOrYXj8fc2W8PHtOAka1EltTdZiNsRKzA8orzLQrtvqtxhzgXMSTOEmosEAxA7DuQdKscL2BWWmiYsAOCNYQxtm/nR6PBAKZ5PDS6Wjk73hKTOeB6kA5E/H1ij15iJqNK6O1+4b4gpJHnHm7tccVQIK5w1EeLR1waqO2G4FMM5FoyA1WsSEQURQncDek0bK1ohcu73l5FLiq8he/H6gF3dEsKL6Z367ki59HKwnnJXfWj/WOUZxTbIho4H5i/lIcc0vSgFH84ReTjjiANEm+ccl5PcFV9wEVlbGXiOiJfeZ0mEzo9ghDyKEAGEDzZtHDwZzKEYyT92oFXkeewGQ6DJX7GSQPZ1MW17jAQODAqmzJcmwMunc7PwGvJcscRbxkXpGe7/asq2H4POz3ByBrBQHCl/+oUVtw8hEbavCpuEgXfWl09Sc3Dfg69UP8XBR80vWsP1YL8YtBxOmL2hinZc5SJZ4boulAOHiMQyKBwwkg2D1gJDEY9JzUJtbg3p06swB0UthNmVuo/1mV8047sB5QrjGCugEo87+vh9eV1EVvyLZLRFS+RIZoIpLR3UkO6Pe1s7MnO7ZvCsbz9sKNb0GtQPoFtU9b7KaCHgQ20vL7xjqTEmR2QwkHEriuGJ8a7oMdSd88w/e2InL1SfHCnS2JeWY9vY6RSTvmjkEf3BFGhHjFP5QRR3Bd8AVH/1YrFcxtSSJP5GeY3CVnJgjZToK+ngxsRzpDcEm6pz3RPUEIBNkk3c9plpdlMbyvuVVKXLSFdTdtAALRfiD9qhdpgGMqboZ0kXi+qn3irYXT19q8oQktoZ4ILkbzewloftLbfUTqQprA8cddy7/ikUKKhBoBVs/DAupRe9aRP3TLgIEz6eNNilZszXoFfUv9EgqOZ0EBb83KNV3HvbE2xGJcTArjRpmzszQQkNOpJnyRDtvPj7FU7K16UYQ9zQBrxnx5vnoWSaqNhzOxikd+hWZ6i5G7EPpCO+utdoMdyOTOoDAjBmiy5JsDHSVv4zvkT9ySYPH2PmS47mMEpZICKTAxuDrm3zTpT064P+7ivcGmaIyaBCkc4udIHaWSbi5XJ/ciXUxSqAtqaVcd5HD++6vjBzKhbAPU4shSBav6qCSp/XqFurEAJbkLB3VmXe7bghcM+VNPJHHiYlIdzndDaFENyaZCukypggK0Gf4cH+8CKI9YnQx9s4JMs4lX57i4IkkoJE7fjWaOHyxYM/AiKvWlMQtRO8Y5Yta454JfHVq7Mg11Wqu2Ex4q5QLNqKudVt3wveu3G1zoNFanW6i+d0Aa3hTdxerl9BacX/"
};
//standard api call to retrieve response
var paymentType = new paymentType { Item = opaqueDataType };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
payment = paymentType,
amount = transactionAmount,
callId = "1482912778237697701"
};
var request = new createTransactionRequest { transactionRequest = transactionRequest };
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
//validate
Assert.AreEqual("1", response.transactionResponse.messages[0].code);
}
[Test]
public void SampleCodeCreateTransactionWithPayPal()
{
/*
* Please enable the PayPal feature of your ANet merchant account.
*/
//Common code to set for all requests
ApiOperationBase.MerchantAuthentication = CustomMerchantAuthenticationType;
ApiOperationBase