Skip to content

Commit

Permalink
Add category field to card object
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Huez authored and Manuel Huez committed Oct 30, 2017
1 parent 0b4c2d9 commit f3b3779
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you
```json
{
"require": {
"ProcessOut/ProcessOut-php": "^6.2.1"
"ProcessOut/ProcessOut-php": "^6.3.0"
}
}
```
Expand Down
31 changes: 31 additions & 0 deletions src/CardInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class CardInformation
*/
protected $brand;

/**
* Category of the card (consumer, commercial, ...)
* @var string
*/
protected $category;

/**
* Country that issued the card
* @var string
Expand Down Expand Up @@ -175,6 +181,28 @@ public function setBrand($value)
return $this;
}

/**
* Get Category
* Category of the card (consumer, commercial, ...)
* @return string
*/
public function getCategory()
{
return $this->category;
}

/**
* Set Category
* Category of the card (consumer, commercial, ...)
* @param string $value
* @return $this
*/
public function setCategory($value)
{
$this->category = $value;
return $this;
}

/**
* Get Country
* Country that issued the card
Expand Down Expand Up @@ -220,6 +248,9 @@ public function fillWithData($data)
if(! empty($data['brand']))
$this->setBrand($data['brand']);

if(! empty($data['category']))
$this->setCategory($data['category']);

if(! empty($data['country']))
$this->setCountry($data['country']);

Expand Down

0 comments on commit f3b3779

Please sign in to comment.