1: <?php
2:
3: declare(strict_types=1);
4:
5: /*
6: * This file has been auto generated by Jane,
7: *
8: * Do no edit it directly.
9: */
10:
11: namespace NxSys\Library\Clients\Brex\API\Payments\Model;
12:
13: class ChequeDetailsResponse extends \ArrayObject
14: {
15: /**
16: * @var array
17: */
18: protected $initialized = [];
19:
20: public function isInitialized($property): bool
21: {
22: return array_key_exists($property, $this->initialized);
23: }
24: /**
25: * @var string
26: */
27: protected $type;
28: /**
29: * Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.
30: *
31: * @var string
32: */
33: protected $paymentInstrumentId;
34: /**
35: * Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).
36: *
37: * @var Address
38: */
39: protected $mailingAddress;
40: /**
41: * @var string
42: */
43: protected $recipientName;
44:
45: public function getType(): string
46: {
47: return $this->type;
48: }
49:
50: public function setType(string $type): self
51: {
52: $this->initialized['type'] = true;
53: $this->type = $type;
54:
55: return $this;
56: }
57:
58: /**
59: * Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.
60: The type of the payment instrument dictates the method.
61: */
62: public function getPaymentInstrumentId(): string
63: {
64: return $this->paymentInstrumentId;
65: }
66:
67: /**
68: * Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.
69: The type of the payment instrument dictates the method.
70: */
71: public function setPaymentInstrumentId(string $paymentInstrumentId): self
72: {
73: $this->initialized['paymentInstrumentId'] = true;
74: $this->paymentInstrumentId = $paymentInstrumentId;
75:
76: return $this;
77: }
78:
79: /**
80: * Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).
81: */
82: public function getMailingAddress(): Address
83: {
84: return $this->mailingAddress;
85: }
86:
87: /**
88: * Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).
89: */
90: public function setMailingAddress(Address $mailingAddress): self
91: {
92: $this->initialized['mailingAddress'] = true;
93: $this->mailingAddress = $mailingAddress;
94:
95: return $this;
96: }
97:
98: public function getRecipientName(): string
99: {
100: return $this->recipientName;
101: }
102:
103: public function setRecipientName(string $recipientName): self
104: {
105: $this->initialized['recipientName'] = true;
106: $this->recipientName = $recipientName;
107:
108: return $this;
109: }
110: }
111: