Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 1c297d1

Browse files
authored
Merge pull request #243 from leoneparise/ownid
Definir ownId para transferências
2 parents e6f14e9 + 80b403e commit 1c297d1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/Resource/Transfers.php

+26
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ protected function initialize()
5252
protected function populate(stdClass $response)
5353
{
5454
$transfers = clone $this;
55+
5556
$transfers->data->id = $this->getIfSet('id', $response);
57+
$transfers->data->ownId = $this->getIfSet('ownId', $response);
5658
$transfers->data->amount = $this->getIfSet('amount', $response);
5759

5860
$transfer_instrument = $this->getIfSet('transferInstrument', $response);
@@ -140,6 +142,20 @@ public function getTransfers()
140142
return $this->data;
141143
}
142144

145+
/**
146+
* Get own request id. external reference.
147+
*
148+
* @param mixed $ownId id
149+
*
150+
* @return $this
151+
*/
152+
public function setOwnId($ownId)
153+
{
154+
$this->data->ownId = $ownId;
155+
156+
return $this;
157+
}
158+
143159
/**
144160
* Set info of holder.
145161
*
@@ -230,4 +246,14 @@ public function getId()
230246
{
231247
return $this->getIfSet('id');
232248
}
249+
250+
/**
251+
* Get own request id. external reference.
252+
*
253+
* @return mixed
254+
*/
255+
public function getOwnId()
256+
{
257+
return $this->getIfSet('ownId');
258+
}
233259
}

0 commit comments

Comments
 (0)