Skip to content

Commit a1caeef

Browse files
author
Sunny Raj Rathod
authored
Merge pull request AuthorizeNet#207 from AuthorizeNet/master
Sync with master
2 parents fe680d1 + c5c788a commit a1caeef

23 files changed

+448
-328
lines changed

Authorize.NET/Api/Contracts/V1/AnetApiSchema.generated.cs

Lines changed: 75 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool.
4-
// Runtime Version:2.0.50727.8662
4+
// Runtime Version:2.0.50727.8689
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -237,33 +237,6 @@ protected void RaisePropertyChanged(string propertyName) {
237237
}
238238
}
239239

240-
/// <remarks/>
241-
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
242-
[System.SerializableAttribute()]
243-
[System.Diagnostics.DebuggerStepThroughAttribute()]
244-
[System.ComponentModel.DesignerCategoryAttribute("code")]
245-
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
246-
public partial class customerProfileIdType : object, System.ComponentModel.INotifyPropertyChanged {
247-
248-
/// <remarks/>
249-
public string customerProfileId;
250-
251-
/// <remarks/>
252-
public string customerPaymentProfileId;
253-
254-
/// <remarks/>
255-
public string customerAddressId;
256-
257-
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
258-
259-
protected void RaisePropertyChanged(string propertyName) {
260-
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
261-
if ((propertyChanged != null)) {
262-
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
263-
}
264-
}
265-
}
266-
267240
/// <remarks/>
268241
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
269242
[System.SerializableAttribute()]
@@ -1018,6 +991,9 @@ public partial class transactionResponse : object, System.ComponentModel.INotify
1018991
/// <remarks/>
1019992
public string transHashSha2;
1020993

994+
/// <remarks/>
995+
public customerProfileIdType profile;
996+
1021997
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1022998

1023999
protected void RaisePropertyChanged(string propertyName) {
@@ -1251,6 +1227,33 @@ protected void RaisePropertyChanged(string propertyName) {
12511227
}
12521228
}
12531229

1230+
/// <remarks/>
1231+
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
1232+
[System.SerializableAttribute()]
1233+
[System.Diagnostics.DebuggerStepThroughAttribute()]
1234+
[System.ComponentModel.DesignerCategoryAttribute("code")]
1235+
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
1236+
public partial class customerProfileIdType : object, System.ComponentModel.INotifyPropertyChanged {
1237+
1238+
/// <remarks/>
1239+
public string customerProfileId;
1240+
1241+
/// <remarks/>
1242+
public string customerPaymentProfileId;
1243+
1244+
/// <remarks/>
1245+
public string customerAddressId;
1246+
1247+
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1248+
1249+
protected void RaisePropertyChanged(string propertyName) {
1250+
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
1251+
if ((propertyChanged != null)) {
1252+
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1253+
}
1254+
}
1255+
}
1256+
12541257
/// <remarks/>
12551258
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
12561259
[System.SerializableAttribute()]
@@ -1438,6 +1441,9 @@ public partial class transactionDetailsType : object, System.ComponentModel.INot
14381441
[System.Xml.Serialization.XmlArrayItemAttribute("tag", IsNullable=false)]
14391442
public transactionDetailsTypeTag[] emvDetails;
14401443

1444+
/// <remarks/>
1445+
public customerProfileIdType profile;
1446+
14411447
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
14421448

