| @@ -204,9 +204,15 @@ | ||
| 204 | 204 | ): object | 
| 205 | 205 |      { | 
| 206 | 206 | $inside_array = $this->getInsideArray($typeValue); | 
| 207 | - if ($isRequired) array_unshift($inside_array, new Assert\NotBlank()); | |
| 208 | - if ($length) array_push($inside_array, new Assert\Length($length)); | |
| 209 | - if ($args) array_push($inside_array, $args); | |
| 207 | +        if ($isRequired) { | |
| 208 | + array_unshift($inside_array, new Assert\NotBlank()); | |
| 209 | + } | |
| 210 | +        if ($length) { | |
| 211 | + array_push($inside_array, new Assert\Length($length)); | |
| 212 | + } | |
| 213 | +        if ($args) { | |
| 214 | + array_push($inside_array, $args); | |
| 215 | + } | |
| 210 | 216 | |
| 211 | 217 | return $isRequired | 
| 212 | 218 | ? new Assert\Required($inside_array) | 
| @@ -413,10 +413,10 @@ | ||
| 413 | 413 | $this->threeDS2AuthorizationInformation = $threeDS2AuthorizationInformation; | 
| 414 | 414 | } | 
| 415 | 415 | |
| 416 | - /** | |
| 417 | - * Gets the value of statementDescriptorSuffix. | |
| 418 | - * @return mixed | |
| 419 | - */ | |
| 416 | + /** | |
| 417 | + * Gets the value of statementDescriptorSuffix. | |
| 418 | + * @return mixed | |
| 419 | + */ | |
| 420 | 420 | public function getStatementDescriptorSuffix() | 
| 421 | 421 |      { | 
| 422 | 422 | return $this->statementDescriptorSuffix; | 
| @@ -7,59 +7,59 @@ discard block | ||
| 7 | 7 | class PaymentLink extends ResultObject | 
| 8 | 8 |  { | 
| 9 | 9 | /** | 
| 10 | - * @type string ID of the payment link. | |
| 11 | - * Value assigned by Cardinity. | |
| 12 | - */ | |
| 10 | + * @type string ID of the payment link. | |
| 11 | + * Value assigned by Cardinity. | |
| 12 | + */ | |
| 13 | 13 | private $id; | 
| 14 | 14 | |
| 15 | 15 | /** @type string URL of the payment link. | 
| 16 | - * Value assigned by Cardinity. | |
| 17 | - */ | |
| 16 | + * Value assigned by Cardinity. | |
| 17 | + */ | |
| 18 | 18 | private $url; | 
| 19 | 19 | |
| 20 | 20 | /** | 
| 21 | - * @type float Amount charged shown in #0.00 format. | |
| 22 | - */ | |
| 21 | + * @type float Amount charged shown in #0.00 format. | |
| 22 | + */ | |
| 23 | 23 | private $amount; | 
| 24 | 24 | |
| 25 | 25 | /** | 
| 26 | - * @type string Three-letter ISO currency code representing the currency in | |
| 27 | - * which the charge was made. | |
| 28 | - */ | |
| 26 | + * @type string Three-letter ISO currency code representing the currency in | |
| 27 | + * which the charge was made. | |
| 28 | + */ | |
| 29 | 29 | private $currency; | 
| 30 | 30 | |
| 31 | 31 | /** | 
| 32 | - * @type string Country of a customer provided by a merchant. | |
| 33 | - * ISO 3166-1 alpha-2 country code. | |
| 34 | - */ | |
| 32 | + * @type string Country of a customer provided by a merchant. | |
| 33 | + * ISO 3166-1 alpha-2 country code. | |
| 34 | + */ | |
| 35 | 35 | private $country; | 
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | - * @type string Payment Link description provided by a merchant. | |
| 39 | - * Maximum length 255 characters. | |
| 40 | - */ | |
| 38 | + * @type string Payment Link description provided by a merchant. | |
| 39 | + * Maximum length 255 characters. | |
| 40 | + */ | |
| 41 | 41 | private $description; | 
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | - * @type string Payment Link Expiration datetime as defined in RFC 3339 Section 5.6. | |
| 45 | - * UTC timezone. | |
| 46 | - * optional, if not defined default will be 7 days from now | |
| 47 | - */ | |
| 44 | + * @type string Payment Link Expiration datetime as defined in RFC 3339 Section 5.6. | |
| 45 | + * UTC timezone. | |
| 46 | + * optional, if not defined default will be 7 days from now | |
| 47 | + */ | |
| 48 | 48 | private $expiration_date; | 
| 49 | 49 | |
| 50 | 50 | /** | 
| 51 | - * @type boolean Indicates whether the payment link can be used more than once | |
| 52 | - * mode. | |
| 53 | - * Value assigned by Cardinity. | |
| 54 | - * Default value is false | |
| 55 | - */ | |
| 51 | + * @type boolean Indicates whether the payment link can be used more than once | |
| 52 | + * mode. | |
| 53 | + * Value assigned by Cardinity. | |
| 54 | + * Default value is false | |
| 55 | + */ | |
| 56 | 56 | private $multiple_use; | 
| 57 | 57 | |
| 58 | 58 | /** | 
| 59 | - * @type boolean Indicates whether the payment link is enabled | |
| 60 | - * mode. | |
| 61 | - * Value assigned by Cardinity. | |
| 62 | - */ | |
| 59 | + * @type boolean Indicates whether the payment link is enabled | |
| 60 | + * mode. | |
| 61 | + * Value assigned by Cardinity. | |
| 62 | + */ | |
| 63 | 63 | private $enabled; | 
| 64 | 64 | |
| 65 | 65 | |
| @@ -169,11 +169,11 @@ discard block | ||
| 169 | 169 | return $this->expiration_date; | 
| 170 | 170 | } | 
| 171 | 171 | |
| 172 | - /** | |
| 173 | - * Sets the value of expiration_date. | |
| 174 | - * @param mixed $expiration_date the expiration_date | |
| 175 | - * @return void | |
| 176 | - */ | |
| 172 | + /** | |
| 173 | + * Sets the value of expiration_date. | |
| 174 | + * @param mixed $expiration_date the expiration_date | |
| 175 | + * @return void | |
| 176 | + */ | |
| 177 | 177 | public function setExpirationDate($expiration_date) | 
| 178 | 178 |      { | 
| 179 | 179 | $this->expiration_date = $expiration_date; | 
| @@ -7,61 +7,61 @@ | ||
| 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 | - */ | |
| 22 | + * @type string Three-letter ISO currency code representing the currency in | |
| 23 | + * which the charge was made. | |
| 24 | + */ | |
| 25 | 25 | private $currency; | 
| 26 | 26 | |
| 27 | 27 | /** | 
| 28 | - * @type string Can only have value 'chargeback' | |
| 29 | - */ | |
| 28 | + * @type string Can only have value 'chargeback' | |
| 29 | + */ | |
| 30 | 30 | private $type; | 
| 31 | 31 | |
| 32 | 32 | /** | 
| 33 | - * @type string Chargeback Creation time RFC 3339 Section 5.6. | |
| 34 | - * UTC timezone. | |
| 35 | - */ | |
| 33 | + * @type string Chargeback Creation time RFC 3339 Section 5.6. | |
| 34 | + * UTC timezone. | |
| 35 | + */ | |
| 36 | 36 | private $created; | 
| 37 | 37 | |
| 38 | 38 | /** | 
| 39 | - * @type boolean Indicates whether chargeback was created in live or sandbox | |
| 40 | - */ | |
| 39 | + * @type boolean Indicates whether chargeback was created in live or sandbox | |
| 40 | + */ | |
| 41 | 41 | private $live; | 
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | - * @type string Parent UUID of the Chargeback. | |
| 45 | - * Value assigned by Cardinity. | |
| 46 | - */ | |
| 44 | + * @type string Parent UUID of the Chargeback. | |
| 45 | + * Value assigned by Cardinity. | |
| 46 | + */ | |
| 47 | 47 | private $parent_id; | 
| 48 | 48 | |
| 49 | 49 | /** | 
| 50 | - * @type string Status of chargeback | |
| 51 | - * Can only be 'approved' or 'declined' | |
| 52 | - */ | |
| 50 | + * @type string Status of chargeback | |
| 51 | + * Can only be 'approved' or 'declined' | |
| 52 | + */ | |
| 53 | 53 | private $status; | 
| 54 | 54 | |
| 55 | 55 | /** | 
| 56 | - * @type string Reason of chargeback | |
| 57 | - * Chargeback reason (Only present if chargeback status is approved). | |
| 58 | - * Format is "reason_code: reason_message" | |
| 59 | - */ | |
| 56 | + * @type string Reason of chargeback | |
| 57 | + * Chargeback reason (Only present if chargeback status is approved). | |
| 58 | + * Format is "reason_code: reason_message" | |
| 59 | + */ | |
| 60 | 60 | private $reason; | 
| 61 | 61 | |
| 62 | 62 | /** | 
| 63 | - * @type string Description of chargeback | |
| 64 | - */ | |
| 63 | + * @type string Description of chargeback | |
| 64 | + */ | |
| 65 | 65 | private $description; | 
| 66 | 66 | |
| 67 | 67 | |