PageRenderTime 79ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://google-checkout-java-sdk.googlecode.com/
Java | 331 lines | 83 code | 26 blank | 222 comment | 4 complexity | 25e585e4cbb2bb652ccead583dddb6a1 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.09.23 at 12:14:48 PM 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.XmlElement;
  13. import javax.xml.bind.annotation.XmlElements;
  14. import javax.xml.bind.annotation.XmlType;
  15. /**
  16. * <p>Java class for ShoppingCart complex type.
  17. *
  18. * <p>The following schema fragment specifies the expected content contained within this class.
  19. *
  20. * <pre>
  21. * &lt;complexType name="ShoppingCart">
  22. * &lt;complexContent>
  23. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  24. * &lt;all>
  25. * &lt;element name="merchant-private-data" type="{http://checkout.google.com/schema/2}anyMultiple" minOccurs="0"/>
  26. * &lt;element name="cart-expiration" type="{http://checkout.google.com/schema/2}CartExpiration" minOccurs="0"/>
  27. * &lt;element name="items">
  28. * &lt;complexType>
  29. * &lt;complexContent>
  30. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  31. * &lt;sequence>
  32. * &lt;element name="item" type="{http://checkout.google.com/schema/2}Item" maxOccurs="unbounded" minOccurs="0"/>
  33. * &lt;/sequence>
  34. * &lt;/restriction>
  35. * &lt;/complexContent>
  36. * &lt;/complexType>
  37. * &lt;/element>
  38. * &lt;element name="buyer-messages" minOccurs="0">
  39. * &lt;complexType>
  40. * &lt;complexContent>
  41. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  42. * &lt;sequence>
  43. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  44. * &lt;element name="gift-message" type="{http://checkout.google.com/schema/2}GiftMessage"/>
  45. * &lt;element name="include-gift-receipt" type="{http://www.w3.org/2001/XMLSchema}string"/>
  46. * &lt;element name="delivery-instructions" type="{http://checkout.google.com/schema/2}DeliveryInstructions"/>
  47. * &lt;element name="special-instructions" type="{http://checkout.google.com/schema/2}SpecialInstructions"/>
  48. * &lt;element name="special-requests" type="{http://checkout.google.com/schema/2}SpecialRequests"/>
  49. * &lt;element name="in-honor-of-message" type="{http://checkout.google.com/schema/2}InHonorOfMessage"/>
  50. * &lt;element name="in-tribute-of-message" type="{http://checkout.google.com/schema/2}InTributeOfMessage"/>
  51. * &lt;element name="in-memory-of-message" type="{http://checkout.google.com/schema/2}InMemoryOfMessage"/>
  52. * &lt;element name="buyer-note" type="{http://checkout.google.com/schema/2}BuyerNote"/>
  53. * &lt;/choice>
  54. * &lt;/sequence>
  55. * &lt;/restriction>
  56. * &lt;/complexContent>
  57. * &lt;/complexType>
  58. * &lt;/element>
  59. * &lt;/all>
  60. * &lt;/restriction>
  61. * &lt;/complexContent>
  62. * &lt;/complexType>
  63. * </pre>
  64. *
  65. *
  66. */
  67. @XmlAccessorType(XmlAccessType.FIELD)
  68. @XmlType(name = "ShoppingCart", namespace = "http://checkout.google.com/schema/2", propOrder = {
  69. })
  70. public class ShoppingCart {
  71. @XmlElement(name = "merchant-private-data", namespace = "http://checkout.google.com/schema/2")
  72. protected AnyMultiple merchantPrivateData;
  73. @XmlElement(name = "cart-expiration", namespace = "http://checkout.google.com/schema/2")
  74. protected CartExpiration cartExpiration;
  75. @XmlElement(namespace = "http://checkout.google.com/schema/2", required = true)
  76. protected ShoppingCart.Items items;
  77. @XmlElement(name = "buyer-messages", namespace = "http://checkout.google.com/schema/2")
  78. protected ShoppingCart.BuyerMessages buyerMessages;
  79. /**
  80. * Gets the value of the merchantPrivateData property.
  81. *
  82. * @return
  83. * possible object is
  84. * {@link AnyMultiple }
  85. *
  86. */
  87. public AnyMultiple getMerchantPrivateData() {
  88. return merchantPrivateData;
  89. }
  90. /**
  91. * Sets the value of the merchantPrivateData property.
  92. *
  93. * @param value
  94. * allowed object is
  95. * {@link AnyMultiple }
  96. *
  97. */
  98. public void setMerchantPrivateData(AnyMultiple value) {
  99. this.merchantPrivateData = value;
  100. }
  101. /**
  102. * Gets the value of the cartExpiration property.
  103. *
  104. * @return
  105. * possible object is
  106. * {@link CartExpiration }
  107. *
  108. */
  109. public CartExpiration getCartExpiration() {
  110. return cartExpiration;
  111. }
  112. /**
  113. * Sets the value of the cartExpiration property.
  114. *
  115. * @param value
  116. * allowed object is
  117. * {@link CartExpiration }
  118. *
  119. */
  120. public void setCartExpiration(CartExpiration value) {
  121. this.cartExpiration = value;
  122. }
  123. /**
  124. * Gets the value of the items property.
  125. *
  126. * @return
  127. * possible object is
  128. * {@link ShoppingCart.Items }
  129. *
  130. */
  131. public ShoppingCart.Items getItems() {
  132. return items;
  133. }
  134. /**
  135. * Sets the value of the items property.
  136. *
  137. * @param value
  138. * allowed object is
  139. * {@link ShoppingCart.Items }
  140. *
  141. */
  142. public void setItems(ShoppingCart.Items value) {
  143. this.items = value;
  144. }
  145. /**
  146. * Gets the value of the buyerMessages property.
  147. *
  148. * @return
  149. * possible object is
  150. * {@link ShoppingCart.BuyerMessages }
  151. *
  152. */
  153. public ShoppingCart.BuyerMessages getBuyerMessages() {
  154. return buyerMessages;
  155. }
  156. /**
  157. * Sets the value of the buyerMessages property.
  158. *
  159. * @param value
  160. * allowed object is
  161. * {@link ShoppingCart.BuyerMessages }
  162. *
  163. */
  164. public void setBuyerMessages(ShoppingCart.BuyerMessages value) {
  165. this.buyerMessages = value;
  166. }
  167. /**
  168. * <p>Java class for anonymous complex type.
  169. *
  170. * <p>The following schema fragment specifies the expected content contained within this class.
  171. *
  172. * <pre>
  173. * &lt;complexType>
  174. * &lt;complexContent>
  175. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  176. * &lt;sequence>
  177. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  178. * &lt;element name="gift-message" type="{http://checkout.google.com/schema/2}GiftMessage"/>
  179. * &lt;element name="include-gift-receipt" type="{http://www.w3.org/2001/XMLSchema}string"/>
  180. * &lt;element name="delivery-instructions" type="{http://checkout.google.com/schema/2}DeliveryInstructions"/>
  181. * &lt;element name="special-instructions" type="{http://checkout.google.com/schema/2}SpecialInstructions"/>
  182. * &lt;element name="special-requests" type="{http://checkout.google.com/schema/2}SpecialRequests"/>
  183. * &lt;element name="in-honor-of-message" type="{http://checkout.google.com/schema/2}InHonorOfMessage"/>
  184. * &lt;element name="in-tribute-of-message" type="{http://checkout.google.com/schema/2}InTributeOfMessage"/>
  185. * &lt;element name="in-memory-of-message" type="{http://checkout.google.com/schema/2}InMemoryOfMessage"/>
  186. * &lt;element name="buyer-note" type="{http://checkout.google.com/schema/2}BuyerNote"/>
  187. * &lt;/choice>
  188. * &lt;/sequence>
  189. * &lt;/restriction>
  190. * &lt;/complexContent>
  191. * &lt;/complexType>
  192. * </pre>
  193. *
  194. *
  195. */
  196. @XmlAccessorType(XmlAccessType.FIELD)
  197. @XmlType(name = "", propOrder = {
  198. "allBuyerMessages"
  199. })
  200. public static class BuyerMessages {
  201. @XmlElements({
  202. @XmlElement(name = "in-honor-of-message", namespace = "http://checkout.google.com/schema/2", type = InHonorOfMessage.class),
  203. @XmlElement(name = "special-instructions", namespace = "http://checkout.google.com/schema/2", type = SpecialInstructions.class),
  204. @XmlElement(name = "gift-message", namespace = "http://checkout.google.com/schema/2", type = GiftMessage.class),
  205. @XmlElement(name = "in-memory-of-message", namespace = "http://checkout.google.com/schema/2", type = InMemoryOfMessage.class),
  206. @XmlElement(name = "include-gift-receipt", namespace = "http://checkout.google.com/schema/2", type = String.class),
  207. @XmlElement(name = "in-tribute-of-message", namespace = "http://checkout.google.com/schema/2", type = InTributeOfMessage.class),
  208. @XmlElement(name = "buyer-note", namespace = "http://checkout.google.com/schema/2", type = BuyerNote.class),
  209. @XmlElement(name = "special-requests", namespace = "http://checkout.google.com/schema/2", type = SpecialRequests.class),
  210. @XmlElement(name = "delivery-instructions", namespace = "http://checkout.google.com/schema/2", type = DeliveryInstructions.class)
  211. })
  212. protected List<Object> allBuyerMessages;
  213. /**
  214. * Gets the value of the allBuyerMessages property.
  215. *
  216. * <p>
  217. * This accessor method returns a reference to the live list,
  218. * not a snapshot. Therefore any modification you make to the
  219. * returned list will be present inside the JAXB object.
  220. * This is why there is not a <CODE>set</CODE> method for the allBuyerMessages property.
  221. *
  222. * <p>
  223. * For example, to add a new item, do as follows:
  224. * <pre>
  225. * getAllBuyerMessages().add(newItem);
  226. * </pre>
  227. *
  228. *
  229. * <p>
  230. * Objects of the following type(s) are allowed in the list
  231. * {@link InHonorOfMessage }
  232. * {@link SpecialInstructions }
  233. * {@link GiftMessage }
  234. * {@link InMemoryOfMessage }
  235. * {@link String }
  236. * {@link InTributeOfMessage }
  237. * {@link BuyerNote }
  238. * {@link SpecialRequests }
  239. * {@link DeliveryInstructions }
  240. *
  241. *
  242. */
  243. public List<Object> getAllBuyerMessages() {
  244. if (allBuyerMessages == null) {
  245. allBuyerMessages = new ArrayList<Object>();
  246. }
  247. return this.allBuyerMessages;
  248. }
  249. }
  250. /**
  251. * <p>Java class for anonymous complex type.
  252. *
  253. * <p>The following schema fragment specifies the expected content contained within this class.
  254. *
  255. * <pre>
  256. * &lt;complexType>
  257. * &lt;complexContent>
  258. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  259. * &lt;sequence>
  260. * &lt;element name="item" type="{http://checkout.google.com/schema/2}Item" maxOccurs="unbounded" minOccurs="0"/>
  261. * &lt;/sequence>
  262. * &lt;/restriction>
  263. * &lt;/complexContent>
  264. * &lt;/complexType>
  265. * </pre>
  266. *
  267. *
  268. */
  269. @XmlAccessorType(XmlAccessType.FIELD)
  270. @XmlType(name = "", propOrder = {
  271. "item"
  272. })
  273. public static class Items {
  274. @XmlElement(namespace = "http://checkout.google.com/schema/2")
  275. protected List<Item> item;
  276. /**
  277. * Gets the value of the item property.
  278. *
  279. * <p>
  280. * This accessor method returns a reference to the live list,
  281. * not a snapshot. Therefore any modification you make to the
  282. * returned list will be present inside the JAXB object.
  283. * This is why there is not a <CODE>set</CODE> method for the item property.
  284. *
  285. * <p>
  286. * For example, to add a new item, do as follows:
  287. * <pre>
  288. * getItem().add(newItem);
  289. * </pre>
  290. *
  291. *
  292. * <p>
  293. * Objects of the following type(s) are allowed in the list
  294. * {@link Item }
  295. *
  296. *
  297. */
  298. public List<Item> getItem() {
  299. if (item == null) {
  300. item = new ArrayList<Item>();
  301. }
  302. return this.item;
  303. }
  304. }
  305. }