| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | namespace Worldline\Connect\Sdk\V1\Domain; |
| 7: | |
| 8: | use UnexpectedValueException; |
| 9: | use Worldline\Connect\Sdk\Domain\DataObject; |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | class ExternalCardholderAuthenticationData extends DataObject |
| 15: | { |
| 16: | |
| 17: | |
| 18: | |
| 19: | public $acsTransactionId = null; |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | public $appliedExemption = null; |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | public $cavv = null; |
| 30: | |
| 31: | |
| 32: | |
| 33: | |
| 34: | public $cavvAlgorithm = null; |
| 35: | |
| 36: | |
| 37: | |
| 38: | |
| 39: | public $directoryServerTransactionId = null; |
| 40: | |
| 41: | |
| 42: | |
| 43: | |
| 44: | public $eci = null; |
| 45: | |
| 46: | |
| 47: | |
| 48: | |
| 49: | public $schemeRiskScore = null; |
| 50: | |
| 51: | |
| 52: | |
| 53: | |
| 54: | public $threeDSecureVersion = null; |
| 55: | |
| 56: | |
| 57: | |
| 58: | |
| 59: | |
| 60: | public $threeDServerTransactionId = null; |
| 61: | |
| 62: | |
| 63: | |
| 64: | |
| 65: | public $validationResult = null; |
| 66: | |
| 67: | |
| 68: | |
| 69: | |
| 70: | public $xid = null; |
| 71: | |
| 72: | |
| 73: | |
| 74: | |
| 75: | public function toObject() |
| 76: | { |
| 77: | $object = parent::toObject(); |
| 78: | if (!is_null($this->acsTransactionId)) { |
| 79: | $object->acsTransactionId = $this->acsTransactionId; |
| 80: | } |
| 81: | if (!is_null($this->appliedExemption)) { |
| 82: | $object->appliedExemption = $this->appliedExemption; |
| 83: | } |
| 84: | if (!is_null($this->cavv)) { |
| 85: | $object->cavv = $this->cavv; |
| 86: | } |
| 87: | if (!is_null($this->cavvAlgorithm)) { |
| 88: | $object->cavvAlgorithm = $this->cavvAlgorithm; |
| 89: | } |
| 90: | if (!is_null($this->directoryServerTransactionId)) { |
| 91: | $object->directoryServerTransactionId = $this->directoryServerTransactionId; |
| 92: | } |
| 93: | if (!is_null($this->eci)) { |
| 94: | $object->eci = $this->eci; |
| 95: | } |
| 96: | if (!is_null($this->schemeRiskScore)) { |
| 97: | $object->schemeRiskScore = $this->schemeRiskScore; |
| 98: | } |
| 99: | if (!is_null($this->threeDSecureVersion)) { |
| 100: | $object->threeDSecureVersion = $this->threeDSecureVersion; |
| 101: | } |
| 102: | if (!is_null($this->threeDServerTransactionId)) { |
| 103: | $object->threeDServerTransactionId = $this->threeDServerTransactionId; |
| 104: | } |
| 105: | if (!is_null($this->validationResult)) { |
| 106: | $object->validationResult = $this->validationResult; |
| 107: | } |
| 108: | if (!is_null($this->xid)) { |
| 109: | $object->xid = $this->xid; |
| 110: | } |
| 111: | return $object; |
| 112: | } |
| 113: | |
| 114: | |
| 115: | |
| 116: | |
| 117: | |
| 118: | |
| 119: | public function fromObject($object) |
| 120: | { |
| 121: | parent::fromObject($object); |
| 122: | if (property_exists($object, 'acsTransactionId')) { |
| 123: | $this->acsTransactionId = $object->acsTransactionId; |
| 124: | } |
| 125: | if (property_exists($object, 'appliedExemption')) { |
| 126: | $this->appliedExemption = $object->appliedExemption; |
| 127: | } |
| 128: | if (property_exists($object, 'cavv')) { |
| 129: | $this->cavv = $object->cavv; |
| 130: | } |
| 131: | if (property_exists($object, 'cavvAlgorithm')) { |
| 132: | $this->cavvAlgorithm = $object->cavvAlgorithm; |
| 133: | } |
| 134: | if (property_exists($object, 'directoryServerTransactionId')) { |
| 135: | $this->directoryServerTransactionId = $object->directoryServerTransactionId; |
| 136: | } |
| 137: | if (property_exists($object, 'eci')) { |
| 138: | $this->eci = $object->eci; |
| 139: | } |
| 140: | if (property_exists($object, 'schemeRiskScore')) { |
| 141: | $this->schemeRiskScore = $object->schemeRiskScore; |
| 142: | } |
| 143: | if (property_exists($object, 'threeDSecureVersion')) { |
| 144: | $this->threeDSecureVersion = $object->threeDSecureVersion; |
| 145: | } |
| 146: | if (property_exists($object, 'threeDServerTransactionId')) { |
| 147: | $this->threeDServerTransactionId = $object->threeDServerTransactionId; |
| 148: | } |
| 149: | if (property_exists($object, 'validationResult')) { |
| 150: | $this->validationResult = $object->validationResult; |
| 151: | } |
| 152: | if (property_exists($object, 'xid')) { |
| 153: | $this->xid = $object->xid; |
| 154: | } |
| 155: | return $this; |
| 156: | } |
| 157: | } |
| 158: | |