Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 522f14a

Browse files
author
ClouSale
committed
Major Update 2.0
1 parent ddcbff5 commit 522f14a

File tree

587 files changed

+31846
-31492
lines changed

Some content is hidden

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

587 files changed

+31846
-31492
lines changed

lib/AssumeRole.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,32 @@ public function __construct($accessKeyId, $secretAccessKey, $sessionToken)
2727
/**
2828
* @return mixed
2929
*/
30-
public function getAccessKeyId() {
30+
public function getAccessKeyId()
31+
{
3132
return $this->accessKeyId;
3233
}
3334

3435
/**
3536
* @return mixed
3637
*/
37-
public function getSecretAccessKey() {
38+
public function getSecretAccessKey()
39+
{
3840
return $this->secretAccessKey;
3941
}
4042

4143
/**
4244
* @return mixed
4345
*/
44-
public function getSessionToken() {
46+
public function getSessionToken()
47+
{
4548
return $this->sessionToken;
4649
}
4750

48-
49-
5051
/**
5152
* @param $region
5253
* @param $accessKey
5354
* @param $secretKey
5455
* @param $roleArn
55-
* @return AssumeRole
5656
*/
5757
public static function assume($region, $accessKey, $secretKey, $roleArn): AssumeRole
5858
{

lib/Configuration.php

+4-10
Original file line numberDiff line numberDiff line change
@@ -437,19 +437,13 @@ public function setSecretKey(?string $secretKey): void
437437
$this->secretKey = $secretKey;
438438
}
439439

440-
/**
441-
* @return string|null
442-
*/
443-
public function getRegion(): ?string {
440+
public function getRegion(): ?string
441+
{
444442
return $this->region;
445443
}
446444

447-
/**
448-
* @param string|null $region
449-
*/
450-
public function setRegion(?string $region): void {
445+
public function setRegion(?string $region): void
446+
{
451447
$this->region = $region;
452448
}
453-
454-
455449
}

lib/Models/Authorization/AuthorizationCode.php

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<?php
22
/**
3-
* AuthorizationCode
3+
* AuthorizationCode.
44
*
55
* PHP version 5
66
*
77
* @category Class
8-
* @package ClouSale\AmazonSellingPartnerAPI
8+
*
99
* @author Swagger Codegen team
10-
* @link https://github.com/swagger-api/swagger-codegen
10+
*
11+
* @see https://github.com/swagger-api/swagger-codegen
1112
*/
1213

1314
/**
14-
* Selling Partner API for Authorization
15+
* Selling Partner API for Authorization.
1516
*
1617
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
1718
*
1819
* OpenAPI spec version: v1
19-
*
20+
*
2021
* Generated by: https://github.com/swagger-api/swagger-codegen.git
2122
* Swagger Codegen version: 3.0.20
2223
*/
@@ -28,48 +29,49 @@
2829

2930
namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization;
3031

31-
use \ArrayAccess;
32-
use \ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
33-
use \ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
32+
use ArrayAccess;
33+
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
34+
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
3435

3536
/**
36-
* AuthorizationCode Class Doc Comment
37+
* AuthorizationCode Class Doc Comment.
3738
*
3839
* @category Class
3940
* @description A Login with Amazon (LWA) authorization code.
40-
* @package ClouSale\AmazonSellingPartnerAPI
41+
*
4142
* @author Swagger Codegen team
42-
* @link https://github.com/swagger-api/swagger-codegen
43+
*
44+
* @see https://github.com/swagger-api/swagger-codegen
4345
*/
4446
class AuthorizationCode implements ModelInterface, ArrayAccess
4547
{
4648
const DISCRIMINATOR = null;
4749

4850
/**
49-
* The original name of the model.
50-
*
51-
* @var string
52-
*/
51+
* The original name of the model.
52+
*
53+
* @var string
54+
*/
5355
protected static $swaggerModelName = 'AuthorizationCode';
5456

5557
/**
56-
* Array of property to type mappings. Used for (de)serialization
57-
*
58-
* @var string[]
59-
*/
58+
* Array of property to type mappings. Used for (de)serialization.
59+
*
60+
* @var string[]
61+
*/
6062
protected static $swaggerTypes = [
61-
'authorization_code' => 'string' ];
63+
'authorization_code' => 'string', ];
6264

6365
/**
64-
* Array of property to format mappings. Used for (de)serialization
65-
*
66-
* @var string[]
67-
*/
66+
* Array of property to format mappings. Used for (de)serialization.
67+
*
68+
* @var string[]
69+
*/
6870
protected static $swaggerFormats = [
69-
'authorization_code' => null ];
71+
'authorization_code' => null, ];
7072

7173
/**
72-
* Array of property to type mappings. Used for (de)serialization
74+
* Array of property to type mappings. Used for (de)serialization.
7375
*
7476
* @return array
7577
*/
@@ -79,7 +81,7 @@ public static function swaggerTypes()
7981
}
8082

8183
/**
82-
* Array of property to format mappings. Used for (de)serialization
84+
* Array of property to format mappings. Used for (de)serialization.
8385
*
8486
* @return array
8587
*/
@@ -90,32 +92,32 @@ public static function swaggerFormats()
9092

9193
/**
9294
* Array of attributes where the key is the local name,
93-
* and the value is the original name
95+
* and the value is the original name.
9496
*
9597
* @var string[]
9698
*/
9799
protected static $attributeMap = [
98-
'authorization_code' => 'authorizationCode' ];
100+
'authorization_code' => 'authorizationCode', ];
99101

100102
/**
101-
* Array of attributes to setter functions (for deserialization of responses)
103+
* Array of attributes to setter functions (for deserialization of responses).
102104
*
103105
* @var string[]
104106
*/
105107
protected static $setters = [
106-
'authorization_code' => 'setAuthorizationCode' ];
108+
'authorization_code' => 'setAuthorizationCode', ];
107109

