1 | <?php |
||
10 | class Entry extends MoipResource |
||
11 | { |
||
12 | /** |
||
13 | * @const string |
||
14 | */ |
||
15 | const PATH = 'entries'; |
||
16 | |||
17 | /** |
||
18 | * Initializes new instances. |
||
19 | */ |
||
20 | protected function initialize() |
||
27 | |||
28 | /** |
||
29 | * Mount the entry. |
||
30 | * |
||
31 | * @param \stdClass $response |
||
32 | * |
||
33 | * @return Entry Entry information. |
||
34 | */ |
||
35 | protected function populate(stdClass $response) |
||
63 | |||
64 | /** |
||
65 | * Get entry in api by id. |
||
66 | * |
||
67 | * @param string $id_moip Event ID that generated the launch. |
||
68 | * |
||
69 | * @return stdClass |
||
70 | */ |
||
71 | public function get($id_moip) |
||
75 | |||
76 | /** |
||
77 | * Get id from entry. |
||
78 | * |
||
79 | * @return string Event ID that generated the launch. |
||
80 | */ |
||
81 | public function getId() |
||
85 | |||
86 | /** |
||
87 | * Get status from entry. |
||
88 | * |
||
89 | * @return string Launch status. Possible values: SCHEDULED, SETTLED. |
||
90 | */ |
||
91 | public function getStatus() |
||
95 | |||
96 | public function getOperation() |
||
100 | |||
101 | /** |
||
102 | * Get total value of order. |
||
103 | * |
||
104 | * @return int|float |
||
105 | */ |
||
106 | public function getAmountTotal() |
||
110 | |||
111 | /** |
||
112 | * Get total value of MoIP rate. |
||
113 | * |
||
114 | * @return int|float |
||
115 | */ |
||
116 | public function getAmountFee() |
||
120 | |||
121 | /** |
||
122 | * Get net total value. |
||
123 | * |
||
124 | * @return int|float |
||
125 | */ |
||
126 | public function getAmountLiquid() |
||
130 | |||
131 | /** |
||
132 | * Get currency used in the application. Possible values: BRL. |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getAmountCurrency() |
||
140 | |||
141 | /** |
||
142 | * Get additional description. |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getDetails() |
||
150 | |||
151 | /** |
||
152 | * Get parant payments. |
||
153 | * |
||
154 | * @return string |
||
155 | */ |
||
156 | public function getParentPayments() |
||
160 | |||
161 | /** |
||
162 | * Get expected date of settlement. |
||
163 | * |
||
164 | * @return \DateTime |
||
165 | */ |
||
166 | public function getScheduledFor() |
||
170 | |||
171 | /** |
||
172 | * Get Settlement date;. |
||
173 | * |
||
174 | * @return \DateTime |
||
175 | */ |
||
176 | public function getSettledAt() |
||
180 | |||
181 | /** |
||
182 | * Get date of last update. |
||
183 | * |
||
184 | * @return \DateTime |
||
185 | */ |
||
186 | public function getUpdatedAt() |
||
190 | |||
191 | /** |
||
192 | * Get creation date of launch. |
||
193 | * |
||
194 | * @return \DateTime |
||
195 | */ |
||
196 | public function getCreatedAt() |
||
200 | } |
||
201 |