| 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\Team\Model; |
| 12: | |
| 13: | class CardSpendControls 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: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 26: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 27: | |
| 28: | * |
| 29: | * @var Money |
| 30: | */ |
| 31: | protected $spendLimit; |
| 32: | /** |
| 33: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 34: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 35: | |
| 36: | * |
| 37: | * @var Money |
| 38: | */ |
| 39: | protected $spendAvailable; |
| 40: | /** |
| 41: | * @var string |
| 42: | */ |
| 43: | protected $spendDuration; |
| 44: | /** |
| 45: | * @var string|null |
| 46: | */ |
| 47: | protected $reason; |
| 48: | /** |
| 49: | * The `lock_after_date` is in UTC. |
| 50: | * |
| 51: | * @var \DateTime|null |
| 52: | */ |
| 53: | protected $lockAfterDate; |
| 54: | |
| 55: | /** |
| 56: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 57: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 58: | */ |
| 59: | public function getSpendLimit(): Money |
| 60: | { |
| 61: | return $this->spendLimit; |
| 62: | } |
| 63: | |
| 64: | /** |
| 65: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 66: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 67: | */ |
| 68: | public function setSpendLimit(Money $spendLimit): self |
| 69: | { |
| 70: | $this->initialized['spendLimit'] = true; |
| 71: | $this->spendLimit = $spendLimit; |
| 72: | |
| 73: | return $this; |
| 74: | } |
| 75: | |
| 76: | /** |
| 77: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 78: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 79: | */ |
| 80: | public function getSpendAvailable(): Money |
| 81: | { |
| 82: | return $this->spendAvailable; |
| 83: | } |
| 84: | |
| 85: | /** |
| 86: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 87: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 88: | */ |
| 89: | public function setSpendAvailable(Money $spendAvailable): self |
| 90: | { |
| 91: | $this->initialized['spendAvailable'] = true; |
| 92: | $this->spendAvailable = $spendAvailable; |
| 93: | |
| 94: | return $this; |
| 95: | } |
| 96: | |
| 97: | public function getSpendDuration(): string |
| 98: | { |
| 99: | return $this->spendDuration; |
| 100: | } |
| 101: | |
| 102: | public function setSpendDuration(string $spendDuration): self |
| 103: | { |
| 104: | $this->initialized['spendDuration'] = true; |
| 105: | $this->spendDuration = $spendDuration; |
| 106: | |
| 107: | return $this; |
| 108: | } |
| 109: | |
| 110: | public function getReason(): ?string |
| 111: | { |
| 112: | return $this->reason; |
| 113: | } |
| 114: | |
| 115: | public function setReason(?string $reason): self |
| 116: | { |
| 117: | $this->initialized['reason'] = true; |
| 118: | $this->reason = $reason; |
| 119: | |
| 120: | return $this; |
| 121: | } |
| 122: | |
| 123: | /** |
| 124: | * The `lock_after_date` is in UTC. |
| 125: | */ |
| 126: | public function getLockAfterDate(): ?\DateTime |
| 127: | { |
| 128: | return $this->lockAfterDate; |
| 129: | } |
| 130: | |
| 131: | /** |
| 132: | * The `lock_after_date` is in UTC. |
| 133: | */ |
| 134: | public function setLockAfterDate(?\DateTime $lockAfterDate): self |
| 135: | { |
| 136: | $this->initialized['lockAfterDate'] = true; |
| 137: | $this->lockAfterDate = $lockAfterDate; |
| 138: | |
| 139: | return $this; |
| 140: | } |
| 141: | } |
| 142: |