14431449
protected void RaisePropertyChanged(string propertyName) {
@@ -3510,6 +3516,9 @@ public partial class transactionSummaryType : object, System.ComponentModel.INot
35103516
/// <remarks/>
35113517
public fraudInformationType fraudInformation;
35123518

3519+
/// <remarks/>
3520+
public customerProfileIdType profile;
3521+
35133522
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
35143523

35153524
protected void RaisePropertyChanged(string propertyName) {
@@ -3766,6 +3775,7 @@ public partial class merchantAuthenticationType : object, System.ComponentModel.
37663775
public string name;
37673776

37683777
/// <remarks/>
3778+
[System.Xml.Serialization.XmlElementAttribute("accessToken", typeof(string))]
37693779
[System.Xml.Serialization.XmlElementAttribute("clientKey", typeof(string))]
37703780
[System.Xml.Serialization.XmlElementAttribute("fingerPrint", typeof(fingerPrintType))]
37713781
[System.Xml.Serialization.XmlElementAttribute("impersonationAuthentication", typeof(impersonationAuthenticationType))]
@@ -3798,6 +3808,9 @@ protected void RaisePropertyChanged(string propertyName) {
37983808
[System.Xml.Serialization.XmlTypeAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IncludeInSchema=false)]
37993809
public enum ItemChoiceType {
38003810

3811+
/// <remarks/>
3812+
accessToken,
3813+
38013814
/// <remarks/>
38023815
clientKey,
38033816

@@ -4273,6 +4286,12 @@ public partial class getCustomerProfileRequest : ANetApiRequest {
42734286
/// <remarks/>
42744287
public string customerProfileId;
42754288

4289+
/// <remarks/>
4290+
public string merchantCustomerId;
4291+
4292+
/// <remarks/>
4293+
public string email;
4294+
42764295
/// <remarks/>
42774296
public bool unmaskExpirationDate;
42784297

@@ -4701,6 +4720,12 @@ public partial class getTransactionDetailsResponse : ANetApiResponse {
47014720

47024721
/// <remarks/>
47034722
public transactionDetailsType transaction;
4723+
4724+
/// <remarks/>
4725+
public string clientId;
4726+
4727+
/// <remarks/>
4728+
public string transrefId;
47044729
}
47054730

47064731
/// <remarks/>
@@ -5588,6 +5613,28 @@ public partial class ARBGetSubscriptionResponse : ANetApiResponse {
55885613
public ARBSubscriptionMaskedType subscription;
55895614
}
55905615

5616+
/// <remarks/>
5617+
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
5618+
[System.SerializableAttribute()]
5619+
[System.Diagnostics.DebuggerStepThroughAttribute()]
5620+
[System.ComponentModel.DesignerCategoryAttribute("code")]
5621+
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
5622+
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
5623+
public partial class getTransactionListForCustomerRequest : ANetApiRequest {
5624+
5625+
/// <remarks/>
5626+
public string customerProfileId;
5627+
5628+
/// <remarks/>
5629+
public string customerPaymentProfileId;
5630+
5631+
/// <remarks/>
5632+
public TransactionListSorting sorting;
5633+
5634+
/// <remarks/>
5635+
public Paging paging;
5636+
}
5637+
55915638
/// <remarks/>
55925639
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
55935640
[System.SerializableAttribute()]

Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public static void transactionSummaryType(transactionSummaryType argument)
175175
subscriptionPaymentType(argument.subscription);
176176
if (argument.hasReturnedItems) { argument.hasReturnedItemsSpecified = true; }
177177
fraudInformationType(argument.fraudInformation);
178+
customerProfileIdType(argument.profile);
178179
}
179180
}
180181
public static void subscriptionPaymentType(subscriptionPaymentType argument)
@@ -517,7 +518,8 @@ public static void transactionDetailsType(transactionDetailsType argument)
517518
solutionType(argument.solution);
518519

519520
if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value);} }
520-
521+
522+
customerProfileIdType(argument.profile);
521523
}
522524
}
523525
public static void paymentMaskedType(paymentMaskedType argument)
@@ -574,6 +576,7 @@ public static void transactionResponse(transactionResponse argument)
574576
nameAndAddressType(argument.shipTo);
575577
transactionResponseSecureAcceptance(argument.secureAcceptance);
576578
transactionResponseEmvResponse(argument.emvResponse);
579+
customerProfileIdType(argument.profile);
577580
}
578581
}
579582

@@ -1505,6 +1508,14 @@ public static void getMerchantDetailsResponse(getMerchantDetailsResponse argumen
15051508
}
15061509
}
15071510

1511+
public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument)
1512+
{
1513+
if(null != argument)
1514+
{
1515+
TransactionListSorting(argument.sorting);
1516+
Paging(argument.paging);
1517+
}
1518+
}
15081519
}
15091520

15101521

