| 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\Webhooks\Model; |
| 12: | |
| 13: | class ExpensePaymentStatusUpdatedEvent 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 $eventType; |
| 28: | /** |
| 29: | * @var string |
| 30: | */ |
| 31: | protected $expenseId; |
| 32: | /** |
| 33: | * `PENDING`:The transaction is yet to be captured. It may be approved, yet to be approved, or yet to be declined. |
| 34: | |
| 35: | * |
| 36: | * @var string |
| 37: | */ |
| 38: | protected $paymentStatus; |
| 39: | /** |
| 40: | * `PURCHASE`: A pending transaction for making a purchase. |
| 41: | |
| 42: | * |
| 43: | * @var string |
| 44: | */ |
| 45: | protected $paymentType; |
| 46: | /** |
| 47: | This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint. |
| 48: | You can use the `company_id` to determine which access token to use when you get the details from our API endpoints. |
| 49: | |
| 50: | * |
| 51: | * @var string |
| 52: | */ |
| 53: | protected $companyId; |
| 54: | /** |
| 55: | * @var ExpensePaymentStatusUpdatedEventAmount |
| 56: | */ |
| 57: | protected $amount; |
| 58: | /** |
| 59: | * The name of the card acceptor. |
| 60: | * |
| 61: | * @var string |
| 62: | */ |
| 63: | protected $paymentDescription; |
| 64: | |
| 65: | public function getEventType(): string |
| 66: | { |
| 67: | return $this->eventType; |
| 68: | } |
| 69: | |
| 70: | public function setEventType(string $eventType): self |
| 71: | { |
| 72: | $this->initialized['eventType'] = true; |
| 73: | $this->eventType = $eventType; |
| 74: | |
| 75: | return $this; |
| 76: | } |
| 77: | |
| 78: | public function getExpenseId(): string |
| 79: | { |
| 80: | return $this->expenseId; |
| 81: | } |
| 82: | |
| 83: | public function setExpenseId(string $expenseId): self |
| 84: | { |
| 85: | $this->initialized['expenseId'] = true; |
| 86: | $this->expenseId = $expenseId; |
| 87: | |
| 88: | return $this; |
| 89: | } |
| 90: | |
| 91: | /** |
| 92: | * `PENDING`:The transaction is yet to be captured. It may be approved, yet to be approved, or yet to be declined. |
| 93: | |
| 94: | `DECLINED`: The transaction was declined. |
| 95: | */ |
| 96: | public function getPaymentStatus(): string |
| 97: | { |
| 98: | return $this->paymentStatus; |
| 99: | } |
| 100: | |
| 101: | /** |
| 102: | * `PENDING`:The transaction is yet to be captured. It may be approved, yet to be approved, or yet to be declined. |
| 103: | |
| 104: | `DECLINED`: The transaction was declined. |
| 105: | */ |
| 106: | public function setPaymentStatus(string $paymentStatus): self |
| 107: | { |
| 108: | $this->initialized['paymentStatus'] = true; |
| 109: | $this->paymentStatus = $paymentStatus; |
| 110: | |
| 111: | return $this; |
| 112: | } |
| 113: | |
| 114: | /** |
| 115: | * `PURCHASE`: A pending transaction for making a purchase. |
| 116: | |
| 117: | `DECLINED`: A pending transaction that was declined and will not be completed. |
| 118: | */ |
| 119: | public function getPaymentType(): string |
| 120: | { |
| 121: | return $this->paymentType; |
| 122: | } |
| 123: | |
| 124: | /** |
| 125: | * `PURCHASE`: A pending transaction for making a purchase. |
| 126: | |
| 127: | `DECLINED`: A pending transaction that was declined and will not be completed. |
| 128: | */ |
| 129: | public function setPaymentType(string $paymentType): self |
| 130: | { |
| 131: | $this->initialized['paymentType'] = true; |
| 132: | $this->paymentType = $paymentType; |
| 133: | |
| 134: | return $this; |
| 135: | } |
| 136: | |
| 137: | /** |
| 138: | This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint. |
| 139: | You can use the `company_id` to determine which access token to use when you get the details from our API endpoints. |
| 140: | */ |
| 141: | public function getCompanyId(): string |
| 142: | { |
| 143: | return $this->companyId; |
| 144: | } |
| 145: | |
| 146: | /** |
| 147: | This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint. |
| 148: | You can use the `company_id` to determine which access token to use when you get the details from our API endpoints. |
| 149: | */ |
| 150: | public function setCompanyId(string $companyId): self |
| 151: | { |
| 152: | $this->initialized['companyId'] = true; |
| 153: | $this->companyId = $companyId; |
| 154: | |
| 155: | return $this; |
| 156: | } |
| 157: | |
| 158: | public function getAmount(): ExpensePaymentStatusUpdatedEventAmount |
| 159: | { |
| 160: | return $this->amount; |
| 161: | } |
| 162: | |
| 163: | public function setAmount(ExpensePaymentStatusUpdatedEventAmount $amount): self |
| 164: | { |
| 165: | $this->initialized['amount'] = true; |
| 166: | $this->amount = $amount; |
| 167: | |
| 168: | return $this; |
| 169: | } |
| 170: | |
| 171: | /** |
| 172: | * The name of the card acceptor. |
| 173: | */ |
| 174: | public function getPaymentDescription(): string |
| 175: | { |
| 176: | return $this->paymentDescription; |
| 177: | } |
| 178: | |
| 179: | /** |
| 180: | * The name of the card acceptor. |
| 181: | */ |
| 182: | public function setPaymentDescription(string $paymentDescription): self |
| 183: | { |
| 184: | $this->initialized['paymentDescription'] = true; |
| 185: | $this->paymentDescription = $paymentDescription; |
| 186: | |
| 187: | return $this; |
| 188: | } |
| 189: | } |
| 190: |