Skip to content

Commit 803d586

Browse files
author
Javi A
committed
Generated client from my.yoast.test
1 parent c723590 commit 803d586

File tree

5 files changed

+53
-53
lines changed

5 files changed

+53
-53
lines changed

docs/Model/ExtraProductData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**billingType** | **string** | |
1010
**billingTerm** | **string** | | [optional]
1111
**activationLimit** | **int** | | [optional]
12-
**currency** | **string** | |
12+
**currency** | **string[]** | |
1313

1414
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
1515

docs/Model/ProductData.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ Name | Type | Description | Notes
66
**metaData** | [**\Yoast\MyYoastApiClient\Model\MetaDataDto[]**](MetaDataDto.md) | |
77
**images** | [**\Yoast\MyYoastApiClient\Model\ProductImage[]**](ProductImage.md) | |
88
**id** | **int** | |
9+
**uSProductId** | **int** | |
910
**name** | **string** | |
1011
**description** | **string** | |
1112
**permalink** | **string** | |
1213
**downloads** | [**\Yoast\MyYoastApiClient\Model\ProductDownload[]**](ProductDownload.md) | |
1314
**sku** | **string** | |
14-
**uSProductId** | **int** | |
1515
**type** | **string** | |
1616
**status** | **string** | |
17-
**regularPrice** | **string** | |
18-
**price** | **string** | |
17+
**regularPrice** | **string[]** | |
18+
**price** | **string[]** | |
1919
**purchasable** | **bool** | |
2020
**taxStatus** | **string** | |
2121
**taxClass** | **string** | |

src/Model/ExtraProductData.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ExtraProductData implements ModelInterface, ArrayAccess
6262
'billingType' => 'string',
6363
'billingTerm' => 'string',
6464
'activationLimit' => 'int',
65-
'currency' => 'string'
65+
'currency' => 'string[]'
6666
];
6767

6868
/**
@@ -399,7 +399,7 @@ public function setActivationLimit($activationLimit)
399399
/**
400400
* Gets currency
401401
*
402-
* @return string
402+
* @return string[]
403403
*/
404404
public function getCurrency()
405405
{
@@ -409,7 +409,7 @@ public function getCurrency()
409409
/**
410410
* Sets currency
411411
*
412-
* @param string $currency currency
412+
* @param string[] $currency currency
413413
*
414414
* @return $this
415415
*/

src/Model/ProductData.php

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ class ProductData implements ModelInterface, ArrayAccess
5959
'metaData' => '\Yoast\MyYoastApiClient\Model\MetaDataDto[]',
6060
'images' => '\Yoast\MyYoastApiClient\Model\ProductImage[]',
6161
'id' => 'int',
62+
'uSProductId' => 'int',
6263
'name' => 'string',
6364
'description' => 'string',
6465
'permalink' => 'string',
6566
'downloads' => '\Yoast\MyYoastApiClient\Model\ProductDownload[]',
6667
'sku' => 'string',
67-
'uSProductId' => 'int',
6868
'type' => 'string',
6969
'status' => 'string',
70-
'regularPrice' => 'string',
71-
'price' => 'string',
70+
'regularPrice' => 'string[]',
71+
'price' => 'string[]',
7272
'purchasable' => 'bool',
7373
'taxStatus' => 'string',
7474
'taxClass' => 'string',
@@ -84,12 +84,12 @@ class ProductData implements ModelInterface, ArrayAccess
8484
'metaData' => null,
8585
'images' => null,
8686
'id' => null,
87+
'uSProductId' => null,
8788
'name' => null,
8889
'description' => null,
8990
'permalink' => null,
9091
'downloads' => null,
9192
'sku' => null,
92-
'uSProductId' => null,
9393
'type' => null,
9494
'status' => null,
9595
'regularPrice' => null,
@@ -130,12 +130,12 @@ public static function swaggerFormats()
130130
'metaData' => 'meta_data',
131131
'images' => 'images',
132132
'id' => 'id',
133+
'uSProductId' => 'USProductId',
133134
'name' => 'name',
134135
'description' => 'description',
135136
'permalink' => 'permalink',
136137
'downloads' => 'downloads',
137138
'sku' => 'sku',
138-
'uSProductId' => 'USProductId',
139139
'type' => 'type',
140140
'status' => 'status',
141141
'regularPrice' => 'regular_price',
@@ -155,12 +155,12 @@ public static function swaggerFormats()
155155
'metaData' => 'setMetaData',
156156
'images' => 'setImages',
157157
'id' => 'setId',
158+
'uSProductId' => 'setUSProductId',
158159
'name' => 'setName',
159160
'description' => 'setDescription',
160161
'permalink' => 'setPermalink',
161162
'downloads' => 'setDownloads',
162163
'sku' => 'setSku',
163-
'uSProductId' => 'setUSProductId',
164164
'type' => 'setType',
165165
'status' => 'setStatus',
166166
'regularPrice' => 'setRegularPrice',
@@ -180,12 +180,12 @@ public static function swaggerFormats()
180180
'metaData' => 'getMetaData',
181181
'images' => 'getImages',
182182
'id' => 'getId',
183+
'uSProductId' => 'getUSProductId',
183184
'name' => 'getName',
184185
'description' => 'getDescription',
185186
'permalink' => 'getPermalink',
186187
'downloads' => 'getDownloads',
187188
'sku' => 'getSku',
188-
'uSProductId' => 'getUSProductId',
189189
'type' => 'getType',
190190
'status' => 'getStatus',
191191
'regularPrice' => 'getRegularPrice',
@@ -257,12 +257,12 @@ public function __construct(array $data = null)
257257
$this->container['metaData'] = isset($data['metaData']) ? $data['metaData'] : null;
258258
$this->container['images'] = isset($data['images']) ? $data['images'] : null;
259259
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
260+
$this->container['uSProductId'] = isset($data['uSProductId']) ? $data['uSProductId'] : null;
260261
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
261262
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
262263
$this->container['permalink'] = isset($data['permalink']) ? $data['permalink'] : null;
263264
$this->container['downloads'] = isset($data['downloads']) ? $data['downloads'] : null;
264265
$this->container['sku'] = isset($data['sku']) ? $data['sku'] : null;
265-
$this->container['uSProductId'] = isset($data['uSProductId']) ? $data['uSProductId'] : null;
266266
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
267267
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
268268
$this->container['regularPrice'] = isset($data['regularPrice']) ? $data['regularPrice'] : null;
@@ -291,6 +291,9 @@ public function listInvalidProperties()
291291
if ($this->container['id'] === null) {
292292
$invalidProperties[] = "'id' can't be null";
293293
}
294+
if ($this->container['uSProductId'] === null) {
295+
$invalidProperties[] = "'uSProductId' can't be null";
296+
}
294297
if ($this->container['name'] === null) {
295298
$invalidProperties[] = "'name' can't be null";
296299
}
@@ -306,9 +309,6 @@ public function listInvalidProperties()
306309
if ($this->container['sku'] === null) {
307310
$invalidProperties[] = "'sku' can't be null";
308311
}
309-
if ($this->container['uSProductId'] === null) {
310-
$invalidProperties[] = "'uSProductId' can't be null";
311-
}
312312
if ($this->container['type'] === null) {
313313
$invalidProperties[] = "'type' can't be null";
314314
}
@@ -420,6 +420,30 @@ public function setId($id)
420420
return $this;
421421
}
422422

