PageRenderTime 89ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/src/java/com/google/checkout/sdk/domain/NotificationHistoryResponse.java

http://grails-google-checkout.googlecode.com/
Java | 338 lines | 94 code | 28 blank | 216 comment | 4 complexity | 5b4e0814afe50e2ada5abbd28532fd83 MD5 | raw file
Possible License(s): Apache-2.0
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
  3. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2010.04.28 at 11:58:56 AM PDT
  6. //
  7. package com.google.checkout.sdk.domain;
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import javax.xml.bind.annotation.XmlAccessType;
  11. import javax.xml.bind.annotation.XmlAccessorType;
  12. import javax.xml.bind.annotation.XmlAttribute;
  13. import javax.xml.bind.annotation.XmlElement;
  14. import javax.xml.bind.annotation.XmlElements;
  15. import javax.xml.bind.annotation.XmlSchemaType;
  16. import javax.xml.bind.annotation.XmlType;
  17. import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
  18. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  19. /**
  20. * <p>Java class for NotificationHistoryResponse complex type.
  21. *
  22. * <p>The following schema fragment specifies the expected content contained within this class.
  23. *
  24. * <pre>
  25. * &lt;complexType name="NotificationHistoryResponse">
  26. * &lt;complexContent>
  27. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  28. * &lt;all>
  29. * &lt;element name="notifications">
  30. * &lt;complexType>
  31. * &lt;complexContent>
  32. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  33. * &lt;sequence>
  34. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  35. * &lt;element name="new-order-notification" type="{http://checkout.google.com/schema/2}NewOrderNotification"/>
  36. * &lt;element name="order-state-change-notification" type="{http://checkout.google.com/schema/2}OrderStateChangeNotification"/>
  37. * &lt;element name="charge-amount-notification" type="{http://checkout.google.com/schema/2}ChargeAmountNotification"/>
  38. * &lt;element name="chargeback-amount-notification" type="{http://checkout.google.com/schema/2}ChargebackAmountNotification"/>
  39. * &lt;element name="refund-amount-notification" type="{http://checkout.google.com/schema/2}RefundAmountNotification"/>
  40. * &lt;element name="risk-information-notification" type="{http://checkout.google.com/schema/2}RiskInformationNotification"/>
  41. * &lt;element name="authorization-amount-notification" type="{http://checkout.google.com/schema/2}AuthorizationAmountNotification"/>
  42. * &lt;/choice>
  43. * &lt;/sequence>
  44. * &lt;/restriction>
  45. * &lt;/complexContent>
  46. * &lt;/complexType>
  47. * &lt;/element>
  48. * &lt;element name="next-page-token" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  49. * &lt;element name="invalid-order-numbers" minOccurs="0">
  50. * &lt;complexType>
  51. * &lt;complexContent>
  52. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  53. * &lt;sequence>
  54. * &lt;element name="google-order-number" type="{http://www.w3.org/2001/XMLSchema}token" maxOccurs="unbounded" minOccurs="0"/>
  55. * &lt;/sequence>
  56. * &lt;/restriction>
  57. * &lt;/complexContent>
  58. * &lt;/complexType>
  59. * &lt;/element>
  60. * &lt;/all>
  61. * &lt;attribute name="serial-number" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
  62. * &lt;/restriction>
  63. * &lt;/complexContent>
  64. * &lt;/complexType>
  65. * </pre>
  66. *
  67. *
  68. */
  69. @XmlAccessorType(XmlAccessType.FIELD)
  70. @XmlType(name = "NotificationHistoryResponse", namespace = "http://checkout.google.com/schema/2", propOrder = {
  71. })
  72. public class NotificationHistoryResponse {
  73. @XmlElement(namespace = "http://checkout.google.com/schema/2", required = true)
  74. protected NotificationHistoryResponse.Notifications notifications;
  75. @XmlElement(name = "next-page-token", namespace = "http://checkout.google.com/schema/2")
  76. protected String nextPageToken;
  77. @XmlElement(name = "invalid-order-numbers", namespace = "http://checkout.google.com/schema/2")
  78. protected NotificationHistoryResponse.InvalidOrderNumbers invalidOrderNumbers;
  79. @XmlAttribute(name = "serial-number", required = true)
  80. protected String serialNumber;
  81. /**
  82. * Gets the value of the notifications property.
  83. *
  84. * @return
  85. * possible object is
  86. * {@link NotificationHistoryResponse.Notifications }
  87. *
  88. */
  89. public NotificationHistoryResponse.Notifications getNotifications() {
  90. return notifications;
  91. }
  92. /**
  93. * Sets the value of the notifications property.
  94. *
  95. * @param value
  96. * allowed object is
  97. * {@link NotificationHistoryResponse.Notifications }
  98. *
  99. */
  100. public void setNotifications(NotificationHistoryResponse.Notifications value) {
  101. this.notifications = value;
  102. }
  103. /**
  104. * Gets the value of the nextPageToken property.
  105. *
  106. * @return
  107. * possible object is
  108. * {@link String }
  109. *
  110. */
  111. public String getNextPageToken() {
  112. return nextPageToken;
  113. }
  114. /**
  115. * Sets the value of the nextPageToken property.
  116. *
  117. * @param value
  118. * allowed object is
  119. * {@link String }
  120. *
  121. */
  122. public void setNextPageToken(String value) {
  123. this.nextPageToken = value;
  124. }
  125. /**
  126. * Gets the value of the invalidOrderNumbers property.
  127. *
  128. * @return
  129. * possible object is
  130. * {@link NotificationHistoryResponse.InvalidOrderNumbers }
  131. *
  132. */
  133. public NotificationHistoryResponse.InvalidOrderNumbers getInvalidOrderNumbers() {
  134. return invalidOrderNumbers;
  135. }
  136. /**
  137. * Sets the value of the invalidOrderNumbers property.
  138. *
  139. * @param value
  140. * allowed object is
  141. * {@link NotificationHistoryResponse.InvalidOrderNumbers }
  142. *
  143. */
  144. public void setInvalidOrderNumbers(NotificationHistoryResponse.InvalidOrderNumbers value) {
  145. this.invalidOrderNumbers = value;
  146. }
  147. /**
  148. * Gets the value of the serialNumber property.
  149. *
  150. * @return
  151. * possible object is
  152. * {@link String }
  153. *
  154. */
  155. public String getSerialNumber() {
  156. return serialNumber;
  157. }
  158. /**
  159. * Sets the value of the serialNumber property.
  160. *
  161. * @param value
  162. * allowed object is
  163. * {@link String }
  164. *
  165. */
  166. public void setSerialNumber(String value) {
  167. this.serialNumber = value;
  168. }
  169. /**
  170. * <p>Java class for anonymous complex type.
  171. *
  172. * <p>The following schema fragment specifies the expected content contained within this class.
  173. *
  174. * <pre>
  175. * &lt;complexType>
  176. * &lt;complexContent>
  177. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  178. * &lt;sequence>
  179. * &lt;element name="google-order-number" type="{http://www.w3.org/2001/XMLSchema}token" maxOccurs="unbounded" minOccurs="0"/>
  180. * &lt;/sequence>
  181. * &lt;/restriction>
  182. * &lt;/complexContent>
  183. * &lt;/complexType>
  184. * </pre>
  185. *
  186. *
  187. */
  188. @XmlAccessorType(XmlAccessType.FIELD)
  189. @XmlType(name = "", propOrder = {
  190. "googleOrderNumber"
  191. })
  192. public static class InvalidOrderNumbers {
  193. @XmlElement(name = "google-order-number", namespace = "http://checkout.google.com/schema/2")
  194. @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
  195. @XmlSchemaType(name = "token")
  196. protected List<String> googleOrderNumber;
  197. /**
  198. * Gets the value of the googleOrderNumber property.
  199. *
  200. * <p>
  201. * This accessor method returns a reference to the live list,
  202. * not a snapshot. Therefore any modification you make to the
  203. * returned list will be present inside the JAXB object.
  204. * This is why there is not a <CODE>set</CODE> method for the googleOrderNumber property.
  205. *
  206. * <p>
  207. * For example, to add a new item, do as follows:
  208. * <pre>
  209. * getGoogleOrderNumber().add(newItem);
  210. * </pre>
  211. *
  212. *
  213. * <p>
  214. * Objects of the following type(s) are allowed in the list
  215. * {@link String }
  216. *
  217. *
  218. */
  219. public List<String> getGoogleOrderNumber() {
  220. if (googleOrderNumber == null) {
  221. googleOrderNumber = new ArrayList<String>();
  222. }
  223. return this.googleOrderNumber;
  224. }
  225. }
  226. /**
  227. * <p>Java class for anonymous complex type.
  228. *
  229. * <p>The following schema fragment specifies the expected content contained within this class.
  230. *
  231. * <pre>
  232. * &lt;complexType>
  233. * &lt;complexContent>
  234. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  235. * &lt;sequence>
  236. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  237. * &lt;element name="new-order-notification" type="{http://checkout.google.com/schema/2}NewOrderNotification"/>
  238. * &lt;element name="order-state-change-notification" type="{http://checkout.google.com/schema/2}OrderStateChangeNotification"/>
  239. * &lt;element name="charge-amount-notification" type="{http://checkout.google.com/schema/2}ChargeAmountNotification"/>
  240. * &lt;element name="chargeback-amount-notification" type="{http://checkout.google.com/schema/2}ChargebackAmountNotification"/>
  241. * &lt;element name="refund-amount-notification" type="{http://checkout.google.com/schema/2}RefundAmountNotification"/>
  242. * &lt;element name="risk-information-notification" type="{http://checkout.google.com/schema/2}RiskInformationNotification"/>
  243. * &lt;element name="authorization-amount-notification" type="{http://checkout.google.com/schema/2}AuthorizationAmountNotification"/>
  244. * &lt;/choice>
  245. * &lt;/sequence>
  246. * &lt;/restriction>
  247. * &lt;/complexContent>
  248. * &lt;/complexType>
  249. * </pre>
  250. *
  251. *
  252. */
  253. @XmlAccessorType(XmlAccessType.FIELD)
  254. @XmlType(name = "", propOrder = {
  255. "newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification"
  256. })
  257. public static class Notifications {
  258. @XmlElements({
  259. @XmlElement(name = "new-order-notification", namespace = "http://checkout.google.com/schema/2", type = NewOrderNotification.class),
  260. @XmlElement(name = "risk-information-notification", namespace = "http://checkout.google.com/schema/2", type = RiskInformationNotification.class),
  261. @XmlElement(name = "refund-amount-notification", namespace = "http://checkout.google.com/schema/2", type = RefundAmountNotification.class),
  262. @XmlElement(name = "order-state-change-notification", namespace = "http://checkout.google.com/schema/2", type = OrderStateChangeNotification.class),
  263. @XmlElement(name = "charge-amount-notification", namespace = "http://checkout.google.com/schema/2", type = ChargeAmountNotification.class),
  264. @XmlElement(name = "chargeback-amount-notification", namespace = "http://checkout.google.com/schema/2", type = ChargebackAmountNotification.class),
  265. @XmlElement(name = "authorization-amount-notification", namespace = "http://checkout.google.com/schema/2", type = AuthorizationAmountNotification.class)
  266. })
  267. protected List<Object> newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification;
  268. /**
  269. * Gets the value of the newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification property.
  270. *
  271. * <p>
  272. * This accessor method returns a reference to the live list,
  273. * not a snapshot. Therefore any modification you make to the
  274. * returned list will be present inside the JAXB object.
  275. * This is why there is not a <CODE>set</CODE> method for the newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification property.
  276. *
  277. * <p>
  278. * For example, to add a new item, do as follows:
  279. * <pre>
  280. * getNewOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification().add(newItem);
  281. * </pre>
  282. *
  283. *
  284. * <p>
  285. * Objects of the following type(s) are allowed in the list
  286. * {@link NewOrderNotification }
  287. * {@link RiskInformationNotification }
  288. * {@link RefundAmountNotification }
  289. * {@link OrderStateChangeNotification }
  290. * {@link ChargeAmountNotification }
  291. * {@link ChargebackAmountNotification }
  292. * {@link AuthorizationAmountNotification }
  293. *
  294. *
  295. */
  296. public List<Object> getNewOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification() {
  297. if (newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification == null) {
  298. newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification = new ArrayList<Object>();
  299. }
  300. return this.newOrderNotificationOrOrderStateChangeNotificationOrChargeAmountNotification;
  301. }
  302. }
  303. public javax.xml.bind.JAXBElement<NotificationHistoryResponse> toJAXB() {
  304. return com.google.checkout.sdk.util.Utils.objectFactory().createNotificationHistoryResponse(this);
  305. }
  306. @Override
  307. public String toString() {
  308. return com.google.checkout.sdk.util.Utils.toXML(toJAXB());
  309. }
  310. }