charitable
/
vendor
/
square
/
square
/
src
/
Inventory
/
Requests
/
GetTransferInventoryRequest.php
GetTransferInventoryRequest.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at vendor/square/square/src/Inventory/Requests/GetTransferInventoryRequest.php
| 1 | <?php |
| 2 | |
| 3 | namespace Square\Inventory\Requests; |
| 4 | |
| 5 | use Square\Core\Json\JsonSerializableType; |
| 6 | |
| 7 | class GetTransferInventoryRequest extends JsonSerializableType |
| 8 | { |
| 9 | /** |
| 10 | * @var string $transferId ID of the [InventoryTransfer](entity:InventoryTransfer) to retrieve. |
| 11 | */ |
| 12 | private string $transferId; |
| 13 | |
| 14 | /** |
| 15 | * @param array{ |
| 16 | * transferId: string, |
| 17 | * } $values |
| 18 | */ |
| 19 | public function __construct( |
| 20 | array $values, |
| 21 | ) { |
| 22 | $this->transferId = $values['transferId']; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @return string |
| 27 | */ |
| 28 | public function getTransferId(): string |
| 29 | { |
| 30 | return $this->transferId; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @param string $value |
| 35 | */ |
| 36 | public function setTransferId(string $value): self |
| 37 | { |
| 38 | $this->transferId = $value; |
| 39 | return $this; |
| 40 | } |
| 41 | } |
| 42 |