1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\Project;
use Commercetools\Core\Model\Common\JsonObject;
use Commercetools\Core\Model\Common\Collection;
use Commercetools\Core\Model\Common\DateTimeDecorator;
use Commercetools\Core\Model\Message\MessagesConfiguration;
use DateTime;
/**
* @package Commercetools\Core\Model\Project
* @link https://docs.commercetools.com/http-api-projects-project.html#project
*
* @method string getKey()
* @method Project setKey(string $key = null)
* @method string getName()
* @method Project setName(string $name = null)
* @method Collection getCountries()
* @method Project setCountries(Collection $countries = null)
* @method Collection getCurrencies()
* @method Project setCurrencies(Collection $currencies = null)
* @method Collection getLanguages()
* @method Project setLanguages(Collection $languages = null)
* @method DateTimeDecorator getCreatedAt()
* @method Project setCreatedAt(DateTime $createdAt = null)
* @method DateTimeDecorator getTrialUntil()
* @method Project setTrialUntil(DateTime $trialUntil = null)
* @method MessagesConfiguration getMessages()
* @method Project setMessages(MessagesConfiguration $messages = null)
* @method int getVersion()
* @method Project setVersion(int $version = null)
* @method ShippingRateInputType getShippingRateInputType()
* @method Project setShippingRateInputType(ShippingRateInputType $shippingRateInputType = null)
* @method ExternalOAuth getExternalOAuth()
* @method Project setExternalOAuth(ExternalOAuth $externalOAuth = null)
* @method CartsConfiguration getCarts()
* @method Project setCarts(CartsConfiguration $carts = null)
* @method ShoppingListsConfiguration getShoppingLists()
* @method Project setShoppingLists(ShoppingListsConfiguration $shoppingLists = null)
* @method SearchIndexingConfiguration getSearchIndexing()
* @method Project setSearchIndexing(SearchIndexingConfiguration $searchIndexing = null)
*/
class Project extends JsonObject
{
public function fieldDefinitions()
{
return [
'version' => [static::TYPE => 'int'],
'key' => [static::TYPE => 'string'],
'name' => [static::TYPE => 'string'],
'countries' => [static::TYPE => Collection::class],
'currencies' => [static::TYPE => Collection::class],
'languages' => [static::TYPE => Collection::class],
'createdAt' => [
static::TYPE => DateTime::class,
static::DECORATOR => DateTimeDecorator::class
],
'trialUntil' => [
static::TYPE => DateTime::class,
static::OPTIONAL => true,
static::DECORATOR => DateTimeDecorator::class
],
'messages' => [static::TYPE => MessagesConfiguration::class],
'shippingRateInputType' => [static::TYPE => ShippingRateInputType::class, static::OPTIONAL => true],
'externalOAuth' => [static::TYPE => ExternalOAuth::class, static::OPTIONAL => true],
'carts' => [static::TYPE => CartsConfiguration::class],
'shoppingLists' => [static::TYPE => ShoppingListsConfiguration::class, static::OPTIONAL => true],
'searchIndexing' => [static::TYPE => SearchIndexingConfiguration::class, static::OPTIONAL => true]
];
}
}