/src/java/com/google/checkout/sdk/domain/NotificationHistoryResponse.java
Java | 338 lines | 94 code | 28 blank | 216 comment | 4 complexity | 5b4e0814afe50e2ada5abbd28532fd83 MD5 | raw file
Possible License(s): Apache-2.0
- //
- // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
- // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
- // Any modifications to this file will be lost upon recompilation of the source schema.
- // Generated on: 2010.04.28 at 11:58:56 AM PDT
- //
- package com.google.checkout.sdk.domain;
- 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.XmlAttribute;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlElements;
- import javax.xml.bind.annotation.XmlSchemaType;
- import javax.xml.bind.annotation.XmlType;
- import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
- import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
- /**
- * <p>Java class for NotificationHistoryResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="NotificationHistoryResponse">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="notifications">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <element name="new-order-notification" type="{http://checkout.google.com/schema/2}NewOrderNotification"/>
- * <element name="order-state-change-notification" type="{http://checkout.google.com/schema/2}OrderStateChangeNotification"/>
- * <element name="charge-amount-notification" type="{http://checkout.google.com/schema/2}ChargeAmountNotification"/>
- * <element name="chargeback-amount-notification" type="{http://checkout.google.com/schema/2}ChargebackAmountNotification"/>
- * <element name="refund-amount-notification" type="{http://checkout.google.com/schema/2}RefundAmountNotification"/>
- * <element name="risk-information-notification" type="{http://checkout.google.com/schema/2}RiskInformationNotification"/>
- * <element name="authorization-amount-notification" type="{http://checkout.google.com/schema/2}AuthorizationAmountNotification"/>
- * </choice>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * <element name="next-page-token" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="invalid-order-numbers" minOccurs="0">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="google-order-number" type="{http://www.w3.org/2001/XMLSchema}token" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * </all>
- * <attribute name="serial-number" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "NotificationHistoryResponse", namespace = "http://checkout.google.com/schema/2", propOrder = {
- })
- public class NotificationHistoryResponse {
- @XmlElement(namespace = "http://checkout.google.com/schema/2", required = true)
- protected NotificationHistoryResponse.Notifications notifications;
- @XmlElement(name = "next-page-token", namespace = "http://checkout.google.com/schema/2")
- protected String nextPageToken;
- @XmlElement(name = "invalid-order-numbers", namespace = "http://checkout.google.com/schema/2")
- protected NotificationHistoryResponse.InvalidOrderNumbers invalidOrderNumbers;
- @XmlAttribute(name = "serial-number", required = true)
- protected String serialNumber;
- /**
- * Gets the value of the notifications property.
- *
- * @return
- * possible object is
- * {@link NotificationHistoryResponse.Notifications }
- *
- */
- public NotificationHistoryResponse.Notifications getNotifications() {
- return notifications;
- }
- /**
- * Sets the value of the notifications property.
- *
- * @param value
- * allowed object is
- * {@link NotificationHistoryResponse.Notifications }
- *
- */
- public void setNotifications(NotificationHistoryResponse.Notifications value) {
- this.notifications = value;
- }
- /**
- * Gets the value of the nextPageToken property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getNextPageToken() {
- return nextPageToken;
- }
- /**
- * Sets the value of the nextPageToken property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setNextPageToken(String value) {
- this.nextPageToken = value;
- }
- /**
- * Gets the value of the invalidOrderNumbers property.
- *
- * @return
- * possible object is
- * {@link NotificationHistoryResponse.InvalidOrderNumbers }
- *
- */
- public NotificationHistoryResponse.InvalidOrderNumbers getInvalidOrderNumbers() {
- return invalidOrderNumbers;
- }
- /**
- * Sets the value of the invalidOrderNumbers property.
- *
- * @param value
- * allowed object is
- * {@link NotificationHistoryResponse.InvalidOrderNumbers }
- *
- */
- public void setInvalidOrderNumbers(NotificationHistoryResponse.InvalidOrderNumbers value) {
- this.invalidOrderNumbers = value;
- }
- /**
- * Gets the value of the serialNumber property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getSerialNumber() {
- return serialNumber;
- }
- /**
- * Sets the value of the serialNumber property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setSerialNumber(String value) {
- this.serialNumber = value;
- }
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="google-order-number" type="{http://www.w3.org/2001/XMLSchema}token" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "googleOrderNumber"
- })
- public static class InvalidOrderNumbers {
- @XmlElement(name = "google-order-number", namespace = "http://checkout.google.com/schema/2")
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- @XmlSchemaType(name = "token")
- protected List<String> googleOrderNumber;
- /**
- * Gets the value of the googleOrderNumber property.
- *
- * <p>
- * 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 <CODE>set</CODE> method for the googleOrderNumber property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getGoogleOrderNumber().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List<String> getGoogleOrderNumber() {
- if (googleOrderNumber == null) {
- googleOrderNumber = new ArrayList<String>();
- }
- return this.googleOrderNumber;
- }
- }
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <element name="new-order-notification" type="{http://checkout.google.com/schema/2}NewOrderNotification"/>
- * <element name="order-state-change-notification" type="{http://checkout.google.com/schema/2}OrderStateChangeNotification"/>
- * <element name="charge-amount-notification" type="{http://checkout.google.com/schema/2}ChargeAmountNotification"/>
- * <element name="chargeback-amount-notification" type="{http://checkout.google.com/schema/2}ChargebackAmountNotification"/>
- * <element name="refund-amount-notification" type="{http://checkout.google.com/schema/2}RefundAmountNotification"/>
- * <element name="risk-information-notification" type="{http://checkout.google.com/schema/2}RiskInformationNotification"/>
- * <element name="authorization-amount-notification" type="{http://checkout.google.com/schema/2}AuthorizationAmountNotification"/>
- * </choice>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification"
- })
- public static class Notifications {
- @XmlElements({
- @XmlElement(name = "new-order-notification", namespace = "http://checkout.google.com/schema/2", type = NewOrderNotification.class),
- @XmlElement(name = "risk-information-notification", namespace = "http://checkout.google.com/schema/2", type = RiskInformationNotification.class),
- @XmlElement(name = "refund-amount-notification", namespace = "http://checkout.google.com/schema/2", type = RefundAmountNotification.class),
- @XmlElement(name = "order-state-change-notification", namespace = "http://checkout.google.com/schema/2", type = OrderStateChangeNotification.class),
- @XmlElement(name = "charge-amount-notification", namespace = "http://checkout.google.com/schema/2", type = ChargeAmountNotification.class),
- @XmlElement(name = "chargeback-amount-notification", namespace = "http://checkout.google.com/schema/2", type = ChargebackAmountNotification.class),
- @XmlElement(name = "authorization-amount-notification", namespace = "http://checkout.google.com/schema/2", type = AuthorizationAmountNotification.class)
- })
- protected List<Object> newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification;
- /**
- * Gets the value of the newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification property.
- *
- * <p>
- * 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 <CODE>set</CODE> method for the newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getNewOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link NewOrderNotification }
- * {@link RiskInformationNotification }
- * {@link RefundAmountNotification }
- * {@link OrderStateChangeNotification }
- * {@link ChargeAmountNotification }
- * {@link ChargebackAmountNotification }
- * {@link AuthorizationAmountNotification }
- *
- *
- */
- public List<Object> getNewOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification() {
- if (newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification == null) {
- newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification = new ArrayList<Object>();
- }
- return this.newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification;
- }
- }
- public javax.xml.bind.JAXBElement<NotificationHistoryResponse> toJAXB() {
- return com.google.checkout.sdk.util.Utils.objectFactory().createNotificationHistoryResponse(this);
- }
- @Override
- public String toString() {
- return com.google.checkout.sdk.util.Utils.toXML(toJAXB());
- }
- }