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 UpdateVendorRequest 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: | * Name for vendor. |
26: | * |
27: | * @var string|null |
28: | */ |
29: | protected $companyName; |
30: | /** |
31: | * Email for vendor. |
32: | * |
33: | * @var string|null |
34: | */ |
35: | protected $email; |
36: | /** |
37: | * Phone number for vendor. |
38: | * |
39: | * @var string|null |
40: | */ |
41: | protected $phone; |
42: | /** |
43: | * To update payment instruments, we require the entire payload for each payment instrument that is being updated. |
44: | * |
45: | * @var PaymentAccountRequest[]|null |
46: | */ |
47: | protected $paymentAccounts; |
48: | |
49: | /** |
50: | * Name for vendor. |
51: | */ |
52: | public function getCompanyName(): ?string |
53: | { |
54: | return $this->companyName; |
55: | } |
56: | |
57: | /** |
58: | * Name for vendor. |
59: | */ |
60: | public function setCompanyName(?string $companyName): self |
61: | { |
62: | $this->initialized['companyName'] = true; |
63: | $this->companyName = $companyName; |
64: | |
65: | return $this; |
66: | } |
67: | |
68: | /** |
69: | * Email for vendor. |
70: | */ |
71: | public function getEmail(): ?string |
72: | { |
73: | return $this->email; |
74: | } |
75: | |
76: | /** |
77: | * Email for vendor. |
78: | */ |
79: | public function setEmail(?string $email): self |
80: | { |
81: | $this->initialized['email'] = true; |
82: | $this->email = $email; |
83: | |
84: | return $this; |
85: | } |
86: | |
87: | /** |
88: | * Phone number for vendor. |
89: | */ |
90: | public function getPhone(): ?string |
91: | { |
92: | return $this->phone; |
93: | } |
94: | |
95: | /** |
96: | * Phone number for vendor. |
97: | */ |
98: | public function setPhone(?string $phone): self |
99: | { |
100: | $this->initialized['phone'] = true; |
101: | $this->phone = $phone; |
102: | |
103: | return $this; |
104: | } |
105: | |
106: | /** |
107: | * To update payment instruments, we require the entire payload for each payment instrument that is being updated. |
108: | * |
109: | * @return PaymentAccountRequest[]|null |
110: | */ |
111: | public function getPaymentAccounts(): ?array |
112: | { |
113: | return $this->paymentAccounts; |
114: | } |
115: | |
116: | /** |
117: | * To update payment instruments, we require the entire payload for each payment instrument that is being updated. |
118: | * |
119: | * @param PaymentAccountRequest[]|null $paymentAccounts |
120: | */ |
121: | public function setPaymentAccounts(?array $paymentAccounts): self |
122: | { |
123: | $this->initialized['paymentAccounts'] = true; |
124: | $this->paymentAccounts = $paymentAccounts; |
125: | |
126: | return $this; |
127: | } |
128: | } |
129: |