@@ 15-27 (lines=13) @@ | ||
12 | public $fee; |
|
13 | public $statement_descriptor; |
|
14 | ||
15 | public function setData($data) |
|
16 | { |
|
17 | $this->id = $data['id']; |
|
18 | $this->currency = $data['attributes']['currency']; |
|
19 | $this->fee = $data['attributes']['fee']; |
|
20 | $this->status = $data['attributes']['status']; |
|
21 | $this->amount = number_format($data['attributes']['amount'] / 100, 2); |
|
22 | $this->statement_descriptor = $data['attributes']['statement_descriptor']; |
|
23 | $this->source_type = $data['attributes']['source']['type']; |
|
24 | $this->created_at = $data['attributes']['created_at']; |
|
25 | ||
26 | return $this; |
|
27 | } |
|
28 | ||
29 | public function getId() |
|
30 | { |
@@ 16-28 (lines=13) @@ | ||
13 | public $source_type; |
|
14 | public $created_at; |
|
15 | ||
16 | public function setData($data) |
|
17 | { |
|
18 | $this->id = $data['id']; |
|
19 | $this->type = $data['type']; |
|
20 | $this->currency = $data['attributes']['currency']; |
|
21 | $this->status = $data['attributes']['status']; |
|
22 | $this->amount = number_format($data['attributes']['amount'] / 100, 2); |
|
23 | $this->redirect = $data['attributes']['redirect']; |
|
24 | $this->source_type = $data['attributes']['type']; |
|
25 | $this->created_at = $data['attributes']['created_at']; |
|
26 | ||
27 | return $this; |
|
28 | } |
|
29 | } |
|
30 |