Authorize.NET/Api/Contracts/V1/RequestFactoryWithSpecified.generated.org

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ namespace AuthorizeNet.Api.Contracts.V1
8383
long(argument.profileCount);
8484
}
8585
}
86-
public static void customerProfileIdType(customerProfileIdType argument)
87-
{
88-
if(null != argument)
89-
{
90-
}
91-
}
9286
public static void customerPaymentProfileListItemType(customerPaymentProfileListItemType argument)
9387
{
9488
if(null != argument)
@@ -219,6 +213,7 @@ namespace AuthorizeNet.Api.Contracts.V1
219213
nameAndAddressType(argument.shipTo);
220214
transactionResponseSecureAcceptance(argument.secureAcceptance);
221215
transactionResponseEmvResponse(argument.emvResponse);
216+
customerProfileIdType(argument.profile);
222217
}
223218
}
224219
public static void transactionResponsePrePaidCard(transactionResponsePrePaidCard argument)
@@ -270,6 +265,12 @@ namespace AuthorizeNet.Api.Contracts.V1
270265
{
271266
}
272267
}
268+
public static void customerProfileIdType(customerProfileIdType argument)
269+
{
270+
if(null != argument)
271+
{
272+
}
273+
}
273274
public static void returnedItemType(returnedItemType argument)
274275
{
275276
if(null != argument)
@@ -299,6 +300,7 @@ namespace AuthorizeNet.Api.Contracts.V1
299300
if(null != argument.returnedItems){ foreach( var value in argument.returnedItems) { returnedItemType(value);} }
300301
solutionType(argument.solution);
301302
if(null != argument.emvDetails){ foreach( var value in argument.emvDetails) { transactionDetailsTypeTag(value);} }
303+
customerProfileIdType(argument.profile);
302304
}
303305
}
304306
public static void subscriptionPaymentType(subscriptionPaymentType argument)
@@ -812,6 +814,7 @@ transRetailInfoType() {
812814
subscriptionPaymentType(argument.subscription);
813815
if(argument.hasReturnedItems) { argument.hasReturnedItemsSpecified=true;}
814816
fraudInformationType(argument.fraudInformation);
817+
customerProfileIdType(argument.profile);
815818
}
816819
}
817820
public static void ARBSubscriptionType(ARBSubscriptionType argument)
@@ -1439,6 +1442,14 @@ transRetailInfoType() {
14391442
ARBSubscriptionMaskedType(argument.subscription);
14401443
}
14411444
}
1445+
public static void getTransactionListForCustomerRequest(getTransactionListForCustomerRequest argument)
1446+
{
1447+
if(null != argument)
1448+
{
1449+
TransactionListSorting(argument.sorting);
1450+
Paging(argument.paging);
1451+
}
1452+
}
14421453
public static void getAUJobSummaryRequest(getAUJobSummaryRequest argument)
14431454
{
14441455
if(null != argument)

Authorize.NET/Api/Controllers/getAUJobDetailsController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ override protected void ValidateRequest() {
2323
protected override void BeforeExecute()
2424
{
2525
var request = GetApiRequest();
26-
RequestFactoryWithSpecified.getAUJobDetailsType(request);
2726
}
2827
}
2928
#pragma warning restore 1591

Authorize.NET/Api/Controllers/getAUJobSummaryController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ override protected void ValidateRequest() {
2323
protected override void BeforeExecute()
2424
{
2525
var request = GetApiRequest();
26-
RequestFactoryWithSpecified.getAUJobSummaryType(request);
2726
}
2827
}
2928
#pragma warning restore 1591
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
namespace AuthorizeNet.Api.Controllers
2+
{
3+
using System;
4+
using AuthorizeNet.Api.Contracts.V1;
5+
using AuthorizeNet.Api.Controllers.Bases;
6+
7+
#pragma warning disable 1591
8+
public class getTransactionListForCustomerController : ApiOperationBase<getTransactionListForCustomerRequest, getTransactionListResponse> {
9+
10+
public getTransactionListForCustomerController(getTransactionListForCustomerRequest apiRequest) : base(apiRequest) {
11+
}
12+
13+
override protected void ValidateRequest() {
14+
var request = GetApiRequest();
15+
16+
//validate required fields
17+
//if ( 0 == request.SearchType) throw new ArgumentException( "SearchType cannot be null");
18+
//if ( null == request.Paging) throw new ArgumentException("Paging cannot be null");
19+
20+
//validate not-required fields
21+
}
22+
23+
protected override void BeforeExecute()
24+
{
25+
var request = GetApiRequest();
26+
RequestFactoryWithSpecified.getTransactionListForCustomerRequest(request);
27+
}
28+
}
29+
#pragma warning restore 1591
30+
}

Authorize.NET/AuthorizeNET.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>AuthorizeNet</RootNamespace>
1212
<AssemblyName>AuthorizeNet</AssemblyName>
13-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<TargetFrameworkProfile />
1616
<FileUpgradeFlags>
@@ -30,6 +30,7 @@
3030
<WarningLevel>4</WarningLevel>
3131
<DocumentationFile>bin/Debug/AuthorizeNet.XML</DocumentationFile>
3232
<NoWarn>0219,1591,1635</NoWarn>
33+
<Prefer32Bit>false</Prefer32Bit>
3334
</PropertyGroup>
3435
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3536
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -40,6 +41,7 @@
4041
<ErrorReport>prompt</ErrorReport>
4142
<WarningLevel>4</WarningLevel>
4243
<DocumentationFile>bin/Release/AuthorizeNet.XML</DocumentationFile>
44+
<Prefer32Bit>false</Prefer32Bit>
4345
</PropertyGroup>
4446
<ItemGroup>
4547
<Reference Include="System" />
@@ -73,6 +75,8 @@
7375
<Compile Include="Api\Controllers\deleteCustomerPaymentProfileController.cs" />
7476
<Compile Include="Api\Controllers\deleteCustomerProfileController.cs" />
7577
<Compile Include="Api\Controllers\deleteCustomerShippingAddressController.cs" />
78+
<Compile Include="Api\Controllers\getAUJobDetailsController.cs" />
79+
<Compile Include="Api\Controllers\getAUJobSummaryController.cs" />
7680
<Compile Include="Api\Controllers\getBatchStatisticsController.cs" />
7781
<Compile Include="Api\Controllers\getCustomerPaymentProfileController.cs" />
7882
<Compile Include="Api\Controllers\getCustomerPaymentProfileListController.cs" />
@@ -85,6 +89,7 @@
8589
<Compile Include="Api\Controllers\getSettledBatchListController.cs" />
8690
<Compile Include="Api\Controllers\getTransactionDetailsController.cs" />
8791
<Compile Include="Api\Controllers\getTransactionListController.cs" />
92+
<Compile Include="Api\Controllers\getTransactionListForCustomerController.cs" />
8893
<Compile Include="Api\Controllers\getUnsettledTransactionListController.cs" />
8994
<Compile Include="Api\Controllers\isAliveController.cs" />
9095
<Compile Include="Api\Controllers\logoutController.cs" />

0 commit comments

Comments
 (0)