1: <?php
2: /*
3: * Inventorus
4: *
5: * This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ) on 08/26/2016
6: */
7:
8: namespace Inventorus\Models;
9:
10: use JsonSerializable;
11:
12: /**
13: * @todo Write general description for this model
14: */
15: class ImportRequest implements JsonSerializable {
16: /**
17: * SteamID of user
18: * @required
19: * @var string $steamid public property
20: */
21: public $steamid;
22:
23: /**
24: * Trade token of user
25: * @required
26: * @var string $tradeToken public property
27: */
28: public $tradeToken;
29:
30: /**
31: * Message of trade offer
32: * @optional
33: * @var string $message public property
34: */
35: public $message;
36:
37: /**
38: * Items to export
39: * @required
40: * @var array $items public property
41: */
42: public $items;
43:
44: /**
45: * Success hook url
46: * @optional
47: * @var string $successUrl public property
48: */
49: public $successUrl;
50:
51: /**
52: * Fail hook url
53: * @optional
54: * @var string $failUrl public property
55: */
56: public $failUrl;
57:
58: /**
59: * Upate hook url
60: * @optional
61: * @var string $updateUrl public property
62: */
63: public $updateUrl;
64:
65: /**
66: * Constructor to set initial or default values of member properties
67: * @param string $steamid Initialization value for the property $this->steamid
68: * @param string $tradeToken Initialization value for the property $this->tradeToken
69: * @param string $message Initialization value for the property $this->message
70: * @param array $items Initialization value for the property $this->items
71: * @param string $successUrl Initialization value for the property $this->successUrl
72: * @param string $failUrl Initialization value for the property $this->failUrl
73: * @param string $updateUrl Initialization value for the property $this->updateUrl
74: */
75: public function __construct()
76: {
77: if(7 == func_num_args())
78: {
79: $this->steamid = func_get_arg(0);
80: $this->tradeToken = func_get_arg(1);
81: $this->message = func_get_arg(2);
82: $this->items = func_get_arg(3);
83: $this->successUrl = func_get_arg(4);
84: $this->failUrl = func_get_arg(5);
85: $this->updateUrl = func_get_arg(6);
86: }
87: }
88:
89:
90: /**
91: * Encode this object to JSON
92: */
93: public function jsonSerialize()
94: {
95: $json = array();
96: $json['steamid'] = $this->steamid;
97: $json['tradeToken'] = $this->tradeToken;
98: $json['message'] = $this->message;
99: $json['items'] = $this->items;
100: $json['successUrl'] = $this->successUrl;
101: $json['failUrl'] = $this->failUrl;
102: $json['updateUrl'] = $this->updateUrl;
103:
104: return $json;
105: }
106: }
107: