Skip to content

Commit

Permalink
Fix DictKey resource
Browse files Browse the repository at this point in the history
  • Loading branch information
wendel-stark committed Sep 13, 2023
1 parent f2df38c commit a222903
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Given a version number MAJOR.MINOR.PATCH, increment:


## [Unreleased]
### Removed
- accountCreated, created, owned attributes

### Fixed
- unmasked accountNumber and branchCode attributes to DictKey resource

## [2.13.0] - 2023-05-03
### Added
Expand Down
13 changes: 2 additions & 11 deletions src/dictKey/dictKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ class DictKey extends Resource
public $branchCode;
public $accountNumber;
public $accountType;
public $accountCreated;
public $status;
public $owned;
public $created;

/**
# DictKey object
Expand All @@ -39,13 +36,10 @@ class DictKey extends Resource
- ownerType [string]: DICT key owner type. ex "naturalPerson" or "legalPerson"
- bankName [string]: bank name associated with the DICT key. ex: "Stark Bank"
- ispb [string]: bank ISPB associated with the DICT key. ex: "20018183"
- branchCode [string]: bank account branch code associated with the DICT key. ex: "9585"
- accountNumber [string]: bank account number associated with the DICT key. ex: "9828282578010513"
- branchCode [string]: bank account branch code associated with the DICT key. ex: "ZW5jcnlwdGVkLWJyYW5jaC1jb2Rl"
- accountNumber [string]: bank account number associated with the DICT key. ex: "ZW5jcnlwdGVkLWFjY291bnQtbnVtYmVy"
- accountType [string]: bank account type associated with the DICT key. ex: "checking", "saving", "salary" or "payment"
- status [string]: current DICT key status. ex: "created", "registered", "canceled" or "failed"
- accountCreated [DateTime]: creation datetime of the bank account associated with the DICT key. ex: DateTime('2020-01-01T15:03:01.012345Z')
- owned [DateTime]: datetime since when the current owner holds this DICT key. ex: DateTime('2020-01-01T15:03:01.012345Z')
- created [DateTime]: creation datetime for the DICT key. ex: DateTime('2020-01-01T15:03:01.012345Z')
*/
function __construct(array $params)
{
Expand All @@ -60,10 +54,7 @@ function __construct(array $params)
$this->branchCode = Checks::checkParam($params, "branchCode");
$this->accountNumber = Checks::checkParam($params, "accountNumber");
$this->accountType = Checks::checkParam($params, "accountType");
$this->accountCreated = Checks::checkDateTime(Checks::checkParam($params, "accountCreated"));
$this->status = Checks::checkParam($params, "status");
$this->owned = Checks::checkDateTime(Checks::checkParam($params, "owned"));
$this->created = Checks::checkDateTime(Checks::checkParam($params, "created"));

Checks::checkParams($params);
}
Expand Down

0 comments on commit a222903

Please sign in to comment.