423+
/**
424+
* Gets uSProductId
425+
*
426+
* @return int
427+
*/
428+
public function getUSProductId()
429+
{
430+
return $this->container['uSProductId'];
431+
}
432+
433+
/**
434+
* Sets uSProductId
435+
*
436+
* @param int $uSProductId uSProductId
437+
*
438+
* @return $this
439+
*/
440+
public function setUSProductId($uSProductId)
441+
{
442+
$this->container['uSProductId'] = $uSProductId;
443+
444+
return $this;
445+
}
446+
423447
/**
424448
* Gets name
425449
*
@@ -540,30 +564,6 @@ public function setSku($sku)
540564
return $this;
541565
}
542566

543-
/**
544-
* Gets uSProductId
545-
*
546-
* @return int
547-
*/
548-
public function getUSProductId()
549-
{
550-
return $this->container['uSProductId'];
551-
}
552-
553-
/**
554-
* Sets uSProductId
555-
*
556-
* @param int $uSProductId uSProductId
557-
*
558-
* @return $this
559-
*/
560-
public function setUSProductId($uSProductId)
561-
{
562-
$this->container['uSProductId'] = $uSProductId;
563-
564-
return $this;
565-
}
566-
567567
/**
568568
* Gets type
569569
*
@@ -615,7 +615,7 @@ public function setStatus($status)
615615
/**
616616
* Gets regularPrice
617617
*
618-
* @return string
618+
* @return string[]
619619
*/
620620
public function getRegularPrice()
621621
{
@@ -625,7 +625,7 @@ public function getRegularPrice()
625625
/**
626626
* Sets regularPrice
627627
*
628-
* @param string $regularPrice regularPrice
628+
* @param string[] $regularPrice regularPrice
629629
*
630630
* @return $this
631631
*/
@@ -639,7 +639,7 @@ public function setRegularPrice($regularPrice)
639639
/**
640640
* Gets price
641641
*
642-
* @return string
642+
* @return string[]
643643
*/
644644
public function getPrice()
645645
{
@@ -649,7 +649,7 @@ public function getPrice()
649649
/**
650650
* Sets price
651651
*
652-
* @param string $price price
652+
* @param string[] $price price
653653
*
654654
* @return $this
655655
*/

test/Model/ProductDataTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ public function testPropertyId()
9898
{
9999
}
100100

101+
/**
102+
* Test attribute "uSProductId"
103+
*/
104+
public function testPropertyUSProductId()
105+
{
106+
}
107+
101108
/**
102109
* Test attribute "name"
103110
*/
@@ -133,13 +140,6 @@ public function testPropertySku()
133140
{
134141
}
135142

136-
/**
137-
* Test attribute "uSProductId"
138-
*/
139-
public function testPropertyUSProductId()
140-
{
141-
}
142-
143143
/**
144144
* Test attribute "type"
145145
*/

0 commit comments

Comments
 (0)