Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix Shipping Dimenstions UoM #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions Shipping/src/Shipping/DimensionsUnitOfMeasurement.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
*
*
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.45
*/
Expand Down Expand Up @@ -45,29 +45,29 @@ class DimensionsUnitOfMeasurement 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 = 'Dimensions_UnitOfMeasurement';

/**
* 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 = [
'unit_of_measurement' => 'string',
'code' => 'string',
'description' => '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 = [
'unit_of_measurement' => null,
'code' => null,
'description' => null
];

Expand Down Expand Up @@ -98,7 +98,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
'unit_of_measurement' => 'UnitOfMeasurement',
'code' => 'Code',
'description' => 'Description'
];

Expand All @@ -108,7 +108,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
'unit_of_measurement' => 'setUnitOfMeasurement',
'code' => 'setCode',
'description' => 'setDescription'
];

Expand All @@ -118,7 +118,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
'unit_of_measurement' => 'getUnitOfMeasurement',
'code' => 'getCode',
'description' => 'getDescription'
];

Expand Down Expand Up @@ -180,7 +180,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->container['unit_of_measurement'] = isset($data['unit_of_measurement']) ? $data['unit_of_measurement'] : null;
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
}

Expand Down Expand Up @@ -209,25 +209,25 @@ public function valid()


/**
* Gets unit_of_measurement
* Gets code
*
* @return string
*/
public function getUnitOfMeasurement()
public function getCode()
{
return $this->container['unit_of_measurement'];
return $this->container['code'];
}

/**
* Sets unit_of_measurement
* Sets code
*
* @param string $unit_of_measurement Package dimensions measurement code. Valid codes: IN = Inches CM = Centimeters 00 = Metric Units Of Measurement 01 = English Units of Measurement The unit of measurement must be valid for the Shipper country or territory.
* @param string $code Package dimensions measurement code. Valid codes: IN = Inches CM = Centimeters 00 = Metric Units Of Measurement 01 = English Units of Measurement The unit of measurement must be valid for the Shipper country or territory.
*
* @return $this
*/
public function setUnitOfMeasurement($unit_of_measurement)
public function setCode($code)
{
$this->container['unit_of_measurement'] = $unit_of_measurement;
$this->container['code'] = $code;

return $this;
}
Expand Down