| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Square\Legacy\Models; |
| 6 |
|
| 7 |
use stdClass; |
| 8 |
|
| 9 |
/** |
| 10 |
* One or more PayoutEntries that make up a Payout. Each one has a date, amount, and type of activity. |
| 11 |
* The total amount of the payout will equal the sum of the payout entries for a batch payout |
| 12 |
*/ |
| 13 |
class PayoutEntry implements \JsonSerializable |
| 14 |
{ |
| 15 |
/** |
| 16 |
* @var string |
| 17 |
*/ |
| 18 |
private $id; |
| 19 |
|
| 20 |
/** |
| 21 |
* @var string |
| 22 |
*/ |
| 23 |
private $payoutId; |
| 24 |
|
| 25 |
/** |
| 26 |
* @var array |
| 27 |
*/ |
| 28 |
private $effectiveAt = []; |
| 29 |
|
| 30 |
/** |
| 31 |
* @var string|null |
| 32 |
*/ |
| 33 |
private $type; |
| 34 |
|
| 35 |
/** |
| 36 |
* @var Money|null |
| 37 |
*/ |
| 38 |
private $grossAmountMoney; |
| 39 |
|
| 40 |
/** |
| 41 |
* @var Money|null |
| 42 |
*/ |
| 43 |
private $feeAmountMoney; |
| 44 |
|
| 45 |
/** |
| 46 |
* @var Money|null |
| 47 |
*/ |
| 48 |
private $netAmountMoney; |
| 49 |
|
| 50 |
/** |
| 51 |
* @var PaymentBalanceActivityAppFeeRevenueDetail|null |
| 52 |
*/ |
| 53 |
private $typeAppFeeRevenueDetails; |
| 54 |
|
| 55 |
/** |
| 56 |
* @var PaymentBalanceActivityAppFeeRefundDetail|null |
| 57 |
*/ |
| 58 |
private $typeAppFeeRefundDetails; |
| 59 |
|
| 60 |
/** |
| 61 |
* @var PaymentBalanceActivityAutomaticSavingsDetail|null |
| 62 |
*/ |
| 63 |
private $typeAutomaticSavingsDetails; |
| 64 |
|
| 65 |
/** |
| 66 |
* @var PaymentBalanceActivityAutomaticSavingsReversedDetail|null |
| 67 |
*/ |
| 68 |
private $typeAutomaticSavingsReversedDetails; |
| 69 |
|
| 70 |
/** |
| 71 |
* @var PaymentBalanceActivityChargeDetail|null |
| 72 |
*/ |
| 73 |
private $typeChargeDetails; |
| 74 |
|
| 75 |
/** |
| 76 |
* @var PaymentBalanceActivityDepositFeeDetail|null |
| 77 |
*/ |
| 78 |
private $typeDepositFeeDetails; |
| 79 |
|
| 80 |
/** |
| 81 |
* @var PaymentBalanceActivityDepositFeeReversedDetail|null |
| 82 |
*/ |
| 83 |
private $typeDepositFeeReversedDetails; |
| 84 |
|
| 85 |
/** |
| 86 |
* @var PaymentBalanceActivityDisputeDetail|null |
| 87 |
*/ |
| 88 |
private $typeDisputeDetails; |
| 89 |
|
| 90 |
/** |
| 91 |
* @var PaymentBalanceActivityFeeDetail|null |
| 92 |
*/ |
| 93 |
private $typeFeeDetails; |
| 94 |
|
| 95 |
/** |
| 96 |
* @var PaymentBalanceActivityFreeProcessingDetail|null |
| 97 |
*/ |
| 98 |
private $typeFreeProcessingDetails; |
| 99 |
|
| 100 |
/** |
| 101 |
* @var PaymentBalanceActivityHoldAdjustmentDetail|null |
| 102 |
*/ |
| 103 |
private $typeHoldAdjustmentDetails; |
| 104 |
|
| 105 |
/** |
| 106 |
* @var PaymentBalanceActivityOpenDisputeDetail|null |
| 107 |
*/ |
| 108 |
private $typeOpenDisputeDetails; |
| 109 |
|
| 110 |
/** |
| 111 |
* @var PaymentBalanceActivityOtherDetail|null |
| 112 |
*/ |
| 113 |
private $typeOtherDetails; |
| 114 |
|
| 115 |
/** |
| 116 |
* @var PaymentBalanceActivityOtherAdjustmentDetail|null |
| 117 |
*/ |
| 118 |
private $typeOtherAdjustmentDetails; |
| 119 |
|
| 120 |
/** |
| 121 |
* @var PaymentBalanceActivityRefundDetail|null |
| 122 |
*/ |
| 123 |
private $typeRefundDetails; |
| 124 |
|
| 125 |
/** |
| 126 |
* @var PaymentBalanceActivityReleaseAdjustmentDetail|null |
| 127 |
*/ |
| 128 |
private $typeReleaseAdjustmentDetails; |
| 129 |
|
| 130 |
/** |
| 131 |
* @var PaymentBalanceActivityReserveHoldDetail|null |
| 132 |
*/ |
| 133 |
private $typeReserveHoldDetails; |
| 134 |
|
| 135 |
/** |
| 136 |
* @var PaymentBalanceActivityReserveReleaseDetail|null |
| 137 |
*/ |
| 138 |
private $typeReserveReleaseDetails; |
| 139 |
|
| 140 |
/** |
| 141 |
* @var PaymentBalanceActivitySquareCapitalPaymentDetail|null |
| 142 |
*/ |
| 143 |
private $typeSquareCapitalPaymentDetails; |
| 144 |
|
| 145 |
/** |
| 146 |
* @var PaymentBalanceActivitySquareCapitalReversedPaymentDetail|null |
| 147 |
*/ |
| 148 |
private $typeSquareCapitalReversedPaymentDetails; |
| 149 |
|
| 150 |
/** |
| 151 |
* @var PaymentBalanceActivityTaxOnFeeDetail|null |
| 152 |
*/ |
| 153 |
private $typeTaxOnFeeDetails; |
| 154 |
|
| 155 |
/** |
| 156 |
* @var PaymentBalanceActivityThirdPartyFeeDetail|null |
| 157 |
*/ |
| 158 |
private $typeThirdPartyFeeDetails; |
| 159 |
|
| 160 |
/** |
| 161 |
* @var PaymentBalanceActivityThirdPartyFeeRefundDetail|null |
| 162 |
*/ |
| 163 |
private $typeThirdPartyFeeRefundDetails; |
| 164 |
|
| 165 |
/** |
| 166 |
* @var PaymentBalanceActivitySquarePayrollTransferDetail|null |
| 167 |
*/ |
| 168 |
private $typeSquarePayrollTransferDetails; |
| 169 |
|
| 170 |
/** |
| 171 |
* @var PaymentBalanceActivitySquarePayrollTransferReversedDetail|null |
| 172 |
*/ |
| 173 |
private $typeSquarePayrollTransferReversedDetails; |
| 174 |
|
| 175 |
/** |
| 176 |
* @param string $id |
| 177 |
* @param string $payoutId |
| 178 |
*/ |
| 179 |
public function __construct(string $id, string $payoutId) |
| 180 |
{ |
| 181 |
$this->id = $id; |
| 182 |
$this->payoutId = $payoutId; |
| 183 |
} |
| 184 |
|
| 185 |
/** |
| 186 |
* Returns Id. |
| 187 |
* A unique ID for the payout entry. |
| 188 |
*/ |
| 189 |
public function getId(): string |
| 190 |
{ |
| 191 |
return $this->id; |
| 192 |
} |
| 193 |
|
| 194 |
/** |
| 195 |
* Sets Id. |
| 196 |
* A unique ID for the payout entry. |
| 197 |
* |
| 198 |
* @required |
| 199 |
* @maps id |
| 200 |
*/ |
| 201 |
public function setId(string $id): void |
| 202 |
{ |
| 203 |
$this->id = $id; |
| 204 |
} |
| 205 |
|
| 206 |
/** |
| 207 |
* Returns Payout Id. |
| 208 |
* The ID of the payout entries’ associated payout. |
| 209 |
*/ |
| 210 |
public function getPayoutId(): string |
| 211 |
{ |
| 212 |
return $this->payoutId; |
| 213 |
} |
| 214 |
|
| 215 |
/** |
| 216 |
* Sets Payout Id. |
| 217 |
* The ID of the payout entries’ associated payout. |
| 218 |
* |
| 219 |
* @required |
| 220 |
* @maps payout_id |
| 221 |
*/ |
| 222 |
public function setPayoutId(string $payoutId): void |
| 223 |
{ |
| 224 |
$this->payoutId = $payoutId; |
| 225 |
} |
| 226 |
|
| 227 |
/** |
| 228 |
* Returns Effective At. |
| 229 |
* The timestamp of when the payout entry affected the balance, in RFC 3339 format. |
| 230 |
*/ |
| 231 |
public function getEffectiveAt(): ?string |
| 232 |
{ |
| 233 |
if (count($this->effectiveAt) == 0) { |
| 234 |
return null; |
| 235 |
} |
| 236 |
return $this->effectiveAt['value']; |
| 237 |
} |
| 238 |
|
| 239 |
/** |
| 240 |
* Sets Effective At. |
| 241 |
* The timestamp of when the payout entry affected the balance, in RFC 3339 format. |
| 242 |
* |
| 243 |
* @maps effective_at |
| 244 |
*/ |
| 245 |
public function setEffectiveAt(?string $effectiveAt): void |
| 246 |
{ |
| 247 |
$this->effectiveAt['value'] = $effectiveAt; |
| 248 |
} |
| 249 |
|
| 250 |
/** |
| 251 |
* Unsets Effective At. |
| 252 |
* The timestamp of when the payout entry affected the balance, in RFC 3339 format. |
| 253 |
*/ |
| 254 |
public function unsetEffectiveAt(): void |
| 255 |
{ |
| 256 |
$this->effectiveAt = []; |
| 257 |
} |
| 258 |
|
| 259 |
/** |
| 260 |
* Returns Type. |
| 261 |
*/ |
| 262 |
public function getType(): ?string |
| 263 |
{ |
| 264 |
return $this->type; |
| 265 |
} |
| 266 |
|
| 267 |
/** |
| 268 |
* Sets Type. |
| 269 |
* |
| 270 |
* @maps type |
| 271 |
*/ |
| 272 |
public function setType(?string $type): void |
| 273 |
{ |
| 274 |
$this->type = $type; |
| 275 |
} |
| 276 |
|
| 277 |
/** |
| 278 |
* Returns Gross Amount Money. |
| 279 |
* Represents an amount of money. `Money` fields can be signed or unsigned. |
| 280 |
* Fields that do not explicitly define whether they are signed or unsigned are |
| 281 |
* considered unsigned and can only hold positive amounts. For signed fields, the |
| 282 |
* sign of the value indicates the purpose of the money transfer. See |
| 283 |
* [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with- |
| 284 |
* monetary-amounts) |
| 285 |
* for more information. |
| 286 |
*/ |
| 287 |
public function getGrossAmountMoney(): ?Money |
| 288 |
{ |
| 289 |
return $this->grossAmountMoney; |
| 290 |
} |
| 291 |
|
| 292 |
/** |
| 293 |
* Sets Gross Amount Money. |
| 294 |
* Represents an amount of money. `Money` fields can be signed or unsigned. |
| 295 |
* Fields that do not explicitly define whether they are signed or unsigned are |
| 296 |
* considered unsigned and can only hold positive amounts. For signed fields, the |
| 297 |
* sign of the value indicates the purpose of the money transfer. See |
| 298 |
* [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with- |
| 299 |
* monetary-amounts) |
| 300 |
* for more information. |
| 301 |
* |
| 302 |
* @maps gross_amount_money |
| 303 |
*/ |
| 304 |
public function setGrossAmountMoney(?Money $grossAmountMoney): void |
| 305 |
{ |
| 306 |
$this->grossAmountMoney = $grossAmountMoney; |
| 307 |
} |
| 308 |
|
| 309 |
/** |
| 310 |
* Returns Fee Amount Money. |
| 311 |
* Represents an amount of money. `Money` fields can be signed or unsigned. |
| 312 |
* Fields that do not explicitly define whether they are signed or unsigned are |
| 313 |
* considered unsigned and can only hold positive amounts. For signed fields, the |
| 314 |
* sign of the value indicates the purpose of the money transfer. See |
| 315 |
* [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with- |
| 316 |
* monetary-amounts) |
| 317 |
* for more information. |
| 318 |
*/ |
| 319 |
public function getFeeAmountMoney(): ?Money |
| 320 |
{ |
| 321 |
return $this->feeAmountMoney; |
| 322 |
} |
| 323 |
|
| 324 |
/** |
| 325 |
* Sets Fee Amount Money. |
| 326 |
* Represents an amount of money. `Money` fields can be signed or unsigned. |
| 327 |
* Fields that do not explicitly define whether they are signed or unsigned are |
| 328 |
* considered unsigned and can only hold positive amounts. For signed fields, the |
| 329 |
* sign of the value indicates the purpose of the money transfer. See |
| 330 |
* [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with- |
| 331 |
* monetary-amounts) |
| 332 |
* for more information. |
| 333 |
* |
| 334 |
* @maps fee_amount_money |
| 335 |
*/ |
| 336 |
public function setFeeAmountMoney(?Money $feeAmountMoney): void |
| 337 |
{ |
| 338 |
$this->feeAmountMoney = $feeAmountMoney; |
| 339 |
} |
| 340 |
|
| 341 |
/** |
| 342 |
* Returns Net Amount Money. |
| 343 |
* Represents an amount of money. `Money` fields can be signed or unsigned. |
| 344 |
* Fields that do not explicitly define whether they are signed or unsigned are |
| 345 |
* considered unsigned and can only hold positive amounts. For signed fields, the |
| 346 |
* sign of the value indicates the purpose of the money transfer. See |
| 347 |
* [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with- |
| 348 |
* monetary-amounts) |
| 349 |
* for more information. |
| 350 |
*/ |
| 351 |
public function getNetAmountMoney(): ?Money |
| 352 |
{ |
| 353 |
return $this->netAmountMoney; |
| 354 |
} |
| 355 |
|
| 356 |
/** |
| 357 |
* Sets Net Amount Money. |
| 358 |
* Represents an amount of money. `Money` fields can be signed or unsigned. |
| 359 |
* Fields that do not explicitly define whether they are signed or unsigned are |
| 360 |
* considered unsigned and can only hold positive amounts. For signed fields, the |
| 361 |
* sign of the value indicates the purpose of the money transfer. See |
| 362 |
* [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with- |
| 363 |
* monetary-amounts) |
| 364 |
* for more information. |
| 365 |
* |
| 366 |
* @maps net_amount_money |
| 367 |
*/ |
| 368 |
public function setNetAmountMoney(?Money $netAmountMoney): void |
| 369 |
{ |
| 370 |
$this->netAmountMoney = $netAmountMoney; |
| 371 |
} |
| 372 |
|
| 373 |
/** |
| 374 |
* Returns Type App Fee Revenue Details. |
| 375 |
*/ |
| 376 |
public function getTypeAppFeeRevenueDetails(): ?PaymentBalanceActivityAppFeeRevenueDetail |
| 377 |
{ |
| 378 |
return $this->typeAppFeeRevenueDetails; |
| 379 |
} |
| 380 |
|
| 381 |
/** |
| 382 |
* Sets Type App Fee Revenue Details. |
| 383 |
* |
| 384 |
* @maps type_app_fee_revenue_details |
| 385 |
*/ |
| 386 |
public function setTypeAppFeeRevenueDetails( |
| 387 |
?PaymentBalanceActivityAppFeeRevenueDetail $typeAppFeeRevenueDetails |
| 388 |
): void { |
| 389 |
$this->typeAppFeeRevenueDetails = $typeAppFeeRevenueDetails; |
| 390 |
} |
| 391 |
|
| 392 |
/** |
| 393 |
* Returns Type App Fee Refund Details. |
| 394 |
*/ |
| 395 |
public function getTypeAppFeeRefundDetails(): ?PaymentBalanceActivityAppFeeRefundDetail |
| 396 |
{ |
| 397 |
return $this->typeAppFeeRefundDetails; |
| 398 |
} |
| 399 |
|
| 400 |
/** |
| 401 |
* Sets Type App Fee Refund Details. |
| 402 |
* |
| 403 |
* @maps type_app_fee_refund_details |
| 404 |
*/ |
| 405 |
public function setTypeAppFeeRefundDetails( |
| 406 |
?PaymentBalanceActivityAppFeeRefundDetail $typeAppFeeRefundDetails |
| 407 |
): void { |
| 408 |
$this->typeAppFeeRefundDetails = $typeAppFeeRefundDetails; |
| 409 |
} |
| 410 |
|
| 411 |
/** |
| 412 |
* Returns Type Automatic Savings Details. |
| 413 |
*/ |
| 414 |
public function getTypeAutomaticSavingsDetails(): ?PaymentBalanceActivityAutomaticSavingsDetail |
| 415 |
{ |
| 416 |
return $this->typeAutomaticSavingsDetails; |
| 417 |
} |
| 418 |
|
| 419 |
/** |
| 420 |
* Sets Type Automatic Savings Details. |
| 421 |
* |
| 422 |
* @maps type_automatic_savings_details |
| 423 |
*/ |
| 424 |
public function setTypeAutomaticSavingsDetails( |
| 425 |
?PaymentBalanceActivityAutomaticSavingsDetail $typeAutomaticSavingsDetails |
| 426 |
): void { |
| 427 |
$this->typeAutomaticSavingsDetails = $typeAutomaticSavingsDetails; |
| 428 |
} |
| 429 |
|
| 430 |
/** |
| 431 |
* Returns Type Automatic Savings Reversed Details. |
| 432 |
*/ |
| 433 |
public function getTypeAutomaticSavingsReversedDetails(): ?PaymentBalanceActivityAutomaticSavingsReversedDetail |
| 434 |
{ |
| 435 |
return $this->typeAutomaticSavingsReversedDetails; |
| 436 |
} |
| 437 |
|
| 438 |
/** |
| 439 |
* Sets Type Automatic Savings Reversed Details. |
| 440 |
* |
| 441 |
* @maps type_automatic_savings_reversed_details |
| 442 |
*/ |
| 443 |
public function setTypeAutomaticSavingsReversedDetails( |
| 444 |
?PaymentBalanceActivityAutomaticSavingsReversedDetail $typeAutomaticSavingsReversedDetails |
| 445 |
): void { |
| 446 |
$this->typeAutomaticSavingsReversedDetails = $typeAutomaticSavingsReversedDetails; |
| 447 |
} |
| 448 |
|
| 449 |
/** |
| 450 |
* Returns Type Charge Details. |
| 451 |
*/ |
| 452 |
public function getTypeChargeDetails(): ?PaymentBalanceActivityChargeDetail |
| 453 |
{ |
| 454 |
return $this->typeChargeDetails; |
| 455 |
} |
| 456 |
|
| 457 |
/** |
| 458 |
* Sets Type Charge Details. |
| 459 |
* |
| 460 |
* @maps type_charge_details |
| 461 |
*/ |
| 462 |
public function setTypeChargeDetails(?PaymentBalanceActivityChargeDetail $typeChargeDetails): void |
| 463 |
{ |
| 464 |
$this->typeChargeDetails = $typeChargeDetails; |
| 465 |
} |
| 466 |
|
| 467 |
/** |
| 468 |
* Returns Type Deposit Fee Details. |
| 469 |
*/ |
| 470 |
public function getTypeDepositFeeDetails(): ?PaymentBalanceActivityDepositFeeDetail |
| 471 |
{ |
| 472 |
return $this->typeDepositFeeDetails; |
| 473 |
} |
| 474 |
|
| 475 |
/** |
| 476 |
* Sets Type Deposit Fee Details. |
| 477 |
* |
| 478 |
* @maps type_deposit_fee_details |
| 479 |
*/ |
| 480 |
public function setTypeDepositFeeDetails(?PaymentBalanceActivityDepositFeeDetail $typeDepositFeeDetails): void |
| 481 |
{ |
| 482 |
$this->typeDepositFeeDetails = $typeDepositFeeDetails; |
| 483 |
} |
| 484 |
|
| 485 |
/** |
| 486 |
* Returns Type Deposit Fee Reversed Details. |
| 487 |
*/ |
| 488 |
public function getTypeDepositFeeReversedDetails(): ?PaymentBalanceActivityDepositFeeReversedDetail |
| 489 |
{ |
| 490 |
return $this->typeDepositFeeReversedDetails; |
| 491 |
} |
| 492 |
|
| 493 |
/** |
| 494 |
* Sets Type Deposit Fee Reversed Details. |
| 495 |
* |
| 496 |
* @maps type_deposit_fee_reversed_details |
| 497 |
*/ |
| 498 |
public function setTypeDepositFeeReversedDetails( |
| 499 |
?PaymentBalanceActivityDepositFeeReversedDetail $typeDepositFeeReversedDetails |
| 500 |
): void { |
| 501 |
$this->typeDepositFeeReversedDetails = $typeDepositFeeReversedDetails; |
| 502 |
} |
| 503 |
|
| 504 |
/** |
| 505 |
* Returns Type Dispute Details. |
| 506 |
*/ |
| 507 |
public function getTypeDisputeDetails(): ?PaymentBalanceActivityDisputeDetail |
| 508 |
{ |
| 509 |
return $this->typeDisputeDetails; |
| 510 |
} |
| 511 |
|
| 512 |
/** |
| 513 |
* Sets Type Dispute Details. |
| 514 |
* |
| 515 |
* @maps type_dispute_details |
| 516 |
*/ |
| 517 |
public function setTypeDisputeDetails(?PaymentBalanceActivityDisputeDetail $typeDisputeDetails): void |
| 518 |
{ |
| 519 |
$this->typeDisputeDetails = $typeDisputeDetails; |
| 520 |
} |
| 521 |
|
| 522 |
/** |
| 523 |
* Returns Type Fee Details. |
| 524 |
*/ |
| 525 |
public function getTypeFeeDetails(): ?PaymentBalanceActivityFeeDetail |
| 526 |
{ |
| 527 |
return $this->typeFeeDetails; |
| 528 |
} |
| 529 |
|
| 530 |
/** |
| 531 |
* Sets Type Fee Details. |
| 532 |
* |
| 533 |
* @maps type_fee_details |
| 534 |
*/ |
| 535 |
public function setTypeFeeDetails(?PaymentBalanceActivityFeeDetail $typeFeeDetails): void |
| 536 |
{ |
| 537 |
$this->typeFeeDetails = $typeFeeDetails; |
| 538 |
} |
| 539 |
|
| 540 |
/** |
| 541 |
* Returns Type Free Processing Details. |
| 542 |
*/ |
| 543 |
public function getTypeFreeProcessingDetails(): ?PaymentBalanceActivityFreeProcessingDetail |
| 544 |
{ |
| 545 |
return $this->typeFreeProcessingDetails; |
| 546 |
} |
| 547 |
|
| 548 |
/** |
| 549 |
* Sets Type Free Processing Details. |
| 550 |
* |
| 551 |
* @maps type_free_processing_details |
| 552 |
*/ |
| 553 |
public function setTypeFreeProcessingDetails( |
| 554 |
?PaymentBalanceActivityFreeProcessingDetail $typeFreeProcessingDetails |
| 555 |
): void { |
| 556 |
$this->typeFreeProcessingDetails = $typeFreeProcessingDetails; |
| 557 |
} |
| 558 |
|
| 559 |
/** |
| 560 |
* Returns Type Hold Adjustment Details. |
| 561 |
*/ |
| 562 |
public function getTypeHoldAdjustmentDetails(): ?PaymentBalanceActivityHoldAdjustmentDetail |
| 563 |
{ |
| 564 |
return $this->typeHoldAdjustmentDetails; |
| 565 |
} |
| 566 |
|
| 567 |
/** |
| 568 |
* Sets Type Hold Adjustment Details. |
| 569 |
* |
| 570 |
* @maps type_hold_adjustment_details |
| 571 |
*/ |
| 572 |
public function setTypeHoldAdjustmentDetails( |
| 573 |
?PaymentBalanceActivityHoldAdjustmentDetail $typeHoldAdjustmentDetails |
| 574 |
): void { |
| 575 |
$this->typeHoldAdjustmentDetails = $typeHoldAdjustmentDetails; |
| 576 |
} |
| 577 |
|
| 578 |
/** |
| 579 |
* Returns Type Open Dispute Details. |
| 580 |
*/ |
| 581 |
public function getTypeOpenDisputeDetails(): ?PaymentBalanceActivityOpenDisputeDetail |
| 582 |
{ |
| 583 |
return $this->typeOpenDisputeDetails; |
| 584 |
} |
| 585 |
|
| 586 |
/** |
| 587 |
* Sets Type Open Dispute Details. |
| 588 |
* |
| 589 |
* @maps type_open_dispute_details |
| 590 |
*/ |
| 591 |
public function setTypeOpenDisputeDetails(?PaymentBalanceActivityOpenDisputeDetail $typeOpenDisputeDetails): void |
| 592 |
{ |
| 593 |
$this->typeOpenDisputeDetails = $typeOpenDisputeDetails; |
| 594 |
} |
| 595 |
|
| 596 |
/** |
| 597 |
* Returns Type Other Details. |
| 598 |
*/ |
| 599 |
public function getTypeOtherDetails(): ?PaymentBalanceActivityOtherDetail |
| 600 |
{ |
| 601 |
return $this->typeOtherDetails; |
| 602 |
} |
| 603 |
|
| 604 |
/** |
| 605 |
* Sets Type Other Details. |
| 606 |
* |
| 607 |
* @maps type_other_details |
| 608 |
*/ |
| 609 |
public function setTypeOtherDetails(?PaymentBalanceActivityOtherDetail $typeOtherDetails): void |
| 610 |
{ |
| 611 |
$this->typeOtherDetails = $typeOtherDetails; |
| 612 |
} |
| 613 |
|
| 614 |
/** |
| 615 |
* Returns Type Other Adjustment Details. |
| 616 |
*/ |
| 617 |
public function getTypeOtherAdjustmentDetails(): ?PaymentBalanceActivityOtherAdjustmentDetail |
| 618 |
{ |
| 619 |
return $this->typeOtherAdjustmentDetails; |
| 620 |
} |
| 621 |
|
| 622 |
/** |
| 623 |
* Sets Type Other Adjustment Details. |
| 624 |
* |
| 625 |
* @maps type_other_adjustment_details |
| 626 |
*/ |
| 627 |
public function setTypeOtherAdjustmentDetails( |
| 628 |
?PaymentBalanceActivityOtherAdjustmentDetail $typeOtherAdjustmentDetails |
| 629 |
): void { |
| 630 |
$this->typeOtherAdjustmentDetails = $typeOtherAdjustmentDetails; |
| 631 |
} |
| 632 |
|
| 633 |
/** |
| 634 |
* Returns Type Refund Details. |
| 635 |
*/ |
| 636 |
public function getTypeRefundDetails(): ?PaymentBalanceActivityRefundDetail |
| 637 |
{ |
| 638 |
return $this->typeRefundDetails; |
| 639 |
} |
| 640 |
|
| 641 |
/** |
| 642 |
* Sets Type Refund Details. |
| 643 |
* |
| 644 |
* @maps type_refund_details |
| 645 |
*/ |
| 646 |
public function setTypeRefundDetails(?PaymentBalanceActivityRefundDetail $typeRefundDetails): void |
| 647 |
{ |
| 648 |
$this->typeRefundDetails = $typeRefundDetails; |
| 649 |
} |
| 650 |
|
| 651 |
/** |
| 652 |
* Returns Type Release Adjustment Details. |
| 653 |
*/ |
| 654 |
public function getTypeReleaseAdjustmentDetails(): ?PaymentBalanceActivityReleaseAdjustmentDetail |
| 655 |
{ |
| 656 |
return $this->typeReleaseAdjustmentDetails; |
| 657 |
} |
| 658 |
|
| 659 |
/** |
| 660 |
* Sets Type Release Adjustment Details. |
| 661 |
* |
| 662 |
* @maps type_release_adjustment_details |
| 663 |
*/ |
| 664 |
public function setTypeReleaseAdjustmentDetails( |
| 665 |
?PaymentBalanceActivityReleaseAdjustmentDetail $typeReleaseAdjustmentDetails |
| 666 |
): void { |
| 667 |
$this->typeReleaseAdjustmentDetails = $typeReleaseAdjustmentDetails; |
| 668 |
} |
| 669 |
|
| 670 |
/** |
| 671 |
* Returns Type Reserve Hold Details. |
| 672 |
*/ |
| 673 |
public function getTypeReserveHoldDetails(): ?PaymentBalanceActivityReserveHoldDetail |
| 674 |
{ |
| 675 |
return $this->typeReserveHoldDetails; |
| 676 |
} |
| 677 |
|
| 678 |
/** |
| 679 |
* Sets Type Reserve Hold Details. |
| 680 |
* |
| 681 |
* @maps type_reserve_hold_details |
| 682 |
*/ |
| 683 |
public function setTypeReserveHoldDetails(?PaymentBalanceActivityReserveHoldDetail $typeReserveHoldDetails): void |
| 684 |
{ |
| 685 |
$this->typeReserveHoldDetails = $typeReserveHoldDetails; |
| 686 |
} |
| 687 |
|
| 688 |
/** |
| 689 |
* Returns Type Reserve Release Details. |
| 690 |
*/ |
| 691 |
public function getTypeReserveReleaseDetails(): ?PaymentBalanceActivityReserveReleaseDetail |
| 692 |
{ |
| 693 |
return $this->typeReserveReleaseDetails; |
| 694 |
} |
| 695 |
|
| 696 |
/** |
| 697 |
* Sets Type Reserve Release Details. |
| 698 |
* |
| 699 |
* @maps type_reserve_release_details |
| 700 |
*/ |
| 701 |
public function setTypeReserveReleaseDetails( |
| 702 |
?PaymentBalanceActivityReserveReleaseDetail $typeReserveReleaseDetails |
| 703 |
): void { |
| 704 |
$this->typeReserveReleaseDetails = $typeReserveReleaseDetails; |
| 705 |
} |
| 706 |
|
| 707 |
/** |
| 708 |
* Returns Type Square Capital Payment Details. |
| 709 |
*/ |
| 710 |
public function getTypeSquareCapitalPaymentDetails(): ?PaymentBalanceActivitySquareCapitalPaymentDetail |
| 711 |
{ |
| 712 |
return $this->typeSquareCapitalPaymentDetails; |
| 713 |
} |
| 714 |
|
| 715 |
/** |
| 716 |
* Sets Type Square Capital Payment Details. |
| 717 |
* |
| 718 |
* @maps type_square_capital_payment_details |
| 719 |
*/ |
| 720 |
public function setTypeSquareCapitalPaymentDetails( |
| 721 |
?PaymentBalanceActivitySquareCapitalPaymentDetail $typeSquareCapitalPaymentDetails |
| 722 |
): void { |
| 723 |
$this->typeSquareCapitalPaymentDetails = $typeSquareCapitalPaymentDetails; |
| 724 |
} |
| 725 |
|
| 726 |
/** |
| 727 |
* Returns Type Square Capital Reversed Payment Details. |
| 728 |
*/ |
| 729 |
// phpcs:ignore |
| 730 |
public function getTypeSquareCapitalReversedPaymentDetails(): ?PaymentBalanceActivitySquareCapitalReversedPaymentDetail |
| 731 |
{ |
| 732 |
return $this->typeSquareCapitalReversedPaymentDetails; |
| 733 |
} |
| 734 |
|
| 735 |
/** |
| 736 |
* Sets Type Square Capital Reversed Payment Details. |
| 737 |
* |
| 738 |
* @maps type_square_capital_reversed_payment_details |
| 739 |
*/ |
| 740 |
public function setTypeSquareCapitalReversedPaymentDetails( |
| 741 |
?PaymentBalanceActivitySquareCapitalReversedPaymentDetail $typeSquareCapitalReversedPaymentDetails |
| 742 |
): void { |
| 743 |
$this->typeSquareCapitalReversedPaymentDetails = $typeSquareCapitalReversedPaymentDetails; |
| 744 |
} |
| 745 |
|
| 746 |
/** |
| 747 |
* Returns Type Tax on Fee Details. |
| 748 |
*/ |
| 749 |
public function getTypeTaxOnFeeDetails(): ?PaymentBalanceActivityTaxOnFeeDetail |
| 750 |
{ |
| 751 |
return $this->typeTaxOnFeeDetails; |
| 752 |
} |
| 753 |
|
| 754 |
/** |
| 755 |
* Sets Type Tax on Fee Details. |
| 756 |
* |
| 757 |
* @maps type_tax_on_fee_details |
| 758 |
*/ |
| 759 |
public function setTypeTaxOnFeeDetails(?PaymentBalanceActivityTaxOnFeeDetail $typeTaxOnFeeDetails): void |
| 760 |
{ |
| 761 |
$this->typeTaxOnFeeDetails = $typeTaxOnFeeDetails; |
| 762 |
} |
| 763 |
|
| 764 |
/** |
| 765 |
* Returns Type Third Party Fee Details. |
| 766 |
*/ |
| 767 |
public function getTypeThirdPartyFeeDetails(): ?PaymentBalanceActivityThirdPartyFeeDetail |
| 768 |
{ |
| 769 |
return $this->typeThirdPartyFeeDetails; |
| 770 |
} |
| 771 |
|
| 772 |
/** |
| 773 |
* Sets Type Third Party Fee Details. |
| 774 |
* |
| 775 |
* @maps type_third_party_fee_details |
| 776 |
*/ |
| 777 |
public function setTypeThirdPartyFeeDetails( |
| 778 |
?PaymentBalanceActivityThirdPartyFeeDetail $typeThirdPartyFeeDetails |
| 779 |
): void { |
| 780 |
$this->typeThirdPartyFeeDetails = $typeThirdPartyFeeDetails; |
| 781 |
} |
| 782 |
|
| 783 |
/** |
| 784 |
* Returns Type Third Party Fee Refund Details. |
| 785 |
*/ |
| 786 |
public function getTypeThirdPartyFeeRefundDetails(): ?PaymentBalanceActivityThirdPartyFeeRefundDetail |
| 787 |
{ |
| 788 |
return $this->typeThirdPartyFeeRefundDetails; |
| 789 |
} |
| 790 |
|
| 791 |
/** |
| 792 |
* Sets Type Third Party Fee Refund Details. |
| 793 |
* |
| 794 |
* @maps type_third_party_fee_refund_details |
| 795 |
*/ |
| 796 |
public function setTypeThirdPartyFeeRefundDetails( |
| 797 |
?PaymentBalanceActivityThirdPartyFeeRefundDetail $typeThirdPartyFeeRefundDetails |
| 798 |
): void { |
| 799 |
$this->typeThirdPartyFeeRefundDetails = $typeThirdPartyFeeRefundDetails; |
| 800 |
} |
| 801 |
|
| 802 |
/** |
| 803 |
* Returns Type Square Payroll Transfer Details. |
| 804 |
*/ |
| 805 |
public function getTypeSquarePayrollTransferDetails(): ?PaymentBalanceActivitySquarePayrollTransferDetail |
| 806 |
{ |
| 807 |
return $this->typeSquarePayrollTransferDetails; |
| 808 |
} |
| 809 |
|
| 810 |
/** |
| 811 |
* Sets Type Square Payroll Transfer Details. |
| 812 |
* |
| 813 |
* @maps type_square_payroll_transfer_details |
| 814 |
*/ |
| 815 |
public function setTypeSquarePayrollTransferDetails( |
| 816 |
?PaymentBalanceActivitySquarePayrollTransferDetail $typeSquarePayrollTransferDetails |
| 817 |
): void { |
| 818 |
$this->typeSquarePayrollTransferDetails = $typeSquarePayrollTransferDetails; |
| 819 |
} |
| 820 |
|
| 821 |
/** |
| 822 |
* Returns Type Square Payroll Transfer Reversed Details. |
| 823 |
*/ |
| 824 |
// phpcs:ignore |
| 825 |
public function getTypeSquarePayrollTransferReversedDetails(): ?PaymentBalanceActivitySquarePayrollTransferReversedDetail |
| 826 |
{ |
| 827 |
return $this->typeSquarePayrollTransferReversedDetails; |
| 828 |
} |
| 829 |
|
| 830 |
/** |
| 831 |
* Sets Type Square Payroll Transfer Reversed Details. |
| 832 |
* |
| 833 |
* @maps type_square_payroll_transfer_reversed_details |
| 834 |
*/ |
| 835 |
public function setTypeSquarePayrollTransferReversedDetails( |
| 836 |
?PaymentBalanceActivitySquarePayrollTransferReversedDetail $typeSquarePayrollTransferReversedDetails |
| 837 |
): void { |
| 838 |
$this->typeSquarePayrollTransferReversedDetails = $typeSquarePayrollTransferReversedDetails; |
| 839 |
} |
| 840 |
|
| 841 |
/** |
| 842 |
* Encode this object to JSON |
| 843 |
* |
| 844 |
* @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields |
| 845 |
* are set. (default: false) |
| 846 |
* |
| 847 |
* @return array|stdClass |
| 848 |
*/ |
| 849 |
#[\ReturnTypeWillChange] // @phan-suppress-current-line PhanUndeclaredClassAttribute for (php < 8.1) |
| 850 |
public function jsonSerialize(bool $asArrayWhenEmpty = false) |
| 851 |
{ |
| 852 |
$json = []; |
| 853 |
$json['id'] = $this->id; |
| 854 |
$json['payout_id'] = $this->payoutId; |
| 855 |
if (!empty($this->effectiveAt)) { |
| 856 |
$json['effective_at'] = $this->effectiveAt['value']; |
| 857 |
} |
| 858 |
if (isset($this->type)) { |
| 859 |
$json['type'] = $this->type; |
| 860 |
} |
| 861 |
if (isset($this->grossAmountMoney)) { |
| 862 |
$json['gross_amount_money'] = $this->grossAmountMoney; |
| 863 |
} |
| 864 |
if (isset($this->feeAmountMoney)) { |
| 865 |
$json['fee_amount_money'] = $this->feeAmountMoney; |
| 866 |
} |
| 867 |
if (isset($this->netAmountMoney)) { |
| 868 |
$json['net_amount_money'] = $this->netAmountMoney; |
| 869 |
} |
| 870 |
if (isset($this->typeAppFeeRevenueDetails)) { |
| 871 |
$json['type_app_fee_revenue_details'] = $this->typeAppFeeRevenueDetails; |
| 872 |
} |
| 873 |
if (isset($this->typeAppFeeRefundDetails)) { |
| 874 |
$json['type_app_fee_refund_details'] = $this->typeAppFeeRefundDetails; |
| 875 |
} |
| 876 |
if (isset($this->typeAutomaticSavingsDetails)) { |
| 877 |
$json['type_automatic_savings_details'] = $this->typeAutomaticSavingsDetails; |
| 878 |
} |
| 879 |
if (isset($this->typeAutomaticSavingsReversedDetails)) { |
| 880 |
$json['type_automatic_savings_reversed_details'] = $this->typeAutomaticSavingsReversedDetails; |
| 881 |
} |
| 882 |
if (isset($this->typeChargeDetails)) { |
| 883 |
$json['type_charge_details'] = $this->typeChargeDetails; |
| 884 |
} |
| 885 |
if (isset($this->typeDepositFeeDetails)) { |
| 886 |
$json['type_deposit_fee_details'] = $this->typeDepositFeeDetails; |
| 887 |
} |
| 888 |
if (isset($this->typeDepositFeeReversedDetails)) { |
| 889 |
$json['type_deposit_fee_reversed_details'] = $this->typeDepositFeeReversedDetails; |
| 890 |
} |
| 891 |
if (isset($this->typeDisputeDetails)) { |
| 892 |
$json['type_dispute_details'] = $this->typeDisputeDetails; |
| 893 |
} |
| 894 |
if (isset($this->typeFeeDetails)) { |
| 895 |
$json['type_fee_details'] = $this->typeFeeDetails; |
| 896 |
} |
| 897 |
if (isset($this->typeFreeProcessingDetails)) { |
| 898 |
$json['type_free_processing_details'] = $this->typeFreeProcessingDetails; |
| 899 |
} |
| 900 |
if (isset($this->typeHoldAdjustmentDetails)) { |
| 901 |
$json['type_hold_adjustment_details'] = $this->typeHoldAdjustmentDetails; |
| 902 |
} |
| 903 |
if (isset($this->typeOpenDisputeDetails)) { |
| 904 |
$json['type_open_dispute_details'] = $this->typeOpenDisputeDetails; |
| 905 |
} |
| 906 |
if (isset($this->typeOtherDetails)) { |
| 907 |
$json['type_other_details'] = $this->typeOtherDetails; |
| 908 |
} |
| 909 |
if (isset($this->typeOtherAdjustmentDetails)) { |
| 910 |
$json['type_other_adjustment_details'] = $this->typeOtherAdjustmentDetails; |
| 911 |
} |
| 912 |
if (isset($this->typeRefundDetails)) { |
| 913 |
$json['type_refund_details'] = $this->typeRefundDetails; |
| 914 |
} |
| 915 |
if (isset($this->typeReleaseAdjustmentDetails)) { |
| 916 |
$json['type_release_adjustment_details'] = $this->typeReleaseAdjustmentDetails; |
| 917 |
} |
| 918 |
if (isset($this->typeReserveHoldDetails)) { |
| 919 |
$json['type_reserve_hold_details'] = $this->typeReserveHoldDetails; |
| 920 |
} |
| 921 |
if (isset($this->typeReserveReleaseDetails)) { |
| 922 |
$json['type_reserve_release_details'] = $this->typeReserveReleaseDetails; |
| 923 |
} |
| 924 |
if (isset($this->typeSquareCapitalPaymentDetails)) { |
| 925 |
$json['type_square_capital_payment_details'] = $this->typeSquareCapitalPaymentDetails; |
| 926 |
} |
| 927 |
if (isset($this->typeSquareCapitalReversedPaymentDetails)) { |
| 928 |
$json['type_square_capital_reversed_payment_details'] = $this->typeSquareCapitalReversedPaymentDetails; |
| 929 |
} |
| 930 |
if (isset($this->typeTaxOnFeeDetails)) { |
| 931 |
$json['type_tax_on_fee_details'] = $this->typeTaxOnFeeDetails; |
| 932 |
} |
| 933 |
if (isset($this->typeThirdPartyFeeDetails)) { |
| 934 |
$json['type_third_party_fee_details'] = $this->typeThirdPartyFeeDetails; |
| 935 |
} |
| 936 |
if (isset($this->typeThirdPartyFeeRefundDetails)) { |
| 937 |
$json['type_third_party_fee_refund_details'] = $this->typeThirdPartyFeeRefundDetails; |
| 938 |
} |
| 939 |
if (isset($this->typeSquarePayrollTransferDetails)) { |
| 940 |
$json['type_square_payroll_transfer_details'] = $this->typeSquarePayrollTransferDetails; |
| 941 |
} |
| 942 |
if (isset($this->typeSquarePayrollTransferReversedDetails)) { |
| 943 |
$json['type_square_payroll_transfer_reversed_details'] = $this->typeSquarePayrollTransferReversedDetails; |
| 944 |
} |
| 945 |
$json = array_filter($json, function ($val) { |
| 946 |
return $val !== null; |
| 947 |
}); |
| 948 |
|
| 949 |
return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; |
| 950 |
} |
| 951 |
} |
| 952 |
|