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 | * Create a new Entries List instance. |
||
78 | * |
||
79 | * @return \Moip\Resource\EntriesList |
||
80 | */ |
||
81 | public function getList() |
||
87 | |||
88 | /** |
||
89 | * Get id from entry. |
||
90 | * |
||
91 | * @return string Event ID that generated the launch. |
||
92 | */ |
||
93 | public function getId() |
||
97 | |||
98 | /** |
||
99 | * Get status from entry. |
||
100 | * |
||
101 | * @return string Launch status. Possible values: SCHEDULED, SETTLED. |
||
102 | */ |
||
103 | public function getStatus() |
||
107 | |||
108 | public function getOperation() |
||
112 | |||
113 | /** |
||
114 | * Get total value of order. |
||
115 | * |
||
116 | * @return int|float |
||
117 | */ |
||
118 | public function getAmountTotal() |
||
122 | |||
123 | /** |
||
124 | * Get total value of MoIP rate. |
||
125 | * |
||
126 | * @return int|float |
||
127 | */ |
||
128 | public function getAmountFee() |
||
132 | |||
133 | /** |
||
134 | * Get net total value. |
||
135 | * |
||
136 | * @return int|float |
||
137 | */ |
||
138 | public function getAmountLiquid() |
||
142 | |||
143 | /** |
||
144 | * Get currency used in the application. Possible values: BRL. |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getAmountCurrency() |
||
152 | |||
153 | /** |
||
154 | * Get additional description. |
||
155 | * |
||
156 | * @return string |
||
157 | */ |
||
158 | public function getDetails() |
||
162 | |||
163 | /** |
||
164 | * Get parant payments. |
||
165 | * |
||
166 | * @return string |
||
167 | */ |
||
168 | public function getParentPayments() |
||
172 | |||
173 | /** |
||
174 | * Get expected date of settlement. |
||
175 | * |
||
176 | * @return \DateTime |
||
177 | */ |
||
178 | public function getScheduledFor() |
||
182 | |||
183 | /** |
||
184 | * Get Settlement date;. |
||
185 | * |
||
186 | * @return \DateTime |
||
187 | */ |
||
188 | public function getSettledAt() |
||
192 | |||
193 | /** |
||
194 | * Get date of last update. |
||
195 | * |
||
196 | * @return \DateTime |
||
197 | */ |
||
198 | public function getUpdatedAt() |
||
202 | |||
203 | /** |
||
204 | * Get creation date of launch. |
||
205 | * |
||
206 | * @return \DateTime |
||
207 | */ |
||
208 | public function getCreatedAt() |
||
212 | } |
||
213 |