1 | <?php |
||
17 | class Order |
||
18 | { |
||
19 | use SerializerTrait; |
||
20 | |||
21 | /** |
||
22 | * @Serializer\XmlElement(cdata=false) |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $currency; |
||
27 | |||
28 | /** |
||
29 | * @Serializer\SerializedName("items") |
||
30 | * @Serializer\Type("ArrayCollection<PHPSC\PagSeguro\Items\Item>") |
||
31 | * @Serializer\XmlList(entry="item") |
||
32 | * |
||
33 | * @var ItemCollection |
||
34 | */ |
||
35 | private $items; |
||
36 | |||
37 | /** |
||
38 | * @Serializer\XmlElement(cdata=false) |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $reference; |
||
43 | |||
44 | /** |
||
45 | * @Serializer\XmlElement(cdata=true) |
||
46 | * @Serializer\Type("boolean") |
||
47 | * |
||
48 | * @var bool |
||
49 | */ |
||
50 | private $shippingAddressRequired; |
||
51 | |||
52 | /** |
||
53 | * @Serializer\Type("PHPSC\PagSeguro\Shipping\Shipping") |
||
54 | * |
||
55 | * @var Shipping |
||
56 | */ |
||
57 | private $shipping; |
||
58 | |||
59 | /** |
||
60 | * @Serializer\XmlElement(cdata=false) |
||
61 | * |
||
62 | * @var float |
||
63 | */ |
||
64 | private $extraAmount; |
||
65 | |||
66 | /** |
||
67 | * @param ItemCollection $items |
||
68 | */ |
||
69 | 38 | public function __construct(ItemCollection $items = null) |
|
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | 5 | public function getCurrency() |
|
82 | |||
83 | /** |
||
84 | * @return ItemCollection |
||
85 | */ |
||
86 | 6 | public function getItems() |
|
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | 5 | public function getReference() |
|
98 | |||
99 | /** |
||
100 | * @param string $reference |
||
101 | */ |
||
102 | 4 | public function setReference($reference) |
|
106 | |||
107 | /** |
||
108 | * @return bool |
||
109 | */ |
||
110 | 5 | public function isShippingAddressRequired() |
|
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | 2 | public function notRequireShippingAddress() |
|
122 | |||
123 | /** |
||
124 | * @return Shipping |
||
125 | */ |
||
126 | 5 | public function getShipping() |
|
130 | |||
131 | /** |
||
132 | * @param Shipping $shipping |
||
133 | */ |
||
134 | 4 | public function setShipping(Shipping $shipping) |
|
138 | |||
139 | /** |
||
140 | * @return float |
||
141 | */ |
||
142 | 5 | public function getExtraAmount() |
|
146 | |||
147 | /** |
||
148 | * @param float $extraAmount |
||
149 | */ |
||
150 | 3 | public function setExtraAmount($extraAmount) |
|
154 | } |
||
155 |