diff --git a/src/Data/NominalAccounts/Payouts/PayOffsListResponseData.php b/src/Data/NominalAccounts/Payouts/PayOffsListResponseData.php new file mode 100644 index 0000000..8df2203 --- /dev/null +++ b/src/Data/NominalAccounts/Payouts/PayOffsListResponseData.php @@ -0,0 +1,36 @@ +accountNumber; + + if ($this->limit !== null) { + $params['limit'] = $this->limit; + } + + if ($this->offset !== null) { + $params['offset'] = $this->offset; + } + + if ($this->channel !== null) { + $params['channel'] = $this->channel; + } + + if ($this->status !== null) { + $params['status'] = $this->status; + } + + if ($this->createdDateFrom !== null) { + $params['createdDateFrom'] = $this->createdDateFrom; + } + + if ($this->createdDateTo !== null) { + $params['createdDateTo'] = $this->createdDateTo; + } + + if ($this->updatedDateFrom !== null) { + $params['updatedDateFrom'] = $this->updatedDateFrom; + } + + if ($this->updatedDateTo !== null) { + $params['updatedDateTo'] = $this->updatedDateTo; + } + + return '/api/na/jp/v1/payoffs?' . http_build_query($params); + } + + public function createDtoFromResponse(Response $response): PayOffsListResponseData + { + return PayOffsListResponseData::from($response->json()); + } +}