1: <?php
2: /*
3: * This class was auto-generated from the API references found at
4: * https://apireference.connect.worldline-solutions.com/
5: */
6: namespace Worldline\Connect\Sdk\V1\Domain;
7:
8: use UnexpectedValueException;
9: use Worldline\Connect\Sdk\Domain\DataObject;
10:
11: /**
12: * @package Worldline\Connect\Sdk\V1\Domain
13: */
14: class PaymentProduct863ThirdPartyData extends DataObject
15: {
16: /**
17: * @var string
18: */
19: public $appId = null;
20:
21: /**
22: * @var string
23: */
24: public $nonceStr = null;
25:
26: /**
27: * @var string
28: */
29: public $packageSign = null;
30:
31: /**
32: * @var string
33: */
34: public $paySign = null;
35:
36: /**
37: * @var string
38: */
39: public $prepayId = null;
40:
41: /**
42: * @var string
43: */
44: public $signType = null;
45:
46: /**
47: * @var string
48: */
49: public $timeStamp = null;
50:
51: /**
52: * @return object
53: */
54: public function toObject()
55: {
56: $object = parent::toObject();
57: if (!is_null($this->appId)) {
58: $object->appId = $this->appId;
59: }
60: if (!is_null($this->nonceStr)) {
61: $object->nonceStr = $this->nonceStr;
62: }
63: if (!is_null($this->packageSign)) {
64: $object->packageSign = $this->packageSign;
65: }
66: if (!is_null($this->paySign)) {
67: $object->paySign = $this->paySign;
68: }
69: if (!is_null($this->prepayId)) {
70: $object->prepayId = $this->prepayId;
71: }
72: if (!is_null($this->signType)) {
73: $object->signType = $this->signType;
74: }
75: if (!is_null($this->timeStamp)) {
76: $object->timeStamp = $this->timeStamp;
77: }
78: return $object;
79: }
80:
81: /**
82: * @param object $object
83: * @return $this
84: * @throws UnexpectedValueException
85: */
86: public function fromObject($object)
87: {
88: parent::fromObject($object);
89: if (property_exists($object, 'appId')) {
90: $this->appId = $object->appId;
91: }
92: if (property_exists($object, 'nonceStr')) {
93: $this->nonceStr = $object->nonceStr;
94: }
95: if (property_exists($object, 'packageSign')) {
96: $this->packageSign = $object->packageSign;
97: }
98: if (property_exists($object, 'paySign')) {
99: $this->paySign = $object->paySign;
100: }
101: if (property_exists($object, 'prepayId')) {
102: $this->prepayId = $object->prepayId;
103: }
104: if (property_exists($object, 'signType')) {
105: $this->signType = $object->signType;
106: }
107: if (property_exists($object, 'timeStamp')) {
108: $this->timeStamp = $object->timeStamp;
109: }
110: return $this;
111: }
112: }
113: