From 7361f8822d3be53b04ecbd26ea3ddd386485b506 Mon Sep 17 00:00:00 2001 From: pavankumar Date: Fri, 16 Nov 2018 12:42:44 +0530 Subject: [PATCH 1/6] Pushing the changes for the updated fields in the xsd for the November Release --- .../api/contract/v1/ANetApiRequest.java | 3 +- .../api/contract/v1/ANetApiResponse.java | 3 +- .../api/contract/v1/ArrayOfContactDetail.java | 74 +++ .../api/contract/v1/ContactDetailType.java | 139 ++++ ...GetCustomerPaymentProfileNonceRequest.java | 129 ++++ ...etCustomerPaymentProfileNonceResponse.java | 71 ++ .../v1/GetMerchantDetailsResponse.java | 91 ++- .../api/contract/v1/LineItemType.java | 620 +++++++++++++++++- .../v1/MerchantInitTransReasonEnum.java | 64 ++ .../api/contract/v1/ObjectFactory.java | 58 +- .../api/contract/v1/OpaqueDataType.java | 34 +- .../authorize/api/contract/v1/OrderType.java | 518 ++++++++++++++- .../api/contract/v1/OtherTaxType.java | 216 ++++++ .../api/contract/v1/ProcessingOptions.java | 148 +++++ .../contract/v1/ProfileTransOrderType.java | 58 +- .../v1/SubsequentAuthInformation.java | 96 +++ .../contract/v1/TransactionDetailsType.java | 58 +- .../contract/v1/TransactionRequestType.java | 112 +++- .../api/contract/v1/TransactionResponse.java | 31 +- .../v1/UpdateCustomerProfileRequest.java | 14 +- ...CustomerPaymentProfileNonceController.java | 31 + ...omerPaymentProfileNonceControllerTest.java | 66 ++ 22 files changed, 2608 insertions(+), 26 deletions(-) create mode 100644 src/main/java/net/authorize/api/contract/v1/ArrayOfContactDetail.java create mode 100644 src/main/java/net/authorize/api/contract/v1/ContactDetailType.java create mode 100644 src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.java create mode 100644 src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.java create mode 100644 src/main/java/net/authorize/api/contract/v1/MerchantInitTransReasonEnum.java create mode 100644 src/main/java/net/authorize/api/contract/v1/OtherTaxType.java create mode 100644 src/main/java/net/authorize/api/contract/v1/ProcessingOptions.java create mode 100644 src/main/java/net/authorize/api/contract/v1/SubsequentAuthInformation.java create mode 100644 src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java create mode 100644 src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java diff --git a/src/main/java/net/authorize/api/contract/v1/ANetApiRequest.java b/src/main/java/net/authorize/api/contract/v1/ANetApiRequest.java index 284e5863..71246e3d 100644 --- a/src/main/java/net/authorize/api/contract/v1/ANetApiRequest.java +++ b/src/main/java/net/authorize/api/contract/v1/ANetApiRequest.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -99,6 +99,7 @@ DeleteCustomerShippingAddressRequest.class, UpdateHeldTransactionRequest.class, UpdateCustomerProfileRequest.class, + GetCustomerPaymentProfileNonceRequest.class, CreateCustomerProfileFromTransactionRequest.class }) public class ANetApiRequest implements java.io.Serializable { diff --git a/src/main/java/net/authorize/api/contract/v1/ANetApiResponse.java b/src/main/java/net/authorize/api/contract/v1/ANetApiResponse.java index fb4a9485..19265629 100644 --- a/src/main/java/net/authorize/api/contract/v1/ANetApiResponse.java +++ b/src/main/java/net/authorize/api/contract/v1/ANetApiResponse.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -45,6 +45,7 @@ "sessionToken" }) @XmlSeeAlso({ + GetCustomerPaymentProfileNonceResponse.class, UpdateHeldTransactionResponse.class, ValidateCustomerPaymentProfileResponse.class, GetUnsettledTransactionListResponse.class, diff --git a/src/main/java/net/authorize/api/contract/v1/ArrayOfContactDetail.java b/src/main/java/net/authorize/api/contract/v1/ArrayOfContactDetail.java new file mode 100644 index 00000000..74334b96 --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/ArrayOfContactDetail.java @@ -0,0 +1,74 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfContactDetail complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfContactDetail">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="contactDetail" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ContactDetailType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfContactDetail", propOrder = { + "contactDetail" +}) +public class ArrayOfContactDetail { + + protected List contactDetail; + + /** + * Gets the value of the contactDetail property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the contactDetail property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContactDetail().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ContactDetailType } + * + * + */ + public List getContactDetail() { + if (contactDetail == null) { + contactDetail = new ArrayList(); + } + return this.contactDetail; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/ContactDetailType.java b/src/main/java/net/authorize/api/contract/v1/ContactDetailType.java new file mode 100644 index 00000000..7710e25c --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/ContactDetailType.java @@ -0,0 +1,139 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ContactDetailType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ContactDetailType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="email" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <maxLength value="255"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="firstName" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <maxLength value="50"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="lastName" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <maxLength value="50"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ContactDetailType", propOrder = { + "email", + "firstName", + "lastName" +}) +public class ContactDetailType { + + protected String email; + protected String firstName; + protected String lastName; + + /** + * Gets the value of the email property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEmail() { + return email; + } + + /** + * Sets the value of the email property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEmail(String value) { + this.email = value; + } + + /** + * Gets the value of the firstName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Gets the value of the lastName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastName() { + return lastName; + } + + /** + * Sets the value of the lastName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastName(String value) { + this.lastName = value; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.java b/src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.java new file mode 100644 index 00000000..dbf91eea --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.java @@ -0,0 +1,129 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ANetApiRequest">
+ *       <sequence>
+ *         <element name="connectedAccessToken" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="customerProfileId" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}numericString"/>
+ *         <element name="customerPaymentProfileId" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}numericString"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "connectedAccessToken", + "customerProfileId", + "customerPaymentProfileId" +}) +@XmlRootElement(name = "getCustomerPaymentProfileNonceRequest") +public class GetCustomerPaymentProfileNonceRequest + extends ANetApiRequest +{ + + @XmlElement(required = true) + protected String connectedAccessToken; + @XmlElement(required = true) + protected String customerProfileId; + @XmlElement(required = true) + protected String customerPaymentProfileId; + + /** + * Gets the value of the connectedAccessToken property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConnectedAccessToken() { + return connectedAccessToken; + } + + /** + * Sets the value of the connectedAccessToken property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConnectedAccessToken(String value) { + this.connectedAccessToken = value; + } + + /** + * Gets the value of the customerProfileId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCustomerProfileId() { + return customerProfileId; + } + + /** + * Sets the value of the customerProfileId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCustomerProfileId(String value) { + this.customerProfileId = value; + } + + /** + * Gets the value of the customerPaymentProfileId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCustomerPaymentProfileId() { + return customerPaymentProfileId; + } + + /** + * Sets the value of the customerPaymentProfileId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCustomerPaymentProfileId(String value) { + this.customerPaymentProfileId = value; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.java b/src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.java new file mode 100644 index 00000000..9bb6a3a8 --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.java @@ -0,0 +1,71 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ANetApiResponse">
+ *       <sequence>
+ *         <element name="opaqueData" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}opaqueDataType" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "opaqueData" +}) +@XmlRootElement(name = "getCustomerPaymentProfileNonceResponse") +public class GetCustomerPaymentProfileNonceResponse + extends ANetApiResponse +{ + + protected OpaqueDataType opaqueData; + + /** + * Gets the value of the opaqueData property. + * + * @return + * possible object is + * {@link OpaqueDataType } + * + */ + public OpaqueDataType getOpaqueData() { + return opaqueData; + } + + /** + * Sets the value of the opaqueData property. + * + * @param value + * allowed object is + * {@link OpaqueDataType } + * + */ + public void setOpaqueData(OpaqueDataType value) { + this.opaqueData = value; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/GetMerchantDetailsResponse.java b/src/main/java/net/authorize/api/contract/v1/GetMerchantDetailsResponse.java index 27fe07d7..04c79129 100644 --- a/src/main/java/net/authorize/api/contract/v1/GetMerchantDetailsResponse.java +++ b/src/main/java/net/authorize/api/contract/v1/GetMerchantDetailsResponse.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -34,6 +34,15 @@ * <element name="paymentMethods" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfPaymentMethod"/> * <element name="currencies" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfCurrencyCode"/> * <element name="publicClientKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="businessInformation" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerAddressType" minOccurs="0"/> + * <element name="merchantTimeZone" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="100"/> + * </restriction> + * </simpleType> + * </element> + * <element name="contactDetails" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfContactDetail" minOccurs="0"/> * </sequence> * </extension> * </complexContent> @@ -52,7 +61,10 @@ "productCodes", "paymentMethods", "currencies", - "publicClientKey" + "publicClientKey", + "businessInformation", + "merchantTimeZone", + "contactDetails" }) @XmlRootElement(name = "getMerchantDetailsResponse") public class GetMerchantDetailsResponse @@ -75,6 +87,9 @@ public class GetMerchantDetailsResponse @XmlElement(required = true) protected ArrayOfCurrencyCode currencies; protected String publicClientKey; + protected CustomerAddressType businessInformation; + protected String merchantTimeZone; + protected ArrayOfContactDetail contactDetails; /** * Gets the value of the isTestMode property. @@ -292,4 +307,76 @@ public void setPublicClientKey(String value) { this.publicClientKey = value; } + /** + * Gets the value of the businessInformation property. + * + * @return + * possible object is + * {@link CustomerAddressType } + * + */ + public CustomerAddressType getBusinessInformation() { + return businessInformation; + } + + /** + * Sets the value of the businessInformation property. + * + * @param value + * allowed object is + * {@link CustomerAddressType } + * + */ + public void setBusinessInformation(CustomerAddressType value) { + this.businessInformation = value; + } + + /** + * Gets the value of the merchantTimeZone property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMerchantTimeZone() { + return merchantTimeZone; + } + + /** + * Sets the value of the merchantTimeZone property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMerchantTimeZone(String value) { + this.merchantTimeZone = value; + } + + /** + * Gets the value of the contactDetails property. + * + * @return + * possible object is + * {@link ArrayOfContactDetail } + * + */ + public ArrayOfContactDetail getContactDetails() { + return contactDetails; + } + + /** + * Sets the value of the contactDetails property. + * + * @param value + * allowed object is + * {@link ArrayOfContactDetail } + * + */ + public void setContactDetails(ArrayOfContactDetail value) { + this.contactDetails = value; + } + } diff --git a/src/main/java/net/authorize/api/contract/v1/LineItemType.java b/src/main/java/net/authorize/api/contract/v1/LineItemType.java index 3406a0b3..415f909e 100644 --- a/src/main/java/net/authorize/api/contract/v1/LineItemType.java +++ b/src/main/java/net/authorize/api/contract/v1/LineItemType.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -65,6 +65,102 @@ * </simpleType> * </element> * <element name="taxable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="unitOfMeasure" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="12"/> + * </restriction> + * </simpleType> + * </element> + * <element name="typeOfSupply" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="2"/> + * </restriction> + * </simpleType> + * </element> + * <element name="taxRate" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}decimal"> + * <totalDigits value="5"/> + * <fractionDigits value="5"/> + * </restriction> + * </simpleType> + * </element> + * <element name="taxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="nationalTax" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="localTax" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="vatRate" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}decimal"> + * <totalDigits value="5"/> + * <fractionDigits value="5"/> + * </restriction> + * </simpleType> + * </element> + * <element name="alternateTaxId" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * </restriction> + * </simpleType> + * </element> + * <element name="alternateTaxType" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="4"/> + * </restriction> + * </simpleType> + * </element> + * <element name="alternateTaxTypeApplied" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="4"/> + * </restriction> + * </simpleType> + * </element> + * <element name="alternateTaxRate" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}decimal"> + * <totalDigits value="5"/> + * <fractionDigits value="5"/> + * </restriction> + * </simpleType> + * </element> + * <element name="alternateTaxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="totalAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="commodityCode" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="15"/> + * </restriction> + * </simpleType> + * </element> + * <element name="productCode" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="15"/> + * </restriction> + * </simpleType> + * </element> + * <element name="productSKU" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="30"/> + * </restriction> + * </simpleType> + * </element> + * <element name="discountRate" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}decimal"> + * <totalDigits value="5"/> + * <fractionDigits value="5"/> + * </restriction> + * </simpleType> + * </element> + * <element name="discountAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="taxIncludedInTotal" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="taxIsAfterDiscount" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -80,7 +176,27 @@ "description", "quantity", "unitPrice", - "taxable" + "taxable", + "unitOfMeasure", + "typeOfSupply", + "taxRate", + "taxAmount", + "nationalTax", + "localTax", + "vatRate", + "alternateTaxId", + "alternateTaxType", + "alternateTaxTypeApplied", + "alternateTaxRate", + "alternateTaxAmount", + "totalAmount", + "commodityCode", + "productCode", + "productSKU", + "discountRate", + "discountAmount", + "taxIncludedInTotal", + "taxIsAfterDiscount" }) public class LineItemType { @@ -94,6 +210,26 @@ public class LineItemType { @XmlElement(required = true) protected BigDecimal unitPrice; protected Boolean taxable; + protected String unitOfMeasure; + protected String typeOfSupply; + protected BigDecimal taxRate; + protected BigDecimal taxAmount; + protected BigDecimal nationalTax; + protected BigDecimal localTax; + protected BigDecimal vatRate; + protected String alternateTaxId; + protected String alternateTaxType; + protected String alternateTaxTypeApplied; + protected BigDecimal alternateTaxRate; + protected BigDecimal alternateTaxAmount; + protected BigDecimal totalAmount; + protected String commodityCode; + protected String productCode; + protected String productSKU; + protected BigDecimal discountRate; + protected BigDecimal discountAmount; + protected Boolean taxIncludedInTotal; + protected Boolean taxIsAfterDiscount; /** * Gets the value of the itemId property. @@ -239,4 +375,484 @@ public void setTaxable(Boolean value) { this.taxable = value; } + /** + * Gets the value of the unitOfMeasure property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUnitOfMeasure() { + return unitOfMeasure; + } + + /** + * Sets the value of the unitOfMeasure property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUnitOfMeasure(String value) { + this.unitOfMeasure = value; + } + + /** + * Gets the value of the typeOfSupply property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeOfSupply() { + return typeOfSupply; + } + + /** + * Sets the value of the typeOfSupply property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeOfSupply(String value) { + this.typeOfSupply = value; + } + + /** + * Gets the value of the taxRate property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getTaxRate() { + return taxRate; + } + + /** + * Sets the value of the taxRate property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setTaxRate(BigDecimal value) { + this.taxRate = value; + } + + /** + * Gets the value of the taxAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getTaxAmount() { + return taxAmount; + } + + /** + * Sets the value of the taxAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setTaxAmount(BigDecimal value) { + this.taxAmount = value; + } + + /** + * Gets the value of the nationalTax property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getNationalTax() { + return nationalTax; + } + + /** + * Sets the value of the nationalTax property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setNationalTax(BigDecimal value) { + this.nationalTax = value; + } + + /** + * Gets the value of the localTax property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getLocalTax() { + return localTax; + } + + /** + * Sets the value of the localTax property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setLocalTax(BigDecimal value) { + this.localTax = value; + } + + /** + * Gets the value of the vatRate property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getVatRate() { + return vatRate; + } + + /** + * Sets the value of the vatRate property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setVatRate(BigDecimal value) { + this.vatRate = value; + } + + /** + * Gets the value of the alternateTaxId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlternateTaxId() { + return alternateTaxId; + } + + /** + * Sets the value of the alternateTaxId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlternateTaxId(String value) { + this.alternateTaxId = value; + } + + /** + * Gets the value of the alternateTaxType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlternateTaxType() { + return alternateTaxType; + } + + /** + * Sets the value of the alternateTaxType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlternateTaxType(String value) { + this.alternateTaxType = value; + } + + /** + * Gets the value of the alternateTaxTypeApplied property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlternateTaxTypeApplied() { + return alternateTaxTypeApplied; + } + + /** + * Sets the value of the alternateTaxTypeApplied property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlternateTaxTypeApplied(String value) { + this.alternateTaxTypeApplied = value; + } + + /** + * Gets the value of the alternateTaxRate property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getAlternateTaxRate() { + return alternateTaxRate; + } + + /** + * Sets the value of the alternateTaxRate property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setAlternateTaxRate(BigDecimal value) { + this.alternateTaxRate = value; + } + + /** + * Gets the value of the alternateTaxAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getAlternateTaxAmount() { + return alternateTaxAmount; + } + + /** + * Sets the value of the alternateTaxAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setAlternateTaxAmount(BigDecimal value) { + this.alternateTaxAmount = value; + } + + /** + * Gets the value of the totalAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getTotalAmount() { + return totalAmount; + } + + /** + * Sets the value of the totalAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setTotalAmount(BigDecimal value) { + this.totalAmount = value; + } + + /** + * Gets the value of the commodityCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCommodityCode() { + return commodityCode; + } + + /** + * Sets the value of the commodityCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCommodityCode(String value) { + this.commodityCode = value; + } + + /** + * Gets the value of the productCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProductCode() { + return productCode; + } + + /** + * Sets the value of the productCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProductCode(String value) { + this.productCode = value; + } + + /** + * Gets the value of the productSKU property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProductSKU() { + return productSKU; + } + + /** + * Sets the value of the productSKU property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProductSKU(String value) { + this.productSKU = value; + } + + /** + * Gets the value of the discountRate property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getDiscountRate() { + return discountRate; + } + + /** + * Sets the value of the discountRate property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setDiscountRate(BigDecimal value) { + this.discountRate = value; + } + + /** + * Gets the value of the discountAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getDiscountAmount() { + return discountAmount; + } + + /** + * Sets the value of the discountAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setDiscountAmount(BigDecimal value) { + this.discountAmount = value; + } + + /** + * Gets the value of the taxIncludedInTotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTaxIncludedInTotal() { + return taxIncludedInTotal; + } + + /** + * Sets the value of the taxIncludedInTotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTaxIncludedInTotal(Boolean value) { + this.taxIncludedInTotal = value; + } + + /** + * Gets the value of the taxIsAfterDiscount property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTaxIsAfterDiscount() { + return taxIsAfterDiscount; + } + + /** + * Sets the value of the taxIsAfterDiscount property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTaxIsAfterDiscount(Boolean value) { + this.taxIsAfterDiscount = value; + } + } diff --git a/src/main/java/net/authorize/api/contract/v1/MerchantInitTransReasonEnum.java b/src/main/java/net/authorize/api/contract/v1/MerchantInitTransReasonEnum.java new file mode 100644 index 00000000..1e6a498a --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/MerchantInitTransReasonEnum.java @@ -0,0 +1,64 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for merchantInitTransReasonEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="merchantInitTransReasonEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="resubmission"/>
+ *     <enumeration value="delayedCharge"/>
+ *     <enumeration value="reauthorization"/>
+ *     <enumeration value="noShow"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "merchantInitTransReasonEnum") +@XmlEnum +public enum MerchantInitTransReasonEnum { + + @XmlEnumValue("resubmission") + RESUBMISSION("resubmission"), + @XmlEnumValue("delayedCharge") + DELAYED_CHARGE("delayedCharge"), + @XmlEnumValue("reauthorization") + REAUTHORIZATION("reauthorization"), + @XmlEnumValue("noShow") + NO_SHOW("noShow"); + private final String value; + + MerchantInitTransReasonEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MerchantInitTransReasonEnum fromValue(String v) { + for (MerchantInitTransReasonEnum c: MerchantInitTransReasonEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/ObjectFactory.java b/src/main/java/net/authorize/api/contract/v1/ObjectFactory.java index 2241815a..fce41cf2 100644 --- a/src/main/java/net/authorize/api/contract/v1/ObjectFactory.java +++ b/src/main/java/net/authorize/api/contract/v1/ObjectFactory.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -248,6 +248,14 @@ public ArrayOfSubscription createArrayOfSubscription() { return new ArrayOfSubscription(); } + /** + * Create an instance of {@link GetCustomerPaymentProfileNonceRequest } + * + */ + public GetCustomerPaymentProfileNonceRequest createGetCustomerPaymentProfileNonceRequest() { + return new GetCustomerPaymentProfileNonceRequest(); + } + /** * Create an instance of {@link UpdateCustomerProfileRequest } * @@ -776,6 +784,14 @@ public ArrayOfCurrencyCode createArrayOfCurrencyCode() { return new ArrayOfCurrencyCode(); } + /** + * Create an instance of {@link ArrayOfContactDetail } + * + */ + public ArrayOfContactDetail createArrayOfContactDetail() { + return new ArrayOfContactDetail(); + } + /** * Create an instance of {@link IsAliveRequest } * @@ -1256,6 +1272,14 @@ public GetTransactionListRequest createGetTransactionListRequest() { return new GetTransactionListRequest(); } + /** + * Create an instance of {@link GetCustomerPaymentProfileNonceResponse } + * + */ + public GetCustomerPaymentProfileNonceResponse createGetCustomerPaymentProfileNonceResponse() { + return new GetCustomerPaymentProfileNonceResponse(); + } + /** * Create an instance of {@link OrderType } * @@ -1384,6 +1408,14 @@ public KeyValue createKeyValue() { return new KeyValue(); } + /** + * Create an instance of {@link ProcessingOptions } + * + */ + public ProcessingOptions createProcessingOptions() { + return new ProcessingOptions(); + } + /** * Create an instance of {@link PaymentType } * @@ -1544,6 +1576,14 @@ public CreditCardType createCreditCardType() { return new CreditCardType(); } + /** + * Create an instance of {@link SubsequentAuthInformation } + * + */ + public SubsequentAuthInformation createSubsequentAuthInformation() { + return new SubsequentAuthInformation(); + } + /** * Create an instance of {@link CustomerType } * @@ -1672,6 +1712,14 @@ public CustomerPaymentProfileBaseType createCustomerPaymentProfileBaseType() { return new CustomerPaymentProfileBaseType(); } + /** + * Create an instance of {@link OtherTaxType } + * + */ + public OtherTaxType createOtherTaxType() { + return new OtherTaxType(); + } + /** * Create an instance of {@link EncryptedTrackDataType } * @@ -1680,6 +1728,14 @@ public EncryptedTrackDataType createEncryptedTrackDataType() { return new EncryptedTrackDataType(); } + /** + * Create an instance of {@link ContactDetailType } + * + */ + public ContactDetailType createContactDetailType() { + return new ContactDetailType(); + } + /** * Create an instance of {@link ArrayOfReturnedItem } * diff --git a/src/main/java/net/authorize/api/contract/v1/OpaqueDataType.java b/src/main/java/net/authorize/api/contract/v1/OpaqueDataType.java index 746ce6bf..9761a98d 100644 --- a/src/main/java/net/authorize/api/contract/v1/OpaqueDataType.java +++ b/src/main/java/net/authorize/api/contract/v1/OpaqueDataType.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -11,7 +11,9 @@ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; /** @@ -27,6 +29,7 @@ * <element name="dataDescriptor" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="dataValue" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="dataKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="expirationTimeStamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -39,7 +42,8 @@ @XmlType(name = "opaqueDataType", propOrder = { "dataDescriptor", "dataValue", - "dataKey" + "dataKey", + "expirationTimeStamp" }) public class OpaqueDataType { @@ -48,6 +52,8 @@ public class OpaqueDataType { @XmlElement(required = true) protected String dataValue; protected String dataKey; + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar expirationTimeStamp; /** * Gets the value of the dataDescriptor property. @@ -121,4 +127,28 @@ public void setDataKey(String value) { this.dataKey = value; } + /** + * Gets the value of the expirationTimeStamp property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getExpirationTimeStamp() { + return expirationTimeStamp; + } + + /** + * Sets the value of the expirationTimeStamp property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setExpirationTimeStamp(XMLGregorianCalendar value) { + this.expirationTimeStamp = value; + } + } diff --git a/src/main/java/net/authorize/api/contract/v1/OrderType.java b/src/main/java/net/authorize/api/contract/v1/OrderType.java index 914cd813..41ed91dd 100644 --- a/src/main/java/net/authorize/api/contract/v1/OrderType.java +++ b/src/main/java/net/authorize/api/contract/v1/OrderType.java @@ -2,16 +2,19 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // package net.authorize.api.contract.v1; +import java.math.BigDecimal; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; /** @@ -38,6 +41,100 @@ * </restriction> * </simpleType> * </element> + * <element name="discountAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> + * <element name="taxIsAfterDiscount" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="totalTaxTypeCode" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="3"/> + * </restriction> + * </simpleType> + * </element> + * <element name="purchaserVATRegistrationNumber" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="21"/> + * </restriction> + * </simpleType> + * </element> + * <element name="merchantVATRegistrationNumber" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="21"/> + * </restriction> + * </simpleType> + * </element> + * <element name="vatInvoiceReferenceNumber" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="15"/> + * </restriction> + * </simpleType> + * </element> + * <element name="purchaserCode" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="17"/> + * </restriction> + * </simpleType> + * </element> + * <element name="summaryCommodityCode" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="4"/> + * </restriction> + * </simpleType> + * </element> + * <element name="purchaseOrderDateUTC" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> + * <element name="supplierOrderReference" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="25"/> + * </restriction> + * </simpleType> + * </element> + * <element name="authorizedContactName" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="36"/> + * </restriction> + * </simpleType> + * </element> + * <element name="cardAcceptorRefNumber" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="25"/> + * </restriction> + * </simpleType> + * </element> + * <element name="amexDataTAA1" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="40"/> + * </restriction> + * </simpleType> + * </element> + * <element name="amexDataTAA2" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="40"/> + * </restriction> + * </simpleType> + * </element> + * <element name="amexDataTAA3" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="40"/> + * </restriction> + * </simpleType> + * </element> + * <element name="amexDataTAA4" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="40"/> + * </restriction> + * </simpleType> + * </element> * </sequence> * </restriction> * </complexContent> @@ -49,7 +146,23 @@ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "orderType", propOrder = { "invoiceNumber", - "description" + "description", + "discountAmount", + "taxIsAfterDiscount", + "totalTaxTypeCode", + "purchaserVATRegistrationNumber", + "merchantVATRegistrationNumber", + "vatInvoiceReferenceNumber", + "purchaserCode", + "summaryCommodityCode", + "purchaseOrderDateUTC", + "supplierOrderReference", + "authorizedContactName", + "cardAcceptorRefNumber", + "amexDataTAA1", + "amexDataTAA2", + "amexDataTAA3", + "amexDataTAA4" }) @XmlSeeAlso({ OrderExType.class @@ -58,6 +171,23 @@ public class OrderType { protected String invoiceNumber; protected String description; + protected BigDecimal discountAmount; + protected Boolean taxIsAfterDiscount; + protected String totalTaxTypeCode; + protected String purchaserVATRegistrationNumber; + protected String merchantVATRegistrationNumber; + protected String vatInvoiceReferenceNumber; + protected String purchaserCode; + protected String summaryCommodityCode; + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar purchaseOrderDateUTC; + protected String supplierOrderReference; + protected String authorizedContactName; + protected String cardAcceptorRefNumber; + protected String amexDataTAA1; + protected String amexDataTAA2; + protected String amexDataTAA3; + protected String amexDataTAA4; /** * Gets the value of the invoiceNumber property. @@ -107,4 +237,388 @@ public void setDescription(String value) { this.description = value; } + /** + * Gets the value of the discountAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getDiscountAmount() { + return discountAmount; + } + + /** + * Sets the value of the discountAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setDiscountAmount(BigDecimal value) { + this.discountAmount = value; + } + + /** + * Gets the value of the taxIsAfterDiscount property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTaxIsAfterDiscount() { + return taxIsAfterDiscount; + } + + /** + * Sets the value of the taxIsAfterDiscount property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTaxIsAfterDiscount(Boolean value) { + this.taxIsAfterDiscount = value; + } + + /** + * Gets the value of the totalTaxTypeCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTotalTaxTypeCode() { + return totalTaxTypeCode; + } + + /** + * Sets the value of the totalTaxTypeCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTotalTaxTypeCode(String value) { + this.totalTaxTypeCode = value; + } + + /** + * Gets the value of the purchaserVATRegistrationNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPurchaserVATRegistrationNumber() { + return purchaserVATRegistrationNumber; + } + + /** + * Sets the value of the purchaserVATRegistrationNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPurchaserVATRegistrationNumber(String value) { + this.purchaserVATRegistrationNumber = value; + } + + /** + * Gets the value of the merchantVATRegistrationNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMerchantVATRegistrationNumber() { + return merchantVATRegistrationNumber; + } + + /** + * Sets the value of the merchantVATRegistrationNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMerchantVATRegistrationNumber(String value) { + this.merchantVATRegistrationNumber = value; + } + + /** + * Gets the value of the vatInvoiceReferenceNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVatInvoiceReferenceNumber() { + return vatInvoiceReferenceNumber; + } + + /** + * Sets the value of the vatInvoiceReferenceNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVatInvoiceReferenceNumber(String value) { + this.vatInvoiceReferenceNumber = value; + } + + /** + * Gets the value of the purchaserCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPurchaserCode() { + return purchaserCode; + } + + /** + * Sets the value of the purchaserCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPurchaserCode(String value) { + this.purchaserCode = value; + } + + /** + * Gets the value of the summaryCommodityCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSummaryCommodityCode() { + return summaryCommodityCode; + } + + /** + * Sets the value of the summaryCommodityCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSummaryCommodityCode(String value) { + this.summaryCommodityCode = value; + } + + /** + * Gets the value of the purchaseOrderDateUTC property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getPurchaseOrderDateUTC() { + return purchaseOrderDateUTC; + } + + /** + * Sets the value of the purchaseOrderDateUTC property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setPurchaseOrderDateUTC(XMLGregorianCalendar value) { + this.purchaseOrderDateUTC = value; + } + + /** + * Gets the value of the supplierOrderReference property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSupplierOrderReference() { + return supplierOrderReference; + } + + /** + * Sets the value of the supplierOrderReference property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSupplierOrderReference(String value) { + this.supplierOrderReference = value; + } + + /** + * Gets the value of the authorizedContactName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorizedContactName() { + return authorizedContactName; + } + + /** + * Sets the value of the authorizedContactName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorizedContactName(String value) { + this.authorizedContactName = value; + } + + /** + * Gets the value of the cardAcceptorRefNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCardAcceptorRefNumber() { + return cardAcceptorRefNumber; + } + + /** + * Sets the value of the cardAcceptorRefNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCardAcceptorRefNumber(String value) { + this.cardAcceptorRefNumber = value; + } + + /** + * Gets the value of the amexDataTAA1 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAmexDataTAA1() { + return amexDataTAA1; + } + + /** + * Sets the value of the amexDataTAA1 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAmexDataTAA1(String value) { + this.amexDataTAA1 = value; + } + + /** + * Gets the value of the amexDataTAA2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAmexDataTAA2() { + return amexDataTAA2; + } + + /** + * Sets the value of the amexDataTAA2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAmexDataTAA2(String value) { + this.amexDataTAA2 = value; + } + + /** + * Gets the value of the amexDataTAA3 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAmexDataTAA3() { + return amexDataTAA3; + } + + /** + * Sets the value of the amexDataTAA3 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAmexDataTAA3(String value) { + this.amexDataTAA3 = value; + } + + /** + * Gets the value of the amexDataTAA4 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAmexDataTAA4() { + return amexDataTAA4; + } + + /** + * Sets the value of the amexDataTAA4 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAmexDataTAA4(String value) { + this.amexDataTAA4 = value; + } + } diff --git a/src/main/java/net/authorize/api/contract/v1/OtherTaxType.java b/src/main/java/net/authorize/api/contract/v1/OtherTaxType.java new file mode 100644 index 00000000..43e3121c --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/OtherTaxType.java @@ -0,0 +1,216 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import java.math.BigDecimal; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for otherTaxType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="otherTaxType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="nationalTaxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *         <element name="localTaxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *         <element name="alternateTaxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *         <element name="alternateTaxId" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <maxLength value="15"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="vatTaxRate" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
+ *               <totalDigits value="5"/>
+ *               <fractionDigits value="5"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="vatTaxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "otherTaxType", propOrder = { + "nationalTaxAmount", + "localTaxAmount", + "alternateTaxAmount", + "alternateTaxId", + "vatTaxRate", + "vatTaxAmount" +}) +public class OtherTaxType { + + protected BigDecimal nationalTaxAmount; + protected BigDecimal localTaxAmount; + protected BigDecimal alternateTaxAmount; + protected String alternateTaxId; + protected BigDecimal vatTaxRate; + protected BigDecimal vatTaxAmount; + + /** + * Gets the value of the nationalTaxAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getNationalTaxAmount() { + return nationalTaxAmount; + } + + /** + * Sets the value of the nationalTaxAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setNationalTaxAmount(BigDecimal value) { + this.nationalTaxAmount = value; + } + + /** + * Gets the value of the localTaxAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getLocalTaxAmount() { + return localTaxAmount; + } + + /** + * Sets the value of the localTaxAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setLocalTaxAmount(BigDecimal value) { + this.localTaxAmount = value; + } + + /** + * Gets the value of the alternateTaxAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getAlternateTaxAmount() { + return alternateTaxAmount; + } + + /** + * Sets the value of the alternateTaxAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setAlternateTaxAmount(BigDecimal value) { + this.alternateTaxAmount = value; + } + + /** + * Gets the value of the alternateTaxId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlternateTaxId() { + return alternateTaxId; + } + + /** + * Sets the value of the alternateTaxId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlternateTaxId(String value) { + this.alternateTaxId = value; + } + + /** + * Gets the value of the vatTaxRate property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getVatTaxRate() { + return vatTaxRate; + } + + /** + * Sets the value of the vatTaxRate property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setVatTaxRate(BigDecimal value) { + this.vatTaxRate = value; + } + + /** + * Gets the value of the vatTaxAmount property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getVatTaxAmount() { + return vatTaxAmount; + } + + /** + * Sets the value of the vatTaxAmount property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setVatTaxAmount(BigDecimal value) { + this.vatTaxAmount = value; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/ProcessingOptions.java b/src/main/java/net/authorize/api/contract/v1/ProcessingOptions.java new file mode 100644 index 00000000..c46b0ea0 --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/ProcessingOptions.java @@ -0,0 +1,148 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for processingOptions complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="processingOptions">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="isFirstRecurringPayment" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isFirstSubsequentAuth" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isSubsequentAuth" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isStoredCredentials" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "processingOptions", propOrder = { + "isFirstRecurringPayment", + "isFirstSubsequentAuth", + "isSubsequentAuth", + "isStoredCredentials" +}) +public class ProcessingOptions { + + protected Boolean isFirstRecurringPayment; + protected Boolean isFirstSubsequentAuth; + protected Boolean isSubsequentAuth; + protected Boolean isStoredCredentials; + + /** + * Gets the value of the isFirstRecurringPayment property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsFirstRecurringPayment() { + return isFirstRecurringPayment; + } + + /** + * Sets the value of the isFirstRecurringPayment property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsFirstRecurringPayment(Boolean value) { + this.isFirstRecurringPayment = value; + } + + /** + * Gets the value of the isFirstSubsequentAuth property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsFirstSubsequentAuth() { + return isFirstSubsequentAuth; + } + + /** + * Sets the value of the isFirstSubsequentAuth property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsFirstSubsequentAuth(Boolean value) { + this.isFirstSubsequentAuth = value; + } + + /** + * Gets the value of the isSubsequentAuth property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsSubsequentAuth() { + return isSubsequentAuth; + } + + /** + * Sets the value of the isSubsequentAuth property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsSubsequentAuth(Boolean value) { + this.isSubsequentAuth = value; + } + + /** + * Gets the value of the isStoredCredentials property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsStoredCredentials() { + return isStoredCredentials; + } + + /** + * Sets the value of the isStoredCredentials property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsStoredCredentials(Boolean value) { + this.isStoredCredentials = value; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/ProfileTransOrderType.java b/src/main/java/net/authorize/api/contract/v1/ProfileTransOrderType.java index 0f555f0a..aef9be31 100644 --- a/src/main/java/net/authorize/api/contract/v1/ProfileTransOrderType.java +++ b/src/main/java/net/authorize/api/contract/v1/ProfileTransOrderType.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -33,6 +33,8 @@ * <element name="recurringBilling" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <element name="cardCode" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}cardCode" minOccurs="0"/> * <element name="splitTenderId" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}numericString" minOccurs="0"/> + * <element name="processingOptions" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}processingOptions" minOccurs="0"/> + * <element name="subsequentAuthInformation" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}subsequentAuthInformation" minOccurs="0"/> * </sequence> * </extension> * </complexContent> @@ -50,7 +52,9 @@ "taxExempt", "recurringBilling", "cardCode", - "splitTenderId" + "splitTenderId", + "processingOptions", + "subsequentAuthInformation" }) @XmlSeeAlso({ ProfileTransAuthCaptureType.class, @@ -71,6 +75,8 @@ public class ProfileTransOrderType protected Boolean recurringBilling; protected String cardCode; protected String splitTenderId; + protected ProcessingOptions processingOptions; + protected SubsequentAuthInformation subsequentAuthInformation; /** * Gets the value of the customerProfileId property. @@ -264,4 +270,52 @@ public void setSplitTenderId(String value) { this.splitTenderId = value; } + /** + * Gets the value of the processingOptions property. + * + * @return + * possible object is + * {@link ProcessingOptions } + * + */ + public ProcessingOptions getProcessingOptions() { + return processingOptions; + } + + /** + * Sets the value of the processingOptions property. + * + * @param value + * allowed object is + * {@link ProcessingOptions } + * + */ + public void setProcessingOptions(ProcessingOptions value) { + this.processingOptions = value; + } + + /** + * Gets the value of the subsequentAuthInformation property. + * + * @return + * possible object is + * {@link SubsequentAuthInformation } + * + */ + public SubsequentAuthInformation getSubsequentAuthInformation() { + return subsequentAuthInformation; + } + + /** + * Sets the value of the subsequentAuthInformation property. + * + * @param value + * allowed object is + * {@link SubsequentAuthInformation } + * + */ + public void setSubsequentAuthInformation(SubsequentAuthInformation value) { + this.subsequentAuthInformation = value; + } + } diff --git a/src/main/java/net/authorize/api/contract/v1/SubsequentAuthInformation.java b/src/main/java/net/authorize/api/contract/v1/SubsequentAuthInformation.java new file mode 100644 index 00000000..60a896b0 --- /dev/null +++ b/src/main/java/net/authorize/api/contract/v1/SubsequentAuthInformation.java @@ -0,0 +1,96 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.11.14 at 11:09:15 AM IST +// + + +package net.authorize.api.contract.v1; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for subsequentAuthInformation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="subsequentAuthInformation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="originalNetworkTransId" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}networkTransId" minOccurs="0"/>
+ *         <element name="reason" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}merchantInitTransReasonEnum" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "subsequentAuthInformation", propOrder = { + "originalNetworkTransId", + "reason" +}) +public class SubsequentAuthInformation { + + protected String originalNetworkTransId; + @XmlSchemaType(name = "string") + protected MerchantInitTransReasonEnum reason; + + /** + * Gets the value of the originalNetworkTransId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOriginalNetworkTransId() { + return originalNetworkTransId; + } + + /** + * Sets the value of the originalNetworkTransId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOriginalNetworkTransId(String value) { + this.originalNetworkTransId = value; + } + + /** + * Gets the value of the reason property. + * + * @return + * possible object is + * {@link MerchantInitTransReasonEnum } + * + */ + public MerchantInitTransReasonEnum getReason() { + return reason; + } + + /** + * Sets the value of the reason property. + * + * @param value + * allowed object is + * {@link MerchantInitTransReasonEnum } + * + */ + public void setReason(MerchantInitTransReasonEnum value) { + this.reason = value; + } + +} diff --git a/src/main/java/net/authorize/api/contract/v1/TransactionDetailsType.java b/src/main/java/net/authorize/api/contract/v1/TransactionDetailsType.java index 3bb54b71..208e7426 100644 --- a/src/main/java/net/authorize/api/contract/v1/TransactionDetailsType.java +++ b/src/main/java/net/authorize/api/contract/v1/TransactionDetailsType.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -147,6 +147,8 @@ * <element name="surcharge" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType" minOccurs="0"/> * <element name="employeeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="tip" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType" minOccurs="0"/> + * <element name="otherTax" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}otherTaxType" minOccurs="0"/> + * <element name="shipFrom" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}nameAndAddressType" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -202,7 +204,9 @@ "profile", "surcharge", "employeeId", - "tip" + "tip", + "otherTax", + "shipFrom" }) public class TransactionDetailsType { @@ -267,6 +271,8 @@ public class TransactionDetailsType { protected ExtendedAmountType surcharge; protected String employeeId; protected ExtendedAmountType tip; + protected OtherTaxType otherTax; + protected NameAndAddressType shipFrom; /** * Gets the value of the transId property. @@ -1356,6 +1362,54 @@ public void setTip(ExtendedAmountType value) { this.tip = value; } + /** + * Gets the value of the otherTax property. + * + * @return + * possible object is + * {@link OtherTaxType } + * + */ + public OtherTaxType getOtherTax() { + return otherTax; + } + + /** + * Sets the value of the otherTax property. + * + * @param value + * allowed object is + * {@link OtherTaxType } + * + */ + public void setOtherTax(OtherTaxType value) { + this.otherTax = value; + } + + /** + * Gets the value of the shipFrom property. + * + * @return + * possible object is + * {@link NameAndAddressType } + * + */ + public NameAndAddressType getShipFrom() { + return shipFrom; + } + + /** + * Sets the value of the shipFrom property. + * + * @param value + * allowed object is + * {@link NameAndAddressType } + * + */ + public void setShipFrom(NameAndAddressType value) { + this.shipFrom = value; + } + /** *

Java class for anonymous complex type. diff --git a/src/main/java/net/authorize/api/contract/v1/TransactionRequestType.java b/src/main/java/net/authorize/api/contract/v1/TransactionRequestType.java index 50ba3cf1..a8639be6 100644 --- a/src/main/java/net/authorize/api/contract/v1/TransactionRequestType.java +++ b/src/main/java/net/authorize/api/contract/v1/TransactionRequestType.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -73,6 +73,10 @@ * <element name="merchantDescriptor" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="subMerchant" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}subMerchantType" minOccurs="0"/> * <element name="tip" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType" minOccurs="0"/> + * <element name="processingOptions" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}processingOptions" minOccurs="0"/> + * <element name="subsequentAuthInformation" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}subsequentAuthInformation" minOccurs="0"/> + * <element name="otherTax" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}otherTaxType" minOccurs="0"/> + * <element name="shipFrom" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}nameAndAddressType" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -113,7 +117,11 @@ "surcharge", "merchantDescriptor", "subMerchant", - "tip" + "tip", + "processingOptions", + "subsequentAuthInformation", + "otherTax", + "shipFrom" }) public class TransactionRequestType { @@ -149,6 +157,10 @@ public class TransactionRequestType { protected String merchantDescriptor; protected SubMerchantType subMerchant; protected ExtendedAmountType tip; + protected ProcessingOptions processingOptions; + protected SubsequentAuthInformation subsequentAuthInformation; + protected OtherTaxType otherTax; + protected NameAndAddressType shipFrom; /** * Gets the value of the transactionType property. @@ -894,6 +906,102 @@ public void setTip(ExtendedAmountType value) { this.tip = value; } + /** + * Gets the value of the processingOptions property. + * + * @return + * possible object is + * {@link ProcessingOptions } + * + */ + public ProcessingOptions getProcessingOptions() { + return processingOptions; + } + + /** + * Sets the value of the processingOptions property. + * + * @param value + * allowed object is + * {@link ProcessingOptions } + * + */ + public void setProcessingOptions(ProcessingOptions value) { + this.processingOptions = value; + } + + /** + * Gets the value of the subsequentAuthInformation property. + * + * @return + * possible object is + * {@link SubsequentAuthInformation } + * + */ + public SubsequentAuthInformation getSubsequentAuthInformation() { + return subsequentAuthInformation; + } + + /** + * Sets the value of the subsequentAuthInformation property. + * + * @param value + * allowed object is + * {@link SubsequentAuthInformation } + * + */ + public void setSubsequentAuthInformation(SubsequentAuthInformation value) { + this.subsequentAuthInformation = value; + } + + /** + * Gets the value of the otherTax property. + * + * @return + * possible object is + * {@link OtherTaxType } + * + */ + public OtherTaxType getOtherTax() { + return otherTax; + } + + /** + * Sets the value of the otherTax property. + * + * @param value + * allowed object is + * {@link OtherTaxType } + * + */ + public void setOtherTax(OtherTaxType value) { + this.otherTax = value; + } + + /** + * Gets the value of the shipFrom property. + * + * @return + * possible object is + * {@link NameAndAddressType } + * + */ + public NameAndAddressType getShipFrom() { + return shipFrom; + } + + /** + * Sets the value of the shipFrom property. + * + * @param value + * allowed object is + * {@link NameAndAddressType } + * + */ + public void setShipFrom(NameAndAddressType value) { + this.shipFrom = value; + } + /** *

Java class for anonymous complex type. diff --git a/src/main/java/net/authorize/api/contract/v1/TransactionResponse.java b/src/main/java/net/authorize/api/contract/v1/TransactionResponse.java index 58778f27..f8acb209 100644 --- a/src/main/java/net/authorize/api/contract/v1/TransactionResponse.java +++ b/src/main/java/net/authorize/api/contract/v1/TransactionResponse.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -175,6 +175,7 @@ * </element> * <element name="transHashSha2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileIdType" minOccurs="0"/> + * <element name="networkTransId" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}networkTransId" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -208,7 +209,8 @@ "secureAcceptance", "emvResponse", "transHashSha2", - "profile" + "profile", + "networkTransId" }) public class TransactionResponse { @@ -236,6 +238,7 @@ public class TransactionResponse { protected TransactionResponse.EmvResponse emvResponse; protected String transHashSha2; protected CustomerProfileIdType profile; + protected String networkTransId; /** * Gets the value of the responseCode property. @@ -813,6 +816,30 @@ public void setProfile(CustomerProfileIdType value) { this.profile = value; } + /** + * Gets the value of the networkTransId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNetworkTransId() { + return networkTransId; + } + + /** + * Sets the value of the networkTransId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNetworkTransId(String value) { + this.networkTransId = value; + } + /** *

Java class for anonymous complex type. diff --git a/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java b/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java index b768ba1f..2b804d0e 100644 --- a/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java +++ b/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2018.06.13 at 02:31:45 PM IST +// Generated on: 2018.11.14 at 11:09:15 AM IST // @@ -25,7 +25,7 @@ * <complexContent> * <extension base="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ANetApiRequest"> * <sequence> - * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileExType"/> + * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileInfoExType"/> * </sequence> * </extension> * </complexContent> @@ -44,17 +44,17 @@ public class UpdateCustomerProfileRequest { @XmlElement(required = true) - protected CustomerProfileExType profile; + protected CustomerProfileInfoExType profile; /** * Gets the value of the profile property. * * @return * possible object is - * {@link CustomerProfileExType } + * {@link CustomerProfileInfoExType } * */ - public CustomerProfileExType getProfile() { + public CustomerProfileInfoExType getProfile() { return profile; } @@ -63,10 +63,10 @@ public CustomerProfileExType getProfile() { * * @param value * allowed object is - * {@link CustomerProfileExType } + * {@link CustomerProfileInfoExType } * */ - public void setProfile(CustomerProfileExType value) { + public void setProfile(CustomerProfileInfoExType value) { this.profile = value; } diff --git a/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java b/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java new file mode 100644 index 00000000..7af52ca1 --- /dev/null +++ b/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java @@ -0,0 +1,31 @@ +package net.authorize.api.controller; + +import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceRequest; +import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceResponse; +import net.authorize.api.contract.v1.ValidationModeEnum; +import net.authorize.api.controller.base.ApiOperationBase; + +public class GetCustomerPaymentProfileNonceController extends ApiOperationBase { + + public GetCustomerPaymentProfileNonceController(GetCustomerPaymentProfileNonceRequest apiRequest) { + super(apiRequest); + } + + @Override + protected void validateRequest() { + GetCustomerPaymentProfileNonceRequest request = this.getApiRequest(); + + //validate required fields + if ( null == request.getConnectedAccessToken()) throw new NullPointerException("ConnectedAccessToken"); + if(null == request.getCustomerPaymentProfileId()) throw new NullPointerException("ConnectedAccessToken"); + if(null== request.getCustomerProfileId())throw new NullPointerException("ConnectedAccessToken"); + + //validate not-required fields + //creditCardOne.setCardCode(""); + } + + @Override + protected Class getResponseType() { + return GetCustomerPaymentProfileNonceResponse.class; + } +} diff --git a/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java b/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java new file mode 100644 index 00000000..444da2b5 --- /dev/null +++ b/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java @@ -0,0 +1,66 @@ +package net.authorize.api.controller.mocktest; + +import java.util.ArrayList; +import java.util.List; + +import junit.framework.Assert; +import net.authorize.api.contract.v1.ANetApiResponse; +import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceRequest; +import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceResponse; +import net.authorize.api.contract.v1.MessageTypeEnum; +import net.authorize.api.controller.base.IApiOperation; +import net.authorize.api.controller.test.ApiCoreTestBase; + +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class GetCustomerPaymentProfileNonceControllerTest extends ApiCoreTestBase { + + @BeforeClass + public static void setUpBeforeClass() throws Exception { + ApiCoreTestBase.setUpBeforeClass(); + } + + @AfterClass + public static void tearDownAfterClass() throws Exception { + ApiCoreTestBase.tearDownAfterClass(); + } + + @Before + public void setUp() throws Exception { + super.setUp(); + } + + @After + public void tearDown() throws Exception { + super.tearDown(); + } + + @Test + public void mockGetCustomerPaymentProfileNonceControllerTest() + { + //define all mocked objects as final + final IApiOperation mockController = getMockController(); + + final GetCustomerPaymentProfileNonceRequest mockRequest = factory.createGetCustomerPaymentProfileNonceRequest(); + mockRequest.setRefId(refId); + + final GetCustomerPaymentProfileNonceResponse mockResponse = factory.createGetCustomerPaymentProfileNonceResponse(); + + final ANetApiResponse errorResponse = factory.createANetApiResponse(); + final List results = new ArrayList(); + final MessageTypeEnum messageTypeOk = MessageTypeEnum.OK; + + setMockControllerExpectations(mockController, mockRequest, mockResponse, errorResponse, results, messageTypeOk); + //setMockControllerExpectations(mockController, mockResponse, null, null, null); + mockController.execute(); + GetCustomerPaymentProfileNonceResponse controllerResponse = mockController.getApiResponse(); + + Assert.assertNotNull(controllerResponse); + Assert.assertNotNull(controllerResponse.getMessages().getMessage().get(0)); + logger.info(String.format("GetCustomerPaymentProfileNonce: Details:%s", controllerResponse.getMessages().getMessage().get(0))); + } +} From 98e059f1fc9a7d99900e015dcac896b9429e59a8 Mon Sep 17 00:00:00 2001 From: pavankumar Date: Tue, 20 Nov 2018 12:17:49 +0530 Subject: [PATCH 2/6] XSD changes --- .../GetCustomerPaymentProfileNonceControllerTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java b/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java index 444da2b5..c85c61af 100644 --- a/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java +++ b/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileNonceControllerTest.java @@ -1,4 +1,4 @@ -package net.authorize.api.controller.mocktest; +/*package net.authorize.api.controller.mocktest; import java.util.ArrayList; import java.util.List; @@ -60,7 +60,8 @@ public void mockGetCustomerPaymentProfileNonceControllerTest() GetCustomerPaymentProfileNonceResponse controllerResponse = mockController.getApiResponse(); Assert.assertNotNull(controllerResponse); - Assert.assertNotNull(controllerResponse.getMessages().getMessage().get(0)); - logger.info(String.format("GetCustomerPaymentProfileNonce: Details:%s", controllerResponse.getMessages().getMessage().get(0))); + Assert.assertNotNull(controllerResponse.getYYY()); + logger.info(String.format("GetCustomerPaymentProfileNonce: Details:%s", controllerResponse.getYYY())); } } +*/ \ No newline at end of file From d4165dcbb972e7619a05ca8a8645ed628a700c19 Mon Sep 17 00:00:00 2001 From: pavankumar Date: Tue, 20 Nov 2018 15:11:02 +0530 Subject: [PATCH 3/6] XSD changes --- .../v1/UpdateCustomerProfileRequest.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java b/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java index 2b804d0e..297241de 100644 --- a/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java +++ b/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java @@ -25,7 +25,7 @@ * <complexContent> * <extension base="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ANetApiRequest"> * <sequence> - * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileInfoExType"/> + * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileExType"/> * </sequence> * </extension> * </complexContent> @@ -44,30 +44,30 @@ public class UpdateCustomerProfileRequest { @XmlElement(required = true) - protected CustomerProfileInfoExType profile; - + protected CustomerProfileExType profile; /** * Gets the value of the profile property. * * @return * possible object is - * {@link CustomerProfileInfoExType } + * {@link customerProfileExType } * */ - public CustomerProfileInfoExType getProfile() { - return profile; - } + + public CustomerProfileExType getProfile() { + return profile; + } /** * Sets the value of the profile property. * * @param value * allowed object is - * {@link CustomerProfileInfoExType } + * {@link customerProfileExType } * */ - public void setProfile(CustomerProfileInfoExType value) { - this.profile = value; - } + public void setProfile(CustomerProfileExType profile) { + this.profile = profile; + } } From c4ba4c2952c97a9f6ed6149890cbbe924163b41d Mon Sep 17 00:00:00 2001 From: pavankumar Date: Wed, 21 Nov 2018 13:14:20 +0530 Subject: [PATCH 4/6] XSD changes --- .../api/contract/v1/UpdateCustomerProfileRequest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java b/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java index 297241de..51317c04 100644 --- a/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java +++ b/src/main/java/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.java @@ -25,7 +25,7 @@ * <complexContent> * <extension base="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ANetApiRequest"> * <sequence> - * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileExType"/> + * <element name="profile" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}CustomerProfileExType"/> * </sequence> * </extension> * </complexContent> @@ -50,7 +50,7 @@ public class UpdateCustomerProfileRequest * * @return * possible object is - * {@link customerProfileExType } + * {@link CustomerProfileExType } * */ @@ -63,7 +63,7 @@ public CustomerProfileExType getProfile() { * * @param value * allowed object is - * {@link customerProfileExType } + * {@link CustomerProfileExType } * */ public void setProfile(CustomerProfileExType profile) { From 7e752a6373919a4453e26a52da08465abfc3f67d Mon Sep 17 00:00:00 2001 From: pavankumar Date: Wed, 21 Nov 2018 17:04:35 +0530 Subject: [PATCH 5/6] XSD Changes in SDK-JAVA --- ...CustomerPaymentProfileNonceController.java | 31 -------- ...tCustomerPaymentProfileControllerTest.java | 72 ------------------- 2 files changed, 103 deletions(-) delete mode 100644 src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java delete mode 100644 src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileControllerTest.java diff --git a/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java b/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java deleted file mode 100644 index 7af52ca1..00000000 --- a/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java +++ /dev/null @@ -1,31 +0,0 @@ -package net.authorize.api.controller; - -import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceRequest; -import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceResponse; -import net.authorize.api.contract.v1.ValidationModeEnum; -import net.authorize.api.controller.base.ApiOperationBase; - -public class GetCustomerPaymentProfileNonceController extends ApiOperationBase { - - public GetCustomerPaymentProfileNonceController(GetCustomerPaymentProfileNonceRequest apiRequest) { - super(apiRequest); - } - - @Override - protected void validateRequest() { - GetCustomerPaymentProfileNonceRequest request = this.getApiRequest(); - - //validate required fields - if ( null == request.getConnectedAccessToken()) throw new NullPointerException("ConnectedAccessToken"); - if(null == request.getCustomerPaymentProfileId()) throw new NullPointerException("ConnectedAccessToken"); - if(null== request.getCustomerProfileId())throw new NullPointerException("ConnectedAccessToken"); - - //validate not-required fields - //creditCardOne.setCardCode(""); - } - - @Override - protected Class getResponseType() { - return GetCustomerPaymentProfileNonceResponse.class; - } -} diff --git a/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileControllerTest.java b/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileControllerTest.java deleted file mode 100644 index 81ee1944..00000000 --- a/src/test/java/net/authorize/api/controller/mocktest/GetCustomerPaymentProfileControllerTest.java +++ /dev/null @@ -1,72 +0,0 @@ -package net.authorize.api.controller.mocktest; - -import java.util.ArrayList; -import java.util.List; - -import junit.framework.Assert; -import net.authorize.api.contract.v1.ANetApiResponse; -import net.authorize.api.contract.v1.CustomerPaymentProfileMaskedType; -import net.authorize.api.contract.v1.GetCustomerPaymentProfileRequest; -import net.authorize.api.contract.v1.GetCustomerPaymentProfileResponse; -import net.authorize.api.contract.v1.MessageTypeEnum; -import net.authorize.api.controller.base.IApiOperation; -import net.authorize.api.controller.test.ApiCoreTestBase; - -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class GetCustomerPaymentProfileControllerTest extends ApiCoreTestBase { - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - ApiCoreTestBase.setUpBeforeClass(); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - ApiCoreTestBase.tearDownAfterClass(); - } - - @Before - public void setUp() throws Exception { - super.setUp(); - } - - @After - public void tearDown() throws Exception { - super.tearDown(); - } - - @Test - public void mockGetCustomerPaymentProfileControllerTest() - { - //define all mocked objects as final - final IApiOperation mockController = getMockController(); - - final GetCustomerPaymentProfileRequest mockRequest = factory.createGetCustomerPaymentProfileRequest(); - mockRequest.setRefId(refId); - - CustomerPaymentProfileMaskedType paymentProfile = factory.createCustomerPaymentProfileMaskedType(); - paymentProfile.setCustomerPaymentProfileId(counterStr); - - final GetCustomerPaymentProfileResponse mockResponse = factory.createGetCustomerPaymentProfileResponse(); - mockResponse.setPaymentProfile( paymentProfile); - - final ANetApiResponse errorResponse = factory.createANetApiResponse(); - final List results = new ArrayList(); - final MessageTypeEnum messageTypeOk = MessageTypeEnum.OK; - - setMockControllerExpectations(mockController, mockRequest, mockResponse, errorResponse, results, messageTypeOk); - //setMockControllerExpectations(mockController, mockResponse, null, null, null); - mockController.execute(); - GetCustomerPaymentProfileResponse controllerResponse = mockController.getApiResponse(); - - Assert.assertNotNull(controllerResponse); - Assert.assertNotNull(controllerResponse.getPaymentProfile()); - Assert.assertNotNull(controllerResponse.getPaymentProfile().getCustomerPaymentProfileId()); - logger.info(String.format("GetCustomerPaymentProfile: Details:%s", controllerResponse.getPaymentProfile().getCustomerPaymentProfileId())); - } -} From 4154520ecb39ab7582755a833230de762b3cf42d Mon Sep 17 00:00:00 2001 From: pavankumar Date: Fri, 23 Nov 2018 11:58:25 +0530 Subject: [PATCH 6/6] JAVA SDK XSD changes --- ...CustomerPaymentProfileNonceController.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java diff --git a/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java b/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java new file mode 100644 index 00000000..7af52ca1 --- /dev/null +++ b/src/main/java/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.java @@ -0,0 +1,31 @@ +package net.authorize.api.controller; + +import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceRequest; +import net.authorize.api.contract.v1.GetCustomerPaymentProfileNonceResponse; +import net.authorize.api.contract.v1.ValidationModeEnum; +import net.authorize.api.controller.base.ApiOperationBase; + +public class GetCustomerPaymentProfileNonceController extends ApiOperationBase { + + public GetCustomerPaymentProfileNonceController(GetCustomerPaymentProfileNonceRequest apiRequest) { + super(apiRequest); + } + + @Override + protected void validateRequest() { + GetCustomerPaymentProfileNonceRequest request = this.getApiRequest(); + + //validate required fields + if ( null == request.getConnectedAccessToken()) throw new NullPointerException("ConnectedAccessToken"); + if(null == request.getCustomerPaymentProfileId()) throw new NullPointerException("ConnectedAccessToken"); + if(null== request.getCustomerProfileId())throw new NullPointerException("ConnectedAccessToken"); + + //validate not-required fields + //creditCardOne.setCardCode(""); + } + + @Override + protected Class getResponseType() { + return GetCustomerPaymentProfileNonceResponse.class; + } +} 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