| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | namespace Worldline\Acquiring\Sdk\V1\Domain; |
| 6: | |
| 7: | use UnexpectedValueException; |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | class TransactionReferencesDispute extends TransactionReferencesBase |
| 13: | { |
| 14: | |
| 15: | |
| 16: | |
| 17: | public ?string $acquirerTransactionReference = null; |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | public ?string $merchantOperationId = null; |
| 23: | |
| 24: | |
| 25: | |
| 26: | |
| 27: | public ?string $retrievalReferenceNumber = null; |
| 28: | |
| 29: | |
| 30: | |
| 31: | |
| 32: | public ?string $schemeTransactionId = null; |
| 33: | |
| 34: | |
| 35: | |
| 36: | |
| 37: | public ?string $schemeTransactionLinkId = null; |
| 38: | |
| 39: | |
| 40: | |
| 41: | |
| 42: | public ?string $terminalId = null; |
| 43: | |
| 44: | |
| 45: | |
| 46: | |
| 47: | public ?string $terminalTransactionReference = null; |
| 48: | |
| 49: | |
| 50: | |
| 51: | |
| 52: | public function toObject(): object |
| 53: | { |
| 54: | $object = parent::toObject(); |
| 55: | if (!is_null($this->acquirerTransactionReference)) { |
| 56: | $object->acquirerTransactionReference = $this->acquirerTransactionReference; |
| 57: | } |
| 58: | if (!is_null($this->merchantOperationId)) { |
| 59: | $object->merchantOperationId = $this->merchantOperationId; |
| 60: | } |
| 61: | if (!is_null($this->retrievalReferenceNumber)) { |
| 62: | $object->retrievalReferenceNumber = $this->retrievalReferenceNumber; |
| 63: | } |
| 64: | if (!is_null($this->schemeTransactionId)) { |
| 65: | $object->schemeTransactionId = $this->schemeTransactionId; |
| 66: | } |
| 67: | if (!is_null($this->schemeTransactionLinkId)) { |
| 68: | $object->schemeTransactionLinkId = $this->schemeTransactionLinkId; |
| 69: | } |
| 70: | if (!is_null($this->terminalId)) { |
| 71: | $object->terminalId = $this->terminalId; |
| 72: | } |
| 73: | if (!is_null($this->terminalTransactionReference)) { |
| 74: | $object->terminalTransactionReference = $this->terminalTransactionReference; |
| 75: | } |
| 76: | return $object; |
| 77: | } |
| 78: | |
| 79: | |
| 80: | |
| 81: | |
| 82: | |
| 83: | |
| 84: | |
| 85: | public function fromObject(object $object): TransactionReferencesDispute |
| 86: | { |
| 87: | parent::fromObject($object); |
| 88: | if (property_exists($object, 'acquirerTransactionReference')) { |
| 89: | $this->acquirerTransactionReference = $object->acquirerTransactionReference; |
| 90: | } |
| 91: | if (property_exists($object, 'merchantOperationId')) { |
| 92: | $this->merchantOperationId = $object->merchantOperationId; |
| 93: | } |
| 94: | if (property_exists($object, 'retrievalReferenceNumber')) { |
| 95: | $this->retrievalReferenceNumber = $object->retrievalReferenceNumber; |
| 96: | } |
| 97: | if (property_exists($object, 'schemeTransactionId')) { |
| 98: | $this->schemeTransactionId = $object->schemeTransactionId; |
| 99: | } |
| 100: | if (property_exists($object, 'schemeTransactionLinkId')) { |
| 101: | $this->schemeTransactionLinkId = $object->schemeTransactionLinkId; |
| 102: | } |
| 103: | if (property_exists($object, 'terminalId')) { |
| 104: | $this->terminalId = $object->terminalId; |
| 105: | } |
| 106: | if (property_exists($object, 'terminalTransactionReference')) { |
| 107: | $this->terminalTransactionReference = $object->terminalTransactionReference; |
| 108: | } |
| 109: | return $this; |
| 110: | } |
| 111: | } |
| 112: | |