108110
/**
109-
* Array of attributes to getter functions (for serialization of requests)
111+
* Array of attributes to getter functions (for serialization of requests).
110112
*
111113
* @var string[]
112114
*/
113115
protected static $getters = [
114-
'authorization_code' => 'getAuthorizationCode' ];
116+
'authorization_code' => 'getAuthorizationCode', ];
115117

116118
/**
117119
* Array of attributes where the key is the local name,
118-
* and the value is the original name
120+
* and the value is the original name.
119121
*
120122
* @return array
121123
*/
@@ -125,7 +127,7 @@ public static function attributeMap()
125127
}
126128

127129
/**
128-
* Array of attributes to setter functions (for deserialization of responses)
130+
* Array of attributes to setter functions (for deserialization of responses).
129131
*
130132
* @return array
131133
*/
@@ -135,7 +137,7 @@ public static function setters()
135137
}
136138

137139
/**
138-
* Array of attributes to getter functions (for serialization of requests)
140+
* Array of attributes to getter functions (for serialization of requests).
139141
*
140142
* @return array
141143
*/
@@ -154,17 +156,15 @@ public function getModelName()
154156
return self::$swaggerModelName;
155157
}
156158

157-
158-
159159
/**
160-
* Associative array for storing property values
160+
* Associative array for storing property values.
161161
*
162162
* @var mixed[]
163163
*/
164164
protected $container = [];
165165

166166
/**
167-
* Constructor
167+
* Constructor.
168168
*
169169
* @param mixed[] $data Associated array of property values
170170
* initializing the model
@@ -188,18 +188,17 @@ public function listInvalidProperties()
188188

189189
/**
190190
* Validate all the properties in the model
191-
* return true if all passed
191+
* return true if all passed.
192192
*
193193
* @return bool True if all properties are valid
194194
*/
195195
public function valid()
196196
{
197-
return count($this->listInvalidProperties()) === 0;
197+
return 0 === count($this->listInvalidProperties());
198198
}
199199

200-
201200
/**
202-
* Gets authorization_code
201+
* Gets authorization_code.
203202
*
204203
* @return string
205204
*/
@@ -209,9 +208,9 @@ public function getAuthorizationCode()
209208
}
210209

211210
/**
212-
* Sets authorization_code
211+
* Sets authorization_code.
213212
*
214-
* @param string $authorization_code A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API.
213+
* @param string $authorization_code a Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API
215214
*
216215
* @return $this
217216
*/
@@ -221,12 +220,13 @@ public function setAuthorizationCode($authorization_code)
221220

222221
return $this;
223222
}
223+
224224
/**
225225
* Returns true if offset exists. False otherwise.
226226
*
227-
* @param integer $offset Offset
227+
* @param int $offset Offset
228228
*
229-
* @return boolean
229+
* @return bool
230230
*/
231231
public function offsetExists($offset)
232232
{
@@ -236,7 +236,7 @@ public function offsetExists($offset)
236236
/**
237237
* Gets offset.
238238
*
239-
* @param integer $offset Offset
239+
* @param int $offset Offset
240240
*
241241
* @return mixed
242242
*/
@@ -248,8 +248,8 @@ public function offsetGet($offset)
248248
/**
249249
* Sets value based on offset.
250250
*
251-
* @param integer $offset Offset
252-
* @param mixed $value Value to be set
251+
* @param int $offset Offset
252+
* @param mixed $value Value to be set
253253
*
254254
* @return void
255255
*/
@@ -265,7 +265,7 @@ public function offsetSet($offset, $value)
265265
/**
266266
* Unsets offset.
267267
*
268-
* @param integer $offset Offset
268+
* @param int $offset Offset
269269
*
270270
* @return void
271271
*/
@@ -275,7 +275,7 @@ public function offsetUnset($offset)
275275
}
276276

277277
/**
278-
* Gets the string presentation of the object
278+
* Gets the string presentation of the object.
279279
*
280280
* @return string
281281
*/

0 commit comments

Comments
 (0)