Skip to content

Commit 0743313

Browse files
committed
Merge pull request AuthorizeNet#23 from ramittal/vNext
Merge pull request that includes SDK refactoring + support for latest API release Includes ArbGetSubscriptionList
2 parents 94bf1ef + 9591eb6 commit 0743313

File tree

234 files changed

+28121
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+28121
-21
lines changed

resources/ControllerTemplate.javat

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package net.authorize.api.controller;
2+
3+
import net.authorize.api.contract.v1.APICONTROLLERNAMERequest;
4+
import net.authorize.api.contract.v1.APICONTROLLERNAMEResponse;
5+
import net.authorize.api.contract.v1.ValidationModeEnum;
6+
import net.authorize.api.controller.base.ApiOperationBase;
7+
8+
public class APICONTROLLERNAMEController extends ApiOperationBase<APICONTROLLERNAMERequest, APICONTROLLERNAMEResponse> {
9+
10+
public APICONTROLLERNAMEController(APICONTROLLERNAMERequest apiRequest) {
11+
super(apiRequest);
12+
}
13+
14+
@Override
15+
protected void validateRequest() {
16+
APICONTROLLERNAMERequest request = this.getApiRequest();
17+
18+
//validate required fields
19+
if ( null == request.getXXX) throw new NullPointerException("XXX cannot be null");
20+
21+
//validate not-required fields
22+
//creditCardOne.setCardCode("");
23+
}
24+
25+
@Override
26+
protected Class<APICONTROLLERNAMEResponse> getResponseType() {
27+
return APICONTROLLERNAMEResponse.class;
28+
}
29+
}

