Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Major Update 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ClouSale committed Jan 29, 2021
1 parent ddcbff5 commit 522f14a
Show file tree
Hide file tree
Showing 587 changed files with 31,846 additions and 31,492 deletions.
12 changes: 6 additions & 6 deletions lib/AssumeRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@ public function __construct($accessKeyId, $secretAccessKey, $sessionToken)
/**
* @return mixed
*/
public function getAccessKeyId() {
public function getAccessKeyId()
{
return $this->accessKeyId;
}

/**
* @return mixed
*/
public function getSecretAccessKey() {
public function getSecretAccessKey()
{
return $this->secretAccessKey;
}

/**
* @return mixed
*/
public function getSessionToken() {
public function getSessionToken()
{
return $this->sessionToken;
}



/**
* @param $region
* @param $accessKey
* @param $secretKey
* @param $roleArn
* @return AssumeRole
*/
public static function assume($region, $accessKey, $secretKey, $roleArn): AssumeRole
{
Expand Down
14 changes: 4 additions & 10 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,19 +437,13 @@ public function setSecretKey(?string $secretKey): void
$this->secretKey = $secretKey;
}

/**
* @return string|null
*/
public function getRegion(): ?string {
public function getRegion(): ?string
{
return $this->region;
}

/**
* @param string|null $region
*/
public function setRegion(?string $region): void {
public function setRegion(?string $region): void
{
$this->region = $region;
}


}
106 changes: 53 additions & 53 deletions lib/Models/Authorization/AuthorizationCode.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<?php
/**
* AuthorizationCode
* AuthorizationCode.
*
* PHP version 5
*
* @category Class
* @package ClouSale\AmazonSellingPartnerAPI
*
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*
* @see https://github.com/swagger-api/swagger-codegen
*/

/**
* Selling Partner API for Authorization
* Selling Partner API for Authorization.
*
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
*
* OpenAPI spec version: v1
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.20
*/
Expand All @@ -28,48 +29,49 @@

namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization;

use \ArrayAccess;
use \ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
use \ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;

/**
* AuthorizationCode Class Doc Comment
* AuthorizationCode Class Doc Comment.
*
* @category Class
* @description A Login with Amazon (LWA) authorization code.
* @package ClouSale\AmazonSellingPartnerAPI
*
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*
* @see https://github.com/swagger-api/swagger-codegen
*/
class AuthorizationCode implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;

/**
* The original name of the model.
*
* @var string
*/
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AuthorizationCode';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'authorization_code' => 'string' ];
'authorization_code' => 'string', ];

/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'authorization_code' => null ];
'authorization_code' => null, ];

/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
Expand All @@ -79,7 +81,7 @@ public static function swaggerTypes()
}

/**
* Array of property to format mappings. Used for (de)serialization
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
Expand All @@ -90,32 +92,32 @@ public static function swaggerFormats()

/**
* Array of attributes where the key is the local name,
* and the value is the original name
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'authorization_code' => 'authorizationCode' ];
'authorization_code' => 'authorizationCode', ];

/**
* Array of attributes to setter functions (for deserialization of responses)
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'authorization_code' => 'setAuthorizationCode' ];
'authorization_code' => 'setAuthorizationCode', ];

/**
* Array of attributes to getter functions (for serialization of requests)
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'authorization_code' => 'getAuthorizationCode' ];
'authorization_code' => 'getAuthorizationCode', ];

/**
* Array of attributes where the key is the local name,
* and the value is the original name
* and the value is the original name.
*
* @return array
*/
Expand All @@ -125,7 +127,7 @@ public static function attributeMap()
}

/**
* Array of attributes to setter functions (for deserialization of responses)
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
Expand All @@ -135,7 +137,7 @@ public static function setters()
}

/**
* Array of attributes to getter functions (for serialization of requests)
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
Expand All @@ -154,17 +156,15 @@ public function getModelName()
return self::$swaggerModelName;
}



/**
* Associative array for storing property values
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];

/**
* Constructor
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
Expand All @@ -188,18 +188,17 @@ public function listInvalidProperties()

/**
* Validate all the properties in the model
* return true if all passed
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
return 0 === count($this->listInvalidProperties());
}


/**
* Gets authorization_code
* Gets authorization_code.
*
* @return string
*/
Expand All @@ -209,9 +208,9 @@ public function getAuthorizationCode()
}

/**
* Sets authorization_code
* Sets authorization_code.
*
* @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.
* @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
*
* @return $this
*/
Expand All @@ -221,12 +220,13 @@ public function setAuthorizationCode($authorization_code)

return $this;
}

/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
* @param int $offset Offset
*
* @return boolean
* @return bool
*/
public function offsetExists($offset)
{
Expand All @@ -236,7 +236,7 @@ public function offsetExists($offset)
/**
* Gets offset.
*
* @param integer $offset Offset
* @param int $offset Offset
*
* @return mixed
*/
Expand All @@ -248,8 +248,8 @@ public function offsetGet($offset)
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
Expand All @@ -265,7 +265,7 @@ public function offsetSet($offset, $value)
/**
* Unsets offset.
*
* @param integer $offset Offset
* @param int $offset Offset
*
* @return void
*/
Expand All @@ -275,7 +275,7 @@ public function offsetUnset($offset)
}

/**
* Gets the string presentation of the object
* Gets the string presentation of the object.
*
* @return string
*/
Expand Down
Loading

0 comments on commit 522f14a

Please sign in to comment.