@@ -7,62 +7,62 @@ |
||
7 | 7 | class Chargeback extends ResultObject |
8 | 8 | { |
9 | 9 | /** |
10 | - * @type string UUID of the Chargeback. |
|
11 | - * Value assigned by Cardinity. |
|
12 | - */ |
|
10 | + * @type string UUID of the Chargeback. |
|
11 | + * Value assigned by Cardinity. |
|
12 | + */ |
|
13 | 13 | private $id; |
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
17 | - * @type float Amount charged shown in #0.00 format. |
|
18 | - */ |
|
17 | + * @type float Amount charged shown in #0.00 format. |
|
18 | + */ |
|
19 | 19 | private $amount; |
20 | 20 | |
21 | 21 | /** |
22 | - * @type string Three-letter ISO currency code representing the currency in |
|
23 | - * which the charge was made. |
|
24 | - * Supported currencies: EUR, USD. |
|
25 | - */ |
|
22 | + * @type string Three-letter ISO currency code representing the currency in |
|
23 | + * which the charge was made. |
|
24 | + * Supported currencies: EUR, USD. |
|
25 | + */ |
|
26 | 26 | private $currency; |
27 | 27 | |
28 | 28 | /** |
29 | - * @type string Can only have value 'chargeback' |
|
30 | - */ |
|
29 | + * @type string Can only have value 'chargeback' |
|
30 | + */ |
|
31 | 31 | private $type; |
32 | 32 | |
33 | 33 | /** |
34 | - * @type string Chargeback Creation time RFC 3339 Section 5.6. |
|
35 | - * UTC timezone. |
|
36 | - */ |
|
34 | + * @type string Chargeback Creation time RFC 3339 Section 5.6. |
|
35 | + * UTC timezone. |
|
36 | + */ |
|
37 | 37 | private $created; |
38 | 38 | |
39 | 39 | /** |
40 | - * @type boolean Indicates whether chargeback was created in live or sandbox |
|
41 | - */ |
|
40 | + * @type boolean Indicates whether chargeback was created in live or sandbox |
|
41 | + */ |
|
42 | 42 | private $live; |
43 | 43 | |
44 | 44 | /** |
45 | - * @type string Parent UUID of the Chargeback. |
|
46 | - * Value assigned by Cardinity. |
|
47 | - */ |
|
45 | + * @type string Parent UUID of the Chargeback. |
|
46 | + * Value assigned by Cardinity. |
|
47 | + */ |
|
48 | 48 | private $parent_id; |
49 | 49 | |
50 | 50 | /** |
51 | - * @type string Status of chargeback |
|
52 | - * Can only be 'approved' or 'declined' |
|
53 | - */ |
|
51 | + * @type string Status of chargeback |
|
52 | + * Can only be 'approved' or 'declined' |
|
53 | + */ |
|
54 | 54 | private $status; |
55 | 55 | |
56 | 56 | /** |
57 | - * @type string Reason of chargeback |
|
58 | - * Chargeback reason (Only present if chargeback status is approved). |
|
59 | - * Format is "reason_code: reason_message" |
|
60 | - */ |
|
57 | + * @type string Reason of chargeback |
|
58 | + * Chargeback reason (Only present if chargeback status is approved). |
|
59 | + * Format is "reason_code: reason_message" |
|
60 | + */ |
|
61 | 61 | private $reason; |
62 | 62 | |
63 | 63 | /** |
64 | - * @type string Description of chargeback |
|
65 | - */ |
|
64 | + * @type string Description of chargeback |
|
65 | + */ |
|
66 | 66 | private $description; |
67 | 67 | |
68 | 68 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function __construct($payment_id, $chargeback_id) |
14 | 14 | { |
15 | 15 | $this->payment_id = $payment_id; |
16 | - $this->chargeback_id =$chargeback_id; |
|
16 | + $this->chargeback_id = $chargeback_id; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function getChargebackId() |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | public function getAction() |
32 | 32 | { |
33 | - if($this->payment_id == null){ |
|
33 | + if ($this->payment_id == null) { |
|
34 | 34 | return 'payments/chargebacks'; |
35 | 35 | } else { |
36 | 36 | return sprintf('payments/%s/chargebacks/', $this->payment_id); |