src/main/java/net/authorize/Environment.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@
3333
* transactions, submit a $0.00 value instead, if the processor accepts it.
3434
*/
3535
public enum Environment {
36-
SANDBOX("https://test.authorize.net","https://apitest.authorize.net","https://test.authorize.net"),
37-
SANDBOX_TESTMODE("https://test.authorize.net","https://apitest.authorize.net","https://test.authorize.net"),
36+
SANDBOX("https://sandbox.authorize.net","https://apitest.authorize.net","https://sandbox.authorize.net"),
37+
SANDBOX_TESTMODE("https://sandbox.authorize.net","https://apitest.authorize.net","https://sandbox.authorize.net"),
3838
PRODUCTION("https://secure.authorize.net","https://api.authorize.net","https://cardpresent.authorize.net"),
3939
PRODUCTION_TESTMODE("https://secure.authorize.net","https://api.authorize.net","https://cardpresent.authorize.net"),
40+
LOCAL_VM("http://WW725RAMITTAL1","http://WW725RAMITTAL1/xml/v1/request.api","http://WW725RAMITTAL1/xml/v1/request.api"),
41+
HOSTED_VM("http://WW758AKALGI02.qa.intra","http://WW758AKALGI02.qa.intra/xml/v1/request.api","http://WW758AKALGI02.qa.intra/xml/v1/request.api"),
4042
CUSTOM(null,null,null);
43+
//http://ww725ramittal1.qa.intra/xml/v1/request.api
4144

4245
private String baseUrl;
4346
private String xmlBaseUrl;
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
//
2+
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3+
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4+
// Any modifications to this file will be lost upon recompilation of the source schema.
5+
// Generated on: 2014.08.04 at 04:25:49 PM PDT
6+
//
7+
8+
9+
package net.authorize.api.contract.v1;
10+
11+
import javax.xml.bind.annotation.XmlAccessType;
12+
import javax.xml.bind.annotation.XmlAccessorType;
13+
import javax.xml.bind.annotation.XmlElement;
14+
import javax.xml.bind.annotation.XmlSeeAlso;
15+
import javax.xml.bind.annotation.XmlType;
16+
17+
18+
/**
19+
* <p>Java class for ANetApiRequest complex type.
20+
*
21+
* <p>The following schema fragment specifies the expected content contained within this class.
22+
*
23+
* <pre>
24+
* &lt;complexType name="ANetApiRequest">
25+
* &lt;complexContent>
26+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27+
* &lt;sequence>
28+
* &lt;element name="merchantAuthentication" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}merchantAuthenticationType"/>
29+
* &lt;element name="refId" minOccurs="0">
30+
* &lt;simpleType>
31+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
32+
* &lt;maxLength value="20"/>
33+
* &lt;/restriction>
34+
* &lt;/simpleType>
35+
* &lt;/element>
36+
* &lt;/sequence>
37+
* &lt;/restriction>
38+
* &lt;/complexContent>
39+
* &lt;/complexType>
40+
* </pre>
41+
*
42+
*
43+
*/
44+
@XmlAccessorType(XmlAccessType.FIELD)
45+
@XmlType(name = "ANetApiRequest", propOrder = {
46+
"merchantAuthentication",
47+
"refId"
48+
})
49+
@XmlSeeAlso({
50+
GetTransactionListRequest.class,
51+
MobileDeviceRegistrationRequest.class,
52+
UpdateCustomerPaymentProfileRequest.class,
53+
GetBatchStatisticsRequest.class,
54+
ARBCreateSubscriptionRequest.class,
55+
CreateCustomerPaymentProfileRequest.class,
56+
AuthenticateTestRequest.class,
57+
ARBGetSubscriptionListRequest.class,
58+
GetHostedProfilePageRequest.class,
59+
CreateCustomerProfileTransactionRequest.class,
60+
CreateTransactionRequest.class,
61+
DeleteCustomerProfileRequest.class,
62+
DeleteCustomerPaymentProfileRequest.class,
63+
ARBGetSubscriptionStatusRequest.class,
64+
CreateCustomerProfileRequest.class,
65+
GetCustomerProfileRequest.class,
66+
GetCustomerProfileIdsRequest.class,
67+
ARBUpdateSubscriptionRequest.class,
68+
MobileDeviceLoginRequest.class,
69+
GetCustomerPaymentProfileRequest.class,
70+
GetSettledBatchListRequest.class,
71+
GetTransactionDetailsRequest.class,
72+
CreateCustomerShippingAddressRequest.class,
73+
UpdateSplitTenderGroupRequest.class,
74+
SendCustomerTransactionReceiptRequest.class,
75+
LogoutRequest.class,
76+
GetUnsettledTransactionListRequest.class,
77+
GetCustomerShippingAddressRequest.class,
78+
UpdateCustomerShippingAddressRequest.class,
79+
ValidateCustomerPaymentProfileRequest.class,
80+
ARBCancelSubscriptionRequest.class,
81+
DeleteCustomerShippingAddressRequest.class,
82+
UpdateCustomerProfileRequest.class
83+
})
84+
public class ANetApiRequest implements java.io.Serializable {
85+
86+
@XmlElement(required = true)
87+
protected MerchantAuthenticationType merchantAuthentication;
88+
protected String refId;
89+
90+
/**
91+
* Gets the value of the merchantAuthentication property.
92+
*
93+
* @return
94+
* possible object is
95+
* {@link MerchantAuthenticationType }
96+
*
97+
*/
98+
public MerchantAuthenticationType getMerchantAuthentication() {
99+
return merchantAuthentication;
100+
}
101+
102+
/**
103+
* Sets the value of the merchantAuthentication property.
104+
*
105+
* @param value
106+
* allowed object is
107+
* {@link MerchantAuthenticationType }
108+
*
109+
*/
110+
public void setMerchantAuthentication(MerchantAuthenticationType value) {
111+
this.merchantAuthentication = value;
112+
}
113+
114+
/**
115+
* Gets the value of the refId property.
116+
*
117+
* @return
118+
* possible object is
119+
* {@link String }
120+
*
121+
*/
122+
public String getRefId() {
123+
return refId;
124+
}
125+
126+
/**
127+
* Sets the value of the refId property.
128+
*
129+
* @param value
130+
* allowed object is
131+
* {@link String }
132+
*
133+
*/
134+
public void setRefId(String value) {
135+
this.refId = value;
136+
}
137+
138+
}
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
//
2+
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3+
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4+
// Any modifications to this file will be lost upon recompilation of the source schema.
5+
// Generated on: 2014.08.04 at 04:25:49 PM PDT
6+
//
7+
8+
9+
package net.authorize.api.contract.v1;
10+
11+
import javax.xml.bind.annotation.XmlAccessType;
12+
import javax.xml.bind.annotation.XmlAccessorType;
13+
import javax.xml.bind.annotation.XmlElement;
14+
import javax.xml.bind.annotation.XmlSeeAlso;
15+
import javax.xml.bind.annotation.XmlType;
16+
17+
18+
/**
19+
* <p>Java class for ANetApiResponse complex type.
20+
*
21+
* <p>The following schema fragment specifies the expected content contained within this class.
22+
*
23+
* <pre>
24+
* &lt;complexType name="ANetApiResponse">
25+
* &lt;complexContent>
26+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27+
* &lt;sequence>
28+
* &lt;element name="refId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
29+
* &lt;sequence>
30+
* &lt;element name="messages" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}messagesType"/>
31+
* &lt;/sequence>
32+
* &lt;element name="sessionToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
33+
* &lt;/sequence>
34+
* &lt;/restriction>
35+
* &lt;/complexContent>
36+
* &lt;/complexType>
37+
* </pre>
38+
*
39+
*
40+
*/
41+
@XmlAccessorType(XmlAccessType.FIELD)
42+
@XmlType(name = "ANetApiResponse", propOrder = {
43+
"refId",
44+
"messages",
45+
"sessionToken"
46+
})
47+
@XmlSeeAlso({
48+
ValidateCustomerPaymentProfileResponse.class,
49+
GetUnsettledTransactionListResponse.class,
50+
GetTransactionListResponse.class,
51+
GetHostedProfilePageResponse.class,
52+
SendCustomerTransactionReceiptResponse.class,
53+
UpdateCustomerShippingAddressResponse.class,
54+
GetCustomerProfileIdsResponse.class,
55+
MobileDeviceLoginResponse.class,
56+
DeleteCustomerPaymentProfileResponse.class,
57+
UpdateCustomerPaymentProfileResponse.class,
58+
ARBCancelSubscriptionResponse.class,
59+
AuthenticateTestResponse.class,
60+
ARBCreateSubscriptionResponse.class,
61+
GetTransactionDetailsResponse.class,
62+
LogoutResponse.class,
63+
GetCustomerPaymentProfileResponse.class,
64+
CreateCustomerPaymentProfileResponse.class,
65+
UpdateSplitTenderGroupResponse.class,
66+
GetBatchStatisticsResponse.class,
67+
CreateTransactionResponse.class,
68+
CreateCustomerProfileTransactionResponse.class,
69+
ARBUpdateSubscriptionResponse.class,
70+
IsAliveResponse.class,
71+
ARBGetSubscriptionStatusResponse.class,
72+
DeleteCustomerProfileResponse.class,
73+
UpdateCustomerProfileResponse.class,
74+
GetCustomerShippingAddressResponse.class,
75+
CreateCustomerShippingAddressResponse.class,
76+
GetSettledBatchListResponse.class,
77+
DeleteCustomerShippingAddressResponse.class,
78+
ARBGetSubscriptionListResponse.class,
79+
CreateCustomerProfileResponse.class,
80+
MobileDeviceRegistrationResponse.class,
81+
GetCustomerProfileResponse.class
82+
})
83+
public class ANetApiResponse implements java.io.Serializable {
84+
85+
protected String refId;
86+
@XmlElement(required = true)
87+
protected MessagesType messages;
88+
protected String sessionToken;
89+
90+
/**
91+
* Gets the value of the refId property.
92+
*
93+
* @return
94+
* possible object is
95+
* {@link String }
96+
*
97+
*/
98+
public String getRefId() {
99+
return refId;
100+
}
101+
102+
/**
103+
* Sets the value of the refId property.
104+
*
105+
* @param value
106+
* allowed object is
107+
* {@link String }
108+
*
109+
*/
110+
public void setRefId(String value) {
111+
this.refId = value;
112+
}
113+
114+
/**
115+
* Gets the value of the messages property.
116+
*
117+
* @return
118+
* possible object is
119+
* {@link MessagesType }
120+
*
121+
*/
122+
public MessagesType getMessages() {
123+
return messages;
124+
}
125+
126+
/**
127+
* Sets the value of the messages property.
128+
*
129+
* @param value
130+
* allowed object is
131+
* {@link MessagesType }
132+
*
133+
*/
134+
public void setMessages(MessagesType value) {
135+
this.messages = value;
136+
}
137+
138+
/**
139+
* Gets the value of the sessionToken property.
140+
*
141+
* @return
142+
* possible object is
143+
* {@link String }
144+
*
145+
*/
146+
public String getSessionToken() {
147+
return sessionToken;
148+
}
149+
150+
/**
151+
* Sets the value of the sessionToken property.
152+
*
153+
* @param value
154+
* allowed object is
155+
* {@link String }
156+
*
157+
*/
158+
public void setSessionToken(String value) {
159+
this.sessionToken = value;
160+
}
161+
162+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy