Skip to content

Commit 31d7594

Browse files
authored
Updated models (#175)
1 parent 7177d5f commit 31d7594

File tree

55 files changed

+9684
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+9684
-111
lines changed

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php

Lines changed: 382 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 298 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,298 @@
1+
<?php declare(strict_types=1);
2+
/**
3+
* AggregationFilter.
4+
*
5+
* PHP version 7.4
6+
*
7+
* @category Class
8+
*
9+
* @author OpenAPI Generator team
10+
*
11+
* @link https://openapi-generator.tech
12+
*/
13+
14+
/**
15+
* Selling Partner API for Notifications.
16+
*
17+
* The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide).
18+
*
19+
* The version of the OpenAPI document: v1
20+
* Generated by: https://openapi-generator.tech
21+
* OpenAPI Generator version: 5.2.0-SNAPSHOT
22+
*/
23+
24+
/**
25+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26+
* https://openapi-generator.tech
27+
* Do not edit the class manually.
28+
*/
29+
30+
namespace AmazonPHP\SellingPartner\Model\Notifications;
31+
32+
use AmazonPHP\SellingPartner\ModelInterface;
33+
use AmazonPHP\SellingPartner\ObjectSerializer;
34+
35+
/**
36+
* This class was auto-generated by https://github.com/OpenAPITools/openapi-generator/.
37+
* Do not change it, it will be overwritten with next execution of /bin/generate.sh.
38+
*
39+
* @implements \ArrayAccess<TKey, TValue>
40+
* @template TKey int|null
41+
* @template TValue mixed|null
42+
*/
43+
class AggregationFilter implements \ArrayAccess, \JsonSerializable, ModelInterface
44+
{
45+
public const DISCRIMINATOR = null;
46+
47+
/**
48+
* The original name of the model.
49+
*
50+
* @var string
51+
*/
52+
protected static string $openAPIModelName = 'AggregationFilter';
53+
54+
/**
55+
* Array of property to type mappings. Used for (de)serialization.
56+
*
57+
* @var string[]
58+
*/
59+
protected static array $openAPITypes = [
60+
'aggregation_settings' => '\AmazonPHP\SellingPartner\Model\Notifications\AggregationSettings',
61+
];
62+
63+
/**
64+
* Array of property to format mappings. Used for (de)serialization.
65+
*
66+
* @var string[]
67+
* @phpstan-var array<string, string|null>
68+
* @psalm-var array<string, string|null>
69+
*/
70+
protected static array $openAPIFormats = [
71+
'aggregation_settings' => null,
72+
];
73+
74+
/**
75+
* Array of attributes where the key is the local name,
76+
* and the value is the original name.
77+
*
78+
* @var string[]
79+
*/
80+
protected static array $attributeMap = [
81+
'aggregation_settings' => 'aggregationSettings',
82+
];
83+
84+
/**
85+
* Array of attributes to setter functions (for deserialization of responses).
86+
*
87+
* @var string[]
88+
*/
89+
protected static array $setters = [
90+
'aggregation_settings' => 'setAggregationSettings',
91+
];
92+
93+
/**
94+
* Array of attributes to getter functions (for serialization of requests).
95+
*
96+
* @var string[]
97+
*/
98+
protected static array $getters = [
99+
'aggregation_settings' => 'getAggregationSettings',
100+
];
101+
102+
/**
103+
* Associative array for storing property values.
104+
*
105+
* @var mixed[]
106+
*/
107+
protected array $container = [];
108+
109+
/**
110+
* Constructor.
111+
*
112+
* @param mixed[] $data Associated array of property values
113+
* initializing the model
114+
*/
115+
public function __construct(array $data = null)
116+
{
117+
$this->container['aggregation_settings'] = $data['aggregation_settings'] ?? null;
118+
}
119+
120+
/**
121+
* Array of property to type mappings. Used for (de)serialization.
122+
*
123+
* @return string[]
124+
*/
125+
public static function openAPITypes() : array
126+
{
127+
return self::$openAPITypes;
128+
}
129+
130+
/**
131+
* Array of property to format mappings. Used for (de)serialization.
132+
*
133+
* @return null[]|string[]
134+
*/
135+
public static function openAPIFormats() : array
136+
{
137+
return self::$openAPIFormats;
138+
}
139+
140+
/**
141+
* Array of attributes where the key is the local name,
142+
* and the value is the original name.
143+
*
144+
* @return string[]
145+
*/
146+
public static function attributeMap() : array
147+
{
148+
return self::$attributeMap;
149+
}
150+
151+
/**
152+
* Array of attributes to setter functions (for deserialization of responses).
153+
*
154+
* @return string[]
155+
*/
156+
public static function setters() : array
157+
{
158+
return self::$setters;
159+
}
160+
161+
/**
162+
* Array of attributes to getter functions (for serialization of requests).
163+
*
164+
* @return string[]
165+
*/
166+
public static function getters() : array
167+
{
168+
return self::$getters;
169+
}
170+
171+
/**
172+
* Gets the string presentation of the object.
173+
*/
174+
public function __toString() : string
175+
{
176+
return \json_encode(
177+
ObjectSerializer::sanitizeForSerialization($this),
178+
JSON_PRETTY_PRINT
179+
);
180+
}
181+
182+
/**
183+
* The original name of the model.
184+
*/
185+
public function getModelName() : string
186+
{
187+
return self::$openAPIModelName;
188+
}
189+
190+
/**
191+
* Show all the invalid properties with reasons.
192+
*
193+
* @return array invalid properties with reasons
194+
*/
195+
public function listInvalidProperties() : array
196+
{
197+
return [];
198+
}
199+
200+
/**
201+
* Validate all the properties in the model
202+
* return true if all passed.
203+
*
204+
* @return bool True if all properties are valid
205+
*/
206+
public function valid() : bool
207+
{
208+
return \count($this->listInvalidProperties()) === 0;
209+
}
210+
211+
/**
212+
* Gets aggregation_settings.
213+
*/
214+
public function getAggregationSettings() : ?AggregationSettings
215+
{
216+
return $this->container['aggregation_settings'];
217+
}
218+
219+
/**
220+
* Sets aggregation_settings.
221+
*
222+
* @param null|\AmazonPHP\SellingPartner\Model\Notifications\AggregationSettings $aggregation_settings aggregation_settings
223+
*/
224+
public function setAggregationSettings(?AggregationSettings $aggregation_settings) : self
225+
{
226+
$this->container['aggregation_settings'] = $aggregation_settings;
227+
228+
return $this;
229+
}
230+
231+
/**
232+
* Returns true if offset exists. False otherwise.
233+
*
234+
* @param int $offset Offset
235+
*/
236+
public function offsetExists($offset) : bool
237+
{
238+
return isset($this->container[$offset]);
239+
}
240+
241+
/**
242+
* Gets offset.
243+
*
244+
* @param int $offset Offset
245+
*
246+
* @return null|mixed
247+
*/
248+
public function offsetGet($offset)
249+
{
250+
return $this->container[$offset] ?? null;
251+
}
252+
253+
/**
254+
* Sets value based on offset.
255+
*
256+
* @param null|int $offset Offset
257+
* @param mixed $value Value to be set
258+
*/
259+
public function offsetSet($offset, $value) : void
260+
{
261+
if (null === $offset) {
262+
$this->container[] = $value;
263+
} else {
264+
$this->container[$offset] = $value;
265+
}
266+
}
267+
268+
/**
269+
* Unsets offset.
270+
*
271+
* @param int $offset Offset
272+
*/
273+
public function offsetUnset($offset) : void
274+
{
275+
unset($this->container[$offset]);
276+
}
277+
278+
/**
279+
* Serializes the object to a value that can be serialized natively by json_encode().
280+
*
281+
* @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
282+
*
283+
* @return mixed returns data which can be serialized by json_encode(), which is a value
284+
* of any type other than a resource
285+
*/
286+
public function jsonSerialize() : string
287+
{
288+
return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);
289+
}
290+
291+
/**
292+
* Gets a header-safe presentation of the object.
293+
*/
294+
public function toHeaderValue() : string
295+
{
296+
return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);
297+
}
298+
}

0 commit comments

Comments
 (0)