-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96286d5
commit a7d80c1
Showing
20 changed files
with
2,484 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
<?php | ||
/** | ||
* wallee SDK | ||
* | ||
* This library allows to interact with the wallee payment service. | ||
* wallee SDK: 1.0.0 | ||
* | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Wallee\Sdk\Model; | ||
|
||
use Wallee\Sdk\ValidationException; | ||
|
||
/** | ||
* AbstractSubscriptionAffiliateUpdate model | ||
* | ||
* @category Class | ||
* @package Wallee\Sdk | ||
* @author customweb GmbH | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 | ||
*/ | ||
class AbstractSubscriptionAffiliateUpdate { | ||
|
||
/** | ||
* The original name of the model. | ||
* | ||
* @var string | ||
*/ | ||
private static $swaggerModelName = 'Abstract.SubscriptionAffiliate.Update'; | ||
|
||
/** | ||
* An array of property to type mappings. Used for (de)serialization. | ||
* | ||
* @var string[] | ||
*/ | ||
private static $swaggerTypes = array( | ||
'language' => 'string', | ||
'metaData' => 'map[string,string]', | ||
'name' => 'string', | ||
'state' => '\Wallee\Sdk\Model\CreationEntityState' ); | ||
|
||
/** | ||
* Returns an array of property to type mappings. | ||
* | ||
* @return string[] | ||
*/ | ||
public static function swaggerTypes() { | ||
return self::$swaggerTypes; | ||
} | ||
|
||
|
||
|
||
/** | ||
* | ||
* | ||
* @var string | ||
*/ | ||
private $language; | ||
|
||
/** | ||
* Meta data allow to store additional data along the object. | ||
* | ||
* @var map[string,string] | ||
*/ | ||
private $metaData; | ||
|
||
/** | ||
* | ||
* | ||
* @var string | ||
*/ | ||
private $name; | ||
|
||
/** | ||
* | ||
* | ||
* @var \Wallee\Sdk\Model\CreationEntityState | ||
*/ | ||
private $state; | ||
|
||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param mixed[] $data an associated array of property values initializing the model | ||
*/ | ||
public function __construct(array $data = null) { | ||
if (isset($data['language'])) { | ||
$this->setLanguage($data['language']); | ||
} | ||
if (isset($data['metaData'])) { | ||
$this->setMetaData($data['metaData']); | ||
} | ||
if (isset($data['name'])) { | ||
$this->setName($data['name']); | ||
} | ||
if (isset($data['state'])) { | ||
$this->setState($data['state']); | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Returns language. | ||
* | ||
* | ||
* | ||
* @return string | ||
*/ | ||
public function getLanguage() { | ||
return $this->language; | ||
} | ||
|
||
/** | ||
* Sets language. | ||
* | ||
* @param string $language | ||
* @return AbstractSubscriptionAffiliateUpdate | ||
*/ | ||
public function setLanguage($language) { | ||
$this->language = $language; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Returns metaData. | ||
* | ||
* Meta data allow to store additional data along the object. | ||
* | ||
* @return map[string,string] | ||
*/ | ||
public function getMetaData() { | ||
return $this->metaData; | ||
} | ||
|
||
/** | ||
* Sets metaData. | ||
* | ||
* @param map[string,string] $metaData | ||
* @return AbstractSubscriptionAffiliateUpdate | ||
*/ | ||
public function setMetaData($metaData) { | ||
$this->metaData = $metaData; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Returns name. | ||
* | ||
* | ||
* | ||
* @return string | ||
*/ | ||
public function getName() { | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* Sets name. | ||
* | ||
* @param string $name | ||
* @return AbstractSubscriptionAffiliateUpdate | ||
*/ | ||
public function setName($name) { | ||
$this->name = $name; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Returns state. | ||
* | ||
* | ||
* | ||
* @return \Wallee\Sdk\Model\CreationEntityState | ||
*/ | ||
public function getState() { | ||
return $this->state; | ||
} | ||
|
||
/** | ||
* Sets state. | ||
* | ||
* @param \Wallee\Sdk\Model\CreationEntityState $state | ||
* @return AbstractSubscriptionAffiliateUpdate | ||
*/ | ||
public function setState($state) { | ||
$this->state = $state; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Validates the model's properties and throws a ValidationException if the validation fails. | ||
* | ||
* @throws ValidationException | ||
*/ | ||
public function validate() { | ||
|
||
} | ||
|
||
/** | ||
* Returns true if all the properties in the model are valid. | ||
* | ||
* @return boolean | ||
*/ | ||
public function isValid() { | ||
try { | ||
$this->validate(); | ||
return true; | ||
} catch (ValidationException $e) { | ||
return false; | ||
} | ||
} | ||
|
||
/** | ||
* Returns the string presentation of the object. | ||
* | ||
* @return string | ||
*/ | ||
public function __toString() { | ||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print | ||
return json_encode(\Wallee\Sdk\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); | ||
} | ||
|
||
return json_encode(\Wallee\Sdk\ObjectSerializer::sanitizeForSerialization($this)); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.