Skip to content

Commit 03afecf

Browse files
author
Sunny Raj Rathod
authored
Merge pull request AuthorizeNet#174 from vijayabraj/master
SDK updates
2 parents 6e19c04 + b6223ec commit 03afecf

File tree

8 files changed

+266
-56
lines changed

8 files changed

+266
-56
lines changed

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

Lines changed: 71 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) {
@@ -4273,6 +4282,12 @@ public partial class getCustomerProfileRequest : ANetApiRequest {
42734282
/// <remarks/>
42744283
public string customerProfileId;
42754284

4285+
/// <remarks/>
4286+
public string merchantCustomerId;
4287+
4288+
/// <remarks/>
4289+
public string email;
4290+
42764291
/// <remarks/>
42774292
public bool unmaskExpirationDate;
42784293

@@ -4701,6 +4716,12 @@ public partial class getTransactionDetailsResponse : ANetApiResponse {
47014716

47024717
/// <remarks/>
47034718
public transactionDetailsType transaction;
4719+
4720+
/// <remarks/>
4721+
public string clientId;
4722+
4723+
/// <remarks/>
4724+
public string transrefId;
47044725
}
47054726

47064727
/// <remarks/>
@@ -5588,6 +5609,28 @@ public partial class ARBGetSubscriptionResponse : ANetApiResponse {
55885609
public ARBSubscriptionMaskedType subscription;
55895610
}
55905611

5612+
/// <remarks/>
5613+
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
5614+
[System.SerializableAttribute()]
5615+
[System.Diagnostics.DebuggerStepThroughAttribute()]
5616+
[System.ComponentModel.DesignerCategoryAttribute("code")]
5617+
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd")]
5618+
[System.Xml.Serialization.XmlRootAttribute(Namespace="AnetApi/xml/v1/schema/AnetApiSchema.xsd", IsNullable=false)]
5619+
public partial class getTransactionListForCustomerRequest : ANetApiRequest {
5620+
5621+
/// <remarks/>
5622+
public string customerProfileId;
5623+
5624+
/// <remarks/>
5625+
public string customerPaymentProfileId;
5626+
5627+
/// <remarks/>
5628+
public TransactionListSorting sorting;
5629+
5630+
/// <remarks/>
5631+
public Paging paging;
5632+
}
5633+
55915634
/// <remarks/>
55925635
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
55935636
[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)
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<Compile Include="Api\Controllers\getSettledBatchListController.cs" />
8686
<Compile Include="Api\Controllers\getTransactionDetailsController.cs" />
8787
<Compile Include="Api\Controllers\getTransactionListController.cs" />
88+
<Compile Include="Api\Controllers\getTransactionListForCustomerController.cs" />
8889
<Compile Include="Api\Controllers\getUnsettledTransactionListController.cs" />
8990
<Compile Include="Api\Controllers\isAliveController.cs" />
9091
<Compile Include="Api\Controllers\logoutController.cs" />

0 commit comments

Comments
 (0)