1: <?php
2: /*
3: * This file was automatically generated.
4: */
5: namespace Worldline\Acquiring\Sdk\V1\Domain;
6:
7: use UnexpectedValueException;
8: use Worldline\Acquiring\Sdk\Domain\DataObject;
9:
10: /**
11: * @package Worldline\Acquiring\Sdk\V1\Domain
12: */
13: class SubsequentCardOnFileData extends DataObject
14: {
15: /**
16: * @var string
17: */
18: public $cardOnFileInitiator = null;
19:
20: /**
21: * @var string
22: */
23: public $initialSchemeTransactionId = null;
24:
25: /**
26: * @var string
27: */
28: public $transactionType = null;
29:
30: /**
31: * @return object
32: */
33: public function toObject()
34: {
35: $object = parent::toObject();
36: if (!is_null($this->cardOnFileInitiator)) {
37: $object->cardOnFileInitiator = $this->cardOnFileInitiator;
38: }
39: if (!is_null($this->initialSchemeTransactionId)) {
40: $object->initialSchemeTransactionId = $this->initialSchemeTransactionId;
41: }
42: if (!is_null($this->transactionType)) {
43: $object->transactionType = $this->transactionType;
44: }
45: return $object;
46: }
47:
48: /**
49: * @param object $object
50: * @return $this
51: * @throws UnexpectedValueException
52: */
53: public function fromObject($object)
54: {
55: parent::fromObject($object);
56: if (property_exists($object, 'cardOnFileInitiator')) {
57: $this->cardOnFileInitiator = $object->cardOnFileInitiator;
58: }
59: if (property_exists($object, 'initialSchemeTransactionId')) {
60: $this->initialSchemeTransactionId = $object->initialSchemeTransactionId;
61: }
62: if (property_exists($object, 'transactionType')) {
63: $this->transactionType = $object->transactionType;
64: }
65: return $this;
66: }
67: }
68: