diff --git a/composer.json b/composer.json
index 6c170ed..7a4d7a3 100644
--- a/composer.json
+++ b/composer.json
@@ -18,6 +18,7 @@
"guzzlehttp/guzzle": "^6.3",
"pepabo/oauth2-colormeshop": "^1.0",
"pimple/pimple": "~3.0",
+ "psr/container": "2.0.1",
"tackk/cartographer": "1.1.*"
},
"require-dev": {
diff --git a/composer.lock b/composer.lock
index d114df5..2ca7794 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,28 +4,28 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "f0f81fbd7ccb6d3393cc462d6be4d05e",
+ "content-hash": "d31360f4af28e860ecaee7e7ccd57e85",
"packages": [
{
"name": "guzzlehttp/guzzle",
- "version": "6.5.5",
+ "version": "6.5.8",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
- "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e"
+ "reference": "a52f0440530b54fa079ce76e8c5d196a42cad981"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e",
- "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e",
+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/a52f0440530b54fa079ce76e8c5d196a42cad981",
+ "reference": "a52f0440530b54fa079ce76e8c5d196a42cad981",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/promises": "^1.0",
- "guzzlehttp/psr7": "^1.6.1",
+ "guzzlehttp/psr7": "^1.9",
"php": ">=5.5",
- "symfony/polyfill-intl-idn": "^1.17.0"
+ "symfony/polyfill-intl-idn": "^1.17"
},
"require-dev": {
"ext-curl": "*",
@@ -42,22 +42,52 @@
}
},
"autoload": {
- "psr-4": {
- "GuzzleHttp\\": "src/"
- },
"files": [
"src/functions_include.php"
- ]
+ ],
+ "psr-4": {
+ "GuzzleHttp\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "hello@gjcampbell.co.uk",
+ "homepage": "https://github.com/GrahamCampbell"
+ },
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Jeremy Lindblom",
+ "email": "jeremeamia@gmail.com",
+ "homepage": "https://github.com/jeremeamia"
+ },
+ {
+ "name": "George Mponos",
+ "email": "gmponos@gmail.com",
+ "homepage": "https://github.com/gmponos"
+ },
+ {
+ "name": "Tobias Nyholm",
+ "email": "tobias.nyholm@gmail.com",
+ "homepage": "https://github.com/Nyholm"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://github.com/sagikazarmark"
+ },
+ {
+ "name": "Tobias Schultze",
+ "email": "webmaster@tubo-world.de",
+ "homepage": "https://github.com/Tobion"
}
],
"description": "Guzzle is a PHP HTTP client library",
@@ -71,71 +101,117 @@
"rest",
"web service"
],
- "time": "2020-06-16T21:01:06+00:00"
+ "support": {
+ "issues": "https://github.com/guzzle/guzzle/issues",
+ "source": "https://github.com/guzzle/guzzle/tree/6.5.8"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-06-20T22:16:07+00:00"
},
{
"name": "guzzlehttp/promises",
- "version": "v1.3.1",
+ "version": "1.5.3",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
+ "reference": "67ab6e18aaa14d753cc148911d273f6e6cb6721e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
+ "url": "https://api.github.com/repos/guzzle/promises/zipball/67ab6e18aaa14d753cc148911d273f6e6cb6721e",
+ "reference": "67ab6e18aaa14d753cc148911d273f6e6cb6721e",
"shasum": ""
},
"require": {
- "php": ">=5.5.0"
+ "php": ">=5.5"
},
"require-dev": {
- "phpunit/phpunit": "^4.0"
+ "symfony/phpunit-bridge": "^4.4 || ^5.1"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
"autoload": {
- "psr-4": {
- "GuzzleHttp\\Promise\\": "src/"
- },
"files": [
"src/functions_include.php"
- ]
+ ],
+ "psr-4": {
+ "GuzzleHttp\\Promise\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "hello@gjcampbell.co.uk",
+ "homepage": "https://github.com/GrahamCampbell"
+ },
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Tobias Nyholm",
+ "email": "tobias.nyholm@gmail.com",
+ "homepage": "https://github.com/Nyholm"
+ },
+ {
+ "name": "Tobias Schultze",
+ "email": "webmaster@tubo-world.de",
+ "homepage": "https://github.com/Tobion"
}
],
"description": "Guzzle promises library",
"keywords": [
"promise"
],
- "time": "2016-12-20T10:07:11+00:00"
+ "support": {
+ "issues": "https://github.com/guzzle/promises/issues",
+ "source": "https://github.com/guzzle/promises/tree/1.5.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2023-05-21T12:31:43+00:00"
},
{
"name": "guzzlehttp/psr7",
- "version": "1.6.1",
+ "version": "1.9.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
- "reference": "239400de7a173fe9901b9ac7c06497751f00727a"
+ "reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a",
- "reference": "239400de7a173fe9901b9ac7c06497751f00727a",
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/e4490cabc77465aaee90b20cfc9a770f8c04be6b",
+ "reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b",
"shasum": ""
},
"require": {
@@ -148,37 +224,53 @@
},
"require-dev": {
"ext-zlib": "*",
- "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
+ "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
},
"suggest": {
- "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"
+ "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6-dev"
- }
- },
"autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
"files": [
"src/functions_include.php"
- ]
+ ],
+ "psr-4": {
+ "GuzzleHttp\\Psr7\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "hello@gjcampbell.co.uk",
+ "homepage": "https://github.com/GrahamCampbell"
+ },
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
+ {
+ "name": "George Mponos",
+ "email": "gmponos@gmail.com",
+ "homepage": "https://github.com/gmponos"
+ },
+ {
+ "name": "Tobias Nyholm",
+ "email": "tobias.nyholm@gmail.com",
+ "homepage": "https://github.com/Nyholm"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://github.com/sagikazarmark"
+ },
{
"name": "Tobias Schultze",
+ "email": "webmaster@tubo-world.de",
"homepage": "https://github.com/Tobion"
}
],
@@ -193,20 +285,38 @@
"uri",
"url"
],
- "time": "2019-07-01T23:21:34+00:00"
+ "support": {
+ "issues": "https://github.com/guzzle/psr7/issues",
+ "source": "https://github.com/guzzle/psr7/tree/1.9.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2023-04-17T16:00:37+00:00"
},
{
"name": "league/flysystem",
- "version": "1.0.67",
+ "version": "1.0.70",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
- "reference": "5b1f36c75c4bdde981294c2a0ebdb437ee6f275e"
+ "reference": "585824702f534f8d3cf7fab7225e8466cc4b7493"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/5b1f36c75c4bdde981294c2a0ebdb437ee6f275e",
- "reference": "5b1f36c75c4bdde981294c2a0ebdb437ee6f275e",
+ "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/585824702f534f8d3cf7fab7225e8466cc4b7493",
+ "reference": "585824702f534f8d3cf7fab7225e8466cc4b7493",
"shasum": ""
},
"require": {
@@ -217,7 +327,7 @@
"league/flysystem-sftp": "<1.0.6"
},
"require-dev": {
- "phpspec/phpspec": "^3.4",
+ "phpspec/phpspec": "^3.4 || ^4.0 || ^5.0 || ^6.0",
"phpunit/phpunit": "^5.7.26"
},
"suggest": {
@@ -277,39 +387,42 @@
"sftp",
"storage"
],
+ "support": {
+ "issues": "https://github.com/thephpleague/flysystem/issues",
+ "source": "https://github.com/thephpleague/flysystem/tree/1.0.70"
+ },
"funding": [
{
"url": "https://offset.earth/frankdejonge",
"type": "other"
}
],
- "time": "2020-04-16T13:21:26+00:00"
+ "time": "2020-07-26T07:20:36+00:00"
},
{
"name": "league/oauth2-client",
- "version": "2.4.1",
+ "version": "2.7.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/oauth2-client.git",
- "reference": "cc114abc622a53af969e8664722e84ca36257530"
+ "reference": "160d6274b03562ebeb55ed18399281d8118b76c8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/cc114abc622a53af969e8664722e84ca36257530",
- "reference": "cc114abc622a53af969e8664722e84ca36257530",
+ "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/160d6274b03562ebeb55ed18399281d8118b76c8",
+ "reference": "160d6274b03562ebeb55ed18399281d8118b76c8",
"shasum": ""
},
"require": {
- "guzzlehttp/guzzle": "^6.0",
- "paragonie/random_compat": "^1|^2|^9.99",
- "php": "^5.6|^7.0"
+ "guzzlehttp/guzzle": "^6.0 || ^7.0",
+ "paragonie/random_compat": "^1 || ^2 || ^9.99",
+ "php": "^5.6 || ^7.0 || ^8.0"
},
"require-dev": {
- "eloquent/liberator": "^2.0",
- "eloquent/phony-phpunit": "^1.0|^3.0",
- "jakub-onderka/php-parallel-lint": "^0.9.2",
- "phpunit/phpunit": "^5.7|^6.0",
- "squizlabs/php_codesniffer": "^2.3|^3.0"
+ "mockery/mockery": "^1.3.5",
+ "php-parallel-lint/php-parallel-lint": "^1.3.1",
+ "phpunit/phpunit": "^5.7 || ^6.0 || ^9.5",
+ "squizlabs/php_codesniffer": "^2.3 || ^3.0"
},
"type": "library",
"extra": {
@@ -350,24 +463,28 @@
"oauth2",
"single sign on"
],
- "time": "2018-11-22T18:33:57+00:00"
+ "support": {
+ "issues": "https://github.com/thephpleague/oauth2-client/issues",
+ "source": "https://github.com/thephpleague/oauth2-client/tree/2.7.0"
+ },
+ "time": "2023-04-16T18:19:15+00:00"
},
{
"name": "paragonie/random_compat",
- "version": "v9.99.99",
+ "version": "v9.99.100",
"source": {
"type": "git",
"url": "https://github.com/paragonie/random_compat.git",
- "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95"
+ "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/paragonie/random_compat/zipball/84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95",
- "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95",
+ "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a",
+ "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a",
"shasum": ""
},
"require": {
- "php": "^7"
+ "php": ">= 7"
},
"require-dev": {
"phpunit/phpunit": "4.*|5.*",
@@ -395,7 +512,12 @@
"pseudorandom",
"random"
],
- "time": "2018-07-02T15:55:56+00:00"
+ "support": {
+ "email": "info@paragonie.com",
+ "issues": "https://github.com/paragonie/random_compat/issues",
+ "source": "https://github.com/paragonie/random_compat"
+ },
+ "time": "2020-10-15T08:29:30+00:00"
},
{
"name": "pepabo/oauth2-colormeshop",
@@ -444,6 +566,10 @@
"oauth",
"oauth2"
],
+ "support": {
+ "issues": "https://github.com/pepabo/oauth2-colormeshop/issues",
+ "source": "https://github.com/pepabo/oauth2-colormeshop/tree/master"
+ },
"time": "2018-03-08T14:13:14+00:00"
},
{
@@ -494,6 +620,9 @@
"container",
"dependency injection"
],
+ "support": {
+ "source": "https://github.com/silexphp/Pimple/tree/v3.5.0"
+ },
"time": "2021-10-28T11:13:42+00:00"
},
{
@@ -543,29 +672,33 @@
"container-interop",
"psr"
],
+ "support": {
+ "issues": "https://github.com/php-fig/container/issues",
+ "source": "https://github.com/php-fig/container/tree/2.0.1"
+ },
"time": "2021-03-24T13:40:57+00:00"
},
{
"name": "psr/http-message",
- "version": "1.0.1",
+ "version": "1.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
+ "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
+ "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"shasum": ""
},
"require": {
- "php": ">=5.3.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "1.1.x-dev"
}
},
"autoload": {
@@ -593,7 +726,10 @@
"request",
"response"
],
- "time": "2016-08-06T14:39:51+00:00"
+ "support": {
+ "source": "https://github.com/php-fig/http-message/tree/1.1"
+ },
+ "time": "2023-04-04T09:50:52+00:00"
},
{
"name": "ralouphie/getallheaders",
@@ -633,25 +769,29 @@
}
],
"description": "A polyfill for getallheaders.",
+ "support": {
+ "issues": "https://github.com/ralouphie/getallheaders/issues",
+ "source": "https://github.com/ralouphie/getallheaders/tree/develop"
+ },
"time": "2019-03-08T08:55:37+00:00"
},
{
"name": "symfony/polyfill-intl-idn",
- "version": "v1.17.1",
+ "version": "v1.28.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-idn.git",
- "reference": "a57f8161502549a742a63c09f0a604997bf47027"
+ "reference": "ecaafce9f77234a6a449d29e49267ba10499116d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a57f8161502549a742a63c09f0a604997bf47027",
- "reference": "a57f8161502549a742a63c09f0a604997bf47027",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ecaafce9f77234a6a449d29e49267ba10499116d",
+ "reference": "ecaafce9f77234a6a449d29e49267ba10499116d",
"shasum": ""
},
"require": {
- "php": ">=5.3.3",
- "symfony/polyfill-mbstring": "^1.3",
+ "php": ">=7.1",
+ "symfony/polyfill-intl-normalizer": "^1.10",
"symfony/polyfill-php72": "^1.10"
},
"suggest": {
@@ -660,7 +800,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.17-dev"
+ "dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -668,12 +808,12 @@
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Intl\\Idn\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Intl\\Idn\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -684,6 +824,10 @@
"name": "Laurent Bassin",
"email": "laurent@bassin.info"
},
+ {
+ "name": "Trevor Rowbotham",
+ "email": "trevor.rowbotham@pm.me"
+ },
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
@@ -699,6 +843,9 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.28.0"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -713,32 +860,32 @@
"type": "tidelift"
}
],
- "time": "2020-06-06T08:46:27+00:00"
+ "time": "2023-01-26T09:30:37+00:00"
},
{
- "name": "symfony/polyfill-mbstring",
- "version": "v1.17.1",
+ "name": "symfony/polyfill-intl-normalizer",
+ "version": "v1.28.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "7110338d81ce1cbc3e273136e4574663627037a7"
+ "url": "https://github.com/symfony/polyfill-intl-normalizer.git",
+ "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7110338d81ce1cbc3e273136e4574663627037a7",
- "reference": "7110338d81ce1cbc3e273136e4574663627037a7",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92",
+ "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
},
"suggest": {
- "ext-mbstring": "For best performance"
+ "ext-intl": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.17-dev"
+ "dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -746,11 +893,14 @@
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
"files": [
"bootstrap.php"
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
+ },
+ "classmap": [
+ "Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -767,15 +917,19 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony polyfill for the Mbstring extension",
+ "description": "Symfony polyfill for intl's Normalizer class and related functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
- "mbstring",
+ "intl",
+ "normalizer",
"polyfill",
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -790,38 +944,42 @@
"type": "tidelift"
}
],
- "time": "2020-06-06T08:46:27+00:00"
+ "time": "2023-01-26T09:26:14+00:00"
},
{
"name": "symfony/polyfill-php72",
- "version": "v1.17.0",
+ "version": "v1.28.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php72.git",
- "reference": "f048e612a3905f34931127360bdd2def19a5e582"
+ "reference": "70f4aebd92afca2f865444d30a4d2151c13c3179"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/f048e612a3905f34931127360bdd2def19a5e582",
- "reference": "f048e612a3905f34931127360bdd2def19a5e582",
+ "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/70f4aebd92afca2f865444d30a4d2151c13c3179",
+ "reference": "70f4aebd92afca2f865444d30a4d2151c13c3179",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.17-dev"
+ "dev-main": "1.28-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php72\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Php72\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -845,6 +1003,9 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php72/tree/v1.28.0"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -859,7 +1020,7 @@
"type": "tidelift"
}
],
- "time": "2020-05-12T16:47:27+00:00"
+ "time": "2023-01-26T09:26:14+00:00"
},
{
"name": "tackk/cartographer",
@@ -906,22 +1067,26 @@
"Sitemap",
"generator"
],
+ "support": {
+ "issues": "https://github.com/tackk/cartographer/issues",
+ "source": "https://github.com/tackk/cartographer/tree/master"
+ },
"time": "2015-05-01T18:41:15+00:00"
}
],
"packages-dev": [
{
"name": "beberlei/assert",
- "version": "v3.3.1",
+ "version": "v3.3.2",
"source": {
"type": "git",
"url": "https://github.com/beberlei/assert.git",
- "reference": "5e721d7e937ca3ba2cdec1e1adf195f9e5188372"
+ "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/beberlei/assert/zipball/5e721d7e937ca3ba2cdec1e1adf195f9e5188372",
- "reference": "5e721d7e937ca3ba2cdec1e1adf195f9e5188372",
+ "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655",
+ "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655",
"shasum": ""
},
"require": {
@@ -942,12 +1107,12 @@
},
"type": "library",
"autoload": {
- "psr-4": {
- "Assert\\": "lib/Assert"
- },
"files": [
"lib/Assert/functions.php"
- ]
+ ],
+ "psr-4": {
+ "Assert\\": "lib/Assert"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -971,39 +1136,46 @@
"assertion",
"validation"
],
- "time": "2021-04-18T20:11:03+00:00"
+ "support": {
+ "issues": "https://github.com/beberlei/assert/issues",
+ "source": "https://github.com/beberlei/assert/tree/v3.3.2"
+ },
+ "time": "2021-12-16T21:41:27+00:00"
},
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
- "version": "v0.7.1",
+ "version": "v1.0.0",
"source": {
"type": "git",
- "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
- "reference": "fe390591e0241955f22eb9ba327d137e501c771c"
+ "url": "https://github.com/PHPCSStandards/composer-installer.git",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c",
- "reference": "fe390591e0241955f22eb9ba327d137e501c771c",
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0 || ^2.0",
- "php": ">=5.3",
- "squizlabs/php_codesniffer": "^2.0 || ^3.0 || ^4.0"
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
},
"require-dev": {
"composer/composer": "*",
+ "ext-json": "*",
+ "ext-zip": "*",
+ "php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpcompatibility/php-compatibility": "^9.0",
- "sensiolabs/security-checker": "^4.1.0"
+ "yoast/phpunit-polyfills": "^1.0"
},
"type": "composer-plugin",
"extra": {
- "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
+ "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
},
"autoload": {
"psr-4": {
- "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
+ "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -1016,6 +1188,10 @@
"email": "franck.nijhof@dealerdirect.com",
"homepage": "http://www.frenck.nl",
"role": "Developer / IT Manager"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer Standards Composer Installer Plugin",
@@ -1027,6 +1203,7 @@
"codesniffer",
"composer",
"installer",
+ "phpcbf",
"phpcs",
"plugin",
"qa",
@@ -1037,40 +1214,87 @@
"stylecheck",
"tests"
],
- "time": "2020-12-07T18:04:37+00:00"
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/composer-installer/issues",
+ "source": "https://github.com/PHPCSStandards/composer-installer"
+ },
+ "time": "2023-01-05T11:28:13+00:00"
+ },
+ {
+ "name": "doctrine/deprecations",
+ "version": "1.1.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/deprecations.git",
+ "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
+ "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^9",
+ "phpstan/phpstan": "1.4.10 || 1.10.15",
+ "phpstan/phpstan-phpunit": "^1.0",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
+ "psalm/plugin-phpunit": "0.18.4",
+ "psr/log": "^1 || ^2 || ^3",
+ "vimeo/psalm": "4.30.0 || 5.12.0"
+ },
+ "suggest": {
+ "psr/log": "Allows logging deprecations via PSR-3 logger implementation"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.",
+ "homepage": "https://www.doctrine-project.org/",
+ "support": {
+ "issues": "https://github.com/doctrine/deprecations/issues",
+ "source": "https://github.com/doctrine/deprecations/tree/1.1.2"
+ },
+ "time": "2023-09-27T20:04:15+00:00"
},
{
"name": "doctrine/instantiator",
- "version": "1.3.0",
+ "version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
- "reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
+ "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
- "reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
+ "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": "^7.1 || ^8.0"
},
"require-dev": {
- "doctrine/coding-standard": "^6.0",
+ "doctrine/coding-standard": "^9 || ^11",
"ext-pdo": "*",
"ext-phar": "*",
- "phpbench/phpbench": "^0.13",
- "phpstan/phpstan-phpunit": "^0.11",
- "phpstan/phpstan-shim": "^0.11",
- "phpunit/phpunit": "^7.0"
+ "phpbench/phpbench": "^0.16 || ^1",
+ "phpstan/phpstan": "^1.4",
+ "phpstan/phpstan-phpunit": "^1",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
+ "vimeo/psalm": "^4.30 || ^5.4"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
"autoload": {
"psr-4": {
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
@@ -1084,7 +1308,7 @@
{
"name": "Marco Pivetta",
"email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
+ "homepage": "https://ocramius.github.io/"
}
],
"description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
@@ -1093,41 +1317,60 @@
"constructor",
"instantiate"
],
- "time": "2019-10-21T16:45:58+00:00"
+ "support": {
+ "issues": "https://github.com/doctrine/instantiator/issues",
+ "source": "https://github.com/doctrine/instantiator/tree/1.5.0"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-12-30T00:15:36+00:00"
},
{
"name": "myclabs/deep-copy",
- "version": "1.9.5",
+ "version": "1.11.1",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef"
+ "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef",
- "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
+ "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": "^7.1 || ^8.0"
},
- "replace": {
- "myclabs/deep-copy": "self.version"
+ "conflict": {
+ "doctrine/collections": "<1.6.8",
+ "doctrine/common": "<2.13.3 || >=3,<3.2.2"
},
"require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^7.1"
+ "doctrine/collections": "^1.6.8",
+ "doctrine/common": "^2.13.3 || ^3.2.2",
+ "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
},
"type": "library",
"autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
"files": [
"src/DeepCopy/deep_copy.php"
- ]
+ ],
+ "psr-4": {
+ "DeepCopy\\": "src/DeepCopy/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1141,7 +1384,17 @@
"object",
"object graph"
],
- "time": "2020-01-17T21:11:47+00:00"
+ "support": {
+ "issues": "https://github.com/myclabs/DeepCopy/issues",
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
+ },
+ "funding": [
+ {
+ "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2023-03-08T13:26:56+00:00"
},
{
"name": "phar-io/manifest",
@@ -1196,6 +1449,10 @@
}
],
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
+ "support": {
+ "issues": "https://github.com/phar-io/manifest/issues",
+ "source": "https://github.com/phar-io/manifest/tree/master"
+ },
"time": "2018-07-08T19:23:20+00:00"
},
{
@@ -1243,20 +1500,24 @@
}
],
"description": "Library for handling version information and constraints",
+ "support": {
+ "issues": "https://github.com/phar-io/version/issues",
+ "source": "https://github.com/phar-io/version/tree/master"
+ },
"time": "2018-07-08T19:19:57+00:00"
},
{
"name": "php-vcr/php-vcr",
- "version": "1.5.2",
+ "version": "1.5.5",
"source": {
"type": "git",
"url": "https://github.com/php-vcr/php-vcr.git",
- "reference": "989fdcad482d830890757b8165127ed0183de41b"
+ "reference": "fde2ab6905615c065a588a678ab8217b70a703c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-vcr/php-vcr/zipball/989fdcad482d830890757b8165127ed0183de41b",
- "reference": "989fdcad482d830890757b8165127ed0183de41b",
+ "url": "https://api.github.com/repos/php-vcr/php-vcr/zipball/fde2ab6905615c065a588a678ab8217b70a703c7",
+ "reference": "fde2ab6905615c065a588a678ab8217b70a703c7",
"shasum": ""
},
"require": {
@@ -1267,15 +1528,23 @@
"symfony/yaml": "~2.1|^3.0|^4.0|^5.0"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^2.16",
- "mikey179/vfsstream": "^1.6",
- "phpstan/phpstan": "^0.12",
- "phpstan/phpstan-beberlei-assert": "^0.12.0",
- "phpunit/phpunit": "^8.4.0",
- "sebastian/version": "^1.0.3|^2.0",
- "thecodingmachine/phpstan-strict-rules": "^0.12"
+ "editorconfig-checker/editorconfig-checker": "^10.3",
+ "friendsofphp/php-cs-fixer": "^3.0",
+ "guzzlehttp/guzzle": "^7",
+ "mikey179/vfsstream": "^1.6.10",
+ "phpstan/extension-installer": "^1.1",
+ "phpstan/phpstan": "^1",
+ "phpstan/phpstan-beberlei-assert": "^1",
+ "phpstan/phpstan-phpunit": "^1",
+ "phpunit/phpunit": "^8.5",
+ "thecodingmachine/phpstan-strict-rules": "^1"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-1.5": "1.5.x-dev"
+ }
+ },
"autoload": {
"psr-4": {
"VCR\\": "src/VCR/"
@@ -1292,7 +1561,11 @@
}
],
"description": "Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.",
- "time": "2021-03-20T10:01:20+00:00"
+ "support": {
+ "issues": "https://github.com/php-vcr/php-vcr/issues",
+ "source": "https://github.com/php-vcr/php-vcr/tree/1.5.5"
+ },
+ "time": "2022-12-27T21:57:46+00:00"
},
{
"name": "php-vcr/phpunit-testlistener-vcr",
@@ -1332,6 +1605,10 @@
}
],
"description": "Integrates PHPUnit with PHP-VCR.",
+ "support": {
+ "issues": "https://github.com/php-vcr/phpunit-testlistener-vcr/issues",
+ "source": "https://github.com/php-vcr/phpunit-testlistener-vcr/tree/master"
+ },
"time": "2018-07-06T08:53:21+00:00"
},
{
@@ -1390,20 +1667,24 @@
"phpcs",
"standards"
],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibility"
+ },
"time": "2019-12-27T09:44:58+00:00"
},
{
"name": "phpcompatibility/phpcompatibility-paragonie",
- "version": "1.3.1",
+ "version": "1.3.2",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
- "reference": "ddabec839cc003651f2ce695c938686d1086cf43"
+ "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/ddabec839cc003651f2ce695c938686d1086cf43",
- "reference": "ddabec839cc003651f2ce695c938686d1086cf43",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26",
+ "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26",
"shasum": ""
},
"require": {
@@ -1440,22 +1721,27 @@
"paragonie",
"phpcs",
"polyfill",
- "standards"
+ "standards",
+ "static analysis"
],
- "time": "2021-02-15T10:24:51+00:00"
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie"
+ },
+ "time": "2022-10-25T01:46:02+00:00"
},
{
"name": "phpcompatibility/phpcompatibility-wp",
- "version": "2.1.2",
+ "version": "2.1.4",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
- "reference": "a792ab623069f0ce971b2417edef8d9632e32f75"
+ "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/a792ab623069f0ce971b2417edef8d9632e32f75",
- "reference": "a792ab623069f0ce971b2417edef8d9632e32f75",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5",
+ "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5",
"shasum": ""
},
"require": {
@@ -1490,31 +1776,202 @@
"compatibility",
"phpcs",
"standards",
+ "static analysis",
"wordpress"
],
- "time": "2021-07-21T11:09:57+00:00"
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP"
+ },
+ "time": "2022-10-24T09:00:36+00:00"
+ },
+ {
+ "name": "phpcsstandards/phpcsextra",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHPCSExtra.git",
+ "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
+ "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "phpcsstandards/phpcsutils": "^1.0.9",
+ "squizlabs/php_codesniffer": "^3.8.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-console-highlighter": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcsstandards/phpcsdevcs": "^1.1.6",
+ "phpcsstandards/phpcsdevtools": "^1.2.1",
+ "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-stable": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors"
+ }
+ ],
+ "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.",
+ "keywords": [
+ "PHP_CodeSniffer",
+ "phpcbf",
+ "phpcodesniffer-standard",
+ "phpcs",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues",
+ "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHPCSExtra"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2023-12-08T16:49:07+00:00"
+ },
+ {
+ "name": "phpcsstandards/phpcsutils",
+ "version": "1.0.9",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHPCSUtils.git",
+ "reference": "908247bc65010c7b7541a9551e002db12e9dae70"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/908247bc65010c7b7541a9551e002db12e9dae70",
+ "reference": "908247bc65010c7b7541a9551e002db12e9dae70",
+ "shasum": ""
+ },
+ "require": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^3.8.0 || 4.0.x-dev@dev"
+ },
+ "require-dev": {
+ "ext-filter": "*",
+ "php-parallel-lint/php-console-highlighter": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcsstandards/phpcsdevcs": "^1.1.6",
+ "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-stable": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "PHPCSUtils/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors"
+ }
+ ],
+ "description": "A suite of utility functions for use with PHP_CodeSniffer",
+ "homepage": "https://phpcsutils.com/",
+ "keywords": [
+ "PHP_CodeSniffer",
+ "phpcbf",
+ "phpcodesniffer-standard",
+ "phpcs",
+ "phpcs3",
+ "standards",
+ "static analysis",
+ "tokens",
+ "utility"
+ ],
+ "support": {
+ "docs": "https://phpcsutils.com/",
+ "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues",
+ "security": "https://github.com/PHPCSStandards/PHPCSUtils/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHPCSUtils"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2023-12-08T14:50:00+00:00"
},
{
"name": "phpdocumentor/reflection-common",
- "version": "2.1.0",
+ "version": "2.2.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b"
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/6568f4687e5b41b054365f9ae03fcb1ed5f2069b",
- "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
"shasum": ""
},
"require": {
- "php": ">=7.1"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.x-dev"
+ "dev-2.x": "2.x-dev"
}
},
"autoload": {
@@ -1541,32 +1998,36 @@
"reflection",
"static analysis"
],
- "time": "2020-04-27T09:25:28+00:00"
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
+ },
+ "time": "2020-06-27T09:03:43+00:00"
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "5.1.0",
+ "version": "5.3.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e"
+ "reference": "622548b623e81ca6d78b721c5e029f4ce664f170"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
- "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170",
+ "reference": "622548b623e81ca6d78b721c5e029f4ce664f170",
"shasum": ""
},
"require": {
- "ext-filter": "^7.1",
- "php": "^7.2",
- "phpdocumentor/reflection-common": "^2.0",
- "phpdocumentor/type-resolver": "^1.0",
- "webmozart/assert": "^1"
+ "ext-filter": "*",
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.2",
+ "phpdocumentor/type-resolver": "^1.3",
+ "webmozart/assert": "^1.9.1"
},
"require-dev": {
- "doctrine/instantiator": "^1",
- "mockery/mockery": "^1"
+ "mockery/mockery": "~1.3.2",
+ "psalm/phar": "^4.8"
},
"type": "library",
"extra": {
@@ -1594,34 +2055,46 @@
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2020-02-22T12:28:44+00:00"
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0"
+ },
+ "time": "2021-10-19T17:43:47+00:00"
},
{
"name": "phpdocumentor/type-resolver",
- "version": "1.1.0",
+ "version": "1.8.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "7462d5f123dfc080dfdf26897032a6513644fc95"
+ "reference": "fad452781b3d774e3337b0c0b245dd8e5a4455fc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/7462d5f123dfc080dfdf26897032a6513644fc95",
- "reference": "7462d5f123dfc080dfdf26897032a6513644fc95",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/fad452781b3d774e3337b0c0b245dd8e5a4455fc",
+ "reference": "fad452781b3d774e3337b0c0b245dd8e5a4455fc",
"shasum": ""
},
"require": {
- "php": "^7.2",
- "phpdocumentor/reflection-common": "^2.0"
+ "doctrine/deprecations": "^1.0",
+ "php": "^7.4 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.0",
+ "phpstan/phpdoc-parser": "^1.13"
},
"require-dev": {
- "ext-tokenizer": "^7.2",
- "mockery/mockery": "~1"
+ "ext-tokenizer": "*",
+ "phpbench/phpbench": "^1.2",
+ "phpstan/extension-installer": "^1.1",
+ "phpstan/phpstan": "^1.8",
+ "phpstan/phpstan-phpunit": "^1.1",
+ "phpunit/phpunit": "^9.5",
+ "rector/rector": "^0.13.9",
+ "vimeo/psalm": "^4.25"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-1.x": "1.x-dev"
}
},
"autoload": {
@@ -1640,37 +2113,42 @@
}
],
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
- "time": "2020-02-18T18:59:58+00:00"
+ "support": {
+ "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.0"
+ },
+ "time": "2024-01-11T11:49:22+00:00"
},
{
"name": "phpspec/prophecy",
- "version": "v1.10.3",
+ "version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
- "reference": "451c3cd1418cf640de218914901e51b064abb093"
+ "reference": "d4f454f7e1193933f04e6500de3e79191648ed0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093",
- "reference": "451c3cd1418cf640de218914901e51b064abb093",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/d4f454f7e1193933f04e6500de3e79191648ed0c",
+ "reference": "d4f454f7e1193933f04e6500de3e79191648ed0c",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
- "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
+ "doctrine/instantiator": "^1.2 || ^2.0",
+ "php": "^7.2 || 8.0.* || 8.1.* || 8.2.* || 8.3.*",
+ "phpdocumentor/reflection-docblock": "^5.2",
+ "sebastian/comparator": "^3.0 || ^4.0 || ^5.0",
+ "sebastian/recursion-context": "^3.0 || ^4.0 || ^5.0"
},
"require-dev": {
- "phpspec/phpspec": "^2.5 || ^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
+ "phpspec/phpspec": "^6.0 || ^7.0",
+ "phpstan/phpstan": "^1.9",
+ "phpunit/phpunit": "^8.0 || ^9.0 || ^10.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.10.x-dev"
+ "dev-master": "1.x-dev"
}
},
"autoload": {
@@ -1698,12 +2176,64 @@
"keywords": [
"Double",
"Dummy",
+ "dev",
"fake",
"mock",
"spy",
"stub"
],
- "time": "2020-03-05T15:02:03+00:00"
+ "support": {
+ "issues": "https://github.com/phpspec/prophecy/issues",
+ "source": "https://github.com/phpspec/prophecy/tree/v1.18.0"
+ },
+ "time": "2023-12-07T16:22:33+00:00"
+ },
+ {
+ "name": "phpstan/phpdoc-parser",
+ "version": "1.25.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/phpdoc-parser.git",
+ "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/bd84b629c8de41aa2ae82c067c955e06f1b00240",
+ "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/annotations": "^2.0",
+ "nikic/php-parser": "^4.15",
+ "php-parallel-lint/php-parallel-lint": "^1.2",
+ "phpstan/extension-installer": "^1.0",
+ "phpstan/phpstan": "^1.5",
+ "phpstan/phpstan-phpunit": "^1.1",
+ "phpstan/phpstan-strict-rules": "^1.0",
+ "phpunit/phpunit": "^9.5",
+ "symfony/process": "^5.2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "PHPStan\\PhpDocParser\\": [
+ "src/"
+ ]
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHPDoc parser with support for nullable, intersection and generic types",
+ "support": {
+ "issues": "https://github.com/phpstan/phpdoc-parser/issues",
+ "source": "https://github.com/phpstan/phpdoc-parser/tree/1.25.0"
+ },
+ "time": "2024-01-04T17:06:16+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -1766,27 +2296,31 @@
"testing",
"xunit"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/master"
+ },
"time": "2018-10-31T16:06:48+00:00"
},
{
"name": "phpunit/php-file-iterator",
- "version": "2.0.2",
+ "version": "2.0.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "050bedf145a257b1ff02746c31894800e5122946"
+ "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946",
- "reference": "050bedf145a257b1ff02746c31894800e5122946",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5",
+ "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.1"
},
"require-dev": {
- "phpunit/phpunit": "^7.1"
+ "phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@@ -1816,7 +2350,17 @@
"filesystem",
"iterator"
],
- "time": "2018-09-13T20:33:42+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
+ "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-12-02T12:42:26+00:00"
},
{
"name": "phpunit/php-text-template",
@@ -1857,27 +2401,31 @@
"keywords": [
"template"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
+ "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1"
+ },
"time": "2015-06-21T13:50:34+00:00"
},
{
"name": "phpunit/php-timer",
- "version": "2.1.2",
+ "version": "2.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "1038454804406b0b5f5f520358e78c1c2f71501e"
+ "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e",
- "reference": "1038454804406b0b5f5f520358e78c1c2f71501e",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662",
+ "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.1"
},
"require-dev": {
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@@ -1906,25 +2454,35 @@
"keywords": [
"timer"
],
- "time": "2019-06-07T04:22:29+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-timer/issues",
+ "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T08:20:02+00:00"
},
{
"name": "phpunit/php-token-stream",
- "version": "3.1.1",
+ "version": "3.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff"
+ "reference": "9c1da83261628cb24b6a6df371b6e312b3954768"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff",
- "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9c1da83261628cb24b6a6df371b6e312b3954768",
+ "reference": "9c1da83261628cb24b6a6df371b6e312b3954768",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
- "php": "^7.1"
+ "php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
@@ -1955,8 +2513,18 @@
"keywords": [
"tokenizer"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
+ "source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"abandoned": true,
- "time": "2019-09-17T06:23:10+00:00"
+ "time": "2021-07-26T12:15:06+00:00"
},
{
"name": "phpunit/phpunit",
@@ -2040,6 +2608,10 @@
"testing",
"xunit"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/phpunit/issues",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/7.5.20"
+ },
"time": "2020-01-08T08:45:45+00:00"
},
{
@@ -2086,27 +2658,31 @@
"psr",
"psr-14"
],
+ "support": {
+ "issues": "https://github.com/php-fig/event-dispatcher/issues",
+ "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0"
+ },
"time": "2019-01-08T18:20:26+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
+ "version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
+ "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619",
+ "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "php": ">=5.6"
},
"require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
+ "phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@@ -2131,29 +2707,39 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T08:15:22+00:00"
},
{
"name": "sebastian/comparator",
- "version": "3.0.2",
+ "version": "3.0.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da"
+ "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770",
+ "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770",
"shasum": ""
},
"require": {
- "php": "^7.1",
+ "php": ">=7.1",
"sebastian/diff": "^3.0",
"sebastian/exporter": "^3.1"
},
"require-dev": {
- "phpunit/phpunit": "^7.1"
+ "phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@@ -2171,6 +2757,10 @@
"BSD-3-Clause"
],
"authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
@@ -2182,10 +2772,6 @@
{
"name": "Bernhard Schussek",
"email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
}
],
"description": "Provides the functionality to compare PHP values for equality",
@@ -2195,24 +2781,34 @@
"compare",
"equality"
],
- "time": "2018-07-12T15:12:46+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/comparator/issues",
+ "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2022-09-14T12:31:48+00:00"
},
{
"name": "sebastian/diff",
- "version": "3.0.2",
+ "version": "3.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29"
+ "reference": "6296a0c086dd0117c1b78b059374d7fcbe7545ae"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
- "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/6296a0c086dd0117c1b78b059374d7fcbe7545ae",
+ "reference": "6296a0c086dd0117c1b78b059374d7fcbe7545ae",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5 || ^8.0",
@@ -2234,13 +2830,13 @@
"BSD-3-Clause"
],
"authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
}
],
"description": "Diff implementation",
@@ -2251,24 +2847,34 @@
"unidiff",
"unified diff"
],
- "time": "2019-02-04T06:01:07+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/diff/issues",
+ "source": "https://github.com/sebastianbergmann/diff/tree/3.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2023-05-07T05:30:20+00:00"
},
{
"name": "sebastian/environment",
- "version": "4.2.3",
+ "version": "4.2.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368"
+ "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
- "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0",
+ "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
@@ -2304,29 +2910,39 @@
"environment",
"hhvm"
],
- "time": "2019-11-20T08:46:58+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/environment/issues",
+ "source": "https://github.com/sebastianbergmann/environment/tree/4.2.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:53:42+00:00"
},
{
"name": "sebastian/exporter",
- "version": "3.1.2",
+ "version": "3.1.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e"
+ "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e",
- "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6",
+ "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6",
"shasum": ""
},
"require": {
- "php": "^7.0",
+ "php": ">=7.0",
"sebastian/recursion-context": "^3.0"
},
"require-dev": {
"ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@@ -2371,7 +2987,17 @@
"export",
"exporter"
],
- "time": "2019-09-14T09:02:43+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/exporter/issues",
+ "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2022-09-14T06:00:17+00:00"
},
{
"name": "sebastian/global-state",
@@ -2422,24 +3048,28 @@
"keywords": [
"global state"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/global-state/issues",
+ "source": "https://github.com/sebastianbergmann/global-state/tree/2.0.0"
+ },
"time": "2017-04-27T15:39:26+00:00"
},
{
"name": "sebastian/object-enumerator",
- "version": "3.0.3",
+ "version": "3.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
+ "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2",
+ "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2",
"shasum": ""
},
"require": {
- "php": "^7.0",
+ "php": ">=7.0",
"sebastian/object-reflector": "^1.1.1",
"sebastian/recursion-context": "^3.0"
},
@@ -2469,24 +3099,34 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
+ "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:40:27+00:00"
},
{
"name": "sebastian/object-reflector",
- "version": "1.1.1",
+ "version": "1.1.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
+ "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d",
+ "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
@@ -2514,24 +3154,34 @@
],
"description": "Allows reflection of object attributes, including inherited and non-public ones",
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:37:18+00:00"
},
{
"name": "sebastian/recursion-context",
- "version": "3.0.0",
+ "version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
+ "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb",
+ "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
@@ -2552,14 +3202,14 @@
"BSD-3-Clause"
],
"authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
@@ -2567,24 +3217,34 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:34:24+00:00"
},
{
"name": "sebastian/resource-operations",
- "version": "2.0.1",
+ "version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9"
+ "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3",
+ "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
@@ -2609,7 +3269,17 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2018-10-04T04:07:39+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
+ "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:30:19+00:00"
},
{
"name": "sebastian/version",
@@ -2652,20 +3322,24 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/version/issues",
+ "source": "https://github.com/sebastianbergmann/version/tree/master"
+ },
"time": "2016-10-03T07:35:21+00:00"
},
{
"name": "squizlabs/php_codesniffer",
- "version": "3.6.0",
+ "version": "3.8.1",
"source": {
"type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625"
+ "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
+ "reference": "14f5fff1e64118595db5408e946f3a22c75807f7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
- "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/14f5fff1e64118595db5408e946f3a22c75807f7",
+ "reference": "14f5fff1e64118595db5408e946f3a22c75807f7",
"shasum": ""
},
"require": {
@@ -2675,11 +3349,11 @@
"php": ">=5.4.0"
},
"require-dev": {
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
},
"bin": [
- "bin/phpcs",
- "bin/phpcbf"
+ "bin/phpcbf",
+ "bin/phpcs"
],
"type": "library",
"extra": {
@@ -2694,29 +3368,58 @@
"authors": [
{
"name": "Greg Sherwood",
- "role": "lead"
+ "role": "Former lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "Current lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [
"phpcs",
- "standards"
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
+ "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
],
- "time": "2021-04-09T00:54:41+00:00"
+ "time": "2024-01-11T20:47:48+00:00"
},
{
"name": "symfony/deprecation-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627"
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
"shasum": ""
},
"require": {
@@ -2725,7 +3428,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -2753,6 +3456,9 @@
],
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -2767,26 +3473,26 @@
"type": "tidelift"
}
],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2022-01-02T09:53:40+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v5.3.7",
+ "version": "v5.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "ce7b20d69c66a20939d8952b617506a44d102130"
+ "reference": "e3bca343efeb613f843c254e7718ef17c9bdf7a3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ce7b20d69c66a20939d8952b617506a44d102130",
- "reference": "ce7b20d69c66a20939d8952b617506a44d102130",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e3bca343efeb613f843c254e7718ef17c9bdf7a3",
+ "reference": "e3bca343efeb613f843c254e7718ef17c9bdf7a3",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
- "symfony/event-dispatcher-contracts": "^2",
+ "symfony/deprecation-contracts": "^2.1|^3",
+ "symfony/event-dispatcher-contracts": "^2|^3",
"symfony/polyfill-php80": "^1.16"
},
"conflict": {
@@ -2798,13 +3504,13 @@
},
"require-dev": {
"psr/log": "^1|^2|^3",
- "symfony/config": "^4.4|^5.0",
- "symfony/dependency-injection": "^4.4|^5.0",
- "symfony/error-handler": "^4.4|^5.0",
- "symfony/expression-language": "^4.4|^5.0",
- "symfony/http-foundation": "^4.4|^5.0",
- "symfony/service-contracts": "^1.1|^2",
- "symfony/stopwatch": "^4.4|^5.0"
+ "symfony/config": "^4.4|^5.0|^6.0",
+ "symfony/dependency-injection": "^4.4|^5.0|^6.0",
+ "symfony/error-handler": "^4.4|^5.0|^6.0",
+ "symfony/expression-language": "^4.4|^5.0|^6.0",
+ "symfony/http-foundation": "^4.4|^5.0|^6.0",
+ "symfony/service-contracts": "^1.1|^2|^3",
+ "symfony/stopwatch": "^4.4|^5.0|^6.0"
},
"suggest": {
"symfony/dependency-injection": "",
@@ -2835,6 +3541,9 @@
],
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.34"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -2849,20 +3558,20 @@
"type": "tidelift"
}
],
- "time": "2021-08-04T21:20:46+00:00"
+ "time": "2023-12-27T21:12:56+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
- "reference": "69fee1ad2332a7cbab3aca13591953da9cdb7a11"
+ "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/69fee1ad2332a7cbab3aca13591953da9cdb7a11",
- "reference": "69fee1ad2332a7cbab3aca13591953da9cdb7a11",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1",
+ "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1",
"shasum": ""
},
"require": {
@@ -2875,7 +3584,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -2911,6 +3620,9 @@
"interoperability",
"standards"
],
+ "support": {
+ "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -2925,32 +3637,35 @@
"type": "tidelift"
}
],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2022-01-02T09:53:40+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.23.0",
+ "version": "v1.28.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
+ "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
+ "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
+ "provide": {
+ "ext-ctype": "*"
+ },
"suggest": {
"ext-ctype": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.23-dev"
+ "dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -2958,12 +3673,12 @@
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -2987,6 +3702,9 @@
"polyfill",
"portable"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -3001,20 +3719,20 @@
"type": "tidelift"
}
],
- "time": "2021-02-19T12:13:01+00:00"
+ "time": "2023-01-26T09:26:14+00:00"
},
{
"name": "symfony/polyfill-php80",
- "version": "v1.23.1",
+ "version": "v1.28.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
+ "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
+ "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
"shasum": ""
},
"require": {
@@ -3023,7 +3741,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.23-dev"
+ "dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -3031,12 +3749,12 @@
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php80\\": ""
- },
"files": [
"bootstrap.php"
],
+ "psr-4": {
+ "Symfony\\Polyfill\\Php80\\": ""
+ },
"classmap": [
"Resources/stubs"
]
@@ -3067,6 +3785,9 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -3081,32 +3802,32 @@
"type": "tidelift"
}
],
- "time": "2021-07-28T13:41:28+00:00"
+ "time": "2023-01-26T09:26:14+00:00"
},
{
"name": "symfony/yaml",
- "version": "v5.3.6",
+ "version": "v5.4.31",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
- "reference": "4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7"
+ "reference": "f387675d7f5fc4231f7554baa70681f222f73563"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7",
- "reference": "4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/f387675d7f5fc4231f7554baa70681f222f73563",
+ "reference": "f387675d7f5fc4231f7554baa70681f222f73563",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
- "symfony/polyfill-ctype": "~1.8"
+ "symfony/deprecation-contracts": "^2.1|^3",
+ "symfony/polyfill-ctype": "^1.8"
},
"conflict": {
- "symfony/console": "<4.4"
+ "symfony/console": "<5.3"
},
"require-dev": {
- "symfony/console": "^4.4|^5.0"
+ "symfony/console": "^5.3|^6.0"
},
"suggest": {
"symfony/console": "For validating YAML files using the lint command"
@@ -3139,6 +3860,9 @@
],
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/yaml/tree/v5.4.31"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -3153,27 +3877,27 @@
"type": "tidelift"
}
],
- "time": "2021-07-29T06:20:01+00:00"
+ "time": "2023-11-03T14:41:28+00:00"
},
{
"name": "theseer/tokenizer",
- "version": "1.1.3",
+ "version": "1.2.2",
"source": {
"type": "git",
"url": "https://github.com/theseer/tokenizer.git",
- "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
+ "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
- "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
+ "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
- "php": "^7.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"autoload": {
@@ -3193,33 +3917,49 @@
}
],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2019-06-13T22:48:21+00:00"
+ "support": {
+ "issues": "https://github.com/theseer/tokenizer/issues",
+ "source": "https://github.com/theseer/tokenizer/tree/1.2.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/theseer",
+ "type": "github"
+ }
+ ],
+ "time": "2023-11-20T00:12:19+00:00"
},
{
"name": "webmozart/assert",
- "version": "1.8.0",
+ "version": "1.11.0",
"source": {
"type": "git",
"url": "https://github.com/webmozarts/assert.git",
- "reference": "ab2cb0b3b559010b75981b1bdce728da3ee90ad6"
+ "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/webmozarts/assert/zipball/ab2cb0b3b559010b75981b1bdce728da3ee90ad6",
- "reference": "ab2cb0b3b559010b75981b1bdce728da3ee90ad6",
+ "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991",
+ "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991",
"shasum": ""
},
"require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
+ "ext-ctype": "*",
+ "php": "^7.2 || ^8.0"
},
"conflict": {
- "vimeo/psalm": "<3.9.1"
+ "phpstan/phpstan": "<0.12.20",
+ "vimeo/psalm": "<4.6.1 || 4.6.2"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.36 || ^7.5.13"
+ "phpunit/phpunit": "^8.5.13"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.10-dev"
+ }
+ },
"autoload": {
"psr-4": {
"Webmozart\\Assert\\": "src/"
@@ -3241,34 +3981,46 @@
"check",
"validate"
],
- "time": "2020-04-18T12:12:48+00:00"
+ "support": {
+ "issues": "https://github.com/webmozarts/assert/issues",
+ "source": "https://github.com/webmozarts/assert/tree/1.11.0"
+ },
+ "time": "2022-06-03T18:03:27+00:00"
},
{
"name": "wp-coding-standards/wpcs",
- "version": "2.3.0",
+ "version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
- "reference": "7da1894633f168fe244afc6de00d141f27517b62"
+ "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62",
- "reference": "7da1894633f168fe244afc6de00d141f27517b62",
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b4caf9689f1a0e4a4c632679a44e638c1c67aff1",
+ "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1",
"shasum": ""
},
"require": {
+ "ext-filter": "*",
+ "ext-libxml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlreader": "*",
"php": ">=5.4",
- "squizlabs/php_codesniffer": "^3.3.1"
+ "phpcsstandards/phpcsextra": "^1.1.0",
+ "phpcsstandards/phpcsutils": "^1.0.8",
+ "squizlabs/php_codesniffer": "^3.7.2"
},
"require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6",
+ "php-parallel-lint/php-console-highlighter": "^1.0.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpcompatibility/php-compatibility": "^9.0",
- "phpcsstandards/phpcsdevtools": "^1.0",
+ "phpcsstandards/phpcsdevtools": "^1.2.0",
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"suggest": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
+ "ext-iconv": "For improved results",
+ "ext-mbstring": "For improved results"
},
"type": "phpcodesniffer-standard",
"notification-url": "https://packagist.org/downloads/",
@@ -3285,9 +4037,21 @@
"keywords": [
"phpcs",
"standards",
+ "static analysis",
"wordpress"
],
- "time": "2020-05-13T23:57:56+00:00"
+ "support": {
+ "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
+ "source": "https://github.com/WordPress/WordPress-Coding-Standards",
+ "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/thewpcc/contribute/wp-php-63406",
+ "type": "custom"
+ }
+ ],
+ "time": "2023-09-14T07:06:09+00:00"
},
{
"name": "yoast/phpunit-polyfills",
@@ -3360,5 +4124,5 @@
"platform-overrides": {
"php": "7.4"
},
- "plugin-api-version": "2.6.0"
+ "plugin-api-version": "2.3.0"
}
diff --git a/src/Swagger/Api/CategoryApi.php b/src/Swagger/Api/CategoryApi.php
index e9e163d..b822ea2 100644
--- a/src/Swagger/Api/CategoryApi.php
+++ b/src/Swagger/Api/CategoryApi.php
@@ -94,7 +94,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20012
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20014
*/
public function getProductCategories()
{
@@ -110,11 +110,11 @@ public function getProductCategories()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20012, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20014, HTTP status code, HTTP response headers (array of strings)
*/
public function getProductCategoriesWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20012';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20014';
$request = $this->getProductCategoriesRequest();
try {
@@ -166,7 +166,7 @@ public function getProductCategoriesWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20012',
+ '\ColorMeShop\Swagger\Model\InlineResponse20014',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -206,7 +206,7 @@ function ($response) {
*/
public function getProductCategoriesAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20012';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20014';
$request = $this->getProductCategoriesRequest();
return $this->client
diff --git a/src/Swagger/Api/CustomerApi.php b/src/Swagger/Api/CustomerApi.php
index 7c82e13..435d268 100644
--- a/src/Swagger/Api/CustomerApi.php
+++ b/src/Swagger/Api/CustomerApi.php
@@ -95,7 +95,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2006
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2007
*/
public function getCustomer($customer_id)
{
@@ -112,11 +112,11 @@ public function getCustomer($customer_id)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2006, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2007, HTTP status code, HTTP response headers (array of strings)
*/
public function getCustomerWithHttpInfo($customer_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2006';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2007';
$request = $this->getCustomerRequest($customer_id);
try {
@@ -168,7 +168,7 @@ public function getCustomerWithHttpInfo($customer_id)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2006',
+ '\ColorMeShop\Swagger\Model\InlineResponse2007',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -210,7 +210,7 @@ function ($response) {
*/
public function getCustomerAsyncWithHttpInfo($customer_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2006';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2007';
$request = $this->getCustomerRequest($customer_id);
return $this->client
@@ -375,7 +375,7 @@ protected function getCustomerRequest($customer_id)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2004
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2005
*/
public function getCustomers($ids = null, $name = null, $furigana = null, $mail = null, $postal = null, $tel = null, $sex = null, $member = null, $receive_mail_magazine = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $limit = null, $offset = null)
{
@@ -406,11 +406,11 @@ public function getCustomers($ids = null, $name = null, $furigana = null, $mail
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2004, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2005, HTTP status code, HTTP response headers (array of strings)
*/
public function getCustomersWithHttpInfo($ids = null, $name = null, $furigana = null, $mail = null, $postal = null, $tel = null, $sex = null, $member = null, $receive_mail_magazine = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2004';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2005';
$request = $this->getCustomersRequest($ids, $name, $furigana, $mail, $postal, $tel, $sex, $member, $receive_mail_magazine, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $limit, $offset);
try {
@@ -462,7 +462,7 @@ public function getCustomersWithHttpInfo($ids = null, $name = null, $furigana =
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2004',
+ '\ColorMeShop\Swagger\Model\InlineResponse2005',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -532,7 +532,7 @@ function ($response) {
*/
public function getCustomersAsyncWithHttpInfo($ids = null, $name = null, $furigana = null, $mail = null, $postal = null, $tel = null, $sex = null, $member = null, $receive_mail_magazine = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2004';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2005';
$request = $this->getCustomersRequest($ids, $name, $furigana, $mail, $postal, $tel, $sex, $member, $receive_mail_magazine, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $limit, $offset);
return $this->client
@@ -743,7 +743,7 @@ protected function getCustomersRequest($ids = null, $name = null, $furigana = nu
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2005
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2006
*/
public function postCustomers($body = null)
{
@@ -760,11 +760,11 @@ public function postCustomers($body = null)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2005, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2006, HTTP status code, HTTP response headers (array of strings)
*/
public function postCustomersWithHttpInfo($body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2005';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2006';
$request = $this->postCustomersRequest($body);
try {
@@ -816,7 +816,7 @@ public function postCustomersWithHttpInfo($body = null)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2005',
+ '\ColorMeShop\Swagger\Model\InlineResponse2006',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -858,7 +858,7 @@ function ($response) {
*/
public function postCustomersAsyncWithHttpInfo($body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2005';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2006';
$request = $this->postCustomersRequest($body);
return $this->client
diff --git a/src/Swagger/Api/DeliveryApi.php b/src/Swagger/Api/DeliveryApi.php
index 14ee2ab..6257f65 100644
--- a/src/Swagger/Api/DeliveryApi.php
+++ b/src/Swagger/Api/DeliveryApi.php
@@ -94,7 +94,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20014
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20016
*/
public function getDeliveries()
{
@@ -110,11 +110,11 @@ public function getDeliveries()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20014, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20016, HTTP status code, HTTP response headers (array of strings)
*/
public function getDeliveriesWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20014';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20016';
$request = $this->getDeliveriesRequest();
try {
@@ -166,7 +166,7 @@ public function getDeliveriesWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20014',
+ '\ColorMeShop\Swagger\Model\InlineResponse20016',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -206,7 +206,7 @@ function ($response) {
*/
public function getDeliveriesAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20014';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20016';
$request = $this->getDeliveriesRequest();
return $this->client
@@ -341,7 +341,7 @@ protected function getDeliveriesRequest()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20015
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20017
*/
public function getDeliveryDateSetting()
{
@@ -357,11 +357,11 @@ public function getDeliveryDateSetting()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20015, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20017, HTTP status code, HTTP response headers (array of strings)
*/
public function getDeliveryDateSettingWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20015';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20017';
$request = $this->getDeliveryDateSettingRequest();
try {
@@ -413,7 +413,7 @@ public function getDeliveryDateSettingWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20015',
+ '\ColorMeShop\Swagger\Model\InlineResponse20017',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -453,7 +453,7 @@ function ($response) {
*/
public function getDeliveryDateSettingAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20015';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20017';
$request = $this->getDeliveryDateSettingRequest();
return $this->client
diff --git a/src/Swagger/Api/GiftApi.php b/src/Swagger/Api/GiftApi.php
index 687315b..ee4a421 100644
--- a/src/Swagger/Api/GiftApi.php
+++ b/src/Swagger/Api/GiftApi.php
@@ -94,7 +94,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20016
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018
*/
public function getGift()
{
@@ -110,11 +110,11 @@ public function getGift()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20016, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20018, HTTP status code, HTTP response headers (array of strings)
*/
public function getGiftWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20016';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20018';
$request = $this->getGiftRequest();
try {
@@ -166,7 +166,7 @@ public function getGiftWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20016',
+ '\ColorMeShop\Swagger\Model\InlineResponse20018',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -206,7 +206,7 @@ function ($response) {
*/
public function getGiftAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20016';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20018';
$request = $this->getGiftRequest();
return $this->client
diff --git a/src/Swagger/Api/GroupApi.php b/src/Swagger/Api/GroupApi.php
index 1d4ea8a..efa3d24 100644
--- a/src/Swagger/Api/GroupApi.php
+++ b/src/Swagger/Api/GroupApi.php
@@ -94,7 +94,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20011
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20013
*/
public function getProductGroups()
{
@@ -110,11 +110,11 @@ public function getProductGroups()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20011, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20013, HTTP status code, HTTP response headers (array of strings)
*/
public function getProductGroupsWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20013';
$request = $this->getProductGroupsRequest();
try {
@@ -166,7 +166,7 @@ public function getProductGroupsWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20011',
+ '\ColorMeShop\Swagger\Model\InlineResponse20013',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -206,7 +206,7 @@ function ($response) {
*/
public function getProductGroupsAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20013';
$request = $this->getProductGroupsRequest();
return $this->client
diff --git a/src/Swagger/Api/PaymentApi.php b/src/Swagger/Api/PaymentApi.php
index 52c782a..beccd10 100644
--- a/src/Swagger/Api/PaymentApi.php
+++ b/src/Swagger/Api/PaymentApi.php
@@ -94,7 +94,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20013
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20015
*/
public function getPayments()
{
@@ -110,11 +110,11 @@ public function getPayments()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20013, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20015, HTTP status code, HTTP response headers (array of strings)
*/
public function getPaymentsWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20013';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20015';
$request = $this->getPaymentsRequest();
try {
@@ -166,7 +166,7 @@ public function getPaymentsWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20013',
+ '\ColorMeShop\Swagger\Model\InlineResponse20015',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -206,7 +206,7 @@ function ($response) {
*/
public function getPaymentsAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20013';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20015';
$request = $this->getPaymentsRequest();
return $this->client
diff --git a/src/Swagger/Api/ProductApi.php b/src/Swagger/Api/ProductApi.php
index f6755c2..ad2ca43 100644
--- a/src/Swagger/Api/ProductApi.php
+++ b/src/Swagger/Api/ProductApi.php
@@ -96,7 +96,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2009
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20011
*/
public function deleteProductPickup($product_id, $pickup_type)
{
@@ -114,11 +114,11 @@ public function deleteProductPickup($product_id, $pickup_type)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2009, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20011, HTTP status code, HTTP response headers (array of strings)
*/
public function deleteProductPickupWithHttpInfo($product_id, $pickup_type)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
$request = $this->deleteProductPickupRequest($product_id, $pickup_type);
try {
@@ -170,7 +170,7 @@ public function deleteProductPickupWithHttpInfo($product_id, $pickup_type)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2009',
+ '\ColorMeShop\Swagger\Model\InlineResponse20011',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -214,7 +214,7 @@ function ($response) {
*/
public function deleteProductPickupAsyncWithHttpInfo($product_id, $pickup_type)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
$request = $this->deleteProductPickupRequest($product_id, $pickup_type);
return $this->client
@@ -380,7 +380,7 @@ protected function deleteProductPickupRequest($product_id, $pickup_type)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2008
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2009
*/
public function getProduct($product_id)
{
@@ -397,11 +397,11 @@ public function getProduct($product_id)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2008, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2009, HTTP status code, HTTP response headers (array of strings)
*/
public function getProductWithHttpInfo($product_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
$request = $this->getProductRequest($product_id);
try {
@@ -453,7 +453,7 @@ public function getProductWithHttpInfo($product_id)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2008',
+ '\ColorMeShop\Swagger\Model\InlineResponse2009',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -495,7 +495,7 @@ function ($response) {
*/
public function getProductAsyncWithHttpInfo($product_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
$request = $this->getProductRequest($product_id);
return $this->client
@@ -638,69 +638,45 @@ protected function getProductRequest($product_id)
}
/**
- * Operation getProducts
+ * Operation getProductVariants
*
- * 商品一覧の取得
+ * 商品オプション一覧の取得
*
- * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
- * @param int $category_id_big 大カテゴリーIDで検索 (optional)
- * @param int $category_id_small 小カテゴリーIDで検索 (optional)
- * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $product_id 商品ID (required)
* @param string $model_number 型番で部分一致検索 (optional)
- * @param string $name 商品名で部分一致検索 (optional)
- * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
- * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
- * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
- * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
- * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
- * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2007
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20010
*/
- public function getProducts($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ public function getProductVariants($product_id, $model_number = null, $fields = null, $limit = null, $offset = null)
{
- list($response) = $this->getProductsWithHttpInfo($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset);
+ list($response) = $this->getProductVariantsWithHttpInfo($product_id, $model_number, $fields, $limit, $offset);
return $response;
}
/**
- * Operation getProductsWithHttpInfo
+ * Operation getProductVariantsWithHttpInfo
*
- * 商品一覧の取得
+ * 商品オプション一覧の取得
*
- * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
- * @param int $category_id_big 大カテゴリーIDで検索 (optional)
- * @param int $category_id_small 小カテゴリーIDで検索 (optional)
- * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $product_id 商品ID (required)
* @param string $model_number 型番で部分一致検索 (optional)
- * @param string $name 商品名で部分一致検索 (optional)
- * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
- * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
- * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
- * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
- * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
- * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2007, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20010, HTTP status code, HTTP response headers (array of strings)
*/
- public function getProductsWithHttpInfo($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ public function getProductVariantsWithHttpInfo($product_id, $model_number = null, $fields = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2007';
- $request = $this->getProductsRequest($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset);
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20010';
+ $request = $this->getProductVariantsRequest($product_id, $model_number, $fields, $limit, $offset);
try {
$options = $this->createHttpClientOption();
@@ -751,7 +727,7 @@ public function getProductsWithHttpInfo($ids = null, $category_id_big = null, $c
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2007',
+ '\ColorMeShop\Swagger\Model\InlineResponse20010',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -762,24 +738,12 @@ public function getProductsWithHttpInfo($ids = null, $category_id_big = null, $c
}
/**
- * Operation getProductsAsync
+ * Operation getProductVariantsAsync
*
- * 商品一覧の取得
+ * 商品オプション一覧の取得
*
- * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
- * @param int $category_id_big 大カテゴリーIDで検索 (optional)
- * @param int $category_id_small 小カテゴリーIDで検索 (optional)
- * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $product_id 商品ID (required)
* @param string $model_number 型番で部分一致検索 (optional)
- * @param string $name 商品名で部分一致検索 (optional)
- * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
- * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
- * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
- * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
- * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
- * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
@@ -787,9 +751,9 @@ public function getProductsWithHttpInfo($ids = null, $category_id_big = null, $c
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getProductsAsync($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ public function getProductVariantsAsync($product_id, $model_number = null, $fields = null, $limit = null, $offset = null)
{
- return $this->getProductsAsyncWithHttpInfo($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset)
+ return $this->getProductVariantsAsyncWithHttpInfo($product_id, $model_number, $fields, $limit, $offset)
->then(
function ($response) {
return $response[0];
@@ -798,24 +762,12 @@ function ($response) {
}
/**
- * Operation getProductsAsyncWithHttpInfo
+ * Operation getProductVariantsAsyncWithHttpInfo
*
- * 商品一覧の取得
+ * 商品オプション一覧の取得
*
- * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
- * @param int $category_id_big 大カテゴリーIDで検索 (optional)
- * @param int $category_id_small 小カテゴリーIDで検索 (optional)
- * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $product_id 商品ID (required)
* @param string $model_number 型番で部分一致検索 (optional)
- * @param string $name 商品名で部分一致検索 (optional)
- * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
- * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
- * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
- * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
- * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
- * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
@@ -823,10 +775,10 @@ function ($response) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getProductsAsyncWithHttpInfo($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ public function getProductVariantsAsyncWithHttpInfo($product_id, $model_number = null, $fields = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2007';
- $request = $this->getProductsRequest($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset);
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20010';
+ $request = $this->getProductVariantsRequest($product_id, $model_number, $fields, $limit, $offset);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -866,22 +818,10 @@ function ($exception) {
}
/**
- * Create request for operation 'getProducts'
+ * Create request for operation 'getProductVariants'
*
- * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
- * @param int $category_id_big 大カテゴリーIDで検索 (optional)
- * @param int $category_id_small 小カテゴリーIDで検索 (optional)
- * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $product_id 商品ID (required)
* @param string $model_number 型番で部分一致検索 (optional)
- * @param string $name 商品名で部分一致検索 (optional)
- * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
- * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
- * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
- * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
- * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
- * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
@@ -889,73 +829,27 @@ function ($exception) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function getProductsRequest($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ protected function getProductVariantsRequest($product_id, $model_number = null, $fields = null, $limit = null, $offset = null)
{
+ // verify the required parameter 'product_id' is set
+ if ($product_id === null || (is_array($product_id) && count($product_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $product_id when calling getProductVariants'
+ );
+ }
- $resourcePath = '/v1/products';
+ $resourcePath = '/v1/products/{product_id}/variants';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- if ($ids !== null) {
- $queryParams['ids'] = ObjectSerializer::toQueryValue($ids, null);
- }
- // query params
- if ($category_id_big !== null) {
- $queryParams['category_id_big'] = ObjectSerializer::toQueryValue($category_id_big, null);
- }
- // query params
- if ($category_id_small !== null) {
- $queryParams['category_id_small'] = ObjectSerializer::toQueryValue($category_id_small, null);
- }
- // query params
- if ($group_ids !== null) {
- $queryParams['group_ids'] = ObjectSerializer::toQueryValue($group_ids, null);
- }
// query params
if ($model_number !== null) {
$queryParams['model_number'] = ObjectSerializer::toQueryValue($model_number, null);
}
// query params
- if ($name !== null) {
- $queryParams['name'] = ObjectSerializer::toQueryValue($name, null);
- }
- // query params
- if ($display_state !== null) {
- $queryParams['display_state'] = ObjectSerializer::toQueryValue($display_state, null);
- }
- // query params
- if ($stocks !== null) {
- $queryParams['stocks'] = ObjectSerializer::toQueryValue($stocks, null);
- }
- // query params
- if ($stock_managed !== null) {
- $queryParams['stock_managed'] = ObjectSerializer::toQueryValue($stock_managed, null);
- }
- // query params
- if ($recent_zero_stocks !== null) {
- $queryParams['recent_zero_stocks'] = ObjectSerializer::toQueryValue($recent_zero_stocks, null);
- }
- // query params
- if ($make_date_min !== null) {
- $queryParams['make_date_min'] = ObjectSerializer::toQueryValue($make_date_min, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
- }
- // query params
- if ($make_date_max !== null) {
- $queryParams['make_date_max'] = ObjectSerializer::toQueryValue($make_date_max, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
- }
- // query params
- if ($update_date_min !== null) {
- $queryParams['update_date_min'] = ObjectSerializer::toQueryValue($update_date_min, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
- }
- // query params
- if ($update_date_max !== null) {
- $queryParams['update_date_max'] = ObjectSerializer::toQueryValue($update_date_max, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
- }
- // query params
if ($fields !== null) {
$queryParams['fields'] = ObjectSerializer::toQueryValue($fields, null);
}
@@ -968,6 +862,14 @@ protected function getProductsRequest($ids = null, $category_id_big = null, $cat
$queryParams['offset'] = ObjectSerializer::toQueryValue($offset, null);
}
+ // path params
+ if ($product_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'product_id' . '}',
+ ObjectSerializer::toPathValue($product_id),
+ $resourcePath
+ );
+ }
// body params
$_tempBody = null;
@@ -1038,39 +940,69 @@ protected function getProductsRequest($ids = null, $category_id_big = null, $cat
}
/**
- * Operation postProductPickup
+ * Operation getProducts
*
- * おすすめ商品情報の追加
+ * 商品一覧の取得
*
- * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body body (required)
- * @param int $product_id 商品ID (required)
+ * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $category_id_big 大カテゴリーIDで検索 (optional)
+ * @param int $category_id_small 小カテゴリーIDで検索 (optional)
+ * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param string $model_number 型番で部分一致検索 (optional)
+ * @param string $name 商品名で部分一致検索 (optional)
+ * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
+ * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
+ * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
+ * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
+ * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
+ * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
+ * @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
+ * @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
+ * @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2009
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2008
*/
- public function postProductPickup($body, $product_id)
+ public function getProducts($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
{
- list($response) = $this->postProductPickupWithHttpInfo($body, $product_id);
+ list($response) = $this->getProductsWithHttpInfo($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset);
return $response;
}
/**
- * Operation postProductPickupWithHttpInfo
+ * Operation getProductsWithHttpInfo
*
- * おすすめ商品情報の追加
+ * 商品一覧の取得
*
- * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
- * @param int $product_id 商品ID (required)
+ * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $category_id_big 大カテゴリーIDで検索 (optional)
+ * @param int $category_id_small 小カテゴリーIDで検索 (optional)
+ * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param string $model_number 型番で部分一致検索 (optional)
+ * @param string $name 商品名で部分一致検索 (optional)
+ * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
+ * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
+ * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
+ * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
+ * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
+ * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
+ * @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
+ * @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
+ * @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2009, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2008, HTTP status code, HTTP response headers (array of strings)
*/
- public function postProductPickupWithHttpInfo($body, $product_id)
+ public function getProductsWithHttpInfo($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
- $request = $this->postProductPickupRequest($body, $product_id);
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
+ $request = $this->getProductsRequest($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset);
try {
$options = $this->createHttpClientOption();
@@ -1121,7 +1053,7 @@ public function postProductPickupWithHttpInfo($body, $product_id)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2009',
+ '\ColorMeShop\Swagger\Model\InlineResponse2008',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -1132,17 +1064,387 @@ public function postProductPickupWithHttpInfo($body, $product_id)
}
/**
- * Operation postProductPickupAsync
+ * Operation getProductsAsync
*
- * おすすめ商品情報の追加
+ * 商品一覧の取得
*
- * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
- * @param int $product_id 商品ID (required)
+ * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $category_id_big 大カテゴリーIDで検索 (optional)
+ * @param int $category_id_small 小カテゴリーIDで検索 (optional)
+ * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param string $model_number 型番で部分一致検索 (optional)
+ * @param string $name 商品名で部分一致検索 (optional)
+ * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
+ * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
+ * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
+ * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
+ * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
+ * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
+ * @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
+ * @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
+ * @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function postProductPickupAsync($body, $product_id)
+ public function getProductsAsync($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ {
+ return $this->getProductsAsyncWithHttpInfo($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getProductsAsyncWithHttpInfo
+ *
+ * 商品一覧の取得
+ *
+ * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $category_id_big 大カテゴリーIDで検索 (optional)
+ * @param int $category_id_small 小カテゴリーIDで検索 (optional)
+ * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param string $model_number 型番で部分一致検索 (optional)
+ * @param string $name 商品名で部分一致検索 (optional)
+ * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
+ * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
+ * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
+ * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
+ * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
+ * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
+ * @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
+ * @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
+ * @param int $offset 指定した数値+1件目以降のデータを返す (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getProductsAsyncWithHttpInfo($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ {
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
+ $request = $this->getProductsRequest($ids, $category_id_big, $category_id_small, $group_ids, $model_number, $name, $display_state, $stocks, $stock_managed, $recent_zero_stocks, $make_date_min, $make_date_max, $update_date_min, $update_date_max, $fields, $limit, $offset);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getProducts'
+ *
+ * @param string $ids 商品IDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param int $category_id_big 大カテゴリーIDで検索 (optional)
+ * @param int $category_id_small 小カテゴリーIDで検索 (optional)
+ * @param int $group_ids グループIDで検索。カンマ区切りにすることで複数検索が可能 (optional)
+ * @param string $model_number 型番で部分一致検索 (optional)
+ * @param string $name 商品名で部分一致検索 (optional)
+ * @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
+ * @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
+ * @param bool $stock_managed `true`の場合、在庫管理している商品を検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param string $make_date_min 指定日時以降に作成された商品から検索 (optional)
+ * @param string $make_date_max 指定日時以前に作成された商品から検索 (optional)
+ * @param string $update_date_min 指定日時以降に更新された商品から検索 (optional)
+ * @param string $update_date_max 指定日時以前に更新された商品から検索 (optional)
+ * @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
+ * @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
+ * @param int $offset 指定した数値+1件目以降のデータを返す (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getProductsRequest($ids = null, $category_id_big = null, $category_id_small = null, $group_ids = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $stock_managed = null, $recent_zero_stocks = null, $make_date_min = null, $make_date_max = null, $update_date_min = null, $update_date_max = null, $fields = null, $limit = null, $offset = null)
+ {
+
+ $resourcePath = '/v1/products';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($ids !== null) {
+ $queryParams['ids'] = ObjectSerializer::toQueryValue($ids, null);
+ }
+ // query params
+ if ($category_id_big !== null) {
+ $queryParams['category_id_big'] = ObjectSerializer::toQueryValue($category_id_big, null);
+ }
+ // query params
+ if ($category_id_small !== null) {
+ $queryParams['category_id_small'] = ObjectSerializer::toQueryValue($category_id_small, null);
+ }
+ // query params
+ if ($group_ids !== null) {
+ $queryParams['group_ids'] = ObjectSerializer::toQueryValue($group_ids, null);
+ }
+ // query params
+ if ($model_number !== null) {
+ $queryParams['model_number'] = ObjectSerializer::toQueryValue($model_number, null);
+ }
+ // query params
+ if ($name !== null) {
+ $queryParams['name'] = ObjectSerializer::toQueryValue($name, null);
+ }
+ // query params
+ if ($display_state !== null) {
+ $queryParams['display_state'] = ObjectSerializer::toQueryValue($display_state, null);
+ }
+ // query params
+ if ($stocks !== null) {
+ $queryParams['stocks'] = ObjectSerializer::toQueryValue($stocks, null);
+ }
+ // query params
+ if ($stock_managed !== null) {
+ $queryParams['stock_managed'] = ObjectSerializer::toQueryValue($stock_managed, null);
+ }
+ // query params
+ if ($recent_zero_stocks !== null) {
+ $queryParams['recent_zero_stocks'] = ObjectSerializer::toQueryValue($recent_zero_stocks, null);
+ }
+ // query params
+ if ($make_date_min !== null) {
+ $queryParams['make_date_min'] = ObjectSerializer::toQueryValue($make_date_min, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
+ }
+ // query params
+ if ($make_date_max !== null) {
+ $queryParams['make_date_max'] = ObjectSerializer::toQueryValue($make_date_max, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
+ }
+ // query params
+ if ($update_date_min !== null) {
+ $queryParams['update_date_min'] = ObjectSerializer::toQueryValue($update_date_min, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
+ }
+ // query params
+ if ($update_date_max !== null) {
+ $queryParams['update_date_max'] = ObjectSerializer::toQueryValue($update_date_max, 'YYYY-MM-DD | YYYY-MM-DD hh:mm:ss');
+ }
+ // query params
+ if ($fields !== null) {
+ $queryParams['fields'] = ObjectSerializer::toQueryValue($fields, null);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit, null);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset, null);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ []
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires OAuth (access token)
+ if ($this->config->getAccessToken() !== null) {
+ $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation postProductPickup
+ *
+ * おすすめ商品情報の追加
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody1 $body body (required)
+ * @param int $product_id 商品ID (required)
+ *
+ * @throws \ColorMeShop\Swagger\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20011
+ */
+ public function postProductPickup($body, $product_id)
+ {
+ list($response) = $this->postProductPickupWithHttpInfo($body, $product_id);
+ return $response;
+ }
+
+ /**
+ * Operation postProductPickupWithHttpInfo
+ *
+ * おすすめ商品情報の追加
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody1 $body (required)
+ * @param int $product_id 商品ID (required)
+ *
+ * @throws \ColorMeShop\Swagger\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20011, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function postProductPickupWithHttpInfo($body, $product_id)
+ {
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
+ $request = $this->postProductPickupRequest($body, $product_id);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if (!in_array($returnType, ['string','integer','bool'])) {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\ColorMeShop\Swagger\Model\InlineResponse20011',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation postProductPickupAsync
+ *
+ * おすすめ商品情報の追加
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody1 $body (required)
+ * @param int $product_id 商品ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function postProductPickupAsync($body, $product_id)
{
return $this->postProductPickupAsyncWithHttpInfo($body, $product_id)
->then(
@@ -1153,20 +1455,296 @@ function ($response) {
}
/**
- * Operation postProductPickupAsyncWithHttpInfo
+ * Operation postProductPickupAsyncWithHttpInfo
+ *
+ * おすすめ商品情報の追加
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody1 $body (required)
+ * @param int $product_id 商品ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function postProductPickupAsyncWithHttpInfo($body, $product_id)
+ {
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
+ $request = $this->postProductPickupRequest($body, $product_id);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'postProductPickup'
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody1 $body (required)
+ * @param int $product_id 商品ID (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function postProductPickupRequest($body, $product_id)
+ {
+ // verify the required parameter 'body' is set
+ if ($body === null || (is_array($body) && count($body) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $body when calling postProductPickup'
+ );
+ }
+ // verify the required parameter 'product_id' is set
+ if ($product_id === null || (is_array($product_id) && count($product_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $product_id when calling postProductPickup'
+ );
+ }
+
+ $resourcePath = '/v1/products/{product_id}/pickups';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($product_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'product_id' . '}',
+ ObjectSerializer::toPathValue($product_id),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+ if (isset($body)) {
+ $_tempBody = $body;
+ }
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires OAuth (access token)
+ if ($this->config->getAccessToken() !== null) {
+ $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'POST',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation postProducts
+ *
+ * 商品データの追加
+ *
+ * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ *
+ * @throws \ColorMeShop\Swagger\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2009
+ */
+ public function postProducts($body)
+ {
+ list($response) = $this->postProductsWithHttpInfo($body);
+ return $response;
+ }
+
+ /**
+ * Operation postProductsWithHttpInfo
+ *
+ * 商品データの追加
+ *
+ * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ *
+ * @throws \ColorMeShop\Swagger\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2009, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function postProductsWithHttpInfo($body)
+ {
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
+ $request = $this->postProductsRequest($body);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if (!in_array($returnType, ['string','integer','bool'])) {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\ColorMeShop\Swagger\Model\InlineResponse2009',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation postProductsAsync
+ *
+ * 商品データの追加
+ *
+ * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function postProductsAsync($body)
+ {
+ return $this->postProductsAsyncWithHttpInfo($body)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation postProductsAsyncWithHttpInfo
*
- * おすすめ商品情報の追加
+ * 商品データの追加
*
- * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
- * @param int $product_id 商品ID (required)
+ * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function postProductPickupAsyncWithHttpInfo($body, $product_id)
+ public function postProductsAsyncWithHttpInfo($body)
{
$returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
- $request = $this->postProductPickupRequest($body, $product_id);
+ $request = $this->postProductsRequest($body);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -1206,30 +1784,23 @@ function ($exception) {
}
/**
- * Create request for operation 'postProductPickup'
+ * Create request for operation 'postProducts'
*
- * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
- * @param int $product_id 商品ID (required)
+ * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function postProductPickupRequest($body, $product_id)
+ protected function postProductsRequest($body)
{
// verify the required parameter 'body' is set
if ($body === null || (is_array($body) && count($body) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $body when calling postProductPickup'
- );
- }
- // verify the required parameter 'product_id' is set
- if ($product_id === null || (is_array($product_id) && count($product_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $product_id when calling postProductPickup'
+ 'Missing the required parameter $body when calling postProducts'
);
}
- $resourcePath = '/v1/products/{product_id}/pickups';
+ $resourcePath = '/v1/products';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -1237,14 +1808,6 @@ protected function postProductPickupRequest($body, $product_id)
$multipart = false;
- // path params
- if ($product_id !== null) {
- $resourcePath = str_replace(
- '{' . 'product_id' . '}',
- ObjectSerializer::toPathValue($product_id),
- $resourcePath
- );
- }
// body params
$_tempBody = null;
@@ -1318,37 +1881,39 @@ protected function postProductPickupRequest($body, $product_id)
}
/**
- * Operation postProducts
+ * Operation putProductPickup
*
- * 商品データの追加
+ * おすすめ商品情報の更新
*
- * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body body (required)
+ * @param int $product_id 商品ID (required)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2008
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20011
*/
- public function postProducts($body)
+ public function putProductPickup($body, $product_id)
{
- list($response) = $this->postProductsWithHttpInfo($body);
+ list($response) = $this->putProductPickupWithHttpInfo($body, $product_id);
return $response;
}
/**
- * Operation postProductsWithHttpInfo
+ * Operation putProductPickupWithHttpInfo
*
- * 商品データの追加
+ * おすすめ商品情報の更新
*
- * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
+ * @param int $product_id 商品ID (required)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2008, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20011, HTTP status code, HTTP response headers (array of strings)
*/
- public function postProductsWithHttpInfo($body)
+ public function putProductPickupWithHttpInfo($body, $product_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
- $request = $this->postProductsRequest($body);
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
+ $request = $this->putProductPickupRequest($body, $product_id);
try {
$options = $this->createHttpClientOption();
@@ -1399,7 +1964,7 @@ public function postProductsWithHttpInfo($body)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2008',
+ '\ColorMeShop\Swagger\Model\InlineResponse20011',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -1410,18 +1975,19 @@ public function postProductsWithHttpInfo($body)
}
/**
- * Operation postProductsAsync
+ * Operation putProductPickupAsync
*
- * 商品データの追加
+ * おすすめ商品情報の更新
*
- * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
+ * @param int $product_id 商品ID (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function postProductsAsync($body)
+ public function putProductPickupAsync($body, $product_id)
{
- return $this->postProductsAsyncWithHttpInfo($body)
+ return $this->putProductPickupAsyncWithHttpInfo($body, $product_id)
->then(
function ($response) {
return $response[0];
@@ -1430,19 +1996,20 @@ function ($response) {
}
/**
- * Operation postProductsAsyncWithHttpInfo
+ * Operation putProductPickupAsyncWithHttpInfo
*
- * 商品データの追加
+ * おすすめ商品情報の更新
*
- * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
+ * @param int $product_id 商品ID (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function postProductsAsyncWithHttpInfo($body)
+ public function putProductPickupAsyncWithHttpInfo($body, $product_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
- $request = $this->postProductsRequest($body);
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20011';
+ $request = $this->putProductPickupRequest($body, $product_id);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -1482,23 +2049,30 @@ function ($exception) {
}
/**
- * Create request for operation 'postProducts'
+ * Create request for operation 'putProductPickup'
*
- * @param \ColorMeShop\Swagger\Model\V1ProductsBody $body 商品データ (required)
+ * @param \ColorMeShop\Swagger\Model\ProductIdPickupsBody $body (required)
+ * @param int $product_id 商品ID (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function postProductsRequest($body)
+ protected function putProductPickupRequest($body, $product_id)
{
// verify the required parameter 'body' is set
if ($body === null || (is_array($body) && count($body) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $body when calling postProducts'
+ 'Missing the required parameter $body when calling putProductPickup'
+ );
+ }
+ // verify the required parameter 'product_id' is set
+ if ($product_id === null || (is_array($product_id) && count($product_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $product_id when calling putProductPickup'
);
}
- $resourcePath = '/v1/products';
+ $resourcePath = '/v1/products/{product_id}/pickups';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -1506,6 +2080,14 @@ protected function postProductsRequest($body)
$multipart = false;
+ // path params
+ if ($product_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'product_id' . '}',
+ ObjectSerializer::toPathValue($product_id),
+ $resourcePath
+ );
+ }
// body params
$_tempBody = null;
@@ -1571,7 +2153,7 @@ protected function postProductsRequest($body)
$query = \GuzzleHttp\Psr7\build_query($queryParams);
return new Request(
- 'POST',
+ 'PUT',
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -1588,7 +2170,7 @@ protected function postProductsRequest($body)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2008
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2009
*/
public function updateProduct($product_id, $body = null)
{
@@ -1606,11 +2188,11 @@ public function updateProduct($product_id, $body = null)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2008, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2009, HTTP status code, HTTP response headers (array of strings)
*/
public function updateProductWithHttpInfo($product_id, $body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
$request = $this->updateProductRequest($product_id, $body);
try {
@@ -1662,7 +2244,7 @@ public function updateProductWithHttpInfo($product_id, $body = null)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2008',
+ '\ColorMeShop\Swagger\Model\InlineResponse2009',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -1706,7 +2288,7 @@ function ($response) {
*/
public function updateProductAsyncWithHttpInfo($product_id, $body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2008';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2009';
$request = $this->updateProductRequest($product_id, $body);
return $this->client
diff --git a/src/Swagger/Api/SaleApi.php b/src/Swagger/Api/SaleApi.php
index 3789a8a..c3b2ea1 100644
--- a/src/Swagger/Api/SaleApi.php
+++ b/src/Swagger/Api/SaleApi.php
@@ -96,7 +96,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2003
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2004
*/
public function cancelSale($sale_id, $body = null)
{
@@ -114,11 +114,11 @@ public function cancelSale($sale_id, $body = null)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2003, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2004, HTTP status code, HTTP response headers (array of strings)
*/
public function cancelSaleWithHttpInfo($sale_id, $body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2003';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2004';
$request = $this->cancelSaleRequest($sale_id, $body);
try {
@@ -170,7 +170,7 @@ public function cancelSaleWithHttpInfo($sale_id, $body = null)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2003',
+ '\ColorMeShop\Swagger\Model\InlineResponse2004',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -214,7 +214,7 @@ function ($response) {
*/
public function cancelSaleAsyncWithHttpInfo($sale_id, $body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2003';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2004';
$request = $this->cancelSaleRequest($sale_id, $body);
return $this->client
@@ -1574,7 +1574,7 @@ protected function statSaleRequest($make_date = null)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse2003
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2004
*/
public function updateSale($sale_id, $body = null)
{
@@ -1592,11 +1592,11 @@ public function updateSale($sale_id, $body = null)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse2003, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse2004, HTTP status code, HTTP response headers (array of strings)
*/
public function updateSaleWithHttpInfo($sale_id, $body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2003';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2004';
$request = $this->updateSaleRequest($sale_id, $body);
try {
@@ -1648,7 +1648,7 @@ public function updateSaleWithHttpInfo($sale_id, $body = null)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse2003',
+ '\ColorMeShop\Swagger\Model\InlineResponse2004',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -1692,7 +1692,7 @@ function ($response) {
*/
public function updateSaleAsyncWithHttpInfo($sale_id, $body = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2003';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse2004';
$request = $this->updateSaleRequest($sale_id, $body);
return $this->client
diff --git a/src/Swagger/Api/ShopCouponApi.php b/src/Swagger/Api/ShopCouponApi.php
index 5cb4e90..1a042ac 100644
--- a/src/Swagger/Api/ShopCouponApi.php
+++ b/src/Swagger/Api/ShopCouponApi.php
@@ -95,7 +95,7 @@ public function getConfig()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20018
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20020
*/
public function getCoupon($coupon_id)
{
@@ -112,11 +112,11 @@ public function getCoupon($coupon_id)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20018, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20020, HTTP status code, HTTP response headers (array of strings)
*/
public function getCouponWithHttpInfo($coupon_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20018';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20020';
$request = $this->getCouponRequest($coupon_id);
try {
@@ -168,7 +168,7 @@ public function getCouponWithHttpInfo($coupon_id)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20018',
+ '\ColorMeShop\Swagger\Model\InlineResponse20020',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -210,7 +210,7 @@ function ($response) {
*/
public function getCouponAsyncWithHttpInfo($coupon_id)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20018';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20020';
$request = $this->getCouponRequest($coupon_id);
return $this->client
@@ -360,7 +360,7 @@ protected function getCouponRequest($coupon_id)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20017
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20019
*/
public function getCoupons()
{
@@ -376,11 +376,11 @@ public function getCoupons()
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20017, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20019, HTTP status code, HTTP response headers (array of strings)
*/
public function getCouponsWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20017';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20019';
$request = $this->getCouponsRequest();
try {
@@ -432,7 +432,7 @@ public function getCouponsWithHttpInfo()
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20017',
+ '\ColorMeShop\Swagger\Model\InlineResponse20019',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -472,7 +472,7 @@ function ($response) {
*/
public function getCouponsAsyncWithHttpInfo()
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20017';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20019';
$request = $this->getCouponsRequest();
return $this->client
diff --git a/src/Swagger/Api/StockApi.php b/src/Swagger/Api/StockApi.php
index 1f7468f..db82efe 100644
--- a/src/Swagger/Api/StockApi.php
+++ b/src/Swagger/Api/StockApi.php
@@ -98,14 +98,14 @@ public function getConfig()
* @param string $name 商品名で部分一致検索 (optional)
* @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
* @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内にオプションが更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return \ColorMeShop\Swagger\Model\InlineResponse20010
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20012
*/
public function getStocks($ids = null, $category_id_big = null, $category_id_small = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $recent_zero_stocks = null, $fields = null, $limit = null, $offset = null)
{
@@ -125,18 +125,18 @@ public function getStocks($ids = null, $category_id_big = null, $category_id_sma
* @param string $name 商品名で部分一致検索 (optional)
* @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
* @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内にオプションが更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
*
* @throws \ColorMeShop\Swagger\ApiException on non-2xx response
* @throws \InvalidArgumentException
- * @return array of \ColorMeShop\Swagger\Model\InlineResponse20010, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \ColorMeShop\Swagger\Model\InlineResponse20012, HTTP status code, HTTP response headers (array of strings)
*/
public function getStocksWithHttpInfo($ids = null, $category_id_big = null, $category_id_small = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $recent_zero_stocks = null, $fields = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20010';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20012';
$request = $this->getStocksRequest($ids, $category_id_big, $category_id_small, $model_number, $name, $display_state, $stocks, $recent_zero_stocks, $fields, $limit, $offset);
try {
@@ -188,7 +188,7 @@ public function getStocksWithHttpInfo($ids = null, $category_id_big = null, $cat
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\ColorMeShop\Swagger\Model\InlineResponse20010',
+ '\ColorMeShop\Swagger\Model\InlineResponse20012',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -210,7 +210,7 @@ public function getStocksWithHttpInfo($ids = null, $category_id_big = null, $cat
* @param string $name 商品名で部分一致検索 (optional)
* @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
* @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内にオプションが更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
@@ -240,7 +240,7 @@ function ($response) {
* @param string $name 商品名で部分一致検索 (optional)
* @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
* @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内にオプションが更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
@@ -250,7 +250,7 @@ function ($response) {
*/
public function getStocksAsyncWithHttpInfo($ids = null, $category_id_big = null, $category_id_small = null, $model_number = null, $name = null, $display_state = null, $stocks = null, $recent_zero_stocks = null, $fields = null, $limit = null, $offset = null)
{
- $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20010';
+ $returnType = '\ColorMeShop\Swagger\Model\InlineResponse20012';
$request = $this->getStocksRequest($ids, $category_id_big, $category_id_small, $model_number, $name, $display_state, $stocks, $recent_zero_stocks, $fields, $limit, $offset);
return $this->client
@@ -300,7 +300,7 @@ function ($exception) {
* @param string $name 商品名で部分一致検索 (optional)
* @param string $display_state 掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能 (optional)
* @param int $stocks 在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される (optional)
- * @param bool $recent_zero_stocks `true` の場合、過去1週間以内に更新された商品から検索 (optional)
+ * @param bool $recent_zero_stocks `true` の場合、過去1週間以内にオプションが更新された商品から検索 (optional)
* @param string $fields レスポンスJSONのキーをカンマ区切りで指定 (optional)
* @param int $limit レスポンスの件数を指定。指定がない場合は10。最大50 (optional)
* @param int $offset 指定した数値+1件目以降のデータを返す (optional)
diff --git a/src/Swagger/Model/AllOfinlineResponse2003Sale.php b/src/Swagger/Model/AllOfinlineResponse2003Sale.php
new file mode 100644
index 0000000..5116781
--- /dev/null
+++ b/src/Swagger/Model/AllOfinlineResponse2003Sale.php
@@ -0,0 +1,291 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * AllOfinlineResponse2003Sale Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class AllOfinlineResponse2003Sale implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'AllOfinline_response_200_3Sale';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'segment' => 'object' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'segment' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'segment' => 'segment' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'segment' => 'setSegment' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'segment' => 'getSegment' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['segment'] = isset($data['segment']) ? $data['segment'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets segment
+ *
+ * @return object
+ */
+ public function getSegment()
+ {
+ return $this->container['segment'];
+ }
+
+ /**
+ * Sets segment
+ *
+ * @param object $segment segment
+ *
+ * @return $this
+ */
+ public function setSegment($segment)
+ {
+ $this->container['segment'] = $segment;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/Delivery.php b/src/Swagger/Model/Delivery.php
index 6206dee..f563630 100644
--- a/src/Swagger/Model/Delivery.php
+++ b/src/Swagger/Model/Delivery.php
@@ -252,7 +252,12 @@ public function getModelName()
return self::$swaggerModelName;
}
- const CHARGE_FREE_TYPE_NOT_FREE = 'not_free';
+ const METHOD_TYPE_OTHER = 'other';
+const METHOD_TYPE_YAMATO = 'yamato';
+const METHOD_TYPE_YAMATO_PICKUP = 'yamato_pickup';
+const METHOD_TYPE_SAGAWA = 'sagawa';
+const METHOD_TYPE_JP = 'jp';
+const CHARGE_FREE_TYPE_NOT_FREE = 'not_free';
const CHARGE_FREE_TYPE_FREE = 'free';
const CHARGE_FREE_TYPE_FREE_TO_LIMIT = 'free_to_limit';
const CHARGE_TYPE_FIXED = 'fixed';
@@ -262,6 +267,20 @@ public function getModelName()
const DISPLAY_STATE_SHOWING = 'showing';
const DISPLAY_STATE_HIDDEN = 'hidden';
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getMethodTypeAllowableValues()
+ {
+ return [
+ self::METHOD_TYPE_OTHER,
+self::METHOD_TYPE_YAMATO,
+self::METHOD_TYPE_YAMATO_PICKUP,
+self::METHOD_TYPE_SAGAWA,
+self::METHOD_TYPE_JP, ];
+ }
/**
* Gets allowable values of the enum
*
@@ -346,6 +365,14 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ $allowedValues = $this->getMethodTypeAllowableValues();
+ if (!is_null($this->container['method_type']) && !in_array($this->container['method_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'method_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
$allowedValues = $this->getChargeFreeTypeAllowableValues();
if (!is_null($this->container['charge_free_type']) && !in_array($this->container['charge_free_type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
@@ -476,6 +503,15 @@ public function getMethodType()
*/
public function setMethodType($method_type)
{
+ $allowedValues = $this->getMethodTypeAllowableValues();
+ if (!is_null($method_type) && !in_array($method_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'method_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
$this->container['method_type'] = $method_type;
return $this;
diff --git a/src/Swagger/Model/InlineResponse20010.php b/src/Swagger/Model/InlineResponse20010.php
index 4fbdb77..9dec40b 100644
--- a/src/Swagger/Model/InlineResponse20010.php
+++ b/src/Swagger/Model/InlineResponse20010.php
@@ -56,7 +56,7 @@ class InlineResponse20010 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'stocks' => '\ColorMeShop\Swagger\Model\InlineResponse20010Stocks[]',
+ 'variants' => '\ColorMeShop\Swagger\Model\ProductVariants[]',
'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2001Meta' ];
/**
@@ -65,7 +65,7 @@ class InlineResponse20010 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'stocks' => null,
+ 'variants' => null,
'meta' => null ];
/**
@@ -95,7 +95,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'stocks' => 'stocks',
+ 'variants' => 'variants',
'meta' => 'meta' ];
/**
@@ -104,7 +104,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'stocks' => 'setStocks',
+ 'variants' => 'setVariants',
'meta' => 'setMeta' ];
/**
@@ -113,7 +113,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'stocks' => 'getStocks',
+ 'variants' => 'getVariants',
'meta' => 'getMeta' ];
/**
@@ -174,7 +174,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['stocks'] = isset($data['stocks']) ? $data['stocks'] : null;
+ $this->container['variants'] = isset($data['variants']) ? $data['variants'] : null;
$this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
}
@@ -203,25 +203,25 @@ public function valid()
/**
- * Gets stocks
+ * Gets variants
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20010Stocks[]
+ * @return \ColorMeShop\Swagger\Model\ProductVariants[]
*/
- public function getStocks()
+ public function getVariants()
{
- return $this->container['stocks'];
+ return $this->container['variants'];
}
/**
- * Sets stocks
+ * Sets variants
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20010Stocks[] $stocks stocks
+ * @param \ColorMeShop\Swagger\Model\ProductVariants[] $variants variants
*
* @return $this
*/
- public function setStocks($stocks)
+ public function setVariants($variants)
{
- $this->container['stocks'] = $stocks;
+ $this->container['variants'] = $variants;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20011.php b/src/Swagger/Model/InlineResponse20011.php
index 4ca4788..dc684cd 100644
--- a/src/Swagger/Model/InlineResponse20011.php
+++ b/src/Swagger/Model/InlineResponse20011.php
@@ -56,7 +56,7 @@ class InlineResponse20011 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'groups' => '\ColorMeShop\Swagger\Model\InlineResponse20011Groups[]' ];
+ 'pickup' => '\ColorMeShop\Swagger\Model\InlineResponse20011Pickup' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20011 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'groups' => null ];
+ 'pickup' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'groups' => 'groups' ];
+ 'pickup' => 'pickup' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'groups' => 'setGroups' ];
+ 'pickup' => 'setPickup' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'groups' => 'getGroups' ];
+ 'pickup' => 'getPickup' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null;
+ $this->container['pickup'] = isset($data['pickup']) ? $data['pickup'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets groups
+ * Gets pickup
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20011Groups[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20011Pickup
*/
- public function getGroups()
+ public function getPickup()
{
- return $this->container['groups'];
+ return $this->container['pickup'];
}
/**
- * Sets groups
+ * Sets pickup
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20011Groups[] $groups グループ情報一覧
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20011Pickup $pickup pickup
*
* @return $this
*/
- public function setGroups($groups)
+ public function setPickup($pickup)
{
- $this->container['groups'] = $groups;
+ $this->container['pickup'] = $pickup;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20011Pickup.php b/src/Swagger/Model/InlineResponse20011Pickup.php
new file mode 100644
index 0000000..59220ca
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20011Pickup.php
@@ -0,0 +1,441 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20011Pickup Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20011Pickup implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_11_pickup';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'pickup_type' => 'int',
+'product_id' => 'int',
+'account_id' => 'string',
+'order_num' => 'int',
+'make_date' => 'int',
+'update_date' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'pickup_type' => null,
+'product_id' => null,
+'account_id' => null,
+'order_num' => null,
+'make_date' => null,
+'update_date' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'pickup_type' => 'pickup_type',
+'product_id' => 'product_id',
+'account_id' => 'account_id',
+'order_num' => 'order_num',
+'make_date' => 'make_date',
+'update_date' => 'update_date' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'pickup_type' => 'setPickupType',
+'product_id' => 'setProductId',
+'account_id' => 'setAccountId',
+'order_num' => 'setOrderNum',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'pickup_type' => 'getPickupType',
+'product_id' => 'getProductId',
+'account_id' => 'getAccountId',
+'order_num' => 'getOrderNum',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['pickup_type'] = isset($data['pickup_type']) ? $data['pickup_type'] : null;
+ $this->container['product_id'] = isset($data['product_id']) ? $data['product_id'] : null;
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['order_num'] = isset($data['order_num']) ? $data['order_num'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets pickup_type
+ *
+ * @return int
+ */
+ public function getPickupType()
+ {
+ return $this->container['pickup_type'];
+ }
+
+ /**
+ * Sets pickup_type
+ *
+ * @param int $pickup_type おすすめ商品情報種別
+ *
+ * @return $this
+ */
+ public function setPickupType($pickup_type)
+ {
+ $this->container['pickup_type'] = $pickup_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets product_id
+ *
+ * @return int
+ */
+ public function getProductId()
+ {
+ return $this->container['product_id'];
+ }
+
+ /**
+ * Sets product_id
+ *
+ * @param int $product_id 商品ID
+ *
+ * @return $this
+ */
+ public function setProductId($product_id)
+ {
+ $this->container['product_id'] = $product_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets order_num
+ *
+ * @return int
+ */
+ public function getOrderNum()
+ {
+ return $this->container['order_num'];
+ }
+
+ /**
+ * Sets order_num
+ *
+ * @param int $order_num 商品の表示順
+ *
+ * @return $this
+ */
+ public function setOrderNum($order_num)
+ {
+ $this->container['order_num'] = $order_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20012.php b/src/Swagger/Model/InlineResponse20012.php
index 641fc0c..4037239 100644
--- a/src/Swagger/Model/InlineResponse20012.php
+++ b/src/Swagger/Model/InlineResponse20012.php
@@ -56,7 +56,8 @@ class InlineResponse20012 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'categories' => '\ColorMeShop\Swagger\Model\InlineResponse20012Categories[]' ];
+ 'stocks' => '\ColorMeShop\Swagger\Model\InlineResponse20012Stocks[]',
+'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2001Meta' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +65,8 @@ class InlineResponse20012 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'categories' => null ];
+ 'stocks' => null,
+'meta' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +95,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'categories' => 'categories' ];
+ 'stocks' => 'stocks',
+'meta' => 'meta' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +104,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'categories' => 'setCategories' ];
+ 'stocks' => 'setStocks',
+'meta' => 'setMeta' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +113,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'categories' => 'getCategories' ];
+ 'stocks' => 'getStocks',
+'meta' => 'getMeta' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +174,8 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
+ $this->container['stocks'] = isset($data['stocks']) ? $data['stocks'] : null;
+ $this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
}
/**
@@ -197,25 +203,49 @@ public function valid()
/**
- * Gets categories
+ * Gets stocks
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20012Categories[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20012Stocks[]
*/
- public function getCategories()
+ public function getStocks()
{
- return $this->container['categories'];
+ return $this->container['stocks'];
}
/**
- * Sets categories
+ * Sets stocks
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20012Categories[] $categories 商品カテゴリー情報一覧
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20012Stocks[] $stocks stocks
*
* @return $this
*/
- public function setCategories($categories)
+ public function setStocks($stocks)
{
- $this->container['categories'] = $categories;
+ $this->container['stocks'] = $stocks;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2001Meta
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2001Meta $meta meta
+ *
+ * @return $this
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20012Stocks.php b/src/Swagger/Model/InlineResponse20012Stocks.php
new file mode 100644
index 0000000..48beb31
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20012Stocks.php
@@ -0,0 +1,1375 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20012Stocks Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20012Stocks implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_12_stocks';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'account_id' => 'string',
+'product_id' => 'int',
+'name' => 'string',
+'option1_value' => 'string',
+'option2_value' => 'string',
+'stocks' => 'int',
+'few_num' => 'int',
+'model_number' => 'string',
+'variant_model_number' => 'string',
+'category' => '\ColorMeShop\Swagger\Model\StockCategory',
+'display_state' => 'string',
+'sales_price' => 'int',
+'price' => 'int',
+'members_price' => 'int',
+'cost' => 'int',
+'delivery_charge' => 'int',
+'cool_charge' => 'int',
+'min_num' => 'int',
+'max_num' => 'int',
+'sale_start_date' => 'int',
+'sale_end_date' => 'int',
+'unit' => 'string',
+'weight' => 'int',
+'soldout_display' => 'bool',
+'sort' => 'int',
+'simple_expl' => 'string',
+'expl' => 'string',
+'mobile_expl' => 'string',
+'smartphone_expl' => 'string',
+'make_date' => 'int',
+'update_date' => 'int',
+'memo' => 'string',
+'image_url' => 'string',
+'mobile_image_url' => 'string',
+'thumbnail_image_url' => 'string',
+'images' => '\ColorMeShop\Swagger\Model\StockImages[]' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'account_id' => null,
+'product_id' => null,
+'name' => null,
+'option1_value' => null,
+'option2_value' => null,
+'stocks' => null,
+'few_num' => null,
+'model_number' => null,
+'variant_model_number' => null,
+'category' => null,
+'display_state' => null,
+'sales_price' => null,
+'price' => null,
+'members_price' => null,
+'cost' => null,
+'delivery_charge' => null,
+'cool_charge' => null,
+'min_num' => null,
+'max_num' => null,
+'sale_start_date' => null,
+'sale_end_date' => null,
+'unit' => null,
+'weight' => null,
+'soldout_display' => null,
+'sort' => null,
+'simple_expl' => null,
+'expl' => null,
+'mobile_expl' => null,
+'smartphone_expl' => null,
+'make_date' => null,
+'update_date' => null,
+'memo' => null,
+'image_url' => null,
+'mobile_image_url' => null,
+'thumbnail_image_url' => null,
+'images' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'account_id' => 'account_id',
+'product_id' => 'product_id',
+'name' => 'name',
+'option1_value' => 'option1_value',
+'option2_value' => 'option2_value',
+'stocks' => 'stocks',
+'few_num' => 'few_num',
+'model_number' => 'model_number',
+'variant_model_number' => 'variant_model_number',
+'category' => 'category',
+'display_state' => 'display_state',
+'sales_price' => 'sales_price',
+'price' => 'price',
+'members_price' => 'members_price',
+'cost' => 'cost',
+'delivery_charge' => 'delivery_charge',
+'cool_charge' => 'cool_charge',
+'min_num' => 'min_num',
+'max_num' => 'max_num',
+'sale_start_date' => 'sale_start_date',
+'sale_end_date' => 'sale_end_date',
+'unit' => 'unit',
+'weight' => 'weight',
+'soldout_display' => 'soldout_display',
+'sort' => 'sort',
+'simple_expl' => 'simple_expl',
+'expl' => 'expl',
+'mobile_expl' => 'mobile_expl',
+'smartphone_expl' => 'smartphone_expl',
+'make_date' => 'make_date',
+'update_date' => 'update_date',
+'memo' => 'memo',
+'image_url' => 'image_url',
+'mobile_image_url' => 'mobile_image_url',
+'thumbnail_image_url' => 'thumbnail_image_url',
+'images' => 'images' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'account_id' => 'setAccountId',
+'product_id' => 'setProductId',
+'name' => 'setName',
+'option1_value' => 'setOption1Value',
+'option2_value' => 'setOption2Value',
+'stocks' => 'setStocks',
+'few_num' => 'setFewNum',
+'model_number' => 'setModelNumber',
+'variant_model_number' => 'setVariantModelNumber',
+'category' => 'setCategory',
+'display_state' => 'setDisplayState',
+'sales_price' => 'setSalesPrice',
+'price' => 'setPrice',
+'members_price' => 'setMembersPrice',
+'cost' => 'setCost',
+'delivery_charge' => 'setDeliveryCharge',
+'cool_charge' => 'setCoolCharge',
+'min_num' => 'setMinNum',
+'max_num' => 'setMaxNum',
+'sale_start_date' => 'setSaleStartDate',
+'sale_end_date' => 'setSaleEndDate',
+'unit' => 'setUnit',
+'weight' => 'setWeight',
+'soldout_display' => 'setSoldoutDisplay',
+'sort' => 'setSort',
+'simple_expl' => 'setSimpleExpl',
+'expl' => 'setExpl',
+'mobile_expl' => 'setMobileExpl',
+'smartphone_expl' => 'setSmartphoneExpl',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate',
+'memo' => 'setMemo',
+'image_url' => 'setImageUrl',
+'mobile_image_url' => 'setMobileImageUrl',
+'thumbnail_image_url' => 'setThumbnailImageUrl',
+'images' => 'setImages' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'account_id' => 'getAccountId',
+'product_id' => 'getProductId',
+'name' => 'getName',
+'option1_value' => 'getOption1Value',
+'option2_value' => 'getOption2Value',
+'stocks' => 'getStocks',
+'few_num' => 'getFewNum',
+'model_number' => 'getModelNumber',
+'variant_model_number' => 'getVariantModelNumber',
+'category' => 'getCategory',
+'display_state' => 'getDisplayState',
+'sales_price' => 'getSalesPrice',
+'price' => 'getPrice',
+'members_price' => 'getMembersPrice',
+'cost' => 'getCost',
+'delivery_charge' => 'getDeliveryCharge',
+'cool_charge' => 'getCoolCharge',
+'min_num' => 'getMinNum',
+'max_num' => 'getMaxNum',
+'sale_start_date' => 'getSaleStartDate',
+'sale_end_date' => 'getSaleEndDate',
+'unit' => 'getUnit',
+'weight' => 'getWeight',
+'soldout_display' => 'getSoldoutDisplay',
+'sort' => 'getSort',
+'simple_expl' => 'getSimpleExpl',
+'expl' => 'getExpl',
+'mobile_expl' => 'getMobileExpl',
+'smartphone_expl' => 'getSmartphoneExpl',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate',
+'memo' => 'getMemo',
+'image_url' => 'getImageUrl',
+'mobile_image_url' => 'getMobileImageUrl',
+'thumbnail_image_url' => 'getThumbnailImageUrl',
+'images' => 'getImages' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const DISPLAY_STATE_SHOWING = 'showing';
+const DISPLAY_STATE_HIDDEN = 'hidden';
+const DISPLAY_STATE_SHOWING_FOR_MEMBERS = 'showing_for_members';
+const DISPLAY_STATE_SALE_FOR_MEMBERS = 'sale_for_members';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getDisplayStateAllowableValues()
+ {
+ return [
+ self::DISPLAY_STATE_SHOWING,
+self::DISPLAY_STATE_HIDDEN,
+self::DISPLAY_STATE_SHOWING_FOR_MEMBERS,
+self::DISPLAY_STATE_SALE_FOR_MEMBERS, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['product_id'] = isset($data['product_id']) ? $data['product_id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['option1_value'] = isset($data['option1_value']) ? $data['option1_value'] : null;
+ $this->container['option2_value'] = isset($data['option2_value']) ? $data['option2_value'] : null;
+ $this->container['stocks'] = isset($data['stocks']) ? $data['stocks'] : null;
+ $this->container['few_num'] = isset($data['few_num']) ? $data['few_num'] : null;
+ $this->container['model_number'] = isset($data['model_number']) ? $data['model_number'] : null;
+ $this->container['variant_model_number'] = isset($data['variant_model_number']) ? $data['variant_model_number'] : null;
+ $this->container['category'] = isset($data['category']) ? $data['category'] : null;
+ $this->container['display_state'] = isset($data['display_state']) ? $data['display_state'] : null;
+ $this->container['sales_price'] = isset($data['sales_price']) ? $data['sales_price'] : null;
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
+ $this->container['members_price'] = isset($data['members_price']) ? $data['members_price'] : null;
+ $this->container['cost'] = isset($data['cost']) ? $data['cost'] : null;
+ $this->container['delivery_charge'] = isset($data['delivery_charge']) ? $data['delivery_charge'] : null;
+ $this->container['cool_charge'] = isset($data['cool_charge']) ? $data['cool_charge'] : null;
+ $this->container['min_num'] = isset($data['min_num']) ? $data['min_num'] : null;
+ $this->container['max_num'] = isset($data['max_num']) ? $data['max_num'] : null;
+ $this->container['sale_start_date'] = isset($data['sale_start_date']) ? $data['sale_start_date'] : null;
+ $this->container['sale_end_date'] = isset($data['sale_end_date']) ? $data['sale_end_date'] : null;
+ $this->container['unit'] = isset($data['unit']) ? $data['unit'] : null;
+ $this->container['weight'] = isset($data['weight']) ? $data['weight'] : null;
+ $this->container['soldout_display'] = isset($data['soldout_display']) ? $data['soldout_display'] : null;
+ $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
+ $this->container['simple_expl'] = isset($data['simple_expl']) ? $data['simple_expl'] : null;
+ $this->container['expl'] = isset($data['expl']) ? $data['expl'] : null;
+ $this->container['mobile_expl'] = isset($data['mobile_expl']) ? $data['mobile_expl'] : null;
+ $this->container['smartphone_expl'] = isset($data['smartphone_expl']) ? $data['smartphone_expl'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ $this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
+ $this->container['image_url'] = isset($data['image_url']) ? $data['image_url'] : null;
+ $this->container['mobile_image_url'] = isset($data['mobile_image_url']) ? $data['mobile_image_url'] : null;
+ $this->container['thumbnail_image_url'] = isset($data['thumbnail_image_url']) ? $data['thumbnail_image_url'] : null;
+ $this->container['images'] = isset($data['images']) ? $data['images'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($this->container['display_state']) && !in_array($this->container['display_state'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets product_id
+ *
+ * @return int
+ */
+ public function getProductId()
+ {
+ return $this->container['product_id'];
+ }
+
+ /**
+ * Sets product_id
+ *
+ * @param int $product_id 商品ID
+ *
+ * @return $this
+ */
+ public function setProductId($product_id)
+ {
+ $this->container['product_id'] = $product_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 商品名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets option1_value
+ *
+ * @return string
+ */
+ public function getOption1Value()
+ {
+ return $this->container['option1_value'];
+ }
+
+ /**
+ * Sets option1_value
+ *
+ * @param string $option1_value オプション1の値
+ *
+ * @return $this
+ */
+ public function setOption1Value($option1_value)
+ {
+ $this->container['option1_value'] = $option1_value;
+
+ return $this;
+ }
+
+ /**
+ * Gets option2_value
+ *
+ * @return string
+ */
+ public function getOption2Value()
+ {
+ return $this->container['option2_value'];
+ }
+
+ /**
+ * Sets option2_value
+ *
+ * @param string $option2_value オプション2の値
+ *
+ * @return $this
+ */
+ public function setOption2Value($option2_value)
+ {
+ $this->container['option2_value'] = $option2_value;
+
+ return $this;
+ }
+
+ /**
+ * Gets stocks
+ *
+ * @return int
+ */
+ public function getStocks()
+ {
+ return $this->container['stocks'];
+ }
+
+ /**
+ * Sets stocks
+ *
+ * @param int $stocks 在庫数
+ *
+ * @return $this
+ */
+ public function setStocks($stocks)
+ {
+ $this->container['stocks'] = $stocks;
+
+ return $this;
+ }
+
+ /**
+ * Gets few_num
+ *
+ * @return int
+ */
+ public function getFewNum()
+ {
+ return $this->container['few_num'];
+ }
+
+ /**
+ * Sets few_num
+ *
+ * @param int $few_num 残りわずかとなる在庫数
+ *
+ * @return $this
+ */
+ public function setFewNum($few_num)
+ {
+ $this->container['few_num'] = $few_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets model_number
+ *
+ * @return string
+ */
+ public function getModelNumber()
+ {
+ return $this->container['model_number'];
+ }
+
+ /**
+ * Sets model_number
+ *
+ * @param string $model_number 型番
+ *
+ * @return $this
+ */
+ public function setModelNumber($model_number)
+ {
+ $this->container['model_number'] = $model_number;
+
+ return $this;
+ }
+
+ /**
+ * Gets variant_model_number
+ *
+ * @return string
+ */
+ public function getVariantModelNumber()
+ {
+ return $this->container['variant_model_number'];
+ }
+
+ /**
+ * Sets variant_model_number
+ *
+ * @param string $variant_model_number オプションの型番
+ *
+ * @return $this
+ */
+ public function setVariantModelNumber($variant_model_number)
+ {
+ $this->container['variant_model_number'] = $variant_model_number;
+
+ return $this;
+ }
+
+ /**
+ * Gets category
+ *
+ * @return \ColorMeShop\Swagger\Model\StockCategory
+ */
+ public function getCategory()
+ {
+ return $this->container['category'];
+ }
+
+ /**
+ * Sets category
+ *
+ * @param \ColorMeShop\Swagger\Model\StockCategory $category category
+ *
+ * @return $this
+ */
+ public function setCategory($category)
+ {
+ $this->container['category'] = $category;
+
+ return $this;
+ }
+
+ /**
+ * Gets display_state
+ *
+ * @return string
+ */
+ public function getDisplayState()
+ {
+ return $this->container['display_state'];
+ }
+
+ /**
+ * Sets display_state
+ *
+ * @param string $display_state 掲載設定 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能
+ *
+ * @return $this
+ */
+ public function setDisplayState($display_state)
+ {
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($display_state) && !in_array($display_state, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['display_state'] = $display_state;
+
+ return $this;
+ }
+
+ /**
+ * Gets sales_price
+ *
+ * @return int
+ */
+ public function getSalesPrice()
+ {
+ return $this->container['sales_price'];
+ }
+
+ /**
+ * Sets sales_price
+ *
+ * @param int $sales_price 販売価格
+ *
+ * @return $this
+ */
+ public function setSalesPrice($sales_price)
+ {
+ $this->container['sales_price'] = $sales_price;
+
+ return $this;
+ }
+
+ /**
+ * Gets price
+ *
+ * @return int
+ */
+ public function getPrice()
+ {
+ return $this->container['price'];
+ }
+
+ /**
+ * Sets price
+ *
+ * @param int $price 定価
+ *
+ * @return $this
+ */
+ public function setPrice($price)
+ {
+ $this->container['price'] = $price;
+
+ return $this;
+ }
+
+ /**
+ * Gets members_price
+ *
+ * @return int
+ */
+ public function getMembersPrice()
+ {
+ return $this->container['members_price'];
+ }
+
+ /**
+ * Sets members_price
+ *
+ * @param int $members_price 会員価格
+ *
+ * @return $this
+ */
+ public function setMembersPrice($members_price)
+ {
+ $this->container['members_price'] = $members_price;
+
+ return $this;
+ }
+
+ /**
+ * Gets cost
+ *
+ * @return int
+ */
+ public function getCost()
+ {
+ return $this->container['cost'];
+ }
+
+ /**
+ * Sets cost
+ *
+ * @param int $cost 原価
+ *
+ * @return $this
+ */
+ public function setCost($cost)
+ {
+ $this->container['cost'] = $cost;
+
+ return $this;
+ }
+
+ /**
+ * Gets delivery_charge
+ *
+ * @return int
+ */
+ public function getDeliveryCharge()
+ {
+ return $this->container['delivery_charge'];
+ }
+
+ /**
+ * Sets delivery_charge
+ *
+ * @param int $delivery_charge 個別送料
+ *
+ * @return $this
+ */
+ public function setDeliveryCharge($delivery_charge)
+ {
+ $this->container['delivery_charge'] = $delivery_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets cool_charge
+ *
+ * @return int
+ */
+ public function getCoolCharge()
+ {
+ return $this->container['cool_charge'];
+ }
+
+ /**
+ * Sets cool_charge
+ *
+ * @param int $cool_charge クール便の追加料金
+ *
+ * @return $this
+ */
+ public function setCoolCharge($cool_charge)
+ {
+ $this->container['cool_charge'] = $cool_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets min_num
+ *
+ * @return int
+ */
+ public function getMinNum()
+ {
+ return $this->container['min_num'];
+ }
+
+ /**
+ * Sets min_num
+ *
+ * @param int $min_num 最小購入数量
+ *
+ * @return $this
+ */
+ public function setMinNum($min_num)
+ {
+ $this->container['min_num'] = $min_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets max_num
+ *
+ * @return int
+ */
+ public function getMaxNum()
+ {
+ return $this->container['max_num'];
+ }
+
+ /**
+ * Sets max_num
+ *
+ * @param int $max_num 最大購入数量
+ *
+ * @return $this
+ */
+ public function setMaxNum($max_num)
+ {
+ $this->container['max_num'] = $max_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets sale_start_date
+ *
+ * @return int
+ */
+ public function getSaleStartDate()
+ {
+ return $this->container['sale_start_date'];
+ }
+
+ /**
+ * Sets sale_start_date
+ *
+ * @param int $sale_start_date 掲載開始時刻
+ *
+ * @return $this
+ */
+ public function setSaleStartDate($sale_start_date)
+ {
+ $this->container['sale_start_date'] = $sale_start_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets sale_end_date
+ *
+ * @return int
+ */
+ public function getSaleEndDate()
+ {
+ return $this->container['sale_end_date'];
+ }
+
+ /**
+ * Sets sale_end_date
+ *
+ * @param int $sale_end_date 掲載終了時刻
+ *
+ * @return $this
+ */
+ public function setSaleEndDate($sale_end_date)
+ {
+ $this->container['sale_end_date'] = $sale_end_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets unit
+ *
+ * @return string
+ */
+ public function getUnit()
+ {
+ return $this->container['unit'];
+ }
+
+ /**
+ * Sets unit
+ *
+ * @param string $unit 単位
+ *
+ * @return $this
+ */
+ public function setUnit($unit)
+ {
+ $this->container['unit'] = $unit;
+
+ return $this;
+ }
+
+ /**
+ * Gets weight
+ *
+ * @return int
+ */
+ public function getWeight()
+ {
+ return $this->container['weight'];
+ }
+
+ /**
+ * Sets weight
+ *
+ * @param int $weight 重量(グラム単位)
+ *
+ * @return $this
+ */
+ public function setWeight($weight)
+ {
+ $this->container['weight'] = $weight;
+
+ return $this;
+ }
+
+ /**
+ * Gets soldout_display
+ *
+ * @return bool
+ */
+ public function getSoldoutDisplay()
+ {
+ return $this->container['soldout_display'];
+ }
+
+ /**
+ * Sets soldout_display
+ *
+ * @param bool $soldout_display 売り切れているときもショップに表示するか
+ *
+ * @return $this
+ */
+ public function setSoldoutDisplay($soldout_display)
+ {
+ $this->container['soldout_display'] = $soldout_display;
+
+ return $this;
+ }
+
+ /**
+ * Gets sort
+ *
+ * @return int
+ */
+ public function getSort()
+ {
+ return $this->container['sort'];
+ }
+
+ /**
+ * Sets sort
+ *
+ * @param int $sort 表示順
+ *
+ * @return $this
+ */
+ public function setSort($sort)
+ {
+ $this->container['sort'] = $sort;
+
+ return $this;
+ }
+
+ /**
+ * Gets simple_expl
+ *
+ * @return string
+ */
+ public function getSimpleExpl()
+ {
+ return $this->container['simple_expl'];
+ }
+
+ /**
+ * Sets simple_expl
+ *
+ * @param string $simple_expl 簡易説明
+ *
+ * @return $this
+ */
+ public function setSimpleExpl($simple_expl)
+ {
+ $this->container['simple_expl'] = $simple_expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets expl
+ *
+ * @return string
+ */
+ public function getExpl()
+ {
+ return $this->container['expl'];
+ }
+
+ /**
+ * Sets expl
+ *
+ * @param string $expl 商品説明
+ *
+ * @return $this
+ */
+ public function setExpl($expl)
+ {
+ $this->container['expl'] = $expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets mobile_expl
+ *
+ * @return string
+ */
+ public function getMobileExpl()
+ {
+ return $this->container['mobile_expl'];
+ }
+
+ /**
+ * Sets mobile_expl
+ *
+ * @param string $mobile_expl フィーチャーフォン向けショップの商品説明
+ *
+ * @return $this
+ */
+ public function setMobileExpl($mobile_expl)
+ {
+ $this->container['mobile_expl'] = $mobile_expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets smartphone_expl
+ *
+ * @return string
+ */
+ public function getSmartphoneExpl()
+ {
+ return $this->container['smartphone_expl'];
+ }
+
+ /**
+ * Sets smartphone_expl
+ *
+ * @param string $smartphone_expl スマホ向けショップの商品説明
+ *
+ * @return $this
+ */
+ public function setSmartphoneExpl($smartphone_expl)
+ {
+ $this->container['smartphone_expl'] = $smartphone_expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 商品作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 商品更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets memo
+ *
+ * @return string
+ */
+ public function getMemo()
+ {
+ return $this->container['memo'];
+ }
+
+ /**
+ * Sets memo
+ *
+ * @param string $memo 備考
+ *
+ * @return $this
+ */
+ public function setMemo($memo)
+ {
+ $this->container['memo'] = $memo;
+
+ return $this;
+ }
+
+ /**
+ * Gets image_url
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['image_url'];
+ }
+
+ /**
+ * Sets image_url
+ *
+ * @param string $image_url メインの商品画像URL
+ *
+ * @return $this
+ */
+ public function setImageUrl($image_url)
+ {
+ $this->container['image_url'] = $image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets mobile_image_url
+ *
+ * @return string
+ */
+ public function getMobileImageUrl()
+ {
+ return $this->container['mobile_image_url'];
+ }
+
+ /**
+ * Sets mobile_image_url
+ *
+ * @param string $mobile_image_url メインの商品画像のモバイル用URL
+ *
+ * @return $this
+ */
+ public function setMobileImageUrl($mobile_image_url)
+ {
+ $this->container['mobile_image_url'] = $mobile_image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets thumbnail_image_url
+ *
+ * @return string
+ */
+ public function getThumbnailImageUrl()
+ {
+ return $this->container['thumbnail_image_url'];
+ }
+
+ /**
+ * Sets thumbnail_image_url
+ *
+ * @param string $thumbnail_image_url メインの商品画像のサムネイルURL
+ *
+ * @return $this
+ */
+ public function setThumbnailImageUrl($thumbnail_image_url)
+ {
+ $this->container['thumbnail_image_url'] = $thumbnail_image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets images
+ *
+ * @return \ColorMeShop\Swagger\Model\StockImages[]
+ */
+ public function getImages()
+ {
+ return $this->container['images'];
+ }
+
+ /**
+ * Sets images
+ *
+ * @param \ColorMeShop\Swagger\Model\StockImages[] $images メインの商品画像以外の3つの画像に関する、PC用とモバイル用の画像URL
+ *
+ * @return $this
+ */
+ public function setImages($images)
+ {
+ $this->container['images'] = $images;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20013.php b/src/Swagger/Model/InlineResponse20013.php
index 8f39d38..8fb77be 100644
--- a/src/Swagger/Model/InlineResponse20013.php
+++ b/src/Swagger/Model/InlineResponse20013.php
@@ -56,7 +56,7 @@ class InlineResponse20013 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'payments' => '\ColorMeShop\Swagger\Model\InlineResponse20013Payments[]' ];
+ 'groups' => '\ColorMeShop\Swagger\Model\InlineResponse20013Groups[]' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20013 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'payments' => null ];
+ 'groups' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'payments' => 'payments' ];
+ 'groups' => 'groups' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'payments' => 'setPayments' ];
+ 'groups' => 'setGroups' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'payments' => 'getPayments' ];
+ 'groups' => 'getGroups' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['payments'] = isset($data['payments']) ? $data['payments'] : null;
+ $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets payments
+ * Gets groups
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20013Payments[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20013Groups[]
*/
- public function getPayments()
+ public function getGroups()
{
- return $this->container['payments'];
+ return $this->container['groups'];
}
/**
- * Sets payments
+ * Sets groups
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20013Payments[] $payments payments
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20013Groups[] $groups グループ情報一覧
*
* @return $this
*/
- public function setPayments($payments)
+ public function setGroups($groups)
{
- $this->container['payments'] = $payments;
+ $this->container['groups'] = $groups;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20013Groups.php b/src/Swagger/Model/InlineResponse20013Groups.php
new file mode 100644
index 0000000..c6789a0
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20013Groups.php
@@ -0,0 +1,535 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20013Groups Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20013Groups implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_13_groups';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'id' => 'int',
+'account_id' => 'string',
+'name' => 'string',
+'image_url' => 'string',
+'expl' => 'string',
+'sort' => 'int',
+'display_state' => 'string',
+'parent_group_id' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+'account_id' => null,
+'name' => null,
+'image_url' => null,
+'expl' => null,
+'sort' => null,
+'display_state' => null,
+'parent_group_id' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+'account_id' => 'account_id',
+'name' => 'name',
+'image_url' => 'image_url',
+'expl' => 'expl',
+'sort' => 'sort',
+'display_state' => 'display_state',
+'parent_group_id' => 'parent_group_id' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+'account_id' => 'setAccountId',
+'name' => 'setName',
+'image_url' => 'setImageUrl',
+'expl' => 'setExpl',
+'sort' => 'setSort',
+'display_state' => 'setDisplayState',
+'parent_group_id' => 'setParentGroupId' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+'account_id' => 'getAccountId',
+'name' => 'getName',
+'image_url' => 'getImageUrl',
+'expl' => 'getExpl',
+'sort' => 'getSort',
+'display_state' => 'getDisplayState',
+'parent_group_id' => 'getParentGroupId' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const DISPLAY_STATE_SHOWING = 'showing';
+const DISPLAY_STATE_HIDDEN = 'hidden';
+const DISPLAY_STATE_SHOWING_FOR_MEMBERS = 'showing_for_members';
+const DISPLAY_STATE_SALE_FOR_MEMBERS = 'sale_for_members';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getDisplayStateAllowableValues()
+ {
+ return [
+ self::DISPLAY_STATE_SHOWING,
+self::DISPLAY_STATE_HIDDEN,
+self::DISPLAY_STATE_SHOWING_FOR_MEMBERS,
+self::DISPLAY_STATE_SALE_FOR_MEMBERS, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['image_url'] = isset($data['image_url']) ? $data['image_url'] : null;
+ $this->container['expl'] = isset($data['expl']) ? $data['expl'] : null;
+ $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
+ $this->container['display_state'] = isset($data['display_state']) ? $data['display_state'] : null;
+ $this->container['parent_group_id'] = isset($data['parent_group_id']) ? $data['parent_group_id'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($this->container['display_state']) && !in_array($this->container['display_state'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id 商品グループID
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 商品グループ名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets image_url
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['image_url'];
+ }
+
+ /**
+ * Sets image_url
+ *
+ * @param string $image_url 商品グループ画像URL
+ *
+ * @return $this
+ */
+ public function setImageUrl($image_url)
+ {
+ $this->container['image_url'] = $image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets expl
+ *
+ * @return string
+ */
+ public function getExpl()
+ {
+ return $this->container['expl'];
+ }
+
+ /**
+ * Sets expl
+ *
+ * @param string $expl 商品グループ説明
+ *
+ * @return $this
+ */
+ public function setExpl($expl)
+ {
+ $this->container['expl'] = $expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets sort
+ *
+ * @return int
+ */
+ public function getSort()
+ {
+ return $this->container['sort'];
+ }
+
+ /**
+ * Sets sort
+ *
+ * @param int $sort 表示順
+ *
+ * @return $this
+ */
+ public function setSort($sort)
+ {
+ $this->container['sort'] = $sort;
+
+ return $this;
+ }
+
+ /**
+ * Gets display_state
+ *
+ * @return string
+ */
+ public function getDisplayState()
+ {
+ return $this->container['display_state'];
+ }
+
+ /**
+ * Sets display_state
+ *
+ * @param string $display_state 掲載設定 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能
+ *
+ * @return $this
+ */
+ public function setDisplayState($display_state)
+ {
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($display_state) && !in_array($display_state, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['display_state'] = $display_state;
+
+ return $this;
+ }
+
+ /**
+ * Gets parent_group_id
+ *
+ * @return int
+ */
+ public function getParentGroupId()
+ {
+ return $this->container['parent_group_id'];
+ }
+
+ /**
+ * Sets parent_group_id
+ *
+ * @param int $parent_group_id 親の商品グループID
+ *
+ * @return $this
+ */
+ public function setParentGroupId($parent_group_id)
+ {
+ $this->container['parent_group_id'] = $parent_group_id;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20014.php b/src/Swagger/Model/InlineResponse20014.php
index 6d86379..d79e52b 100644
--- a/src/Swagger/Model/InlineResponse20014.php
+++ b/src/Swagger/Model/InlineResponse20014.php
@@ -56,7 +56,7 @@ class InlineResponse20014 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'deliveries' => '\ColorMeShop\Swagger\Model\InlineResponse20014Deliveries[]' ];
+ 'categories' => '\ColorMeShop\Swagger\Model\InlineResponse20014Categories[]' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20014 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'deliveries' => null ];
+ 'categories' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'deliveries' => 'deliveries' ];
+ 'categories' => 'categories' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'deliveries' => 'setDeliveries' ];
+ 'categories' => 'setCategories' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'deliveries' => 'getDeliveries' ];
+ 'categories' => 'getCategories' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['deliveries'] = isset($data['deliveries']) ? $data['deliveries'] : null;
+ $this->container['categories'] = isset($data['categories']) ? $data['categories'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets deliveries
+ * Gets categories
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20014Deliveries[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20014Categories[]
*/
- public function getDeliveries()
+ public function getCategories()
{
- return $this->container['deliveries'];
+ return $this->container['categories'];
}
/**
- * Sets deliveries
+ * Sets categories
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20014Deliveries[] $deliveries deliveries
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20014Categories[] $categories 商品カテゴリー情報一覧
*
* @return $this
*/
- public function setDeliveries($deliveries)
+ public function setCategories($categories)
{
- $this->container['deliveries'] = $deliveries;
+ $this->container['categories'] = $categories;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20014Categories.php b/src/Swagger/Model/InlineResponse20014Categories.php
new file mode 100644
index 0000000..3abc5b2
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20014Categories.php
@@ -0,0 +1,623 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20014Categories Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20014Categories implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_14_categories';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'id_big' => 'int',
+'id_small' => 'int',
+'account_id' => 'string',
+'name' => 'string',
+'image_url' => 'string',
+'expl' => 'string',
+'sort' => 'int',
+'display_state' => 'string',
+'make_date' => 'int',
+'update_date' => 'int',
+'children' => '\ColorMeShop\Swagger\Model\ProductCategoryChildren[]' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id_big' => null,
+'id_small' => null,
+'account_id' => null,
+'name' => null,
+'image_url' => null,
+'expl' => null,
+'sort' => null,
+'display_state' => null,
+'make_date' => null,
+'update_date' => null,
+'children' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id_big' => 'id_big',
+'id_small' => 'id_small',
+'account_id' => 'account_id',
+'name' => 'name',
+'image_url' => 'image_url',
+'expl' => 'expl',
+'sort' => 'sort',
+'display_state' => 'display_state',
+'make_date' => 'make_date',
+'update_date' => 'update_date',
+'children' => 'children' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id_big' => 'setIdBig',
+'id_small' => 'setIdSmall',
+'account_id' => 'setAccountId',
+'name' => 'setName',
+'image_url' => 'setImageUrl',
+'expl' => 'setExpl',
+'sort' => 'setSort',
+'display_state' => 'setDisplayState',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate',
+'children' => 'setChildren' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id_big' => 'getIdBig',
+'id_small' => 'getIdSmall',
+'account_id' => 'getAccountId',
+'name' => 'getName',
+'image_url' => 'getImageUrl',
+'expl' => 'getExpl',
+'sort' => 'getSort',
+'display_state' => 'getDisplayState',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate',
+'children' => 'getChildren' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const DISPLAY_STATE_SHOWING = 'showing';
+const DISPLAY_STATE_HIDDEN = 'hidden';
+const DISPLAY_STATE_MEMBERS_ONLY = 'members_only';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getDisplayStateAllowableValues()
+ {
+ return [
+ self::DISPLAY_STATE_SHOWING,
+self::DISPLAY_STATE_HIDDEN,
+self::DISPLAY_STATE_MEMBERS_ONLY, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id_big'] = isset($data['id_big']) ? $data['id_big'] : null;
+ $this->container['id_small'] = isset($data['id_small']) ? $data['id_small'] : null;
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['image_url'] = isset($data['image_url']) ? $data['image_url'] : null;
+ $this->container['expl'] = isset($data['expl']) ? $data['expl'] : null;
+ $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
+ $this->container['display_state'] = isset($data['display_state']) ? $data['display_state'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ $this->container['children'] = isset($data['children']) ? $data['children'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($this->container['display_state']) && !in_array($this->container['display_state'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id_big
+ *
+ * @return int
+ */
+ public function getIdBig()
+ {
+ return $this->container['id_big'];
+ }
+
+ /**
+ * Sets id_big
+ *
+ * @param int $id_big 大カテゴリーID
+ *
+ * @return $this
+ */
+ public function setIdBig($id_big)
+ {
+ $this->container['id_big'] = $id_big;
+
+ return $this;
+ }
+
+ /**
+ * Gets id_small
+ *
+ * @return int
+ */
+ public function getIdSmall()
+ {
+ return $this->container['id_small'];
+ }
+
+ /**
+ * Sets id_small
+ *
+ * @param int $id_small 小カテゴリーID。大カテゴリーのことを表している場合は0
+ *
+ * @return $this
+ */
+ public function setIdSmall($id_small)
+ {
+ $this->container['id_small'] = $id_small;
+
+ return $this;
+ }
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 商品カテゴリー名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets image_url
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['image_url'];
+ }
+
+ /**
+ * Sets image_url
+ *
+ * @param string $image_url 商品カテゴリー画像URL
+ *
+ * @return $this
+ */
+ public function setImageUrl($image_url)
+ {
+ $this->container['image_url'] = $image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets expl
+ *
+ * @return string
+ */
+ public function getExpl()
+ {
+ return $this->container['expl'];
+ }
+
+ /**
+ * Sets expl
+ *
+ * @param string $expl 商品カテゴリー説明
+ *
+ * @return $this
+ */
+ public function setExpl($expl)
+ {
+ $this->container['expl'] = $expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets sort
+ *
+ * @return int
+ */
+ public function getSort()
+ {
+ return $this->container['sort'];
+ }
+
+ /**
+ * Sets sort
+ *
+ * @param int $sort 表示順
+ *
+ * @return $this
+ */
+ public function setSort($sort)
+ {
+ $this->container['sort'] = $sort;
+
+ return $this;
+ }
+
+ /**
+ * Gets display_state
+ *
+ * @return string
+ */
+ public function getDisplayState()
+ {
+ return $this->container['display_state'];
+ }
+
+ /**
+ * Sets display_state
+ *
+ * @param string $display_state 掲載設定 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `members_only`: 会員にのみ掲載
+ *
+ * @return $this
+ */
+ public function setDisplayState($display_state)
+ {
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($display_state) && !in_array($display_state, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['display_state'] = $display_state;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 商品カテゴリー作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 商品カテゴリー更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets children
+ *
+ * @return \ColorMeShop\Swagger\Model\ProductCategoryChildren[]
+ */
+ public function getChildren()
+ {
+ return $this->container['children'];
+ }
+
+ /**
+ * Sets children
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductCategoryChildren[] $children 子カテゴリー
+ *
+ * @return $this
+ */
+ public function setChildren($children)
+ {
+ $this->container['children'] = $children;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20015.php b/src/Swagger/Model/InlineResponse20015.php
index fc972ab..3c9d3bf 100644
--- a/src/Swagger/Model/InlineResponse20015.php
+++ b/src/Swagger/Model/InlineResponse20015.php
@@ -56,7 +56,7 @@ class InlineResponse20015 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'delivery_date' => '\ColorMeShop\Swagger\Model\InlineResponse20015DeliveryDate' ];
+ 'payments' => '\ColorMeShop\Swagger\Model\InlineResponse20015Payments[]' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20015 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'delivery_date' => null ];
+ 'payments' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'delivery_date' => 'delivery_date' ];
+ 'payments' => 'payments' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'delivery_date' => 'setDeliveryDate' ];
+ 'payments' => 'setPayments' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'delivery_date' => 'getDeliveryDate' ];
+ 'payments' => 'getPayments' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['delivery_date'] = isset($data['delivery_date']) ? $data['delivery_date'] : null;
+ $this->container['payments'] = isset($data['payments']) ? $data['payments'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets delivery_date
+ * Gets payments
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20015DeliveryDate
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20015Payments[]
*/
- public function getDeliveryDate()
+ public function getPayments()
{
- return $this->container['delivery_date'];
+ return $this->container['payments'];
}
/**
- * Sets delivery_date
+ * Sets payments
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20015DeliveryDate $delivery_date delivery_date
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20015Payments[] $payments payments
*
* @return $this
*/
- public function setDeliveryDate($delivery_date)
+ public function setPayments($payments)
{
- $this->container['delivery_date'] = $delivery_date;
+ $this->container['payments'] = $payments;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20015Payments.php b/src/Swagger/Model/InlineResponse20015Payments.php
new file mode 100644
index 0000000..b26a672
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20015Payments.php
@@ -0,0 +1,801 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20015Payments Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20015Payments implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_15_payments';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'id' => 'int',
+'account_id' => 'string',
+'name' => 'string',
+'fee' => 'int',
+'ip_code' => 'string',
+'memo' => 'string',
+'order_end_note' => 'string',
+'memo_mobile' => 'string',
+'sort' => 'int',
+'image_url' => 'string',
+'type' => 'int',
+'display' => 'bool',
+'use_mobile' => 'bool',
+'make_date' => 'int',
+'update_date' => 'int',
+'cod' => '\ColorMeShop\Swagger\Model\PaymentCod',
+'card' => '\ColorMeShop\Swagger\Model\PaymentCard',
+'financial' => '\ColorMeShop\Swagger\Model\PaymentFinancial' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+'account_id' => null,
+'name' => null,
+'fee' => null,
+'ip_code' => null,
+'memo' => null,
+'order_end_note' => null,
+'memo_mobile' => null,
+'sort' => null,
+'image_url' => null,
+'type' => null,
+'display' => null,
+'use_mobile' => null,
+'make_date' => null,
+'update_date' => null,
+'cod' => null,
+'card' => null,
+'financial' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+'account_id' => 'account_id',
+'name' => 'name',
+'fee' => 'fee',
+'ip_code' => 'ip_code',
+'memo' => 'memo',
+'order_end_note' => 'order_end_note',
+'memo_mobile' => 'memo_mobile',
+'sort' => 'sort',
+'image_url' => 'image_url',
+'type' => 'type',
+'display' => 'display',
+'use_mobile' => 'use_mobile',
+'make_date' => 'make_date',
+'update_date' => 'update_date',
+'cod' => 'cod',
+'card' => 'card',
+'financial' => 'financial' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+'account_id' => 'setAccountId',
+'name' => 'setName',
+'fee' => 'setFee',
+'ip_code' => 'setIpCode',
+'memo' => 'setMemo',
+'order_end_note' => 'setOrderEndNote',
+'memo_mobile' => 'setMemoMobile',
+'sort' => 'setSort',
+'image_url' => 'setImageUrl',
+'type' => 'setType',
+'display' => 'setDisplay',
+'use_mobile' => 'setUseMobile',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate',
+'cod' => 'setCod',
+'card' => 'setCard',
+'financial' => 'setFinancial' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+'account_id' => 'getAccountId',
+'name' => 'getName',
+'fee' => 'getFee',
+'ip_code' => 'getIpCode',
+'memo' => 'getMemo',
+'order_end_note' => 'getOrderEndNote',
+'memo_mobile' => 'getMemoMobile',
+'sort' => 'getSort',
+'image_url' => 'getImageUrl',
+'type' => 'getType',
+'display' => 'getDisplay',
+'use_mobile' => 'getUseMobile',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate',
+'cod' => 'getCod',
+'card' => 'getCard',
+'financial' => 'getFinancial' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['fee'] = isset($data['fee']) ? $data['fee'] : null;
+ $this->container['ip_code'] = isset($data['ip_code']) ? $data['ip_code'] : null;
+ $this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
+ $this->container['order_end_note'] = isset($data['order_end_note']) ? $data['order_end_note'] : null;
+ $this->container['memo_mobile'] = isset($data['memo_mobile']) ? $data['memo_mobile'] : null;
+ $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
+ $this->container['image_url'] = isset($data['image_url']) ? $data['image_url'] : null;
+ $this->container['type'] = isset($data['type']) ? $data['type'] : null;
+ $this->container['display'] = isset($data['display']) ? $data['display'] : null;
+ $this->container['use_mobile'] = isset($data['use_mobile']) ? $data['use_mobile'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ $this->container['cod'] = isset($data['cod']) ? $data['cod'] : null;
+ $this->container['card'] = isset($data['card']) ? $data['card'] : null;
+ $this->container['financial'] = isset($data['financial']) ? $data['financial'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id 決済方法ID
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 決済名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets fee
+ *
+ * @return int
+ */
+ public function getFee()
+ {
+ return $this->container['fee'];
+ }
+
+ /**
+ * Sets fee
+ *
+ * @param int $fee 決済手数料
+ *
+ * @return $this
+ */
+ public function setFee($fee)
+ {
+ $this->container['fee'] = $fee;
+
+ return $this;
+ }
+
+ /**
+ * Gets ip_code
+ *
+ * @return string
+ */
+ public function getIpCode()
+ {
+ return $this->container['ip_code'];
+ }
+
+ /**
+ * Sets ip_code
+ *
+ * @param string $ip_code GMOイプシロン等との契約コード
+ *
+ * @return $this
+ */
+ public function setIpCode($ip_code)
+ {
+ $this->container['ip_code'] = $ip_code;
+
+ return $this;
+ }
+
+ /**
+ * Gets memo
+ *
+ * @return string
+ */
+ public function getMemo()
+ {
+ return $this->container['memo'];
+ }
+
+ /**
+ * Sets memo
+ *
+ * @param string $memo 説明
+ *
+ * @return $this
+ */
+ public function setMemo($memo)
+ {
+ $this->container['memo'] = $memo;
+
+ return $this;
+ }
+
+ /**
+ * Gets order_end_note
+ *
+ * @return string
+ */
+ public function getOrderEndNote()
+ {
+ return $this->container['order_end_note'];
+ }
+
+ /**
+ * Sets order_end_note
+ *
+ * @param string $order_end_note 説明
+ *
+ * @return $this
+ */
+ public function setOrderEndNote($order_end_note)
+ {
+ $this->container['order_end_note'] = $order_end_note;
+
+ return $this;
+ }
+
+ /**
+ * Gets memo_mobile
+ *
+ * @return string
+ */
+ public function getMemoMobile()
+ {
+ return $this->container['memo_mobile'];
+ }
+
+ /**
+ * Sets memo_mobile
+ *
+ * @param string $memo_mobile フィーチャーフォン向けショップ用の説明
+ *
+ * @return $this
+ */
+ public function setMemoMobile($memo_mobile)
+ {
+ $this->container['memo_mobile'] = $memo_mobile;
+
+ return $this;
+ }
+
+ /**
+ * Gets sort
+ *
+ * @return int
+ */
+ public function getSort()
+ {
+ return $this->container['sort'];
+ }
+
+ /**
+ * Sets sort
+ *
+ * @param int $sort 表示順
+ *
+ * @return $this
+ */
+ public function setSort($sort)
+ {
+ $this->container['sort'] = $sort;
+
+ return $this;
+ }
+
+ /**
+ * Gets image_url
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['image_url'];
+ }
+
+ /**
+ * Sets image_url
+ *
+ * @param string $image_url 決済画像URL
+ *
+ * @return $this
+ */
+ public function setImageUrl($image_url)
+ {
+ $this->container['image_url'] = $image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets type
+ *
+ * @return int
+ */
+ public function getType()
+ {
+ return $this->container['type'];
+ }
+
+ /**
+ * Sets type
+ *
+ * @param int $type 決済タイプを表す数値。 |type|決済| |---|---| |0|代引き| |1|銀行振込| |2|郵便振替| |3|クレジット(ZEUS)| |4|クロネコ@ペイメント| |5|NP後払い| |6|クレジット(イプシロン)| |7|コンビニ決済(イプシロン)| |8|カラーミークレジット| |9|その他決済| |10|ウェブマネー| |11|イーバンクデビット| |12|ネット銀行(イプシロン)| |13|電子マネー(イプシロン)| |14|ATM・コンビニ・ネット銀行決済(ペイジェント)| |15|Do-Link決済(イプシロン)| |16|ペイジー(イプシロン)| |17|後払い.com| |18|ジャパンネット銀行(送料無料キャンペーン)| |19|クロネコwebコレクト| |20|PayPal(イプシロン)| |21|Yahoo!ウォレット(イプシロン)| |22|全額ポイント利用| |23|スマートフォンキャリア決済(イプシロン)| |24|GMO PG マルチペイメントクレジットカード| |25|住信SBIネット銀行(イプシロン)| |26|GMO後払い(イプシロン)| |27|GMO後払い(GMOペイメントサービス)| |28| - | |29|ATM(ペイジー)(ペイジェント)| |30|カード(ペイジェント)| |31|コンビニ番号方式(ペイジェント)| |32|インターネットバンキング(ペイジェント)| |33|PayPal(ペイパル)| |34|SMBC GMO PAYMENTクレジットカード| |35|Amazon Pay(イプシロン)| |36|楽天ペイ(オンライン決済)| |37|銀行振込(バーチャル口座)(イプシロン)| |38|Amazon Pay(アマゾンペイ)| |39|クレジットカード(SGシステム)| |40|LINE Pay(イプシロン)| |41|PayPal Commerce Platform(ペイパル)| |42|PayPay(イプシロン)| |43|Amazon Pay V2(アマゾンペイ)| |44|Amazon Pay V2(イプシロン)| |45|Square対面決済|
+ *
+ * @return $this
+ */
+ public function setType($type)
+ {
+ $this->container['type'] = $type;
+
+ return $this;
+ }
+
+ /**
+ * Gets display
+ *
+ * @return bool
+ */
+ public function getDisplay()
+ {
+ return $this->container['display'];
+ }
+
+ /**
+ * Sets display
+ *
+ * @param bool $display 表示設定。`true`なら表示される
+ *
+ * @return $this
+ */
+ public function setDisplay($display)
+ {
+ $this->container['display'] = $display;
+
+ return $this;
+ }
+
+ /**
+ * Gets use_mobile
+ *
+ * @return bool
+ */
+ public function getUseMobile()
+ {
+ return $this->container['use_mobile'];
+ }
+
+ /**
+ * Sets use_mobile
+ *
+ * @param bool $use_mobile フィーチャーフォン向けショップでの表示設定
+ *
+ * @return $this
+ */
+ public function setUseMobile($use_mobile)
+ {
+ $this->container['use_mobile'] = $use_mobile;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 決済作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 決済更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets cod
+ *
+ * @return \ColorMeShop\Swagger\Model\PaymentCod
+ */
+ public function getCod()
+ {
+ return $this->container['cod'];
+ }
+
+ /**
+ * Sets cod
+ *
+ * @param \ColorMeShop\Swagger\Model\PaymentCod $cod cod
+ *
+ * @return $this
+ */
+ public function setCod($cod)
+ {
+ $this->container['cod'] = $cod;
+
+ return $this;
+ }
+
+ /**
+ * Gets card
+ *
+ * @return \ColorMeShop\Swagger\Model\PaymentCard
+ */
+ public function getCard()
+ {
+ return $this->container['card'];
+ }
+
+ /**
+ * Sets card
+ *
+ * @param \ColorMeShop\Swagger\Model\PaymentCard $card card
+ *
+ * @return $this
+ */
+ public function setCard($card)
+ {
+ $this->container['card'] = $card;
+
+ return $this;
+ }
+
+ /**
+ * Gets financial
+ *
+ * @return \ColorMeShop\Swagger\Model\PaymentFinancial
+ */
+ public function getFinancial()
+ {
+ return $this->container['financial'];
+ }
+
+ /**
+ * Sets financial
+ *
+ * @param \ColorMeShop\Swagger\Model\PaymentFinancial $financial financial
+ *
+ * @return $this
+ */
+ public function setFinancial($financial)
+ {
+ $this->container['financial'] = $financial;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20016.php b/src/Swagger/Model/InlineResponse20016.php
index f92a822..5d8e25f 100644
--- a/src/Swagger/Model/InlineResponse20016.php
+++ b/src/Swagger/Model/InlineResponse20016.php
@@ -56,7 +56,7 @@ class InlineResponse20016 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'gift' => '\ColorMeShop\Swagger\Model\InlineResponse20016Gift' ];
+ 'deliveries' => '\ColorMeShop\Swagger\Model\InlineResponse20016Deliveries[]' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20016 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'gift' => null ];
+ 'deliveries' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'gift' => 'gift' ];
+ 'deliveries' => 'deliveries' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'gift' => 'setGift' ];
+ 'deliveries' => 'setDeliveries' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'gift' => 'getGift' ];
+ 'deliveries' => 'getDeliveries' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['gift'] = isset($data['gift']) ? $data['gift'] : null;
+ $this->container['deliveries'] = isset($data['deliveries']) ? $data['deliveries'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets gift
+ * Gets deliveries
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20016Gift
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20016Deliveries[]
*/
- public function getGift()
+ public function getDeliveries()
{
- return $this->container['gift'];
+ return $this->container['deliveries'];
}
/**
- * Sets gift
+ * Sets deliveries
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20016Gift $gift gift
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20016Deliveries[] $deliveries deliveries
*
* @return $this
*/
- public function setGift($gift)
+ public function setDeliveries($deliveries)
{
- $this->container['gift'] = $gift;
+ $this->container['deliveries'] = $deliveries;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20016Deliveries.php b/src/Swagger/Model/InlineResponse20016Deliveries.php
new file mode 100644
index 0000000..172f106
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20016Deliveries.php
@@ -0,0 +1,1023 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20016Deliveries Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20016Deliveries implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_16_deliveries';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'id' => 'int',
+'account_id' => 'string',
+'name' => 'string',
+'method_type' => 'string',
+'image_url' => 'string',
+'charge_free_type' => 'string',
+'charge_free_limit' => 'int',
+'charge_type' => 'string',
+'charge' => '\ColorMeShop\Swagger\Model\DeliveryCharge',
+'tax_included' => 'bool',
+'slip_number_use' => 'bool',
+'slip_number_url' => 'string',
+'memo' => 'string',
+'memo2' => 'string',
+'sort' => 'int',
+'display_state' => 'string',
+'preferred_date_use' => 'bool',
+'preferred_period_use' => 'bool',
+'unavailable_payment_ids' => 'int[]',
+'make_date' => 'int',
+'update_date' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+'account_id' => null,
+'name' => null,
+'method_type' => null,
+'image_url' => null,
+'charge_free_type' => null,
+'charge_free_limit' => null,
+'charge_type' => null,
+'charge' => null,
+'tax_included' => null,
+'slip_number_use' => null,
+'slip_number_url' => null,
+'memo' => null,
+'memo2' => null,
+'sort' => null,
+'display_state' => null,
+'preferred_date_use' => null,
+'preferred_period_use' => null,
+'unavailable_payment_ids' => null,
+'make_date' => null,
+'update_date' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+'account_id' => 'account_id',
+'name' => 'name',
+'method_type' => 'method_type',
+'image_url' => 'image_url',
+'charge_free_type' => 'charge_free_type',
+'charge_free_limit' => 'charge_free_limit',
+'charge_type' => 'charge_type',
+'charge' => 'charge',
+'tax_included' => 'tax_included',
+'slip_number_use' => 'slip_number_use',
+'slip_number_url' => 'slip_number_url',
+'memo' => 'memo',
+'memo2' => 'memo2',
+'sort' => 'sort',
+'display_state' => 'display_state',
+'preferred_date_use' => 'preferred_date_use',
+'preferred_period_use' => 'preferred_period_use',
+'unavailable_payment_ids' => 'unavailable_payment_ids',
+'make_date' => 'make_date',
+'update_date' => 'update_date' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+'account_id' => 'setAccountId',
+'name' => 'setName',
+'method_type' => 'setMethodType',
+'image_url' => 'setImageUrl',
+'charge_free_type' => 'setChargeFreeType',
+'charge_free_limit' => 'setChargeFreeLimit',
+'charge_type' => 'setChargeType',
+'charge' => 'setCharge',
+'tax_included' => 'setTaxIncluded',
+'slip_number_use' => 'setSlipNumberUse',
+'slip_number_url' => 'setSlipNumberUrl',
+'memo' => 'setMemo',
+'memo2' => 'setMemo2',
+'sort' => 'setSort',
+'display_state' => 'setDisplayState',
+'preferred_date_use' => 'setPreferredDateUse',
+'preferred_period_use' => 'setPreferredPeriodUse',
+'unavailable_payment_ids' => 'setUnavailablePaymentIds',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+'account_id' => 'getAccountId',
+'name' => 'getName',
+'method_type' => 'getMethodType',
+'image_url' => 'getImageUrl',
+'charge_free_type' => 'getChargeFreeType',
+'charge_free_limit' => 'getChargeFreeLimit',
+'charge_type' => 'getChargeType',
+'charge' => 'getCharge',
+'tax_included' => 'getTaxIncluded',
+'slip_number_use' => 'getSlipNumberUse',
+'slip_number_url' => 'getSlipNumberUrl',
+'memo' => 'getMemo',
+'memo2' => 'getMemo2',
+'sort' => 'getSort',
+'display_state' => 'getDisplayState',
+'preferred_date_use' => 'getPreferredDateUse',
+'preferred_period_use' => 'getPreferredPeriodUse',
+'unavailable_payment_ids' => 'getUnavailablePaymentIds',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const METHOD_TYPE_OTHER = 'other';
+const METHOD_TYPE_YAMATO = 'yamato';
+const METHOD_TYPE_YAMATO_PICKUP = 'yamato_pickup';
+const METHOD_TYPE_SAGAWA = 'sagawa';
+const METHOD_TYPE_JP = 'jp';
+const CHARGE_FREE_TYPE_NOT_FREE = 'not_free';
+const CHARGE_FREE_TYPE_FREE = 'free';
+const CHARGE_FREE_TYPE_FREE_TO_LIMIT = 'free_to_limit';
+const CHARGE_TYPE_FIXED = 'fixed';
+const CHARGE_TYPE_BY_PRICE = 'by_price';
+const CHARGE_TYPE_BY_AREA = 'by_area';
+const CHARGE_TYPE_BY_WEIGHT = 'by_weight';
+const DISPLAY_STATE_SHOWING = 'showing';
+const DISPLAY_STATE_HIDDEN = 'hidden';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getMethodTypeAllowableValues()
+ {
+ return [
+ self::METHOD_TYPE_OTHER,
+self::METHOD_TYPE_YAMATO,
+self::METHOD_TYPE_YAMATO_PICKUP,
+self::METHOD_TYPE_SAGAWA,
+self::METHOD_TYPE_JP, ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getChargeFreeTypeAllowableValues()
+ {
+ return [
+ self::CHARGE_FREE_TYPE_NOT_FREE,
+self::CHARGE_FREE_TYPE_FREE,
+self::CHARGE_FREE_TYPE_FREE_TO_LIMIT, ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getChargeTypeAllowableValues()
+ {
+ return [
+ self::CHARGE_TYPE_FIXED,
+self::CHARGE_TYPE_BY_PRICE,
+self::CHARGE_TYPE_BY_AREA,
+self::CHARGE_TYPE_BY_WEIGHT, ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getDisplayStateAllowableValues()
+ {
+ return [
+ self::DISPLAY_STATE_SHOWING,
+self::DISPLAY_STATE_HIDDEN, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['method_type'] = isset($data['method_type']) ? $data['method_type'] : null;
+ $this->container['image_url'] = isset($data['image_url']) ? $data['image_url'] : null;
+ $this->container['charge_free_type'] = isset($data['charge_free_type']) ? $data['charge_free_type'] : null;
+ $this->container['charge_free_limit'] = isset($data['charge_free_limit']) ? $data['charge_free_limit'] : null;
+ $this->container['charge_type'] = isset($data['charge_type']) ? $data['charge_type'] : null;
+ $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null;
+ $this->container['tax_included'] = isset($data['tax_included']) ? $data['tax_included'] : null;
+ $this->container['slip_number_use'] = isset($data['slip_number_use']) ? $data['slip_number_use'] : null;
+ $this->container['slip_number_url'] = isset($data['slip_number_url']) ? $data['slip_number_url'] : null;
+ $this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
+ $this->container['memo2'] = isset($data['memo2']) ? $data['memo2'] : null;
+ $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
+ $this->container['display_state'] = isset($data['display_state']) ? $data['display_state'] : null;
+ $this->container['preferred_date_use'] = isset($data['preferred_date_use']) ? $data['preferred_date_use'] : null;
+ $this->container['preferred_period_use'] = isset($data['preferred_period_use']) ? $data['preferred_period_use'] : null;
+ $this->container['unavailable_payment_ids'] = isset($data['unavailable_payment_ids']) ? $data['unavailable_payment_ids'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getMethodTypeAllowableValues();
+ if (!is_null($this->container['method_type']) && !in_array($this->container['method_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'method_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getChargeFreeTypeAllowableValues();
+ if (!is_null($this->container['charge_free_type']) && !in_array($this->container['charge_free_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'charge_free_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getChargeTypeAllowableValues();
+ if (!is_null($this->container['charge_type']) && !in_array($this->container['charge_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'charge_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($this->container['display_state']) && !in_array($this->container['display_state'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id 配送方法ID
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 配送方法名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets method_type
+ *
+ * @return string
+ */
+ public function getMethodType()
+ {
+ return $this->container['method_type'];
+ }
+
+ /**
+ * Sets method_type
+ *
+ * @param string $method_type 配送方法区分 - `other`: そのほか - `yamato`: クロネコヤマト - `yamato_pickup`: ヤマト自宅外受け取り - `sagawa`: 佐川急便 - `jp`: 日本郵便
+ *
+ * @return $this
+ */
+ public function setMethodType($method_type)
+ {
+ $allowedValues = $this->getMethodTypeAllowableValues();
+ if (!is_null($method_type) && !in_array($method_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'method_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['method_type'] = $method_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets image_url
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['image_url'];
+ }
+
+ /**
+ * Sets image_url
+ *
+ * @param string $image_url 配送方法画像URL
+ *
+ * @return $this
+ */
+ public function setImageUrl($image_url)
+ {
+ $this->container['image_url'] = $image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge_free_type
+ *
+ * @return string
+ */
+ public function getChargeFreeType()
+ {
+ return $this->container['charge_free_type'];
+ }
+
+ /**
+ * Sets charge_free_type
+ *
+ * @param string $charge_free_type 配送料が無料になる基準 - `not_free`: 有料 - `free`: 無料 - `free_to_limit`: 注文金額が一定以上の場合は無料
+ *
+ * @return $this
+ */
+ public function setChargeFreeType($charge_free_type)
+ {
+ $allowedValues = $this->getChargeFreeTypeAllowableValues();
+ if (!is_null($charge_free_type) && !in_array($charge_free_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'charge_free_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['charge_free_type'] = $charge_free_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge_free_limit
+ *
+ * @return int
+ */
+ public function getChargeFreeLimit()
+ {
+ return $this->container['charge_free_limit'];
+ }
+
+ /**
+ * Sets charge_free_limit
+ *
+ * @param int $charge_free_limit 配送料が無料になる金額。`charge_free_type`が`free_to_limit`の場合のみ意味を持つ
+ *
+ * @return $this
+ */
+ public function setChargeFreeLimit($charge_free_limit)
+ {
+ $this->container['charge_free_limit'] = $charge_free_limit;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge_type
+ *
+ * @return string
+ */
+ public function getChargeType()
+ {
+ return $this->container['charge_type'];
+ }
+
+ /**
+ * Sets charge_type
+ *
+ * @param string $charge_type 配送料の計算方法 - `fixed`: 固定額 - `by_price`: 注文金額によって決定 - `by_area`: 配送先都道府県によって決定 - `by_weight`: 商品重量によって決定
+ *
+ * @return $this
+ */
+ public function setChargeType($charge_type)
+ {
+ $allowedValues = $this->getChargeTypeAllowableValues();
+ if (!is_null($charge_type) && !in_array($charge_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'charge_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['charge_type'] = $charge_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge
+ *
+ * @return \ColorMeShop\Swagger\Model\DeliveryCharge
+ */
+ public function getCharge()
+ {
+ return $this->container['charge'];
+ }
+
+ /**
+ * Sets charge
+ *
+ * @param \ColorMeShop\Swagger\Model\DeliveryCharge $charge charge
+ *
+ * @return $this
+ */
+ public function setCharge($charge)
+ {
+ $this->container['charge'] = $charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets tax_included
+ *
+ * @return bool
+ */
+ public function getTaxIncluded()
+ {
+ return $this->container['tax_included'];
+ }
+
+ /**
+ * Sets tax_included
+ *
+ * @param bool $tax_included 送料が税込み料金であるか否か
+ *
+ * @return $this
+ */
+ public function setTaxIncluded($tax_included)
+ {
+ $this->container['tax_included'] = $tax_included;
+
+ return $this;
+ }
+
+ /**
+ * Gets slip_number_use
+ *
+ * @return bool
+ */
+ public function getSlipNumberUse()
+ {
+ return $this->container['slip_number_use'];
+ }
+
+ /**
+ * Sets slip_number_use
+ *
+ * @param bool $slip_number_use 配送伝票番号設定を使用するか否か
+ *
+ * @return $this
+ */
+ public function setSlipNumberUse($slip_number_use)
+ {
+ $this->container['slip_number_use'] = $slip_number_use;
+
+ return $this;
+ }
+
+ /**
+ * Gets slip_number_url
+ *
+ * @return string
+ */
+ public function getSlipNumberUrl()
+ {
+ return $this->container['slip_number_url'];
+ }
+
+ /**
+ * Sets slip_number_url
+ *
+ * @param string $slip_number_url 配送伝票番号確認URL
+ *
+ * @return $this
+ */
+ public function setSlipNumberUrl($slip_number_url)
+ {
+ $this->container['slip_number_url'] = $slip_number_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets memo
+ *
+ * @return string
+ */
+ public function getMemo()
+ {
+ return $this->container['memo'];
+ }
+
+ /**
+ * Sets memo
+ *
+ * @param string $memo 配送方法の説明
+ *
+ * @return $this
+ */
+ public function setMemo($memo)
+ {
+ $this->container['memo'] = $memo;
+
+ return $this;
+ }
+
+ /**
+ * Gets memo2
+ *
+ * @return string
+ */
+ public function getMemo2()
+ {
+ return $this->container['memo2'];
+ }
+
+ /**
+ * Sets memo2
+ *
+ * @param string $memo2 フィーチャーフォン向けショップ用の配送方法説明
+ *
+ * @return $this
+ */
+ public function setMemo2($memo2)
+ {
+ $this->container['memo2'] = $memo2;
+
+ return $this;
+ }
+
+ /**
+ * Gets sort
+ *
+ * @return int
+ */
+ public function getSort()
+ {
+ return $this->container['sort'];
+ }
+
+ /**
+ * Sets sort
+ *
+ * @param int $sort 表示順
+ *
+ * @return $this
+ */
+ public function setSort($sort)
+ {
+ $this->container['sort'] = $sort;
+
+ return $this;
+ }
+
+ /**
+ * Gets display_state
+ *
+ * @return string
+ */
+ public function getDisplayState()
+ {
+ return $this->container['display_state'];
+ }
+
+ /**
+ * Sets display_state
+ *
+ * @param string $display_state 表示状態
+ *
+ * @return $this
+ */
+ public function setDisplayState($display_state)
+ {
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($display_state) && !in_array($display_state, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['display_state'] = $display_state;
+
+ return $this;
+ }
+
+ /**
+ * Gets preferred_date_use
+ *
+ * @return bool
+ */
+ public function getPreferredDateUse()
+ {
+ return $this->container['preferred_date_use'];
+ }
+
+ /**
+ * Sets preferred_date_use
+ *
+ * @param bool $preferred_date_use 配送希望日を指定可能か
+ *
+ * @return $this
+ */
+ public function setPreferredDateUse($preferred_date_use)
+ {
+ $this->container['preferred_date_use'] = $preferred_date_use;
+
+ return $this;
+ }
+
+ /**
+ * Gets preferred_period_use
+ *
+ * @return bool
+ */
+ public function getPreferredPeriodUse()
+ {
+ return $this->container['preferred_period_use'];
+ }
+
+ /**
+ * Sets preferred_period_use
+ *
+ * @param bool $preferred_period_use 配送時間帯を指定可能か
+ *
+ * @return $this
+ */
+ public function setPreferredPeriodUse($preferred_period_use)
+ {
+ $this->container['preferred_period_use'] = $preferred_period_use;
+
+ return $this;
+ }
+
+ /**
+ * Gets unavailable_payment_ids
+ *
+ * @return int[]
+ */
+ public function getUnavailablePaymentIds()
+ {
+ return $this->container['unavailable_payment_ids'];
+ }
+
+ /**
+ * Sets unavailable_payment_ids
+ *
+ * @param int[] $unavailable_payment_ids 利用不可決済方法の配列
+ *
+ * @return $this
+ */
+ public function setUnavailablePaymentIds($unavailable_payment_ids)
+ {
+ $this->container['unavailable_payment_ids'] = $unavailable_payment_ids;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 配送方法作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 配送方法更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20017.php b/src/Swagger/Model/InlineResponse20017.php
index e73b40b..a90f48d 100644
--- a/src/Swagger/Model/InlineResponse20017.php
+++ b/src/Swagger/Model/InlineResponse20017.php
@@ -56,7 +56,7 @@ class InlineResponse20017 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'shop_coupons' => '\ColorMeShop\Swagger\Model\InlineResponse20017ShopCoupons[]' ];
+ 'delivery_date' => '\ColorMeShop\Swagger\Model\InlineResponse20017DeliveryDate' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20017 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'shop_coupons' => null ];
+ 'delivery_date' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'shop_coupons' => 'shop_coupons' ];
+ 'delivery_date' => 'delivery_date' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'shop_coupons' => 'setShopCoupons' ];
+ 'delivery_date' => 'setDeliveryDate' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'shop_coupons' => 'getShopCoupons' ];
+ 'delivery_date' => 'getDeliveryDate' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['shop_coupons'] = isset($data['shop_coupons']) ? $data['shop_coupons'] : null;
+ $this->container['delivery_date'] = isset($data['delivery_date']) ? $data['delivery_date'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets shop_coupons
+ * Gets delivery_date
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20017ShopCoupons[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20017DeliveryDate
*/
- public function getShopCoupons()
+ public function getDeliveryDate()
{
- return $this->container['shop_coupons'];
+ return $this->container['delivery_date'];
}
/**
- * Sets shop_coupons
+ * Sets delivery_date
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20017ShopCoupons[] $shop_coupons shop_coupons
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20017DeliveryDate $delivery_date delivery_date
*
* @return $this
*/
- public function setShopCoupons($shop_coupons)
+ public function setDeliveryDate($delivery_date)
{
- $this->container['shop_coupons'] = $shop_coupons;
+ $this->container['delivery_date'] = $delivery_date;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20017DeliveryDate.php b/src/Swagger/Model/InlineResponse20017DeliveryDate.php
new file mode 100644
index 0000000..c7f34cc
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20017DeliveryDate.php
@@ -0,0 +1,411 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20017DeliveryDate Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20017DeliveryDate implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_17_delivery_date';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'account_id' => 'string',
+'days' => '\ColorMeShop\Swagger\Model\DeliveryDateSettingDays',
+'times' => '\ColorMeShop\Swagger\Model\DeliveryDateSettingTimes',
+'make_date' => 'int',
+'update_date' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'account_id' => null,
+'days' => null,
+'times' => null,
+'make_date' => null,
+'update_date' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'account_id' => 'account_id',
+'days' => 'days',
+'times' => 'times',
+'make_date' => 'make_date',
+'update_date' => 'update_date' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'account_id' => 'setAccountId',
+'days' => 'setDays',
+'times' => 'setTimes',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'account_id' => 'getAccountId',
+'days' => 'getDays',
+'times' => 'getTimes',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['days'] = isset($data['days']) ? $data['days'] : null;
+ $this->container['times'] = isset($data['times']) ? $data['times'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets days
+ *
+ * @return \ColorMeShop\Swagger\Model\DeliveryDateSettingDays
+ */
+ public function getDays()
+ {
+ return $this->container['days'];
+ }
+
+ /**
+ * Sets days
+ *
+ * @param \ColorMeShop\Swagger\Model\DeliveryDateSettingDays $days days
+ *
+ * @return $this
+ */
+ public function setDays($days)
+ {
+ $this->container['days'] = $days;
+
+ return $this;
+ }
+
+ /**
+ * Gets times
+ *
+ * @return \ColorMeShop\Swagger\Model\DeliveryDateSettingTimes
+ */
+ public function getTimes()
+ {
+ return $this->container['times'];
+ }
+
+ /**
+ * Sets times
+ *
+ * @param \ColorMeShop\Swagger\Model\DeliveryDateSettingTimes $times times
+ *
+ * @return $this
+ */
+ public function setTimes($times)
+ {
+ $this->container['times'] = $times;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 配送日時設定作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 配送日時設定更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018.php b/src/Swagger/Model/InlineResponse20018.php
index 621d3d3..09ca7ee 100644
--- a/src/Swagger/Model/InlineResponse20018.php
+++ b/src/Swagger/Model/InlineResponse20018.php
@@ -56,7 +56,7 @@ class InlineResponse20018 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'shop_coupon' => '\ColorMeShop\Swagger\Model\InlineResponse20017ShopCoupons' ];
+ 'gift' => '\ColorMeShop\Swagger\Model\InlineResponse20018Gift' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse20018 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'shop_coupon' => null ];
+ 'gift' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'shop_coupon' => 'shop_coupon' ];
+ 'gift' => 'gift' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'shop_coupon' => 'setShopCoupon' ];
+ 'gift' => 'setGift' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'shop_coupon' => 'getShopCoupon' ];
+ 'gift' => 'getGift' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['shop_coupon'] = isset($data['shop_coupon']) ? $data['shop_coupon'] : null;
+ $this->container['gift'] = isset($data['gift']) ? $data['gift'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets shop_coupon
+ * Gets gift
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20017ShopCoupons
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018Gift
*/
- public function getShopCoupon()
+ public function getGift()
{
- return $this->container['shop_coupon'];
+ return $this->container['gift'];
}
/**
- * Sets shop_coupon
+ * Sets gift
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20017ShopCoupons $shop_coupon shop_coupon
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018Gift $gift gift
*
* @return $this
*/
- public function setShopCoupon($shop_coupon)
+ public function setGift($gift)
{
- $this->container['shop_coupon'] = $shop_coupon;
+ $this->container['gift'] = $gift;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse20018Gift.php b/src/Swagger/Model/InlineResponse20018Gift.php
new file mode 100644
index 0000000..853e451
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018Gift.php
@@ -0,0 +1,471 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018Gift Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018Gift implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'account_id' => 'string',
+'enabled' => 'bool',
+'noshi' => '\ColorMeShop\Swagger\Model\InlineResponse20018GiftNoshi',
+'card' => '\ColorMeShop\Swagger\Model\InlineResponse20018GiftCard',
+'wrapping' => '\ColorMeShop\Swagger\Model\InlineResponse20018GiftWrapping',
+'make_date' => 'int',
+'update_date' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'account_id' => null,
+'enabled' => null,
+'noshi' => null,
+'card' => null,
+'wrapping' => null,
+'make_date' => null,
+'update_date' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'account_id' => 'account_id',
+'enabled' => 'enabled',
+'noshi' => 'noshi',
+'card' => 'card',
+'wrapping' => 'wrapping',
+'make_date' => 'make_date',
+'update_date' => 'update_date' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'account_id' => 'setAccountId',
+'enabled' => 'setEnabled',
+'noshi' => 'setNoshi',
+'card' => 'setCard',
+'wrapping' => 'setWrapping',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'account_id' => 'getAccountId',
+'enabled' => 'getEnabled',
+'noshi' => 'getNoshi',
+'card' => 'getCard',
+'wrapping' => 'getWrapping',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null;
+ $this->container['noshi'] = isset($data['noshi']) ? $data['noshi'] : null;
+ $this->container['card'] = isset($data['card']) ? $data['card'] : null;
+ $this->container['wrapping'] = isset($data['wrapping']) ? $data['wrapping'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id account_id
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets enabled
+ *
+ * @return bool
+ */
+ public function getEnabled()
+ {
+ return $this->container['enabled'];
+ }
+
+ /**
+ * Sets enabled
+ *
+ * @param bool $enabled enabled
+ *
+ * @return $this
+ */
+ public function setEnabled($enabled)
+ {
+ $this->container['enabled'] = $enabled;
+
+ return $this;
+ }
+
+ /**
+ * Gets noshi
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018GiftNoshi
+ */
+ public function getNoshi()
+ {
+ return $this->container['noshi'];
+ }
+
+ /**
+ * Sets noshi
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018GiftNoshi $noshi noshi
+ *
+ * @return $this
+ */
+ public function setNoshi($noshi)
+ {
+ $this->container['noshi'] = $noshi;
+
+ return $this;
+ }
+
+ /**
+ * Gets card
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018GiftCard
+ */
+ public function getCard()
+ {
+ return $this->container['card'];
+ }
+
+ /**
+ * Sets card
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018GiftCard $card card
+ *
+ * @return $this
+ */
+ public function setCard($card)
+ {
+ $this->container['card'] = $card;
+
+ return $this;
+ }
+
+ /**
+ * Gets wrapping
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018GiftWrapping
+ */
+ public function getWrapping()
+ {
+ return $this->container['wrapping'];
+ }
+
+ /**
+ * Sets wrapping
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018GiftWrapping $wrapping wrapping
+ *
+ * @return $this
+ */
+ public function setWrapping($wrapping)
+ {
+ $this->container['wrapping'] = $wrapping;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date make_date
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date update_date
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018GiftCard.php b/src/Swagger/Model/InlineResponse20018GiftCard.php
new file mode 100644
index 0000000..b73fda4
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018GiftCard.php
@@ -0,0 +1,381 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018GiftCard Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018GiftCard implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift_card';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'enabled' => 'bool',
+'text_enabled' => 'bool',
+'types' => '\ColorMeShop\Swagger\Model\InlineResponse20018GiftCardTypes[]',
+'comment' => 'string' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'enabled' => null,
+'text_enabled' => null,
+'types' => null,
+'comment' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'enabled' => 'enabled',
+'text_enabled' => 'text_enabled',
+'types' => 'types',
+'comment' => 'comment' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'enabled' => 'setEnabled',
+'text_enabled' => 'setTextEnabled',
+'types' => 'setTypes',
+'comment' => 'setComment' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'enabled' => 'getEnabled',
+'text_enabled' => 'getTextEnabled',
+'types' => 'getTypes',
+'comment' => 'getComment' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null;
+ $this->container['text_enabled'] = isset($data['text_enabled']) ? $data['text_enabled'] : null;
+ $this->container['types'] = isset($data['types']) ? $data['types'] : null;
+ $this->container['comment'] = isset($data['comment']) ? $data['comment'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets enabled
+ *
+ * @return bool
+ */
+ public function getEnabled()
+ {
+ return $this->container['enabled'];
+ }
+
+ /**
+ * Sets enabled
+ *
+ * @param bool $enabled enabled
+ *
+ * @return $this
+ */
+ public function setEnabled($enabled)
+ {
+ $this->container['enabled'] = $enabled;
+
+ return $this;
+ }
+
+ /**
+ * Gets text_enabled
+ *
+ * @return bool
+ */
+ public function getTextEnabled()
+ {
+ return $this->container['text_enabled'];
+ }
+
+ /**
+ * Sets text_enabled
+ *
+ * @param bool $text_enabled text_enabled
+ *
+ * @return $this
+ */
+ public function setTextEnabled($text_enabled)
+ {
+ $this->container['text_enabled'] = $text_enabled;
+
+ return $this;
+ }
+
+ /**
+ * Gets types
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018GiftCardTypes[]
+ */
+ public function getTypes()
+ {
+ return $this->container['types'];
+ }
+
+ /**
+ * Sets types
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018GiftCardTypes[] $types types
+ *
+ * @return $this
+ */
+ public function setTypes($types)
+ {
+ $this->container['types'] = $types;
+
+ return $this;
+ }
+
+ /**
+ * Gets comment
+ *
+ * @return string
+ */
+ public function getComment()
+ {
+ return $this->container['comment'];
+ }
+
+ /**
+ * Sets comment
+ *
+ * @param string $comment comment
+ *
+ * @return $this
+ */
+ public function setComment($comment)
+ {
+ $this->container['comment'] = $comment;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018GiftCardTypes.php b/src/Swagger/Model/InlineResponse20018GiftCardTypes.php
new file mode 100644
index 0000000..b18aa84
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018GiftCardTypes.php
@@ -0,0 +1,321 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018GiftCardTypes Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018GiftCardTypes implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift_card_types';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'name' => 'string',
+'charge' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+'charge' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+'charge' => 'charge' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+'charge' => 'setCharge' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+'charge' => 'getCharge' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name name
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge
+ *
+ * @return int
+ */
+ public function getCharge()
+ {
+ return $this->container['charge'];
+ }
+
+ /**
+ * Sets charge
+ *
+ * @param int $charge charge
+ *
+ * @return $this
+ */
+ public function setCharge($charge)
+ {
+ $this->container['charge'] = $charge;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018GiftNoshi.php b/src/Swagger/Model/InlineResponse20018GiftNoshi.php
new file mode 100644
index 0000000..021809f
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018GiftNoshi.php
@@ -0,0 +1,411 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018GiftNoshi Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018GiftNoshi implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift_noshi';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'enabled' => 'bool',
+'text_enabled' => 'bool',
+'text_charge' => 'int',
+'types' => '\ColorMeShop\Swagger\Model\InlineResponse20018GiftNoshiTypes[]',
+'comment' => 'string' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'enabled' => null,
+'text_enabled' => null,
+'text_charge' => null,
+'types' => null,
+'comment' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'enabled' => 'enabled',
+'text_enabled' => 'text_enabled',
+'text_charge' => 'text_charge',
+'types' => 'types',
+'comment' => 'comment' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'enabled' => 'setEnabled',
+'text_enabled' => 'setTextEnabled',
+'text_charge' => 'setTextCharge',
+'types' => 'setTypes',
+'comment' => 'setComment' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'enabled' => 'getEnabled',
+'text_enabled' => 'getTextEnabled',
+'text_charge' => 'getTextCharge',
+'types' => 'getTypes',
+'comment' => 'getComment' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null;
+ $this->container['text_enabled'] = isset($data['text_enabled']) ? $data['text_enabled'] : null;
+ $this->container['text_charge'] = isset($data['text_charge']) ? $data['text_charge'] : null;
+ $this->container['types'] = isset($data['types']) ? $data['types'] : null;
+ $this->container['comment'] = isset($data['comment']) ? $data['comment'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets enabled
+ *
+ * @return bool
+ */
+ public function getEnabled()
+ {
+ return $this->container['enabled'];
+ }
+
+ /**
+ * Sets enabled
+ *
+ * @param bool $enabled enabled
+ *
+ * @return $this
+ */
+ public function setEnabled($enabled)
+ {
+ $this->container['enabled'] = $enabled;
+
+ return $this;
+ }
+
+ /**
+ * Gets text_enabled
+ *
+ * @return bool
+ */
+ public function getTextEnabled()
+ {
+ return $this->container['text_enabled'];
+ }
+
+ /**
+ * Sets text_enabled
+ *
+ * @param bool $text_enabled text_enabled
+ *
+ * @return $this
+ */
+ public function setTextEnabled($text_enabled)
+ {
+ $this->container['text_enabled'] = $text_enabled;
+
+ return $this;
+ }
+
+ /**
+ * Gets text_charge
+ *
+ * @return int
+ */
+ public function getTextCharge()
+ {
+ return $this->container['text_charge'];
+ }
+
+ /**
+ * Sets text_charge
+ *
+ * @param int $text_charge text_charge
+ *
+ * @return $this
+ */
+ public function setTextCharge($text_charge)
+ {
+ $this->container['text_charge'] = $text_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets types
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018GiftNoshiTypes[]
+ */
+ public function getTypes()
+ {
+ return $this->container['types'];
+ }
+
+ /**
+ * Sets types
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018GiftNoshiTypes[] $types types
+ *
+ * @return $this
+ */
+ public function setTypes($types)
+ {
+ $this->container['types'] = $types;
+
+ return $this;
+ }
+
+ /**
+ * Gets comment
+ *
+ * @return string
+ */
+ public function getComment()
+ {
+ return $this->container['comment'];
+ }
+
+ /**
+ * Sets comment
+ *
+ * @param string $comment comment
+ *
+ * @return $this
+ */
+ public function setComment($comment)
+ {
+ $this->container['comment'] = $comment;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018GiftNoshiTypes.php b/src/Swagger/Model/InlineResponse20018GiftNoshiTypes.php
new file mode 100644
index 0000000..1ee17cd
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018GiftNoshiTypes.php
@@ -0,0 +1,321 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018GiftNoshiTypes Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018GiftNoshiTypes implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift_noshi_types';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'name' => 'string',
+'charge' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+'charge' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+'charge' => 'charge' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+'charge' => 'setCharge' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+'charge' => 'getCharge' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name name
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge
+ *
+ * @return int
+ */
+ public function getCharge()
+ {
+ return $this->container['charge'];
+ }
+
+ /**
+ * Sets charge
+ *
+ * @param int $charge charge
+ *
+ * @return $this
+ */
+ public function setCharge($charge)
+ {
+ $this->container['charge'] = $charge;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018GiftWrapping.php b/src/Swagger/Model/InlineResponse20018GiftWrapping.php
new file mode 100644
index 0000000..008e8b1
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018GiftWrapping.php
@@ -0,0 +1,351 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018GiftWrapping Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018GiftWrapping implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift_wrapping';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'enabled' => 'bool',
+'types' => '\ColorMeShop\Swagger\Model\InlineResponse20018GiftWrappingTypes[]',
+'comment' => 'string' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'enabled' => null,
+'types' => null,
+'comment' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'enabled' => 'enabled',
+'types' => 'types',
+'comment' => 'comment' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'enabled' => 'setEnabled',
+'types' => 'setTypes',
+'comment' => 'setComment' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'enabled' => 'getEnabled',
+'types' => 'getTypes',
+'comment' => 'getComment' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null;
+ $this->container['types'] = isset($data['types']) ? $data['types'] : null;
+ $this->container['comment'] = isset($data['comment']) ? $data['comment'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets enabled
+ *
+ * @return bool
+ */
+ public function getEnabled()
+ {
+ return $this->container['enabled'];
+ }
+
+ /**
+ * Sets enabled
+ *
+ * @param bool $enabled enabled
+ *
+ * @return $this
+ */
+ public function setEnabled($enabled)
+ {
+ $this->container['enabled'] = $enabled;
+
+ return $this;
+ }
+
+ /**
+ * Gets types
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20018GiftWrappingTypes[]
+ */
+ public function getTypes()
+ {
+ return $this->container['types'];
+ }
+
+ /**
+ * Sets types
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20018GiftWrappingTypes[] $types types
+ *
+ * @return $this
+ */
+ public function setTypes($types)
+ {
+ $this->container['types'] = $types;
+
+ return $this;
+ }
+
+ /**
+ * Gets comment
+ *
+ * @return string
+ */
+ public function getComment()
+ {
+ return $this->container['comment'];
+ }
+
+ /**
+ * Sets comment
+ *
+ * @param string $comment comment
+ *
+ * @return $this
+ */
+ public function setComment($comment)
+ {
+ $this->container['comment'] = $comment;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20018GiftWrappingTypes.php b/src/Swagger/Model/InlineResponse20018GiftWrappingTypes.php
new file mode 100644
index 0000000..ab59eb3
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20018GiftWrappingTypes.php
@@ -0,0 +1,321 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20018GiftWrappingTypes Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20018GiftWrappingTypes implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_18_gift_wrapping_types';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'name' => 'string',
+'charge' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+'charge' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+'charge' => 'charge' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+'charge' => 'setCharge' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+'charge' => 'getCharge' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name name
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets charge
+ *
+ * @return int
+ */
+ public function getCharge()
+ {
+ return $this->container['charge'];
+ }
+
+ /**
+ * Sets charge
+ *
+ * @param int $charge charge
+ *
+ * @return $this
+ */
+ public function setCharge($charge)
+ {
+ $this->container['charge'] = $charge;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse20019.php b/src/Swagger/Model/InlineResponse20019.php
index 4cb8d89..e54e278 100644
--- a/src/Swagger/Model/InlineResponse20019.php
+++ b/src/Swagger/Model/InlineResponse20019.php
@@ -13,14 +13,13 @@
/**
* カラーミーショップ API
*
- * # カラーミーショップ API [カラーミーショップ](https://shop-pro.jp) APIでは、受注の検索や商品情報の更新を行うことができます。 ## 利用手順 はじめに、カラーミーデベロッパーアカウントを用意します。[デベロッパー登録ページ](https://api.shop-pro.jp/developers/sign_up)から登録してください。 次に、[登録ページ](https://api.shop-pro.jp/oauth/applications/new)からアプリケーション登録を行ってください。 スマートフォンのWebViewを利用する場合は、リダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を入力してください。 その後、カラーミーショップアカウントの認証ページを開きます。認証ページのURLは、`https://api.shop-pro.jp/oauth/authorize`に必要なパラメータをつけたものです。 |パラメータ名|値| |---|---| |`client_id`|アプリケーション詳細画面で確認できるクライアントID| |`response_type`|\"code\"という文字列| |`scope`| 別表参照| |`redirect_uri`|アプリケーション登録時に入力したリダイレクトURI| `scope`は、以下のうち、アプリケーションが利用したい機能をスペース区切りで指定してください。 |スコープ|機能| |---|---| |`read_products`|商品データの参照| |`write_products`|在庫データの更新| |`read_sales`|受注・顧客データの参照| |`write_sales`|受注データの更新| 以下のようなURLとなります。 ``` https://api.shop-pro.jp/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code&scope=read_products%20write_products ``` 初めてこのページを訪れる場合は、カラーミーショップアカウントのIDとパスワードの入力を求められます。 承認ボタンを押すと、このアプリケーションがショップのデータにアクセスすることが許可され、リダイレクトURIへリダイレクトされます。 承認された場合は、`code`というクエリパラメータに認可コードが付与されます。承認がキャンセルされた、またはエラーが起きた場合は、 `error`パラメータにエラーの内容を表す文字列が与えられます。 アプリケーション登録時のリダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を指定した場合は、以下のようなURLにリダイレクトされます。 末尾のパスが認可コードになっています。 ``` https://api.shop-pro.jp/oauth/authorize/AUTH_CODE ``` 認可コードの有効期限は発行から10分間です。 最後に、認可コードとアクセストークンを交換します。以下のパラメータを付けて、`https://api.shop-pro.jp/oauth/token`へリクエストを送ります。 |パラメータ名|値| |---|---| |`client_id`|アプリケーション詳細画面に表示されているクライアントID| |`client_secret`|アプリケーション詳細画面に表示されているクライアントシークレット| |`code`|取得した認可コード| |`grant_type`|\"authorization_code\"という文字列| |`redirect_uri`|アプリケーション登録時に入力したリダイレクトURI| ```console # curl での例 $ curl -X POST \\ -d'client_id=CLIENT_ID' \\ -d'client_secret=CLIENT_SECRET' \\ -d'code=CODE' \\ -d'grant_type=authorization_code' \\ -d'redirect_uri=REDIRECT_URI' \\ 'https://api.shop-pro.jp/oauth/token' ``` リクエストが成功すると、以下のようなJSONが返ってきます。 ```json { \"access_token\": \"d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX\", \"token_type\": \"bearer\", \"scope\": \"read_products write_products\" } ``` アクセストークンに有効期限はありませんが、許可済みアプリケーション一覧画面から失効させることができます。なお、同じ認可コードをアクセストークンに交換できるのは1度だけです。 取得したアクセストークンは、Authorizationヘッダに入れて使用します。以下にショップ情報を取得する際の例を示します。 ```console # curlの例 $ curl -H 'Authorization: Bearer d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX' https://api.shop-pro.jp/v1/shop.json ``` ## エラー カラーミーショップAPI v1では - エラーコード - エラーメッセージ - ステータスコード の配列でエラーを表現します。以下に例を示します。 ```json { \"errors\": [ { \"code\": 404100, \"message\": \"レコードが見つかりませんでした。\", \"status\": 404 } ] } ```
+ * # カラーミーショップ API ## 利用手順 ### OAuthアプリケーションの登録 デベロッパーアカウントをお持ちでない場合は作成します。[デベロッパー登録ページ](https://api.shop-pro.jp/developers/sign_up)から登録してください。 次に、[登録ページ](https://api.shop-pro.jp/oauth/applications/new)からアプリ登録を行ってください。 スマートフォンのWebViewを利用する場合は、リダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を入力してください。 ### 認可 カラーミーショップアカウントの認証ページを開きます。認証ページのURLは、`https://api.shop-pro.jp/oauth/authorize`に必要なパラメータをつけたものです。 |パラメータ名|値| |---|---| |`client_id`|アプリ詳細画面で確認できるクライアントID| |`response_type`|\"code\"を指定| |`scope`| 別表参照| |`redirect_uri`|アプリ登録時に入力したリダイレクトURI| `scope`は、以下のうち、アプリが利用したい機能をスペース区切りで指定してください。 |スコープ|機能| |---|---| |`read_products`|商品データの参照| |`write_products`|在庫データの更新| |`read_sales`|受注・顧客データの参照| |`write_sales`|受注データの更新| |`read_shop_coupons`|ショップクーポンの参照| 以下のようなURLとなります。 ``` https://api.shop-pro.jp/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code&scope=read_products%20write_products ``` 初めてこのページを訪れる場合は、カラーミーショップアカウントのログインIDとパスワードの入力を求められます。 ログイン後の認証ページでアプリとの連携が承認された場合は、`code`というクエリパラメータに認可コードが付与されます。承認がキャンセルされた、またはエラーが起きた場合は、 `error`パラメータにエラーの内容を表す文字列が与えられます。 アプリ登録時のリダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を指定した場合は、以下のようなURLにリダイレクトされ、 認可コードがURLの末尾に付与されます。 ``` https://api.shop-pro.jp/oauth/authorize/AUTH_CODE ``` 認可コードの有効期限は発行から10分間です。 ### 認可コードをアクセストークンに交換 以下のパラメータを付けて、`https://api.shop-pro.jp/oauth/token`へリクエストを送ります。 |パラメータ名|値| |---|---| |`client_id`|アプリ詳細画面に表示されているクライアントID| |`client_secret`|アプリ詳細画面に表示されているクライアントシークレット| |`code`|取得した認可コード| |`grant_type`|\"authorization_code\"を指定| |`redirect_uri`|アプリ登録時に入力したリダイレクトURI| curlによるリクエストの例を以下に示します。 ```console $ curl -X POST \\ -d'client_id=CLIENT_ID' \\ -d'client_secret=CLIENT_SECRET' \\ -d'code=CODE' \\ -d'grant_type=authorization_code' \\ -d'redirect_uri=REDIRECT_URI' \\ 'https://api.shop-pro.jp/oauth/token' ``` リクエストが成功すると、以下のようなJSONが返却されます ```json { \"access_token\": \"d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX\", \"token_type\": \"bearer\", \"scope\": \"read_products write_products\" } ``` アクセストークンに有効期限はありませんが、[許可済みアプリ一覧画面](https://admin.shop-pro.jp/?mode=app_use_lst)から失効させることができます。なお、同じ認可コードをアクセストークンに交換できるのは1度だけです。 ### APIの利用 取得したアクセストークンは、Authorizationヘッダに入れて使用します。以下にショップ情報を取得する例を示します。 ```console $ curl -H 'Authorization: Bearer d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX' https://api.shop-pro.jp/v1/shop.json ``` ## エラー カラーミーショップAPIでは、以下の形式の配列でエラーを表現します。 - `code` エラーコード - `message` エラーメッセージ - `status` ステータスコード ```json { \"errors\": [ { \"code\": 404100, \"message\": \"レコードが見つかりませんでした。\", \"status\": 404 } ] } ``` ## 都道府県コードについて APIを利用して都道府県コードを更新したり、レスポンスを参照される際には以下の表を参考にしてください。 都道府県コード一覧
|id|都道府県| |---|---| |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|海外|
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.0
+ * Swagger Codegen version: 3.0.27
*/
-
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
@@ -57,8 +56,7 @@ class InlineResponse20019 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'application_charge' => '\ColorMeShop\Swagger\Model\ApplicationCharge'
- ];
+ 'shop_coupons' => '\ColorMeShop\Swagger\Model\InlineResponse20019ShopCoupons[]' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -66,8 +64,7 @@ class InlineResponse20019 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'application_charge' => null
- ];
+ 'shop_coupons' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -96,8 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'application_charge' => 'application_charge'
- ];
+ 'shop_coupons' => 'shop_coupons' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -105,8 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'application_charge' => 'setApplicationCharge'
- ];
+ 'shop_coupons' => 'setShopCoupons' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -114,8 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'application_charge' => 'getApplicationCharge'
- ];
+ 'shop_coupons' => 'getShopCoupons' ];
/**
* Array of attributes where the key is the local name,
@@ -160,8 +154,6 @@ public function getModelName()
-
-
/**
* Associative array for storing property values
*
@@ -177,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['application_charge'] = isset($data['application_charge']) ? $data['application_charge'] : null;
+ $this->container['shop_coupons'] = isset($data['shop_coupons']) ? $data['shop_coupons'] : null;
}
/**
@@ -200,31 +192,30 @@ public function listInvalidProperties()
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
/**
- * Gets application_charge
+ * Gets shop_coupons
*
- * @return \ColorMeShop\Swagger\Model\ApplicationCharge
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20019ShopCoupons[]
*/
- public function getApplicationCharge()
+ public function getShopCoupons()
{
- return $this->container['application_charge'];
+ return $this->container['shop_coupons'];
}
/**
- * Sets application_charge
+ * Sets shop_coupons
*
- * @param \ColorMeShop\Swagger\Model\ApplicationCharge $application_charge application_charge
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20019ShopCoupons[] $shop_coupons shop_coupons
*
* @return $this
*/
- public function setApplicationCharge($application_charge)
+ public function setShopCoupons($shop_coupons)
{
- $this->container['application_charge'] = $application_charge;
+ $this->container['shop_coupons'] = $shop_coupons;
return $this;
}
@@ -298,5 +289,3 @@ public function __toString()
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
-
-
diff --git a/src/Swagger/Model/InlineResponse20019ShopCoupons.php b/src/Swagger/Model/InlineResponse20019ShopCoupons.php
new file mode 100644
index 0000000..2a9a44a
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse20019ShopCoupons.php
@@ -0,0 +1,805 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse20019ShopCoupons Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse20019ShopCoupons implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_19_shop_coupons';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'id' => 'int',
+'name' => 'string',
+'code' => 'string',
+'coupon_type' => 'string',
+'discount_amount' => 'int',
+'minimum_amount' => 'int',
+'starts_at' => 'int',
+'ends_at' => 'int',
+'total_usage_limit' => 'int',
+'usage_limit' => 'string',
+'group_limit_type' => 'string',
+'status' => 'string',
+'created_at' => 'int',
+'updated_at' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+'name' => null,
+'code' => null,
+'coupon_type' => null,
+'discount_amount' => null,
+'minimum_amount' => null,
+'starts_at' => null,
+'ends_at' => null,
+'total_usage_limit' => null,
+'usage_limit' => null,
+'group_limit_type' => null,
+'status' => null,
+'created_at' => null,
+'updated_at' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+'name' => 'name',
+'code' => 'code',
+'coupon_type' => 'coupon_type',
+'discount_amount' => 'discount_amount',
+'minimum_amount' => 'minimum_amount',
+'starts_at' => 'starts_at',
+'ends_at' => 'ends_at',
+'total_usage_limit' => 'total_usage_limit',
+'usage_limit' => 'usage_limit',
+'group_limit_type' => 'group_limit_type',
+'status' => 'status',
+'created_at' => 'created_at',
+'updated_at' => 'updated_at' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+'name' => 'setName',
+'code' => 'setCode',
+'coupon_type' => 'setCouponType',
+'discount_amount' => 'setDiscountAmount',
+'minimum_amount' => 'setMinimumAmount',
+'starts_at' => 'setStartsAt',
+'ends_at' => 'setEndsAt',
+'total_usage_limit' => 'setTotalUsageLimit',
+'usage_limit' => 'setUsageLimit',
+'group_limit_type' => 'setGroupLimitType',
+'status' => 'setStatus',
+'created_at' => 'setCreatedAt',
+'updated_at' => 'setUpdatedAt' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+'name' => 'getName',
+'code' => 'getCode',
+'coupon_type' => 'getCouponType',
+'discount_amount' => 'getDiscountAmount',
+'minimum_amount' => 'getMinimumAmount',
+'starts_at' => 'getStartsAt',
+'ends_at' => 'getEndsAt',
+'total_usage_limit' => 'getTotalUsageLimit',
+'usage_limit' => 'getUsageLimit',
+'group_limit_type' => 'getGroupLimitType',
+'status' => 'getStatus',
+'created_at' => 'getCreatedAt',
+'updated_at' => 'getUpdatedAt' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const COUPON_TYPE_AMOUNT = 'amount';
+const COUPON_TYPE_RATE = 'rate';
+const COUPON_TYPE_DELIVERY_CHARGE = 'delivery_charge';
+const USAGE_LIMIT_INDISPOSABLE = 'indisposable';
+const USAGE_LIMIT_DISPOSABLE = 'disposable';
+const GROUP_LIMIT_TYPE_NONE = 'none';
+const GROUP_LIMIT_TYPE_INCLUDING = 'including';
+const GROUP_LIMIT_TYPE_EXCLUDING = 'excluding';
+const STATUS_UNAVAILABLE = 'unavailable';
+const STATUS_AVAILABLE = 'available';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getCouponTypeAllowableValues()
+ {
+ return [
+ self::COUPON_TYPE_AMOUNT,
+self::COUPON_TYPE_RATE,
+self::COUPON_TYPE_DELIVERY_CHARGE, ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getUsageLimitAllowableValues()
+ {
+ return [
+ self::USAGE_LIMIT_INDISPOSABLE,
+self::USAGE_LIMIT_DISPOSABLE, ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getGroupLimitTypeAllowableValues()
+ {
+ return [
+ self::GROUP_LIMIT_TYPE_NONE,
+self::GROUP_LIMIT_TYPE_INCLUDING,
+self::GROUP_LIMIT_TYPE_EXCLUDING, ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getStatusAllowableValues()
+ {
+ return [
+ self::STATUS_UNAVAILABLE,
+self::STATUS_AVAILABLE, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['code'] = isset($data['code']) ? $data['code'] : null;
+ $this->container['coupon_type'] = isset($data['coupon_type']) ? $data['coupon_type'] : null;
+ $this->container['discount_amount'] = isset($data['discount_amount']) ? $data['discount_amount'] : null;
+ $this->container['minimum_amount'] = isset($data['minimum_amount']) ? $data['minimum_amount'] : null;
+ $this->container['starts_at'] = isset($data['starts_at']) ? $data['starts_at'] : null;
+ $this->container['ends_at'] = isset($data['ends_at']) ? $data['ends_at'] : null;
+ $this->container['total_usage_limit'] = isset($data['total_usage_limit']) ? $data['total_usage_limit'] : null;
+ $this->container['usage_limit'] = isset($data['usage_limit']) ? $data['usage_limit'] : null;
+ $this->container['group_limit_type'] = isset($data['group_limit_type']) ? $data['group_limit_type'] : null;
+ $this->container['status'] = isset($data['status']) ? $data['status'] : null;
+ $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null;
+ $this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getCouponTypeAllowableValues();
+ if (!is_null($this->container['coupon_type']) && !in_array($this->container['coupon_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'coupon_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getUsageLimitAllowableValues();
+ if (!is_null($this->container['usage_limit']) && !in_array($this->container['usage_limit'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'usage_limit', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getGroupLimitTypeAllowableValues();
+ if (!is_null($this->container['group_limit_type']) && !in_array($this->container['group_limit_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'group_limit_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getStatusAllowableValues();
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'status', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id Coupon ID
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name クーポン名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets code
+ *
+ * @return string
+ */
+ public function getCode()
+ {
+ return $this->container['code'];
+ }
+
+ /**
+ * Sets code
+ *
+ * @param string $code クーポンコード
+ *
+ * @return $this
+ */
+ public function setCode($code)
+ {
+ $this->container['code'] = $code;
+
+ return $this;
+ }
+
+ /**
+ * Gets coupon_type
+ *
+ * @return string
+ */
+ public function getCouponType()
+ {
+ return $this->container['coupon_type'];
+ }
+
+ /**
+ * Sets coupon_type
+ *
+ * @param string $coupon_type クーポン種別 - `amount`: 定額 - `rate`: 定率 - `delivery_charge`: 送料無料
+ *
+ * @return $this
+ */
+ public function setCouponType($coupon_type)
+ {
+ $allowedValues = $this->getCouponTypeAllowableValues();
+ if (!is_null($coupon_type) && !in_array($coupon_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'coupon_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['coupon_type'] = $coupon_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets discount_amount
+ *
+ * @return int
+ */
+ public function getDiscountAmount()
+ {
+ return $this->container['discount_amount'];
+ }
+
+ /**
+ * Sets discount_amount
+ *
+ * @param int $discount_amount 割引金額または割引率
+ *
+ * @return $this
+ */
+ public function setDiscountAmount($discount_amount)
+ {
+ $this->container['discount_amount'] = $discount_amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets minimum_amount
+ *
+ * @return int
+ */
+ public function getMinimumAmount()
+ {
+ return $this->container['minimum_amount'];
+ }
+
+ /**
+ * Sets minimum_amount
+ *
+ * @param int $minimum_amount 利用最低額
+ *
+ * @return $this
+ */
+ public function setMinimumAmount($minimum_amount)
+ {
+ $this->container['minimum_amount'] = $minimum_amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets starts_at
+ *
+ * @return int
+ */
+ public function getStartsAt()
+ {
+ return $this->container['starts_at'];
+ }
+
+ /**
+ * Sets starts_at
+ *
+ * @param int $starts_at 利用開始日
+ *
+ * @return $this
+ */
+ public function setStartsAt($starts_at)
+ {
+ $this->container['starts_at'] = $starts_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets ends_at
+ *
+ * @return int
+ */
+ public function getEndsAt()
+ {
+ return $this->container['ends_at'];
+ }
+
+ /**
+ * Sets ends_at
+ *
+ * @param int $ends_at 利用終了日
+ *
+ * @return $this
+ */
+ public function setEndsAt($ends_at)
+ {
+ $this->container['ends_at'] = $ends_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets total_usage_limit
+ *
+ * @return int
+ */
+ public function getTotalUsageLimit()
+ {
+ return $this->container['total_usage_limit'];
+ }
+
+ /**
+ * Sets total_usage_limit
+ *
+ * @param int $total_usage_limit 総利用可能数
+ *
+ * @return $this
+ */
+ public function setTotalUsageLimit($total_usage_limit)
+ {
+ $this->container['total_usage_limit'] = $total_usage_limit;
+
+ return $this;
+ }
+
+ /**
+ * Gets usage_limit
+ *
+ * @return string
+ */
+ public function getUsageLimit()
+ {
+ return $this->container['usage_limit'];
+ }
+
+ /**
+ * Sets usage_limit
+ *
+ * @param string $usage_limit ユーザ毎の利用可能数 - `indisposable`: 無制限 - `disposable`: 一度のみ
+ *
+ * @return $this
+ */
+ public function setUsageLimit($usage_limit)
+ {
+ $allowedValues = $this->getUsageLimitAllowableValues();
+ if (!is_null($usage_limit) && !in_array($usage_limit, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'usage_limit', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['usage_limit'] = $usage_limit;
+
+ return $this;
+ }
+
+ /**
+ * Gets group_limit_type
+ *
+ * @return string
+ */
+ public function getGroupLimitType()
+ {
+ return $this->container['group_limit_type'];
+ }
+
+ /**
+ * Sets group_limit_type
+ *
+ * @param string $group_limit_type 商品グループによる制限 - `none`: 無制限 - `including`: 含む - `excluding`: 除外
+ *
+ * @return $this
+ */
+ public function setGroupLimitType($group_limit_type)
+ {
+ $allowedValues = $this->getGroupLimitTypeAllowableValues();
+ if (!is_null($group_limit_type) && !in_array($group_limit_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'group_limit_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['group_limit_type'] = $group_limit_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets status
+ *
+ * @return string
+ */
+ public function getStatus()
+ {
+ return $this->container['status'];
+ }
+
+ /**
+ * Sets status
+ *
+ * @param string $status クーポンの利用可否 - `unavailable`: 利用不可 - `available`: 利用可能
+ *
+ * @return $this
+ */
+ public function setStatus($status)
+ {
+ $allowedValues = $this->getStatusAllowableValues();
+ if (!is_null($status) && !in_array($status, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'status', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['status'] = $status;
+
+ return $this;
+ }
+
+ /**
+ * Gets created_at
+ *
+ * @return int
+ */
+ public function getCreatedAt()
+ {
+ return $this->container['created_at'];
+ }
+
+ /**
+ * Sets created_at
+ *
+ * @param int $created_at 作成日時
+ *
+ * @return $this
+ */
+ public function setCreatedAt($created_at)
+ {
+ $this->container['created_at'] = $created_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets updated_at
+ *
+ * @return int
+ */
+ public function getUpdatedAt()
+ {
+ return $this->container['updated_at'];
+ }
+
+ /**
+ * Sets updated_at
+ *
+ * @param int $updated_at 更新日時
+ *
+ * @return $this
+ */
+ public function setUpdatedAt($updated_at)
+ {
+ $this->container['updated_at'] = $updated_at;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse2001Sales.php b/src/Swagger/Model/InlineResponse2001Sales.php
index 305c365..9c5ace9 100644
--- a/src/Swagger/Model/InlineResponse2001Sales.php
+++ b/src/Swagger/Model/InlineResponse2001Sales.php
@@ -93,9 +93,12 @@ class InlineResponse2001Sales implements ModelInterface, ArrayAccess
'use_gmo_points' => 'int',
'granted_yahoo_points' => 'int',
'use_yahoo_points' => 'int',
+'external_order_id' => 'string',
'customer' => '\ColorMeShop\Swagger\Model\SaleCustomer',
'details' => '\ColorMeShop\Swagger\Model\SaleDetails[]',
-'sale_deliveries' => '\ColorMeShop\Swagger\Model\V1salessaleIdSaleSaleDeliveries[]' ];
+'sale_deliveries' => '\ColorMeShop\Swagger\Model\V1salessaleIdSaleSaleDeliveries[]',
+'segment' => '\ColorMeShop\Swagger\Model\SaleSegment',
+'totals' => '\ColorMeShop\Swagger\Model\SaleTotals' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -140,9 +143,12 @@ class InlineResponse2001Sales implements ModelInterface, ArrayAccess
'use_gmo_points' => null,
'granted_yahoo_points' => null,
'use_yahoo_points' => null,
+'external_order_id' => null,
'customer' => null,
'details' => null,
-'sale_deliveries' => null ];
+'sale_deliveries' => null,
+'segment' => null,
+'totals' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -208,9 +214,12 @@ public static function swaggerFormats()
'use_gmo_points' => 'use_gmo_points',
'granted_yahoo_points' => 'granted_yahoo_points',
'use_yahoo_points' => 'use_yahoo_points',
+'external_order_id' => 'external_order_id',
'customer' => 'customer',
'details' => 'details',
-'sale_deliveries' => 'sale_deliveries' ];
+'sale_deliveries' => 'sale_deliveries',
+'segment' => 'segment',
+'totals' => 'totals' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -255,9 +264,12 @@ public static function swaggerFormats()
'use_gmo_points' => 'setUseGmoPoints',
'granted_yahoo_points' => 'setGrantedYahooPoints',
'use_yahoo_points' => 'setUseYahooPoints',
+'external_order_id' => 'setExternalOrderId',
'customer' => 'setCustomer',
'details' => 'setDetails',
-'sale_deliveries' => 'setSaleDeliveries' ];
+'sale_deliveries' => 'setSaleDeliveries',
+'segment' => 'setSegment',
+'totals' => 'setTotals' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -302,9 +314,12 @@ public static function swaggerFormats()
'use_gmo_points' => 'getUseGmoPoints',
'granted_yahoo_points' => 'getGrantedYahooPoints',
'use_yahoo_points' => 'getUseYahooPoints',
+'external_order_id' => 'getExternalOrderId',
'customer' => 'getCustomer',
'details' => 'getDetails',
-'sale_deliveries' => 'getSaleDeliveries' ];
+'sale_deliveries' => 'getSaleDeliveries',
+'segment' => 'getSegment',
+'totals' => 'getTotals' ];
/**
* Array of attributes where the key is the local name,
@@ -491,9 +506,12 @@ public function __construct(array $data = null)
$this->container['use_gmo_points'] = isset($data['use_gmo_points']) ? $data['use_gmo_points'] : null;
$this->container['granted_yahoo_points'] = isset($data['granted_yahoo_points']) ? $data['granted_yahoo_points'] : null;
$this->container['use_yahoo_points'] = isset($data['use_yahoo_points']) ? $data['use_yahoo_points'] : null;
+ $this->container['external_order_id'] = isset($data['external_order_id']) ? $data['external_order_id'] : null;
$this->container['customer'] = isset($data['customer']) ? $data['customer'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
$this->container['sale_deliveries'] = isset($data['sale_deliveries']) ? $data['sale_deliveries'] : null;
+ $this->container['segment'] = isset($data['segment']) ? $data['segment'] : null;
+ $this->container['totals'] = isset($data['totals']) ? $data['totals'] : null;
}
/**
@@ -1510,6 +1528,30 @@ public function setUseYahooPoints($use_yahoo_points)
return $this;
}
+ /**
+ * Gets external_order_id
+ *
+ * @return string
+ */
+ public function getExternalOrderId()
+ {
+ return $this->container['external_order_id'];
+ }
+
+ /**
+ * Sets external_order_id
+ *
+ * @param string $external_order_id 外部システムで発行された決済識別番号 該当受注の決済が、楽天ペイ(オンライン決済)、LINE Pay、PayPal Commerce Platform、Amazon Pay、Amazon Pay V2、Square対面決済のいずれかである場合、その決済の決済識別番号を返します。 それ以外の決済に関しては空文字列を返します。
+ *
+ * @return $this
+ */
+ public function setExternalOrderId($external_order_id)
+ {
+ $this->container['external_order_id'] = $external_order_id;
+
+ return $this;
+ }
+
/**
* Gets customer
*
@@ -1581,6 +1623,54 @@ public function setSaleDeliveries($sale_deliveries)
return $this;
}
+
+ /**
+ * Gets segment
+ *
+ * @return \ColorMeShop\Swagger\Model\SaleSegment
+ */
+ public function getSegment()
+ {
+ return $this->container['segment'];
+ }
+
+ /**
+ * Sets segment
+ *
+ * @param \ColorMeShop\Swagger\Model\SaleSegment $segment segment
+ *
+ * @return $this
+ */
+ public function setSegment($segment)
+ {
+ $this->container['segment'] = $segment;
+
+ return $this;
+ }
+
+ /**
+ * Gets totals
+ *
+ * @return \ColorMeShop\Swagger\Model\SaleTotals
+ */
+ public function getTotals()
+ {
+ return $this->container['totals'];
+ }
+
+ /**
+ * Sets totals
+ *
+ * @param \ColorMeShop\Swagger\Model\SaleTotals $totals totals
+ *
+ * @return $this
+ */
+ public function setTotals($totals)
+ {
+ $this->container['totals'] = $totals;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/src/Swagger/Model/InlineResponse20020.php b/src/Swagger/Model/InlineResponse20020.php
index 404463a..2d48fd7 100644
--- a/src/Swagger/Model/InlineResponse20020.php
+++ b/src/Swagger/Model/InlineResponse20020.php
@@ -13,14 +13,13 @@
/**
* カラーミーショップ API
*
- * # カラーミーショップ API [カラーミーショップ](https://shop-pro.jp) APIでは、受注の検索や商品情報の更新を行うことができます。 ## 利用手順 はじめに、カラーミーデベロッパーアカウントを用意します。[デベロッパー登録ページ](https://api.shop-pro.jp/developers/sign_up)から登録してください。 次に、[登録ページ](https://api.shop-pro.jp/oauth/applications/new)からアプリケーション登録を行ってください。 スマートフォンのWebViewを利用する場合は、リダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を入力してください。 その後、カラーミーショップアカウントの認証ページを開きます。認証ページのURLは、`https://api.shop-pro.jp/oauth/authorize`に必要なパラメータをつけたものです。 |パラメータ名|値| |---|---| |`client_id`|アプリケーション詳細画面で確認できるクライアントID| |`response_type`|\"code\"という文字列| |`scope`| 別表参照| |`redirect_uri`|アプリケーション登録時に入力したリダイレクトURI| `scope`は、以下のうち、アプリケーションが利用したい機能をスペース区切りで指定してください。 |スコープ|機能| |---|---| |`read_products`|商品データの参照| |`write_products`|在庫データの更新| |`read_sales`|受注・顧客データの参照| |`write_sales`|受注データの更新| 以下のようなURLとなります。 ``` https://api.shop-pro.jp/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code&scope=read_products%20write_products ``` 初めてこのページを訪れる場合は、カラーミーショップアカウントのIDとパスワードの入力を求められます。 承認ボタンを押すと、このアプリケーションがショップのデータにアクセスすることが許可され、リダイレクトURIへリダイレクトされます。 承認された場合は、`code`というクエリパラメータに認可コードが付与されます。承認がキャンセルされた、またはエラーが起きた場合は、 `error`パラメータにエラーの内容を表す文字列が与えられます。 アプリケーション登録時のリダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を指定した場合は、以下のようなURLにリダイレクトされます。 末尾のパスが認可コードになっています。 ``` https://api.shop-pro.jp/oauth/authorize/AUTH_CODE ``` 認可コードの有効期限は発行から10分間です。 最後に、認可コードとアクセストークンを交換します。以下のパラメータを付けて、`https://api.shop-pro.jp/oauth/token`へリクエストを送ります。 |パラメータ名|値| |---|---| |`client_id`|アプリケーション詳細画面に表示されているクライアントID| |`client_secret`|アプリケーション詳細画面に表示されているクライアントシークレット| |`code`|取得した認可コード| |`grant_type`|\"authorization_code\"という文字列| |`redirect_uri`|アプリケーション登録時に入力したリダイレクトURI| ```console # curl での例 $ curl -X POST \\ -d'client_id=CLIENT_ID' \\ -d'client_secret=CLIENT_SECRET' \\ -d'code=CODE' \\ -d'grant_type=authorization_code' \\ -d'redirect_uri=REDIRECT_URI' \\ 'https://api.shop-pro.jp/oauth/token' ``` リクエストが成功すると、以下のようなJSONが返ってきます。 ```json { \"access_token\": \"d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX\", \"token_type\": \"bearer\", \"scope\": \"read_products write_products\" } ``` アクセストークンに有効期限はありませんが、許可済みアプリケーション一覧画面から失効させることができます。なお、同じ認可コードをアクセストークンに交換できるのは1度だけです。 取得したアクセストークンは、Authorizationヘッダに入れて使用します。以下にショップ情報を取得する際の例を示します。 ```console # curlの例 $ curl -H 'Authorization: Bearer d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX' https://api.shop-pro.jp/v1/shop.json ``` ## エラー カラーミーショップAPI v1では - エラーコード - エラーメッセージ - ステータスコード の配列でエラーを表現します。以下に例を示します。 ```json { \"errors\": [ { \"code\": 404100, \"message\": \"レコードが見つかりませんでした。\", \"status\": 404 } ] } ```
+ * # カラーミーショップ API ## 利用手順 ### OAuthアプリケーションの登録 デベロッパーアカウントをお持ちでない場合は作成します。[デベロッパー登録ページ](https://api.shop-pro.jp/developers/sign_up)から登録してください。 次に、[登録ページ](https://api.shop-pro.jp/oauth/applications/new)からアプリ登録を行ってください。 スマートフォンのWebViewを利用する場合は、リダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を入力してください。 ### 認可 カラーミーショップアカウントの認証ページを開きます。認証ページのURLは、`https://api.shop-pro.jp/oauth/authorize`に必要なパラメータをつけたものです。 |パラメータ名|値| |---|---| |`client_id`|アプリ詳細画面で確認できるクライアントID| |`response_type`|\"code\"を指定| |`scope`| 別表参照| |`redirect_uri`|アプリ登録時に入力したリダイレクトURI| `scope`は、以下のうち、アプリが利用したい機能をスペース区切りで指定してください。 |スコープ|機能| |---|---| |`read_products`|商品データの参照| |`write_products`|在庫データの更新| |`read_sales`|受注・顧客データの参照| |`write_sales`|受注データの更新| |`read_shop_coupons`|ショップクーポンの参照| 以下のようなURLとなります。 ``` https://api.shop-pro.jp/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code&scope=read_products%20write_products ``` 初めてこのページを訪れる場合は、カラーミーショップアカウントのログインIDとパスワードの入力を求められます。 ログイン後の認証ページでアプリとの連携が承認された場合は、`code`というクエリパラメータに認可コードが付与されます。承認がキャンセルされた、またはエラーが起きた場合は、 `error`パラメータにエラーの内容を表す文字列が与えられます。 アプリ登録時のリダイレクトURIに`urn:ietf:wg:oauth:2.0:oob`を指定した場合は、以下のようなURLにリダイレクトされ、 認可コードがURLの末尾に付与されます。 ``` https://api.shop-pro.jp/oauth/authorize/AUTH_CODE ``` 認可コードの有効期限は発行から10分間です。 ### 認可コードをアクセストークンに交換 以下のパラメータを付けて、`https://api.shop-pro.jp/oauth/token`へリクエストを送ります。 |パラメータ名|値| |---|---| |`client_id`|アプリ詳細画面に表示されているクライアントID| |`client_secret`|アプリ詳細画面に表示されているクライアントシークレット| |`code`|取得した認可コード| |`grant_type`|\"authorization_code\"を指定| |`redirect_uri`|アプリ登録時に入力したリダイレクトURI| curlによるリクエストの例を以下に示します。 ```console $ curl -X POST \\ -d'client_id=CLIENT_ID' \\ -d'client_secret=CLIENT_SECRET' \\ -d'code=CODE' \\ -d'grant_type=authorization_code' \\ -d'redirect_uri=REDIRECT_URI' \\ 'https://api.shop-pro.jp/oauth/token' ``` リクエストが成功すると、以下のようなJSONが返却されます ```json { \"access_token\": \"d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX\", \"token_type\": \"bearer\", \"scope\": \"read_products write_products\" } ``` アクセストークンに有効期限はありませんが、[許可済みアプリ一覧画面](https://admin.shop-pro.jp/?mode=app_use_lst)から失効させることができます。なお、同じ認可コードをアクセストークンに交換できるのは1度だけです。 ### APIの利用 取得したアクセストークンは、Authorizationヘッダに入れて使用します。以下にショップ情報を取得する例を示します。 ```console $ curl -H 'Authorization: Bearer d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX' https://api.shop-pro.jp/v1/shop.json ``` ## エラー カラーミーショップAPIでは、以下の形式の配列でエラーを表現します。 - `code` エラーコード - `message` エラーメッセージ - `status` ステータスコード ```json { \"errors\": [ { \"code\": 404100, \"message\": \"レコードが見つかりませんでした。\", \"status\": 404 } ] } ``` ## 都道府県コードについて APIを利用して都道府県コードを更新したり、レスポンスを参照される際には以下の表を参考にしてください。 都道府県コード一覧
|id|都道府県| |---|---| |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|海外|
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.0
+ * Swagger Codegen version: 3.0.27
*/
-
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
@@ -57,9 +56,7 @@ class InlineResponse20020 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'recurring_application_charges' => '\ColorMeShop\Swagger\Model\RecurringApplicationCharge[]',
- 'meta' => '\ColorMeShop\Swagger\Model\InlineResponse20020Meta'
- ];
+ 'shop_coupon' => '\ColorMeShop\Swagger\Model\InlineResponse20019ShopCoupons' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -67,9 +64,7 @@ class InlineResponse20020 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'recurring_application_charges' => null,
- 'meta' => null
- ];
+ 'shop_coupon' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -98,9 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'recurring_application_charges' => 'recurring_application_charges',
- 'meta' => 'meta'
- ];
+ 'shop_coupon' => 'shop_coupon' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -108,9 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'recurring_application_charges' => 'setRecurringApplicationCharges',
- 'meta' => 'setMeta'
- ];
+ 'shop_coupon' => 'setShopCoupon' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -118,9 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'recurring_application_charges' => 'getRecurringApplicationCharges',
- 'meta' => 'getMeta'
- ];
+ 'shop_coupon' => 'getShopCoupon' ];
/**
* Array of attributes where the key is the local name,
@@ -165,8 +154,6 @@ public function getModelName()
-
-
/**
* Associative array for storing property values
*
@@ -182,8 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['recurring_application_charges'] = isset($data['recurring_application_charges']) ? $data['recurring_application_charges'] : null;
- $this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
+ $this->container['shop_coupon'] = isset($data['shop_coupon']) ? $data['shop_coupon'] : null;
}
/**
@@ -206,55 +192,30 @@ public function listInvalidProperties()
*/
public function valid()
{
-
- return true;
- }
-
-
- /**
- * Gets recurring_application_charges
- *
- * @return \ColorMeShop\Swagger\Model\RecurringApplicationCharge[]
- */
- public function getRecurringApplicationCharges()
- {
- return $this->container['recurring_application_charges'];
+ return count($this->listInvalidProperties()) === 0;
}
- /**
- * Sets recurring_application_charges
- *
- * @param \ColorMeShop\Swagger\Model\RecurringApplicationCharge[] $recurring_application_charges recurring_application_charges
- *
- * @return $this
- */
- public function setRecurringApplicationCharges($recurring_application_charges)
- {
- $this->container['recurring_application_charges'] = $recurring_application_charges;
-
- return $this;
- }
/**
- * Gets meta
+ * Gets shop_coupon
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse20020Meta
+ * @return \ColorMeShop\Swagger\Model\InlineResponse20019ShopCoupons
*/
- public function getMeta()
+ public function getShopCoupon()
{
- return $this->container['meta'];
+ return $this->container['shop_coupon'];
}
/**
- * Sets meta
+ * Sets shop_coupon
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse20020Meta $meta meta
+ * @param \ColorMeShop\Swagger\Model\InlineResponse20019ShopCoupons $shop_coupon shop_coupon
*
* @return $this
*/
- public function setMeta($meta)
+ public function setShopCoupon($shop_coupon)
{
- $this->container['meta'] = $meta;
+ $this->container['shop_coupon'] = $shop_coupon;
return $this;
}
@@ -328,5 +289,3 @@ public function __toString()
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
-
-
diff --git a/src/Swagger/Model/InlineResponse2003.php b/src/Swagger/Model/InlineResponse2003.php
index eea2464..062c454 100644
--- a/src/Swagger/Model/InlineResponse2003.php
+++ b/src/Swagger/Model/InlineResponse2003.php
@@ -56,7 +56,7 @@ class InlineResponse2003 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'sale' => '\ColorMeShop\Swagger\Model\InlineResponse2001Sales' ];
+ 'sale' => 'AllOfinlineResponse2003Sale' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -199,7 +199,7 @@ public function valid()
/**
* Gets sale
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse2001Sales
+ * @return AllOfinlineResponse2003Sale
*/
public function getSale()
{
@@ -209,7 +209,7 @@ public function getSale()
/**
* Sets sale
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse2001Sales $sale sale
+ * @param AllOfinlineResponse2003Sale $sale sale
*
* @return $this
*/
diff --git a/src/Swagger/Model/InlineResponse2004.php b/src/Swagger/Model/InlineResponse2004.php
index 877c07f..f5ae803 100644
--- a/src/Swagger/Model/InlineResponse2004.php
+++ b/src/Swagger/Model/InlineResponse2004.php
@@ -56,8 +56,7 @@ class InlineResponse2004 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'customers' => '\ColorMeShop\Swagger\Model\SaleCustomer[]',
-'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2001Meta' ];
+ 'sale' => '\ColorMeShop\Swagger\Model\InlineResponse2001Sales' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -65,8 +64,7 @@ class InlineResponse2004 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'customers' => null,
-'meta' => null ];
+ 'sale' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -95,8 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'customers' => 'customers',
-'meta' => 'meta' ];
+ 'sale' => 'sale' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -104,8 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'customers' => 'setCustomers',
-'meta' => 'setMeta' ];
+ 'sale' => 'setSale' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -113,8 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'customers' => 'getCustomers',
-'meta' => 'getMeta' ];
+ 'sale' => 'getSale' ];
/**
* Array of attributes where the key is the local name,
@@ -174,8 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['customers'] = isset($data['customers']) ? $data['customers'] : null;
- $this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
+ $this->container['sale'] = isset($data['sale']) ? $data['sale'] : null;
}
/**
@@ -203,49 +197,25 @@ public function valid()
/**
- * Gets customers
+ * Gets sale
*
- * @return \ColorMeShop\Swagger\Model\SaleCustomer[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2001Sales
*/
- public function getCustomers()
+ public function getSale()
{
- return $this->container['customers'];
+ return $this->container['sale'];
}
/**
- * Sets customers
+ * Sets sale
*
- * @param \ColorMeShop\Swagger\Model\SaleCustomer[] $customers customers
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2001Sales $sale sale
*
* @return $this
*/
- public function setCustomers($customers)
+ public function setSale($sale)
{
- $this->container['customers'] = $customers;
-
- return $this;
- }
-
- /**
- * Gets meta
- *
- * @return \ColorMeShop\Swagger\Model\InlineResponse2001Meta
- */
- public function getMeta()
- {
- return $this->container['meta'];
- }
-
- /**
- * Sets meta
- *
- * @param \ColorMeShop\Swagger\Model\InlineResponse2001Meta $meta meta
- *
- * @return $this
- */
- public function setMeta($meta)
- {
- $this->container['meta'] = $meta;
+ $this->container['sale'] = $sale;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse2005.php b/src/Swagger/Model/InlineResponse2005.php
index cf7b51d..44876d3 100644
--- a/src/Swagger/Model/InlineResponse2005.php
+++ b/src/Swagger/Model/InlineResponse2005.php
@@ -56,7 +56,8 @@ class InlineResponse2005 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'customer' => '\ColorMeShop\Swagger\Model\SaleCustomer' ];
+ 'customers' => '\ColorMeShop\Swagger\Model\SaleCustomer[]',
+'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2001Meta' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +65,8 @@ class InlineResponse2005 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'customer' => null ];
+ 'customers' => null,
+'meta' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +95,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'customer' => 'customer' ];
+ 'customers' => 'customers',
+'meta' => 'meta' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +104,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'customer' => 'setCustomer' ];
+ 'customers' => 'setCustomers',
+'meta' => 'setMeta' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +113,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'customer' => 'getCustomer' ];
+ 'customers' => 'getCustomers',
+'meta' => 'getMeta' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +174,8 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['customer'] = isset($data['customer']) ? $data['customer'] : null;
+ $this->container['customers'] = isset($data['customers']) ? $data['customers'] : null;
+ $this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
}
/**
@@ -197,25 +203,49 @@ public function valid()
/**
- * Gets customer
+ * Gets customers
*
- * @return \ColorMeShop\Swagger\Model\SaleCustomer
+ * @return \ColorMeShop\Swagger\Model\SaleCustomer[]
*/
- public function getCustomer()
+ public function getCustomers()
{
- return $this->container['customer'];
+ return $this->container['customers'];
}
/**
- * Sets customer
+ * Sets customers
*
- * @param \ColorMeShop\Swagger\Model\SaleCustomer $customer customer
+ * @param \ColorMeShop\Swagger\Model\SaleCustomer[] $customers customers
*
* @return $this
*/
- public function setCustomer($customer)
+ public function setCustomers($customers)
{
- $this->container['customer'] = $customer;
+ $this->container['customers'] = $customers;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2001Meta
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2001Meta $meta meta
+ *
+ * @return $this
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse2006.php b/src/Swagger/Model/InlineResponse2006.php
index bfb1042..376e864 100644
--- a/src/Swagger/Model/InlineResponse2006.php
+++ b/src/Swagger/Model/InlineResponse2006.php
@@ -56,8 +56,7 @@ class InlineResponse2006 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'customer' => '\ColorMeShop\Swagger\Model\SaleCustomer',
-'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2006Meta' ];
+ 'customer' => '\ColorMeShop\Swagger\Model\SaleCustomer' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -65,8 +64,7 @@ class InlineResponse2006 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'customer' => null,
-'meta' => null ];
+ 'customer' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -95,8 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'customer' => 'customer',
-'meta' => 'meta' ];
+ 'customer' => 'customer' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -104,8 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'customer' => 'setCustomer',
-'meta' => 'setMeta' ];
+ 'customer' => 'setCustomer' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -113,8 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'customer' => 'getCustomer',
-'meta' => 'getMeta' ];
+ 'customer' => 'getCustomer' ];
/**
* Array of attributes where the key is the local name,
@@ -175,7 +170,6 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->container['customer'] = isset($data['customer']) ? $data['customer'] : null;
- $this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
}
/**
@@ -225,30 +219,6 @@ public function setCustomer($customer)
return $this;
}
-
- /**
- * Gets meta
- *
- * @return \ColorMeShop\Swagger\Model\InlineResponse2006Meta
- */
- public function getMeta()
- {
- return $this->container['meta'];
- }
-
- /**
- * Sets meta
- *
- * @param \ColorMeShop\Swagger\Model\InlineResponse2006Meta $meta meta
- *
- * @return $this
- */
- public function setMeta($meta)
- {
- $this->container['meta'] = $meta;
-
- return $this;
- }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/src/Swagger/Model/InlineResponse2007.php b/src/Swagger/Model/InlineResponse2007.php
index ce61a95..cd85bf2 100644
--- a/src/Swagger/Model/InlineResponse2007.php
+++ b/src/Swagger/Model/InlineResponse2007.php
@@ -56,8 +56,8 @@ class InlineResponse2007 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'products' => '\ColorMeShop\Swagger\Model\InlineResponse2007Products[]',
-'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2001Meta' ];
+ 'customer' => '\ColorMeShop\Swagger\Model\SaleCustomer',
+'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2007Meta' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -65,7 +65,7 @@ class InlineResponse2007 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'products' => null,
+ 'customer' => null,
'meta' => null ];
/**
@@ -95,7 +95,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'products' => 'products',
+ 'customer' => 'customer',
'meta' => 'meta' ];
/**
@@ -104,7 +104,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'products' => 'setProducts',
+ 'customer' => 'setCustomer',
'meta' => 'setMeta' ];
/**
@@ -113,7 +113,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'products' => 'getProducts',
+ 'customer' => 'getCustomer',
'meta' => 'getMeta' ];
/**
@@ -174,7 +174,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['products'] = isset($data['products']) ? $data['products'] : null;
+ $this->container['customer'] = isset($data['customer']) ? $data['customer'] : null;
$this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
}
@@ -203,25 +203,25 @@ public function valid()
/**
- * Gets products
+ * Gets customer
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse2007Products[]
+ * @return \ColorMeShop\Swagger\Model\SaleCustomer
*/
- public function getProducts()
+ public function getCustomer()
{
- return $this->container['products'];
+ return $this->container['customer'];
}
/**
- * Sets products
+ * Sets customer
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse2007Products[] $products products
+ * @param \ColorMeShop\Swagger\Model\SaleCustomer $customer customer
*
* @return $this
*/
- public function setProducts($products)
+ public function setCustomer($customer)
{
- $this->container['products'] = $products;
+ $this->container['customer'] = $customer;
return $this;
}
@@ -229,7 +229,7 @@ public function setProducts($products)
/**
* Gets meta
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse2001Meta
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2007Meta
*/
public function getMeta()
{
@@ -239,7 +239,7 @@ public function getMeta()
/**
* Sets meta
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse2001Meta $meta meta
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2007Meta $meta meta
*
* @return $this
*/
diff --git a/src/Swagger/Model/InlineResponse2007Meta.php b/src/Swagger/Model/InlineResponse2007Meta.php
new file mode 100644
index 0000000..ce0ab4c
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse2007Meta.php
@@ -0,0 +1,351 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse2007Meta Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse2007Meta implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_7_meta';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'total' => 'int',
+'limit' => 'int',
+'offset' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'total' => null,
+'limit' => null,
+'offset' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'total' => 'total',
+'limit' => 'limit',
+'offset' => 'offset' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'total' => 'setTotal',
+'limit' => 'setLimit',
+'offset' => 'setOffset' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'total' => 'getTotal',
+'limit' => 'getLimit',
+'offset' => 'getOffset' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['total'] = isset($data['total']) ? $data['total'] : null;
+ $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null;
+ $this->container['offset'] = isset($data['offset']) ? $data['offset'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets total
+ *
+ * @return int
+ */
+ public function getTotal()
+ {
+ return $this->container['total'];
+ }
+
+ /**
+ * Sets total
+ *
+ * @param int $total total
+ *
+ * @return $this
+ */
+ public function setTotal($total)
+ {
+ $this->container['total'] = $total;
+
+ return $this;
+ }
+
+ /**
+ * Gets limit
+ *
+ * @return int
+ */
+ public function getLimit()
+ {
+ return $this->container['limit'];
+ }
+
+ /**
+ * Sets limit
+ *
+ * @param int $limit limit
+ *
+ * @return $this
+ */
+ public function setLimit($limit)
+ {
+ $this->container['limit'] = $limit;
+
+ return $this;
+ }
+
+ /**
+ * Gets offset
+ *
+ * @return int
+ */
+ public function getOffset()
+ {
+ return $this->container['offset'];
+ }
+
+ /**
+ * Sets offset
+ *
+ * @param int $offset offset
+ *
+ * @return $this
+ */
+ public function setOffset($offset)
+ {
+ $this->container['offset'] = $offset;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse2008.php b/src/Swagger/Model/InlineResponse2008.php
index d912254..61858ef 100644
--- a/src/Swagger/Model/InlineResponse2008.php
+++ b/src/Swagger/Model/InlineResponse2008.php
@@ -56,7 +56,8 @@ class InlineResponse2008 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'product' => '\ColorMeShop\Swagger\Model\InlineResponse2007Products' ];
+ 'products' => '\ColorMeShop\Swagger\Model\InlineResponse2008Products[]',
+'meta' => '\ColorMeShop\Swagger\Model\InlineResponse2001Meta' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +65,8 @@ class InlineResponse2008 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'product' => null ];
+ 'products' => null,
+'meta' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +95,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'product' => 'product' ];
+ 'products' => 'products',
+'meta' => 'meta' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +104,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'product' => 'setProduct' ];
+ 'products' => 'setProducts',
+'meta' => 'setMeta' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +113,8 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'product' => 'getProduct' ];
+ 'products' => 'getProducts',
+'meta' => 'getMeta' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +174,8 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['product'] = isset($data['product']) ? $data['product'] : null;
+ $this->container['products'] = isset($data['products']) ? $data['products'] : null;
+ $this->container['meta'] = isset($data['meta']) ? $data['meta'] : null;
}
/**
@@ -197,25 +203,49 @@ public function valid()
/**
- * Gets product
+ * Gets products
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse2007Products
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2008Products[]
*/
- public function getProduct()
+ public function getProducts()
{
- return $this->container['product'];
+ return $this->container['products'];
}
/**
- * Sets product
+ * Sets products
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse2007Products $product product
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2008Products[] $products products
*
* @return $this
*/
- public function setProduct($product)
+ public function setProducts($products)
{
- $this->container['product'] = $product;
+ $this->container['products'] = $products;
+
+ return $this;
+ }
+
+ /**
+ * Gets meta
+ *
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2001Meta
+ */
+ public function getMeta()
+ {
+ return $this->container['meta'];
+ }
+
+ /**
+ * Sets meta
+ *
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2001Meta $meta meta
+ *
+ * @return $this
+ */
+ public function setMeta($meta)
+ {
+ $this->container['meta'] = $meta;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse2008Products.php b/src/Swagger/Model/InlineResponse2008Products.php
new file mode 100644
index 0000000..c13c8f1
--- /dev/null
+++ b/src/Swagger/Model/InlineResponse2008Products.php
@@ -0,0 +1,1735 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * InlineResponse2008Products Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class InlineResponse2008Products implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'inline_response_200_8_products';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'account_id' => 'string',
+'id' => 'int',
+'name' => 'string',
+'stocks' => 'int',
+'stock_managed' => 'bool',
+'few_num' => 'int',
+'model_number' => 'string',
+'category' => '\ColorMeShop\Swagger\Model\StockCategory',
+'group_ids' => 'int[]',
+'display_state' => 'string',
+'sales_price' => 'int',
+'sales_price_including_tax' => 'int',
+'sales_price_tax' => 'int',
+'price' => 'int',
+'members_price' => 'int',
+'members_price_including_tax' => 'int',
+'members_price_tax' => 'int',
+'cost' => 'int',
+'delivery_charge' => 'int',
+'cool_charge' => 'int',
+'unavailable_payment_ids' => 'int[]',
+'unavailable_delivery_ids' => 'int[]',
+'min_num' => 'int',
+'max_num' => 'int',
+'sale_start_date' => 'int',
+'sale_end_date' => 'int',
+'unit' => 'string',
+'weight' => 'int',
+'soldout_display' => 'bool',
+'sort' => 'int',
+'simple_expl' => 'string',
+'expl' => 'string',
+'mobile_expl' => 'string',
+'smartphone_expl' => 'string',
+'make_date' => 'int',
+'update_date' => 'int',
+'memo' => 'string',
+'image_url' => 'string',
+'mobile_image_url' => 'string',
+'thumbnail_image_url' => 'string',
+'images' => '\ColorMeShop\Swagger\Model\ProductImages[]',
+'options' => '\ColorMeShop\Swagger\Model\ProductOptions[]',
+'variants' => '\ColorMeShop\Swagger\Model\ProductVariants[]',
+'pickups' => '\ColorMeShop\Swagger\Model\ProductPickups[]',
+'digital_conent' => 'bool',
+'regular_purchase' => 'bool',
+'tax_reduced' => 'bool',
+'without_shipping' => 'bool' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'account_id' => null,
+'id' => null,
+'name' => null,
+'stocks' => null,
+'stock_managed' => null,
+'few_num' => null,
+'model_number' => null,
+'category' => null,
+'group_ids' => null,
+'display_state' => null,
+'sales_price' => null,
+'sales_price_including_tax' => null,
+'sales_price_tax' => null,
+'price' => null,
+'members_price' => null,
+'members_price_including_tax' => null,
+'members_price_tax' => null,
+'cost' => null,
+'delivery_charge' => null,
+'cool_charge' => null,
+'unavailable_payment_ids' => null,
+'unavailable_delivery_ids' => null,
+'min_num' => null,
+'max_num' => null,
+'sale_start_date' => null,
+'sale_end_date' => null,
+'unit' => null,
+'weight' => null,
+'soldout_display' => null,
+'sort' => null,
+'simple_expl' => null,
+'expl' => null,
+'mobile_expl' => null,
+'smartphone_expl' => null,
+'make_date' => null,
+'update_date' => null,
+'memo' => null,
+'image_url' => null,
+'mobile_image_url' => null,
+'thumbnail_image_url' => null,
+'images' => null,
+'options' => null,
+'variants' => null,
+'pickups' => null,
+'digital_conent' => null,
+'regular_purchase' => null,
+'tax_reduced' => null,
+'without_shipping' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'account_id' => 'account_id',
+'id' => 'id',
+'name' => 'name',
+'stocks' => 'stocks',
+'stock_managed' => 'stock_managed',
+'few_num' => 'few_num',
+'model_number' => 'model_number',
+'category' => 'category',
+'group_ids' => 'group_ids',
+'display_state' => 'display_state',
+'sales_price' => 'sales_price',
+'sales_price_including_tax' => 'sales_price_including_tax',
+'sales_price_tax' => 'sales_price_tax',
+'price' => 'price',
+'members_price' => 'members_price',
+'members_price_including_tax' => 'members_price_including_tax',
+'members_price_tax' => 'members_price_tax',
+'cost' => 'cost',
+'delivery_charge' => 'delivery_charge',
+'cool_charge' => 'cool_charge',
+'unavailable_payment_ids' => 'unavailable_payment_ids',
+'unavailable_delivery_ids' => 'unavailable_delivery_ids',
+'min_num' => 'min_num',
+'max_num' => 'max_num',
+'sale_start_date' => 'sale_start_date',
+'sale_end_date' => 'sale_end_date',
+'unit' => 'unit',
+'weight' => 'weight',
+'soldout_display' => 'soldout_display',
+'sort' => 'sort',
+'simple_expl' => 'simple_expl',
+'expl' => 'expl',
+'mobile_expl' => 'mobile_expl',
+'smartphone_expl' => 'smartphone_expl',
+'make_date' => 'make_date',
+'update_date' => 'update_date',
+'memo' => 'memo',
+'image_url' => 'image_url',
+'mobile_image_url' => 'mobile_image_url',
+'thumbnail_image_url' => 'thumbnail_image_url',
+'images' => 'images',
+'options' => 'options',
+'variants' => 'variants',
+'pickups' => 'pickups',
+'digital_conent' => 'digital_conent',
+'regular_purchase' => 'regular_purchase',
+'tax_reduced' => 'tax_reduced',
+'without_shipping' => 'without_shipping' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'account_id' => 'setAccountId',
+'id' => 'setId',
+'name' => 'setName',
+'stocks' => 'setStocks',
+'stock_managed' => 'setStockManaged',
+'few_num' => 'setFewNum',
+'model_number' => 'setModelNumber',
+'category' => 'setCategory',
+'group_ids' => 'setGroupIds',
+'display_state' => 'setDisplayState',
+'sales_price' => 'setSalesPrice',
+'sales_price_including_tax' => 'setSalesPriceIncludingTax',
+'sales_price_tax' => 'setSalesPriceTax',
+'price' => 'setPrice',
+'members_price' => 'setMembersPrice',
+'members_price_including_tax' => 'setMembersPriceIncludingTax',
+'members_price_tax' => 'setMembersPriceTax',
+'cost' => 'setCost',
+'delivery_charge' => 'setDeliveryCharge',
+'cool_charge' => 'setCoolCharge',
+'unavailable_payment_ids' => 'setUnavailablePaymentIds',
+'unavailable_delivery_ids' => 'setUnavailableDeliveryIds',
+'min_num' => 'setMinNum',
+'max_num' => 'setMaxNum',
+'sale_start_date' => 'setSaleStartDate',
+'sale_end_date' => 'setSaleEndDate',
+'unit' => 'setUnit',
+'weight' => 'setWeight',
+'soldout_display' => 'setSoldoutDisplay',
+'sort' => 'setSort',
+'simple_expl' => 'setSimpleExpl',
+'expl' => 'setExpl',
+'mobile_expl' => 'setMobileExpl',
+'smartphone_expl' => 'setSmartphoneExpl',
+'make_date' => 'setMakeDate',
+'update_date' => 'setUpdateDate',
+'memo' => 'setMemo',
+'image_url' => 'setImageUrl',
+'mobile_image_url' => 'setMobileImageUrl',
+'thumbnail_image_url' => 'setThumbnailImageUrl',
+'images' => 'setImages',
+'options' => 'setOptions',
+'variants' => 'setVariants',
+'pickups' => 'setPickups',
+'digital_conent' => 'setDigitalConent',
+'regular_purchase' => 'setRegularPurchase',
+'tax_reduced' => 'setTaxReduced',
+'without_shipping' => 'setWithoutShipping' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'account_id' => 'getAccountId',
+'id' => 'getId',
+'name' => 'getName',
+'stocks' => 'getStocks',
+'stock_managed' => 'getStockManaged',
+'few_num' => 'getFewNum',
+'model_number' => 'getModelNumber',
+'category' => 'getCategory',
+'group_ids' => 'getGroupIds',
+'display_state' => 'getDisplayState',
+'sales_price' => 'getSalesPrice',
+'sales_price_including_tax' => 'getSalesPriceIncludingTax',
+'sales_price_tax' => 'getSalesPriceTax',
+'price' => 'getPrice',
+'members_price' => 'getMembersPrice',
+'members_price_including_tax' => 'getMembersPriceIncludingTax',
+'members_price_tax' => 'getMembersPriceTax',
+'cost' => 'getCost',
+'delivery_charge' => 'getDeliveryCharge',
+'cool_charge' => 'getCoolCharge',
+'unavailable_payment_ids' => 'getUnavailablePaymentIds',
+'unavailable_delivery_ids' => 'getUnavailableDeliveryIds',
+'min_num' => 'getMinNum',
+'max_num' => 'getMaxNum',
+'sale_start_date' => 'getSaleStartDate',
+'sale_end_date' => 'getSaleEndDate',
+'unit' => 'getUnit',
+'weight' => 'getWeight',
+'soldout_display' => 'getSoldoutDisplay',
+'sort' => 'getSort',
+'simple_expl' => 'getSimpleExpl',
+'expl' => 'getExpl',
+'mobile_expl' => 'getMobileExpl',
+'smartphone_expl' => 'getSmartphoneExpl',
+'make_date' => 'getMakeDate',
+'update_date' => 'getUpdateDate',
+'memo' => 'getMemo',
+'image_url' => 'getImageUrl',
+'mobile_image_url' => 'getMobileImageUrl',
+'thumbnail_image_url' => 'getThumbnailImageUrl',
+'images' => 'getImages',
+'options' => 'getOptions',
+'variants' => 'getVariants',
+'pickups' => 'getPickups',
+'digital_conent' => 'getDigitalConent',
+'regular_purchase' => 'getRegularPurchase',
+'tax_reduced' => 'getTaxReduced',
+'without_shipping' => 'getWithoutShipping' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const DISPLAY_STATE_SHOWING = 'showing';
+const DISPLAY_STATE_HIDDEN = 'hidden';
+const DISPLAY_STATE_SHOWING_FOR_MEMBERS = 'showing_for_members';
+const DISPLAY_STATE_SALE_FOR_MEMBERS = 'sale_for_members';
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getDisplayStateAllowableValues()
+ {
+ return [
+ self::DISPLAY_STATE_SHOWING,
+self::DISPLAY_STATE_HIDDEN,
+self::DISPLAY_STATE_SHOWING_FOR_MEMBERS,
+self::DISPLAY_STATE_SALE_FOR_MEMBERS, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['stocks'] = isset($data['stocks']) ? $data['stocks'] : null;
+ $this->container['stock_managed'] = isset($data['stock_managed']) ? $data['stock_managed'] : null;
+ $this->container['few_num'] = isset($data['few_num']) ? $data['few_num'] : null;
+ $this->container['model_number'] = isset($data['model_number']) ? $data['model_number'] : null;
+ $this->container['category'] = isset($data['category']) ? $data['category'] : null;
+ $this->container['group_ids'] = isset($data['group_ids']) ? $data['group_ids'] : null;
+ $this->container['display_state'] = isset($data['display_state']) ? $data['display_state'] : null;
+ $this->container['sales_price'] = isset($data['sales_price']) ? $data['sales_price'] : null;
+ $this->container['sales_price_including_tax'] = isset($data['sales_price_including_tax']) ? $data['sales_price_including_tax'] : null;
+ $this->container['sales_price_tax'] = isset($data['sales_price_tax']) ? $data['sales_price_tax'] : null;
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
+ $this->container['members_price'] = isset($data['members_price']) ? $data['members_price'] : null;
+ $this->container['members_price_including_tax'] = isset($data['members_price_including_tax']) ? $data['members_price_including_tax'] : null;
+ $this->container['members_price_tax'] = isset($data['members_price_tax']) ? $data['members_price_tax'] : null;
+ $this->container['cost'] = isset($data['cost']) ? $data['cost'] : null;
+ $this->container['delivery_charge'] = isset($data['delivery_charge']) ? $data['delivery_charge'] : null;
+ $this->container['cool_charge'] = isset($data['cool_charge']) ? $data['cool_charge'] : null;
+ $this->container['unavailable_payment_ids'] = isset($data['unavailable_payment_ids']) ? $data['unavailable_payment_ids'] : null;
+ $this->container['unavailable_delivery_ids'] = isset($data['unavailable_delivery_ids']) ? $data['unavailable_delivery_ids'] : null;
+ $this->container['min_num'] = isset($data['min_num']) ? $data['min_num'] : null;
+ $this->container['max_num'] = isset($data['max_num']) ? $data['max_num'] : null;
+ $this->container['sale_start_date'] = isset($data['sale_start_date']) ? $data['sale_start_date'] : null;
+ $this->container['sale_end_date'] = isset($data['sale_end_date']) ? $data['sale_end_date'] : null;
+ $this->container['unit'] = isset($data['unit']) ? $data['unit'] : null;
+ $this->container['weight'] = isset($data['weight']) ? $data['weight'] : null;
+ $this->container['soldout_display'] = isset($data['soldout_display']) ? $data['soldout_display'] : null;
+ $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
+ $this->container['simple_expl'] = isset($data['simple_expl']) ? $data['simple_expl'] : null;
+ $this->container['expl'] = isset($data['expl']) ? $data['expl'] : null;
+ $this->container['mobile_expl'] = isset($data['mobile_expl']) ? $data['mobile_expl'] : null;
+ $this->container['smartphone_expl'] = isset($data['smartphone_expl']) ? $data['smartphone_expl'] : null;
+ $this->container['make_date'] = isset($data['make_date']) ? $data['make_date'] : null;
+ $this->container['update_date'] = isset($data['update_date']) ? $data['update_date'] : null;
+ $this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
+ $this->container['image_url'] = isset($data['image_url']) ? $data['image_url'] : null;
+ $this->container['mobile_image_url'] = isset($data['mobile_image_url']) ? $data['mobile_image_url'] : null;
+ $this->container['thumbnail_image_url'] = isset($data['thumbnail_image_url']) ? $data['thumbnail_image_url'] : null;
+ $this->container['images'] = isset($data['images']) ? $data['images'] : null;
+ $this->container['options'] = isset($data['options']) ? $data['options'] : null;
+ $this->container['variants'] = isset($data['variants']) ? $data['variants'] : null;
+ $this->container['pickups'] = isset($data['pickups']) ? $data['pickups'] : null;
+ $this->container['digital_conent'] = isset($data['digital_conent']) ? $data['digital_conent'] : null;
+ $this->container['regular_purchase'] = isset($data['regular_purchase']) ? $data['regular_purchase'] : null;
+ $this->container['tax_reduced'] = isset($data['tax_reduced']) ? $data['tax_reduced'] : null;
+ $this->container['without_shipping'] = isset($data['without_shipping']) ? $data['without_shipping'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($this->container['display_state']) && !in_array($this->container['display_state'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets account_id
+ *
+ * @return string
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string $account_id ショップアカウントID
+ *
+ * @return $this
+ */
+ public function setAccountId($account_id)
+ {
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id 商品ID
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 商品名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets stocks
+ *
+ * @return int
+ */
+ public function getStocks()
+ {
+ return $this->container['stocks'];
+ }
+
+ /**
+ * Sets stocks
+ *
+ * @param int $stocks 在庫数
+ *
+ * @return $this
+ */
+ public function setStocks($stocks)
+ {
+ $this->container['stocks'] = $stocks;
+
+ return $this;
+ }
+
+ /**
+ * Gets stock_managed
+ *
+ * @return bool
+ */
+ public function getStockManaged()
+ {
+ return $this->container['stock_managed'];
+ }
+
+ /**
+ * Sets stock_managed
+ *
+ * @param bool $stock_managed 在庫管理するか否か
+ *
+ * @return $this
+ */
+ public function setStockManaged($stock_managed)
+ {
+ $this->container['stock_managed'] = $stock_managed;
+
+ return $this;
+ }
+
+ /**
+ * Gets few_num
+ *
+ * @return int
+ */
+ public function getFewNum()
+ {
+ return $this->container['few_num'];
+ }
+
+ /**
+ * Sets few_num
+ *
+ * @param int $few_num 残りわずかとなる在庫数
+ *
+ * @return $this
+ */
+ public function setFewNum($few_num)
+ {
+ $this->container['few_num'] = $few_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets model_number
+ *
+ * @return string
+ */
+ public function getModelNumber()
+ {
+ return $this->container['model_number'];
+ }
+
+ /**
+ * Sets model_number
+ *
+ * @param string $model_number 型番
+ *
+ * @return $this
+ */
+ public function setModelNumber($model_number)
+ {
+ $this->container['model_number'] = $model_number;
+
+ return $this;
+ }
+
+ /**
+ * Gets category
+ *
+ * @return \ColorMeShop\Swagger\Model\StockCategory
+ */
+ public function getCategory()
+ {
+ return $this->container['category'];
+ }
+
+ /**
+ * Sets category
+ *
+ * @param \ColorMeShop\Swagger\Model\StockCategory $category category
+ *
+ * @return $this
+ */
+ public function setCategory($category)
+ {
+ $this->container['category'] = $category;
+
+ return $this;
+ }
+
+ /**
+ * Gets group_ids
+ *
+ * @return int[]
+ */
+ public function getGroupIds()
+ {
+ return $this->container['group_ids'];
+ }
+
+ /**
+ * Sets group_ids
+ *
+ * @param int[] $group_ids 商品が属するグループのIDの配列
+ *
+ * @return $this
+ */
+ public function setGroupIds($group_ids)
+ {
+ $this->container['group_ids'] = $group_ids;
+
+ return $this;
+ }
+
+ /**
+ * Gets display_state
+ *
+ * @return string
+ */
+ public function getDisplayState()
+ {
+ return $this->container['display_state'];
+ }
+
+ /**
+ * Sets display_state
+ *
+ * @param string $display_state 掲載設定 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能
+ *
+ * @return $this
+ */
+ public function setDisplayState($display_state)
+ {
+ $allowedValues = $this->getDisplayStateAllowableValues();
+ if (!is_null($display_state) && !in_array($display_state, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'display_state', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['display_state'] = $display_state;
+
+ return $this;
+ }
+
+ /**
+ * Gets sales_price
+ *
+ * @return int
+ */
+ public function getSalesPrice()
+ {
+ return $this->container['sales_price'];
+ }
+
+ /**
+ * Sets sales_price
+ *
+ * @param int $sales_price 販売価格
+ *
+ * @return $this
+ */
+ public function setSalesPrice($sales_price)
+ {
+ $this->container['sales_price'] = $sales_price;
+
+ return $this;
+ }
+
+ /**
+ * Gets sales_price_including_tax
+ *
+ * @return int
+ */
+ public function getSalesPriceIncludingTax()
+ {
+ return $this->container['sales_price_including_tax'];
+ }
+
+ /**
+ * Sets sales_price_including_tax
+ *
+ * @param int $sales_price_including_tax 消費税込販売価格
+ *
+ * @return $this
+ */
+ public function setSalesPriceIncludingTax($sales_price_including_tax)
+ {
+ $this->container['sales_price_including_tax'] = $sales_price_including_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets sales_price_tax
+ *
+ * @return int
+ */
+ public function getSalesPriceTax()
+ {
+ return $this->container['sales_price_tax'];
+ }
+
+ /**
+ * Sets sales_price_tax
+ *
+ * @param int $sales_price_tax 消費税額
+ *
+ * @return $this
+ */
+ public function setSalesPriceTax($sales_price_tax)
+ {
+ $this->container['sales_price_tax'] = $sales_price_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets price
+ *
+ * @return int
+ */
+ public function getPrice()
+ {
+ return $this->container['price'];
+ }
+
+ /**
+ * Sets price
+ *
+ * @param int $price 定価
+ *
+ * @return $this
+ */
+ public function setPrice($price)
+ {
+ $this->container['price'] = $price;
+
+ return $this;
+ }
+
+ /**
+ * Gets members_price
+ *
+ * @return int
+ */
+ public function getMembersPrice()
+ {
+ return $this->container['members_price'];
+ }
+
+ /**
+ * Sets members_price
+ *
+ * @param int $members_price 会員価格
+ *
+ * @return $this
+ */
+ public function setMembersPrice($members_price)
+ {
+ $this->container['members_price'] = $members_price;
+
+ return $this;
+ }
+
+ /**
+ * Gets members_price_including_tax
+ *
+ * @return int
+ */
+ public function getMembersPriceIncludingTax()
+ {
+ return $this->container['members_price_including_tax'];
+ }
+
+ /**
+ * Sets members_price_including_tax
+ *
+ * @param int $members_price_including_tax 消費税込会員価格
+ *
+ * @return $this
+ */
+ public function setMembersPriceIncludingTax($members_price_including_tax)
+ {
+ $this->container['members_price_including_tax'] = $members_price_including_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets members_price_tax
+ *
+ * @return int
+ */
+ public function getMembersPriceTax()
+ {
+ return $this->container['members_price_tax'];
+ }
+
+ /**
+ * Sets members_price_tax
+ *
+ * @param int $members_price_tax 会員価格の消費税額
+ *
+ * @return $this
+ */
+ public function setMembersPriceTax($members_price_tax)
+ {
+ $this->container['members_price_tax'] = $members_price_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets cost
+ *
+ * @return int
+ */
+ public function getCost()
+ {
+ return $this->container['cost'];
+ }
+
+ /**
+ * Sets cost
+ *
+ * @param int $cost 原価
+ *
+ * @return $this
+ */
+ public function setCost($cost)
+ {
+ $this->container['cost'] = $cost;
+
+ return $this;
+ }
+
+ /**
+ * Gets delivery_charge
+ *
+ * @return int
+ */
+ public function getDeliveryCharge()
+ {
+ return $this->container['delivery_charge'];
+ }
+
+ /**
+ * Sets delivery_charge
+ *
+ * @param int $delivery_charge 個別送料
+ *
+ * @return $this
+ */
+ public function setDeliveryCharge($delivery_charge)
+ {
+ $this->container['delivery_charge'] = $delivery_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets cool_charge
+ *
+ * @return int
+ */
+ public function getCoolCharge()
+ {
+ return $this->container['cool_charge'];
+ }
+
+ /**
+ * Sets cool_charge
+ *
+ * @param int $cool_charge クール便の追加料金
+ *
+ * @return $this
+ */
+ public function setCoolCharge($cool_charge)
+ {
+ $this->container['cool_charge'] = $cool_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets unavailable_payment_ids
+ *
+ * @return int[]
+ */
+ public function getUnavailablePaymentIds()
+ {
+ return $this->container['unavailable_payment_ids'];
+ }
+
+ /**
+ * Sets unavailable_payment_ids
+ *
+ * @param int[] $unavailable_payment_ids 利用不可決済方法の配列
+ *
+ * @return $this
+ */
+ public function setUnavailablePaymentIds($unavailable_payment_ids)
+ {
+ $this->container['unavailable_payment_ids'] = $unavailable_payment_ids;
+
+ return $this;
+ }
+
+ /**
+ * Gets unavailable_delivery_ids
+ *
+ * @return int[]
+ */
+ public function getUnavailableDeliveryIds()
+ {
+ return $this->container['unavailable_delivery_ids'];
+ }
+
+ /**
+ * Sets unavailable_delivery_ids
+ *
+ * @param int[] $unavailable_delivery_ids 利用不可配送方法の配列
+ *
+ * @return $this
+ */
+ public function setUnavailableDeliveryIds($unavailable_delivery_ids)
+ {
+ $this->container['unavailable_delivery_ids'] = $unavailable_delivery_ids;
+
+ return $this;
+ }
+
+ /**
+ * Gets min_num
+ *
+ * @return int
+ */
+ public function getMinNum()
+ {
+ return $this->container['min_num'];
+ }
+
+ /**
+ * Sets min_num
+ *
+ * @param int $min_num 最小購入数量
+ *
+ * @return $this
+ */
+ public function setMinNum($min_num)
+ {
+ $this->container['min_num'] = $min_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets max_num
+ *
+ * @return int
+ */
+ public function getMaxNum()
+ {
+ return $this->container['max_num'];
+ }
+
+ /**
+ * Sets max_num
+ *
+ * @param int $max_num 最大購入数量
+ *
+ * @return $this
+ */
+ public function setMaxNum($max_num)
+ {
+ $this->container['max_num'] = $max_num;
+
+ return $this;
+ }
+
+ /**
+ * Gets sale_start_date
+ *
+ * @return int
+ */
+ public function getSaleStartDate()
+ {
+ return $this->container['sale_start_date'];
+ }
+
+ /**
+ * Sets sale_start_date
+ *
+ * @param int $sale_start_date 掲載開始時刻
+ *
+ * @return $this
+ */
+ public function setSaleStartDate($sale_start_date)
+ {
+ $this->container['sale_start_date'] = $sale_start_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets sale_end_date
+ *
+ * @return int
+ */
+ public function getSaleEndDate()
+ {
+ return $this->container['sale_end_date'];
+ }
+
+ /**
+ * Sets sale_end_date
+ *
+ * @param int $sale_end_date 掲載終了時刻
+ *
+ * @return $this
+ */
+ public function setSaleEndDate($sale_end_date)
+ {
+ $this->container['sale_end_date'] = $sale_end_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets unit
+ *
+ * @return string
+ */
+ public function getUnit()
+ {
+ return $this->container['unit'];
+ }
+
+ /**
+ * Sets unit
+ *
+ * @param string $unit 単位
+ *
+ * @return $this
+ */
+ public function setUnit($unit)
+ {
+ $this->container['unit'] = $unit;
+
+ return $this;
+ }
+
+ /**
+ * Gets weight
+ *
+ * @return int
+ */
+ public function getWeight()
+ {
+ return $this->container['weight'];
+ }
+
+ /**
+ * Sets weight
+ *
+ * @param int $weight 重量(グラム単位)
+ *
+ * @return $this
+ */
+ public function setWeight($weight)
+ {
+ $this->container['weight'] = $weight;
+
+ return $this;
+ }
+
+ /**
+ * Gets soldout_display
+ *
+ * @return bool
+ */
+ public function getSoldoutDisplay()
+ {
+ return $this->container['soldout_display'];
+ }
+
+ /**
+ * Sets soldout_display
+ *
+ * @param bool $soldout_display 売り切れているときもショップに表示するか
+ *
+ * @return $this
+ */
+ public function setSoldoutDisplay($soldout_display)
+ {
+ $this->container['soldout_display'] = $soldout_display;
+
+ return $this;
+ }
+
+ /**
+ * Gets sort
+ *
+ * @return int
+ */
+ public function getSort()
+ {
+ return $this->container['sort'];
+ }
+
+ /**
+ * Sets sort
+ *
+ * @param int $sort 表示順
+ *
+ * @return $this
+ */
+ public function setSort($sort)
+ {
+ $this->container['sort'] = $sort;
+
+ return $this;
+ }
+
+ /**
+ * Gets simple_expl
+ *
+ * @return string
+ */
+ public function getSimpleExpl()
+ {
+ return $this->container['simple_expl'];
+ }
+
+ /**
+ * Sets simple_expl
+ *
+ * @param string $simple_expl 簡易説明
+ *
+ * @return $this
+ */
+ public function setSimpleExpl($simple_expl)
+ {
+ $this->container['simple_expl'] = $simple_expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets expl
+ *
+ * @return string
+ */
+ public function getExpl()
+ {
+ return $this->container['expl'];
+ }
+
+ /**
+ * Sets expl
+ *
+ * @param string $expl 商品説明
+ *
+ * @return $this
+ */
+ public function setExpl($expl)
+ {
+ $this->container['expl'] = $expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets mobile_expl
+ *
+ * @return string
+ */
+ public function getMobileExpl()
+ {
+ return $this->container['mobile_expl'];
+ }
+
+ /**
+ * Sets mobile_expl
+ *
+ * @param string $mobile_expl フィーチャーフォン向けショップの商品説明
+ *
+ * @return $this
+ */
+ public function setMobileExpl($mobile_expl)
+ {
+ $this->container['mobile_expl'] = $mobile_expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets smartphone_expl
+ *
+ * @return string
+ */
+ public function getSmartphoneExpl()
+ {
+ return $this->container['smartphone_expl'];
+ }
+
+ /**
+ * Sets smartphone_expl
+ *
+ * @param string $smartphone_expl スマホ向けショップの商品説明
+ *
+ * @return $this
+ */
+ public function setSmartphoneExpl($smartphone_expl)
+ {
+ $this->container['smartphone_expl'] = $smartphone_expl;
+
+ return $this;
+ }
+
+ /**
+ * Gets make_date
+ *
+ * @return int
+ */
+ public function getMakeDate()
+ {
+ return $this->container['make_date'];
+ }
+
+ /**
+ * Sets make_date
+ *
+ * @param int $make_date 商品作成日時
+ *
+ * @return $this
+ */
+ public function setMakeDate($make_date)
+ {
+ $this->container['make_date'] = $make_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets update_date
+ *
+ * @return int
+ */
+ public function getUpdateDate()
+ {
+ return $this->container['update_date'];
+ }
+
+ /**
+ * Sets update_date
+ *
+ * @param int $update_date 商品更新日時
+ *
+ * @return $this
+ */
+ public function setUpdateDate($update_date)
+ {
+ $this->container['update_date'] = $update_date;
+
+ return $this;
+ }
+
+ /**
+ * Gets memo
+ *
+ * @return string
+ */
+ public function getMemo()
+ {
+ return $this->container['memo'];
+ }
+
+ /**
+ * Sets memo
+ *
+ * @param string $memo 備考
+ *
+ * @return $this
+ */
+ public function setMemo($memo)
+ {
+ $this->container['memo'] = $memo;
+
+ return $this;
+ }
+
+ /**
+ * Gets image_url
+ *
+ * @return string
+ */
+ public function getImageUrl()
+ {
+ return $this->container['image_url'];
+ }
+
+ /**
+ * Sets image_url
+ *
+ * @param string $image_url メインの商品画像URL
+ *
+ * @return $this
+ */
+ public function setImageUrl($image_url)
+ {
+ $this->container['image_url'] = $image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets mobile_image_url
+ *
+ * @return string
+ */
+ public function getMobileImageUrl()
+ {
+ return $this->container['mobile_image_url'];
+ }
+
+ /**
+ * Sets mobile_image_url
+ *
+ * @param string $mobile_image_url メインの商品画像のモバイル用URL
+ *
+ * @return $this
+ */
+ public function setMobileImageUrl($mobile_image_url)
+ {
+ $this->container['mobile_image_url'] = $mobile_image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets thumbnail_image_url
+ *
+ * @return string
+ */
+ public function getThumbnailImageUrl()
+ {
+ return $this->container['thumbnail_image_url'];
+ }
+
+ /**
+ * Sets thumbnail_image_url
+ *
+ * @param string $thumbnail_image_url メインの商品画像のサムネイルURL
+ *
+ * @return $this
+ */
+ public function setThumbnailImageUrl($thumbnail_image_url)
+ {
+ $this->container['thumbnail_image_url'] = $thumbnail_image_url;
+
+ return $this;
+ }
+
+ /**
+ * Gets images
+ *
+ * @return \ColorMeShop\Swagger\Model\ProductImages[]
+ */
+ public function getImages()
+ {
+ return $this->container['images'];
+ }
+
+ /**
+ * Sets images
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductImages[] $images メインの商品画像以外の3つの画像に関する、PC用とモバイル用の画像URL
+ *
+ * @return $this
+ */
+ public function setImages($images)
+ {
+ $this->container['images'] = $images;
+
+ return $this;
+ }
+
+ /**
+ * Gets options
+ *
+ * @return \ColorMeShop\Swagger\Model\ProductOptions[]
+ */
+ public function getOptions()
+ {
+ return $this->container['options'];
+ }
+
+ /**
+ * Sets options
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductOptions[] $options 選択できるオプションの一覧
+ *
+ * @return $this
+ */
+ public function setOptions($options)
+ {
+ $this->container['options'] = $options;
+
+ return $this;
+ }
+
+ /**
+ * Gets variants
+ *
+ * @return \ColorMeShop\Swagger\Model\ProductVariants[]
+ */
+ public function getVariants()
+ {
+ return $this->container['variants'];
+ }
+
+ /**
+ * Sets variants
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductVariants[] $variants オプションのバリエーション一覧
+ *
+ * @return $this
+ */
+ public function setVariants($variants)
+ {
+ $this->container['variants'] = $variants;
+
+ return $this;
+ }
+
+ /**
+ * Gets pickups
+ *
+ * @return \ColorMeShop\Swagger\Model\ProductPickups[]
+ */
+ public function getPickups()
+ {
+ return $this->container['pickups'];
+ }
+
+ /**
+ * Sets pickups
+ *
+ * @param \ColorMeShop\Swagger\Model\ProductPickups[] $pickups おすすめ商品情報 ※おすすめ商品種別が「3: 新着商品」の情報は、「[新着商品管理](https://shop-pro.jp/manual/new_item_lst)」が「手動モード」の場合のみ取得できます。
+ *
+ * @return $this
+ */
+ public function setPickups($pickups)
+ {
+ $this->container['pickups'] = $pickups;
+
+ return $this;
+ }
+
+ /**
+ * Gets digital_conent
+ *
+ * @return bool
+ */
+ public function getDigitalConent()
+ {
+ return $this->container['digital_conent'];
+ }
+
+ /**
+ * Sets digital_conent
+ *
+ * @param bool $digital_conent デジタルコンテンツ商品かどうか
+ *
+ * @return $this
+ */
+ public function setDigitalConent($digital_conent)
+ {
+ $this->container['digital_conent'] = $digital_conent;
+
+ return $this;
+ }
+
+ /**
+ * Gets regular_purchase
+ *
+ * @return bool
+ */
+ public function getRegularPurchase()
+ {
+ return $this->container['regular_purchase'];
+ }
+
+ /**
+ * Sets regular_purchase
+ *
+ * @param bool $regular_purchase 定期購入商品かどうか
+ *
+ * @return $this
+ */
+ public function setRegularPurchase($regular_purchase)
+ {
+ $this->container['regular_purchase'] = $regular_purchase;
+
+ return $this;
+ }
+
+ /**
+ * Gets tax_reduced
+ *
+ * @return bool
+ */
+ public function getTaxReduced()
+ {
+ return $this->container['tax_reduced'];
+ }
+
+ /**
+ * Sets tax_reduced
+ *
+ * @param bool $tax_reduced 軽減税率対象なら `true`
+ *
+ * @return $this
+ */
+ public function setTaxReduced($tax_reduced)
+ {
+ $this->container['tax_reduced'] = $tax_reduced;
+
+ return $this;
+ }
+
+ /**
+ * Gets without_shipping
+ *
+ * @return bool
+ */
+ public function getWithoutShipping()
+ {
+ return $this->container['without_shipping'];
+ }
+
+ /**
+ * Sets without_shipping
+ *
+ * @param bool $without_shipping 配送不要商品なら `true`
+ *
+ * @return $this
+ */
+ public function setWithoutShipping($without_shipping)
+ {
+ $this->container['without_shipping'] = $without_shipping;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/InlineResponse2009.php b/src/Swagger/Model/InlineResponse2009.php
index 5c94aff..156b843 100644
--- a/src/Swagger/Model/InlineResponse2009.php
+++ b/src/Swagger/Model/InlineResponse2009.php
@@ -56,7 +56,7 @@ class InlineResponse2009 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'pickup' => '\ColorMeShop\Swagger\Model\InlineResponse2009Pickup[]' ];
+ 'product' => '\ColorMeShop\Swagger\Model\InlineResponse2008Products' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -64,7 +64,7 @@ class InlineResponse2009 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'pickup' => null ];
+ 'product' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -93,7 +93,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'pickup' => 'pickup' ];
+ 'product' => 'product' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -101,7 +101,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $setters = [
- 'pickup' => 'setPickup' ];
+ 'product' => 'setProduct' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -109,7 +109,7 @@ public static function swaggerFormats()
* @var string[]
*/
protected static $getters = [
- 'pickup' => 'getPickup' ];
+ 'product' => 'getProduct' ];
/**
* Array of attributes where the key is the local name,
@@ -169,7 +169,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
- $this->container['pickup'] = isset($data['pickup']) ? $data['pickup'] : null;
+ $this->container['product'] = isset($data['product']) ? $data['product'] : null;
}
/**
@@ -197,25 +197,25 @@ public function valid()
/**
- * Gets pickup
+ * Gets product
*
- * @return \ColorMeShop\Swagger\Model\InlineResponse2009Pickup[]
+ * @return \ColorMeShop\Swagger\Model\InlineResponse2008Products
*/
- public function getPickup()
+ public function getProduct()
{
- return $this->container['pickup'];
+ return $this->container['product'];
}
/**
- * Sets pickup
+ * Sets product
*
- * @param \ColorMeShop\Swagger\Model\InlineResponse2009Pickup[] $pickup pickup
+ * @param \ColorMeShop\Swagger\Model\InlineResponse2008Products $product product
*
* @return $this
*/
- public function setPickup($pickup)
+ public function setProduct($product)
{
- $this->container['pickup'] = $pickup;
+ $this->container['product'] = $product;
return $this;
}
diff --git a/src/Swagger/Model/InlineResponse200Shop.php b/src/Swagger/Model/InlineResponse200Shop.php
index 5a0adb5..7469559 100644
--- a/src/Swagger/Model/InlineResponse200Shop.php
+++ b/src/Swagger/Model/InlineResponse200Shop.php
@@ -347,7 +347,9 @@ public function getModelName()
const CONTRACT_PLAN_PLATINUM = 'platinum';
const CONTRACT_PLAN_GOOPE = 'goope';
const CONTRACT_PLAN_LARGE = 'large';
+const CONTRACT_PLAN_DORMANT = 'dormant';
const CONTRACT_PLAN_FREE = 'free';
+const CONTRACT_PLAN_PREMIUM = 'premium';
const OPEN_STATE_OPENED = 'opened';
const OPEN_STATE_CLOSED = 'closed';
const OPEN_STATE_PREPARE = 'prepare';
@@ -403,7 +405,9 @@ public function getContractPlanAllowableValues()
self::CONTRACT_PLAN_PLATINUM,
self::CONTRACT_PLAN_GOOPE,
self::CONTRACT_PLAN_LARGE,
-self::CONTRACT_PLAN_FREE, ];
+self::CONTRACT_PLAN_DORMANT,
+self::CONTRACT_PLAN_FREE,
+self::CONTRACT_PLAN_PREMIUM, ];
}
/**
* Gets allowable values of the enum
diff --git a/src/Swagger/Model/Payment.php b/src/Swagger/Model/Payment.php
index 29737fb..92f3ebd 100644
--- a/src/Swagger/Model/Payment.php
+++ b/src/Swagger/Model/Payment.php
@@ -551,7 +551,7 @@ public function getType()
/**
* Sets type
*
- * @param int $type 決済タイプを表す数値。 |type|決済| |---|---| |0|代引き| |1|銀行振込| |2|郵便振替| |3|クレジット(ZEUS)| |4|クロネコ@ペイメント| |5|NP後払い| |6|クレジット(イプシロン)| |7|コンビニ決済(イプシロン)| |8|カラーミークレジット| |9|その他決済| |10|ウェブマネー| |11|イーバンクデビット| |12|ネット銀行(イプシロン)| |13|電子マネー(イプシロン)| |14|ATM・コンビニ・ネット銀行決済(ペイジェント)| |15|Do-Link決済(イプシロン)| |16|ペイジー(イプシロン)| |17|後払い.com| |18|ジャパンネット銀行(送料無料キャンペーン)| |19|クロネコwebコレクト| |20|PayPal(イプシロン)| |21|Yahoo!ウォレット(イプシロン)| |22|全額ポイント利用| |23|スマートフォンキャリア決済(イプシロン)| |24|GMO PG マルチペイメントクレジットカード| |25|住信SBIネット銀行(イプシロン)| |26|GMO後払い(イプシロン)| |27|GMO後払い(GMOペイメントサービス)| |28| - | |29|ATM(ペイジー)(ペイジェント)| |30|カード(ペイジェント)| |31|コンビニ番号方式(ペイジェント)| |32|インターネットバンキング(ペイジェント)| |33|PayPal(ペイパル)| |34|SMBC GMO PAYMENTクレジットカード| |35|Amazon Pay(イプシロン)| |36|楽天ペイ(オンライン決済)| |37|銀行振込(バーチャル口座)(イプシロン)| |38|Amazon Pay(アマゾンペイ)| |39|クレジットカード(佐川フィナンシャル)| |40|LINE Pay(イプシロン)| |41|PayPal Commerce Platform(ペイパル)| |42|PayPay(イプシロン)| |43|Amazon Pay V2(アマゾンペイ)| |44|Amazon Pay V2(イプシロン)|
+ * @param int $type 決済タイプを表す数値。 |type|決済| |---|---| |0|代引き| |1|銀行振込| |2|郵便振替| |3|クレジット(ZEUS)| |4|クロネコ@ペイメント| |5|NP後払い| |6|クレジット(イプシロン)| |7|コンビニ決済(イプシロン)| |8|カラーミークレジット| |9|その他決済| |10|ウェブマネー| |11|イーバンクデビット| |12|ネット銀行(イプシロン)| |13|電子マネー(イプシロン)| |14|ATM・コンビニ・ネット銀行決済(ペイジェント)| |15|Do-Link決済(イプシロン)| |16|ペイジー(イプシロン)| |17|後払い.com| |18|ジャパンネット銀行(送料無料キャンペーン)| |19|クロネコwebコレクト| |20|PayPal(イプシロン)| |21|Yahoo!ウォレット(イプシロン)| |22|全額ポイント利用| |23|スマートフォンキャリア決済(イプシロン)| |24|GMO PG マルチペイメントクレジットカード| |25|住信SBIネット銀行(イプシロン)| |26|GMO後払い(イプシロン)| |27|GMO後払い(GMOペイメントサービス)| |28| - | |29|ATM(ペイジー)(ペイジェント)| |30|カード(ペイジェント)| |31|コンビニ番号方式(ペイジェント)| |32|インターネットバンキング(ペイジェント)| |33|PayPal(ペイパル)| |34|SMBC GMO PAYMENTクレジットカード| |35|Amazon Pay(イプシロン)| |36|楽天ペイ(オンライン決済)| |37|銀行振込(バーチャル口座)(イプシロン)| |38|Amazon Pay(アマゾンペイ)| |39|クレジットカード(SGシステム)| |40|LINE Pay(イプシロン)| |41|PayPal Commerce Platform(ペイパル)| |42|PayPay(イプシロン)| |43|Amazon Pay V2(アマゾンペイ)| |44|Amazon Pay V2(イプシロン)| |45|Square対面決済|
*
* @return $this
*/
diff --git a/src/Swagger/Model/ProductIdPickupsBody1.php b/src/Swagger/Model/ProductIdPickupsBody1.php
new file mode 100644
index 0000000..8414a5b
--- /dev/null
+++ b/src/Swagger/Model/ProductIdPickupsBody1.php
@@ -0,0 +1,355 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * ProductIdPickupsBody1 Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class ProductIdPickupsBody1 implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'product_id_pickups_body_1';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'pickup_type' => 'int',
+'order_num' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'pickup_type' => null,
+'order_num' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'pickup_type' => 'pickup_type',
+'order_num' => 'order_num' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'pickup_type' => 'setPickupType',
+'order_num' => 'setOrderNum' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'pickup_type' => 'getPickupType',
+'order_num' => 'getOrderNum' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const PICKUP_TYPE_0 = 0;
+const PICKUP_TYPE_1 = 1;
+const PICKUP_TYPE_3 = 3;
+const PICKUP_TYPE_4 = 4;
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getPickupTypeAllowableValues()
+ {
+ return [
+ self::PICKUP_TYPE_0,
+self::PICKUP_TYPE_1,
+self::PICKUP_TYPE_3,
+self::PICKUP_TYPE_4, ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['pickup_type'] = isset($data['pickup_type']) ? $data['pickup_type'] : null;
+ $this->container['order_num'] = isset($data['order_num']) ? $data['order_num'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getPickupTypeAllowableValues();
+ if (!is_null($this->container['pickup_type']) && !in_array($this->container['pickup_type'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'pickup_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets pickup_type
+ *
+ * @return int
+ */
+ public function getPickupType()
+ {
+ return $this->container['pickup_type'];
+ }
+
+ /**
+ * Sets pickup_type
+ *
+ * @param int $pickup_type おすすめ商品情報種別(0:おすすめ商品, 1:売れ筋商品, 3:新着商品, 4:イチオシ商品)
+ *
+ * @return $this
+ */
+ public function setPickupType($pickup_type)
+ {
+ $allowedValues = $this->getPickupTypeAllowableValues();
+ if (!is_null($pickup_type) && !in_array($pickup_type, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'pickup_type', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['pickup_type'] = $pickup_type;
+
+ return $this;
+ }
+
+ /**
+ * Gets order_num
+ *
+ * @return int
+ */
+ public function getOrderNum()
+ {
+ return $this->container['order_num'];
+ }
+
+ /**
+ * Sets order_num
+ *
+ * @param int $order_num 商品の表示順
+ *
+ * @return $this
+ */
+ public function setOrderNum($order_num)
+ {
+ $this->container['order_num'] = $order_num;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/Sale.php b/src/Swagger/Model/Sale.php
index c0d92f1..83e1d0b 100644
--- a/src/Swagger/Model/Sale.php
+++ b/src/Swagger/Model/Sale.php
@@ -93,9 +93,12 @@ class Sale implements ModelInterface, ArrayAccess
'use_gmo_points' => 'int',
'granted_yahoo_points' => 'int',
'use_yahoo_points' => 'int',
+'external_order_id' => 'string',
'customer' => '\ColorMeShop\Swagger\Model\SaleCustomer',
'details' => '\ColorMeShop\Swagger\Model\SaleDetails[]',
-'sale_deliveries' => '\ColorMeShop\Swagger\Model\V1salessaleIdSaleSaleDeliveries[]' ];
+'sale_deliveries' => '\ColorMeShop\Swagger\Model\V1salessaleIdSaleSaleDeliveries[]',
+'segment' => '\ColorMeShop\Swagger\Model\SaleSegment',
+'totals' => '\ColorMeShop\Swagger\Model\SaleTotals' ];
/**
* Array of property to format mappings. Used for (de)serialization
@@ -140,9 +143,12 @@ class Sale implements ModelInterface, ArrayAccess
'use_gmo_points' => null,
'granted_yahoo_points' => null,
'use_yahoo_points' => null,
+'external_order_id' => null,
'customer' => null,
'details' => null,
-'sale_deliveries' => null ];
+'sale_deliveries' => null,
+'segment' => null,
+'totals' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
@@ -208,9 +214,12 @@ public static function swaggerFormats()
'use_gmo_points' => 'use_gmo_points',
'granted_yahoo_points' => 'granted_yahoo_points',
'use_yahoo_points' => 'use_yahoo_points',
+'external_order_id' => 'external_order_id',
'customer' => 'customer',
'details' => 'details',
-'sale_deliveries' => 'sale_deliveries' ];
+'sale_deliveries' => 'sale_deliveries',
+'segment' => 'segment',
+'totals' => 'totals' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
@@ -255,9 +264,12 @@ public static function swaggerFormats()
'use_gmo_points' => 'setUseGmoPoints',
'granted_yahoo_points' => 'setGrantedYahooPoints',
'use_yahoo_points' => 'setUseYahooPoints',
+'external_order_id' => 'setExternalOrderId',
'customer' => 'setCustomer',
'details' => 'setDetails',
-'sale_deliveries' => 'setSaleDeliveries' ];
+'sale_deliveries' => 'setSaleDeliveries',
+'segment' => 'setSegment',
+'totals' => 'setTotals' ];
/**
* Array of attributes to getter functions (for serialization of requests)
@@ -302,9 +314,12 @@ public static function swaggerFormats()
'use_gmo_points' => 'getUseGmoPoints',
'granted_yahoo_points' => 'getGrantedYahooPoints',
'use_yahoo_points' => 'getUseYahooPoints',
+'external_order_id' => 'getExternalOrderId',
'customer' => 'getCustomer',
'details' => 'getDetails',
-'sale_deliveries' => 'getSaleDeliveries' ];
+'sale_deliveries' => 'getSaleDeliveries',
+'segment' => 'getSegment',
+'totals' => 'getTotals' ];
/**
* Array of attributes where the key is the local name,
@@ -491,9 +506,12 @@ public function __construct(array $data = null)
$this->container['use_gmo_points'] = isset($data['use_gmo_points']) ? $data['use_gmo_points'] : null;
$this->container['granted_yahoo_points'] = isset($data['granted_yahoo_points']) ? $data['granted_yahoo_points'] : null;
$this->container['use_yahoo_points'] = isset($data['use_yahoo_points']) ? $data['use_yahoo_points'] : null;
+ $this->container['external_order_id'] = isset($data['external_order_id']) ? $data['external_order_id'] : null;
$this->container['customer'] = isset($data['customer']) ? $data['customer'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
$this->container['sale_deliveries'] = isset($data['sale_deliveries']) ? $data['sale_deliveries'] : null;
+ $this->container['segment'] = isset($data['segment']) ? $data['segment'] : null;
+ $this->container['totals'] = isset($data['totals']) ? $data['totals'] : null;
}
/**
@@ -1510,6 +1528,30 @@ public function setUseYahooPoints($use_yahoo_points)
return $this;
}
+ /**
+ * Gets external_order_id
+ *
+ * @return string
+ */
+ public function getExternalOrderId()
+ {
+ return $this->container['external_order_id'];
+ }
+
+ /**
+ * Sets external_order_id
+ *
+ * @param string $external_order_id 外部システムで発行された決済識別番号 該当受注の決済が、楽天ペイ(オンライン決済)、LINE Pay、PayPal Commerce Platform、Amazon Pay、Amazon Pay V2、Square対面決済のいずれかである場合、その決済の決済識別番号を返します。 それ以外の決済に関しては空文字列を返します。
+ *
+ * @return $this
+ */
+ public function setExternalOrderId($external_order_id)
+ {
+ $this->container['external_order_id'] = $external_order_id;
+
+ return $this;
+ }
+
/**
* Gets customer
*
@@ -1581,6 +1623,54 @@ public function setSaleDeliveries($sale_deliveries)
return $this;
}
+
+ /**
+ * Gets segment
+ *
+ * @return \ColorMeShop\Swagger\Model\SaleSegment
+ */
+ public function getSegment()
+ {
+ return $this->container['segment'];
+ }
+
+ /**
+ * Sets segment
+ *
+ * @param \ColorMeShop\Swagger\Model\SaleSegment $segment segment
+ *
+ * @return $this
+ */
+ public function setSegment($segment)
+ {
+ $this->container['segment'] = $segment;
+
+ return $this;
+ }
+
+ /**
+ * Gets totals
+ *
+ * @return \ColorMeShop\Swagger\Model\SaleTotals
+ */
+ public function getTotals()
+ {
+ return $this->container['totals'];
+ }
+
+ /**
+ * Sets totals
+ *
+ * @param \ColorMeShop\Swagger\Model\SaleTotals $totals totals
+ *
+ * @return $this
+ */
+ public function setTotals($totals)
+ {
+ $this->container['totals'] = $totals;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/src/Swagger/Model/SaleSegment.php b/src/Swagger/Model/SaleSegment.php
new file mode 100644
index 0000000..cc6d463
--- /dev/null
+++ b/src/Swagger/Model/SaleSegment.php
@@ -0,0 +1,561 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * SaleSegment Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class SaleSegment implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'sale_segment';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'id' => 'int',
+'name' => 'string',
+'parent_sale_id' => 'int',
+'splitted' => 'bool',
+'product_total_price' => 'int',
+'delivery_total_charge' => 'int',
+'total_price' => 'int',
+'noshi_total_charge' => 'int',
+'card_total_charge' => 'int',
+'wrapping_total_charge' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'id' => null,
+'name' => null,
+'parent_sale_id' => null,
+'splitted' => null,
+'product_total_price' => null,
+'delivery_total_charge' => null,
+'total_price' => null,
+'noshi_total_charge' => null,
+'card_total_charge' => null,
+'wrapping_total_charge' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'id' => 'id',
+'name' => 'name',
+'parent_sale_id' => 'parent_sale_id',
+'splitted' => 'splitted',
+'product_total_price' => 'product_total_price',
+'delivery_total_charge' => 'delivery_total_charge',
+'total_price' => 'total_price',
+'noshi_total_charge' => 'noshi_total_charge',
+'card_total_charge' => 'card_total_charge',
+'wrapping_total_charge' => 'wrapping_total_charge' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'id' => 'setId',
+'name' => 'setName',
+'parent_sale_id' => 'setParentSaleId',
+'splitted' => 'setSplitted',
+'product_total_price' => 'setProductTotalPrice',
+'delivery_total_charge' => 'setDeliveryTotalCharge',
+'total_price' => 'setTotalPrice',
+'noshi_total_charge' => 'setNoshiTotalCharge',
+'card_total_charge' => 'setCardTotalCharge',
+'wrapping_total_charge' => 'setWrappingTotalCharge' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'id' => 'getId',
+'name' => 'getName',
+'parent_sale_id' => 'getParentSaleId',
+'splitted' => 'getSplitted',
+'product_total_price' => 'getProductTotalPrice',
+'delivery_total_charge' => 'getDeliveryTotalCharge',
+'total_price' => 'getTotalPrice',
+'noshi_total_charge' => 'getNoshiTotalCharge',
+'card_total_charge' => 'getCardTotalCharge',
+'wrapping_total_charge' => 'getWrappingTotalCharge' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['parent_sale_id'] = isset($data['parent_sale_id']) ? $data['parent_sale_id'] : null;
+ $this->container['splitted'] = isset($data['splitted']) ? $data['splitted'] : null;
+ $this->container['product_total_price'] = isset($data['product_total_price']) ? $data['product_total_price'] : null;
+ $this->container['delivery_total_charge'] = isset($data['delivery_total_charge']) ? $data['delivery_total_charge'] : null;
+ $this->container['total_price'] = isset($data['total_price']) ? $data['total_price'] : null;
+ $this->container['noshi_total_charge'] = isset($data['noshi_total_charge']) ? $data['noshi_total_charge'] : null;
+ $this->container['card_total_charge'] = isset($data['card_total_charge']) ? $data['card_total_charge'] : null;
+ $this->container['wrapping_total_charge'] = isset($data['wrapping_total_charge']) ? $data['wrapping_total_charge'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id 分割された受注内のID
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name 区分名
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets parent_sale_id
+ *
+ * @return int
+ */
+ public function getParentSaleId()
+ {
+ return $this->container['parent_sale_id'];
+ }
+
+ /**
+ * Sets parent_sale_id
+ *
+ * @param int $parent_sale_id 親受注のID。 該当の受注が分割されていない場合、自身の受注IDを返します。
+ *
+ * @return $this
+ */
+ public function setParentSaleId($parent_sale_id)
+ {
+ $this->container['parent_sale_id'] = $parent_sale_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets splitted
+ *
+ * @return bool
+ */
+ public function getSplitted()
+ {
+ return $this->container['splitted'];
+ }
+
+ /**
+ * Sets splitted
+ *
+ * @param bool $splitted 該当の受注が分割されているか否か
+ *
+ * @return $this
+ */
+ public function setSplitted($splitted)
+ {
+ $this->container['splitted'] = $splitted;
+
+ return $this;
+ }
+
+ /**
+ * Gets product_total_price
+ *
+ * @return int
+ */
+ public function getProductTotalPrice()
+ {
+ return $this->container['product_total_price'];
+ }
+
+ /**
+ * Sets product_total_price
+ *
+ * @param int $product_total_price 分割された受注の商品の合計金額
+ *
+ * @return $this
+ */
+ public function setProductTotalPrice($product_total_price)
+ {
+ $this->container['product_total_price'] = $product_total_price;
+
+ return $this;
+ }
+
+ /**
+ * Gets delivery_total_charge
+ *
+ * @return int
+ */
+ public function getDeliveryTotalCharge()
+ {
+ return $this->container['delivery_total_charge'];
+ }
+
+ /**
+ * Sets delivery_total_charge
+ *
+ * @param int $delivery_total_charge 分割された受注の配送料の合計
+ *
+ * @return $this
+ */
+ public function setDeliveryTotalCharge($delivery_total_charge)
+ {
+ $this->container['delivery_total_charge'] = $delivery_total_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets total_price
+ *
+ * @return int
+ */
+ public function getTotalPrice()
+ {
+ return $this->container['total_price'];
+ }
+
+ /**
+ * Sets total_price
+ *
+ * @param int $total_price 分割された受注金額の総計
+ *
+ * @return $this
+ */
+ public function setTotalPrice($total_price)
+ {
+ $this->container['total_price'] = $total_price;
+
+ return $this;
+ }
+
+ /**
+ * Gets noshi_total_charge
+ *
+ * @return int
+ */
+ public function getNoshiTotalCharge()
+ {
+ return $this->container['noshi_total_charge'];
+ }
+
+ /**
+ * Sets noshi_total_charge
+ *
+ * @param int $noshi_total_charge 分割された受注の熨斗料金の合計
+ *
+ * @return $this
+ */
+ public function setNoshiTotalCharge($noshi_total_charge)
+ {
+ $this->container['noshi_total_charge'] = $noshi_total_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets card_total_charge
+ *
+ * @return int
+ */
+ public function getCardTotalCharge()
+ {
+ return $this->container['card_total_charge'];
+ }
+
+ /**
+ * Sets card_total_charge
+ *
+ * @param int $card_total_charge 分割された受注のメッセージカード料金の合計
+ *
+ * @return $this
+ */
+ public function setCardTotalCharge($card_total_charge)
+ {
+ $this->container['card_total_charge'] = $card_total_charge;
+
+ return $this;
+ }
+
+ /**
+ * Gets wrapping_total_charge
+ *
+ * @return int
+ */
+ public function getWrappingTotalCharge()
+ {
+ return $this->container['wrapping_total_charge'];
+ }
+
+ /**
+ * Sets wrapping_total_charge
+ *
+ * @param int $wrapping_total_charge 分割された受注のラッピング料金の合計
+ *
+ * @return $this
+ */
+ public function setWrappingTotalCharge($wrapping_total_charge)
+ {
+ $this->container['wrapping_total_charge'] = $wrapping_total_charge;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/SaleTotals.php b/src/Swagger/Model/SaleTotals.php
new file mode 100644
index 0000000..d423b29
--- /dev/null
+++ b/src/Swagger/Model/SaleTotals.php
@@ -0,0 +1,441 @@
+ 都道府県コード一覧 |id|都道府県| |---|---| |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|海外|
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ * Swagger Codegen version: 3.0.27
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+
+namespace ColorMeShop\Swagger\Model;
+
+use \ArrayAccess;
+use \ColorMeShop\Swagger\ObjectSerializer;
+
+/**
+ * SaleTotals Class Doc Comment
+ *
+ * @category Class
+ * @package ColorMeShop\Swagger
+ * @author Swagger Codegen team
+ * @link https://github.com/swagger-api/swagger-codegen
+ */
+class SaleTotals implements ModelInterface, ArrayAccess
+{
+ const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $swaggerModelName = 'sale_totals';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerTypes = [
+ 'normal_tax_amount' => 'int',
+'reduced_tax_amount' => 'int',
+'discount_amount_for_normal_tax' => 'int',
+'discount_amount_for_reduced_tax' => 'int',
+'total_price_with_normal_tax' => 'int',
+'total_price_with_reduced_tax' => 'int' ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'normal_tax_amount' => null,
+'reduced_tax_amount' => null,
+'discount_amount_for_normal_tax' => null,
+'discount_amount_for_reduced_tax' => null,
+'total_price_with_normal_tax' => null,
+'total_price_with_reduced_tax' => null ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'normal_tax_amount' => 'normal_tax_amount',
+'reduced_tax_amount' => 'reduced_tax_amount',
+'discount_amount_for_normal_tax' => 'discount_amount_for_normal_tax',
+'discount_amount_for_reduced_tax' => 'discount_amount_for_reduced_tax',
+'total_price_with_normal_tax' => 'total_price_with_normal_tax',
+'total_price_with_reduced_tax' => 'total_price_with_reduced_tax' ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'normal_tax_amount' => 'setNormalTaxAmount',
+'reduced_tax_amount' => 'setReducedTaxAmount',
+'discount_amount_for_normal_tax' => 'setDiscountAmountForNormalTax',
+'discount_amount_for_reduced_tax' => 'setDiscountAmountForReducedTax',
+'total_price_with_normal_tax' => 'setTotalPriceWithNormalTax',
+'total_price_with_reduced_tax' => 'setTotalPriceWithReducedTax' ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'normal_tax_amount' => 'getNormalTaxAmount',
+'reduced_tax_amount' => 'getReducedTaxAmount',
+'discount_amount_for_normal_tax' => 'getDiscountAmountForNormalTax',
+'discount_amount_for_reduced_tax' => 'getDiscountAmountForReducedTax',
+'total_price_with_normal_tax' => 'getTotalPriceWithNormalTax',
+'total_price_with_reduced_tax' => 'getTotalPriceWithReducedTax' ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['normal_tax_amount'] = isset($data['normal_tax_amount']) ? $data['normal_tax_amount'] : null;
+ $this->container['reduced_tax_amount'] = isset($data['reduced_tax_amount']) ? $data['reduced_tax_amount'] : null;
+ $this->container['discount_amount_for_normal_tax'] = isset($data['discount_amount_for_normal_tax']) ? $data['discount_amount_for_normal_tax'] : null;
+ $this->container['discount_amount_for_reduced_tax'] = isset($data['discount_amount_for_reduced_tax']) ? $data['discount_amount_for_reduced_tax'] : null;
+ $this->container['total_price_with_normal_tax'] = isset($data['total_price_with_normal_tax']) ? $data['total_price_with_normal_tax'] : null;
+ $this->container['total_price_with_reduced_tax'] = isset($data['total_price_with_reduced_tax']) ? $data['total_price_with_reduced_tax'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets normal_tax_amount
+ *
+ * @return int
+ */
+ public function getNormalTaxAmount()
+ {
+ return $this->container['normal_tax_amount'];
+ }
+
+ /**
+ * Sets normal_tax_amount
+ *
+ * @param int $normal_tax_amount 受注における通常税率(10%)の消費税
+ *
+ * @return $this
+ */
+ public function setNormalTaxAmount($normal_tax_amount)
+ {
+ $this->container['normal_tax_amount'] = $normal_tax_amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets reduced_tax_amount
+ *
+ * @return int
+ */
+ public function getReducedTaxAmount()
+ {
+ return $this->container['reduced_tax_amount'];
+ }
+
+ /**
+ * Sets reduced_tax_amount
+ *
+ * @param int $reduced_tax_amount 受注における軽減税率(8%)の消費税
+ *
+ * @return $this
+ */
+ public function setReducedTaxAmount($reduced_tax_amount)
+ {
+ $this->container['reduced_tax_amount'] = $reduced_tax_amount;
+
+ return $this;
+ }
+
+ /**
+ * Gets discount_amount_for_normal_tax
+ *
+ * @return int
+ */
+ public function getDiscountAmountForNormalTax()
+ {
+ return $this->container['discount_amount_for_normal_tax'];
+ }
+
+ /**
+ * Sets discount_amount_for_normal_tax
+ *
+ * @param int $discount_amount_for_normal_tax 通常税率(10%)の適用金額を対象としたの割引額
+ *
+ * @return $this
+ */
+ public function setDiscountAmountForNormalTax($discount_amount_for_normal_tax)
+ {
+ $this->container['discount_amount_for_normal_tax'] = $discount_amount_for_normal_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets discount_amount_for_reduced_tax
+ *
+ * @return int
+ */
+ public function getDiscountAmountForReducedTax()
+ {
+ return $this->container['discount_amount_for_reduced_tax'];
+ }
+
+ /**
+ * Sets discount_amount_for_reduced_tax
+ *
+ * @param int $discount_amount_for_reduced_tax 軽減税率(8%)の適用金額を対象としたの割引額
+ *
+ * @return $this
+ */
+ public function setDiscountAmountForReducedTax($discount_amount_for_reduced_tax)
+ {
+ $this->container['discount_amount_for_reduced_tax'] = $discount_amount_for_reduced_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets total_price_with_normal_tax
+ *
+ * @return int
+ */
+ public function getTotalPriceWithNormalTax()
+ {
+ return $this->container['total_price_with_normal_tax'];
+ }
+
+ /**
+ * Sets total_price_with_normal_tax
+ *
+ * @param int $total_price_with_normal_tax 通常税率(10%)の適用金額の税込合計額
+ *
+ * @return $this
+ */
+ public function setTotalPriceWithNormalTax($total_price_with_normal_tax)
+ {
+ $this->container['total_price_with_normal_tax'] = $total_price_with_normal_tax;
+
+ return $this;
+ }
+
+ /**
+ * Gets total_price_with_reduced_tax
+ *
+ * @return int
+ */
+ public function getTotalPriceWithReducedTax()
+ {
+ return $this->container['total_price_with_reduced_tax'];
+ }
+
+ /**
+ * Sets total_price_with_reduced_tax
+ *
+ * @param int $total_price_with_reduced_tax 軽減税率(8%)の適用金額の税込合計額
+ *
+ * @return $this
+ */
+ public function setTotalPriceWithReducedTax($total_price_with_reduced_tax)
+ {
+ $this->container['total_price_with_reduced_tax'] = $total_price_with_reduced_tax;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/src/Swagger/Model/Shop.php b/src/Swagger/Model/Shop.php
index b4f892e..eb4d6aa 100644
--- a/src/Swagger/Model/Shop.php
+++ b/src/Swagger/Model/Shop.php
@@ -347,7 +347,9 @@ public function getModelName()
const CONTRACT_PLAN_PLATINUM = 'platinum';
const CONTRACT_PLAN_GOOPE = 'goope';
const CONTRACT_PLAN_LARGE = 'large';
+const CONTRACT_PLAN_DORMANT = 'dormant';
const CONTRACT_PLAN_FREE = 'free';
+const CONTRACT_PLAN_PREMIUM = 'premium';
const OPEN_STATE_OPENED = 'opened';
const OPEN_STATE_CLOSED = 'closed';
const OPEN_STATE_PREPARE = 'prepare';
@@ -403,7 +405,9 @@ public function getContractPlanAllowableValues()
self::CONTRACT_PLAN_PLATINUM,
self::CONTRACT_PLAN_GOOPE,
self::CONTRACT_PLAN_LARGE,
-self::CONTRACT_PLAN_FREE, ];
+self::CONTRACT_PLAN_DORMANT,
+self::CONTRACT_PLAN_FREE,
+self::CONTRACT_PLAN_PREMIUM, ];
}
/**
* Gets allowable values of the enum
diff --git a/src/Swagger/Model/V1productsProduct.php b/src/Swagger/Model/V1productsProduct.php
index 6c52397..914a58b 100644
--- a/src/Swagger/Model/V1productsProduct.php
+++ b/src/Swagger/Model/V1productsProduct.php
@@ -306,7 +306,7 @@ public function getSalesPrice()
/**
* Sets sales_price
*
- * @param int $sales_price 販売価格
+ * @param int $sales_price 販売価格 フリープランを利用しているショップの場合、最低価格は100円です。
*
* @return $this
*/
diff --git a/src/Swagger/Model/V1productsproductIdProduct.php b/src/Swagger/Model/V1productsproductIdProduct.php
index 8521980..3ca826d 100644
--- a/src/Swagger/Model/V1productsproductIdProduct.php
+++ b/src/Swagger/Model/V1productsproductIdProduct.php
@@ -450,7 +450,7 @@ public function getSalesPrice()
/**
* Sets sales_price
*
- * @param int $sales_price 販売価格
+ * @param int $sales_price 販売価格 フリープランを利用しているショップの場合、最低価格は100円です。
*
* @return $this
*/
@@ -474,7 +474,7 @@ public function getMembersPrice()
/**
* Sets members_price
*
- * @param int $members_price 会員価格
+ * @param int $members_price 会員価格 フリープランを利用しているショップの場合、最低価格は100円です。
*
* @return $this
*/
@@ -651,7 +651,7 @@ public function getStocks()
/**
* Sets stocks
*
- * @param OneOfv1productsproductIdProductStocks $stocks 数値を指定した場合は、在庫数をその数値で更新します。(商品オプションごとに在庫管理している場合、このパラメータは無視されます) 以下のように`increment`を利用すると、その数値だけ在庫数を増減させることが可能です。(負の値も指定可) ```json \"stocks\": { \"increment\": 3 } ```
+ * @param OneOfv1productsproductIdProductStocks $stocks (推奨) `increment`を利用すると、その数値だけ在庫数を増減させることが可能です。負の値も指定可能です。(-1, 1 等) ```json \"stocks\": { \"increment\": 3 } ``` `increment`を利用せずに数値を指定した場合は、在庫数をその数値で更新します。商品オプションごとに在庫管理している場合、このパラメータは無視されます。
*
* @return $this
*/
diff --git a/src/Swagger/Model/V1salessaleIdSale.php b/src/Swagger/Model/V1salessaleIdSale.php
index 7f5b9ca..6311788 100644
--- a/src/Swagger/Model/V1salessaleIdSale.php
+++ b/src/Swagger/Model/V1salessaleIdSale.php
@@ -268,7 +268,7 @@ public function getPointState()
/**
* Sets point_state
*
- * @param string $point_state ショップポイントの付与状態。`fixed`へ変更すると、購入者にショップポイントが付与される。`fixed`から別のステータスには変更できない - `assumed`: 仮付与 - `fixed`: 確定済み - `cenceled`: キャンセル済み
+ * @param string $point_state ショップポイントの付与状態。`fixed`へ変更すると、購入者にショップポイントが付与される。`fixed`から別のステータスには変更できない また、受注が分割されている場合、子受注のショップポイント付与状態は変更することができません。 - `assumed`: 仮付与 - `fixed`: 確定済み - `cenceled`: キャンセル済み
*
* @return $this
*/
diff --git a/src/api/class-product-api.php b/src/api/class-product-api.php
index 60006db..6ff86e5 100644
--- a/src/api/class-product-api.php
+++ b/src/api/class-product-api.php
@@ -68,7 +68,7 @@ public function fetch( $product_id ) {
*/
public function total() {
try {
- $response = ( new Client )->send(
+ $response = ( new Client() )->send(
$this->create_request(
array(
'limit' => 1,
@@ -91,7 +91,7 @@ public function total() {
* @throws \RuntimeException
*/
public function fetch_with_callback( $fulfilled, $initial_offset, $limit ) {
- $client = new Client;
+ $client = new Client();
$total = $this->total();
$should_continue = function ( $current_offset ) use ( $total, $initial_offset, $limit ) {
@@ -131,7 +131,7 @@ public function fetch_with_callback( $fulfilled, $initial_offset, $limit ) {
*/
public function paginate( $params ) {
try {
- $response = ( new Client )->send( $this->create_request( $params ) );
+ $response = ( new Client() )->send( $this->create_request( $params ) );
} catch ( RequestException $e ) {
throw new \RuntimeException( '商品情報取得に失敗しました.' );
}
diff --git a/src/class-admin.php b/src/class-admin.php
index fb9f72c..c3aad5c 100644
--- a/src/class-admin.php
+++ b/src/class-admin.php
@@ -133,7 +133,6 @@ public function token_setting_callback() {
value="setting->token() ); ?>" class="regular-text" />
setting->client_id() ); ?>" class="regular-text" />
setting->client_secret() ); ?>" class="regular-text" />
url_builder->product_page_permalink(), 'items', $this->current_page_no );
}
}
-
diff --git a/src/class-plugin.php b/src/class-plugin.php
index a392fed..8dbe15f 100644
--- a/src/class-plugin.php
+++ b/src/class-plugin.php
@@ -83,13 +83,13 @@ public function flush_rewrite_rules( $settings = null ) {
/**
* プラグイン設定更新のコールバック
*
- * @param array $old 古い設定値
- * @param array $new 新しい設定値
+ * @param array $old_settings 古い設定値
+ * @param array $new_settings 新しい設定値
* @return void
*/
- public function on_update_settings( $old, $new ) {
+ public function on_update_settings( $old_settings, $new_settings ) {
// 商品ページIDを元にサイトマップへのリライトを定義するため
- $this->flush_rewrite_rules( $new );
+ $this->flush_rewrite_rules( $new_settings );
}
@@ -331,7 +331,7 @@ private function initialize_container() {
};
$container['model.setting'] = function ( $c ) {
- return new Setting;
+ return new Setting();
};
$container['model.sitemap'] = function ( $c ) {
@@ -366,12 +366,12 @@ private function initialize_container() {
* @return void
*/
private function register_shortcode() {
- $to_invoker_methodname = function ( $class ) {
- return '_' . str_replace( '/', '_', $class );
+ $to_invoker_methodname = function ( $klass ) {
+ return '_' . str_replace( '/', '_', $klass );
};
$shortcode_invoker = new Shortcode_Invoker( $this->container );
- $classmap = include( __DIR__ . '/../vendor/composer/autoload_classmap.php' );
+ $classmap = include __DIR__ . '/../vendor/composer/autoload_classmap.php';
foreach ( $classmap as $class => $path ) {
if ( strpos( $path, dirname( __DIR__ ) . '/src/shortcodes/' ) !== 0 ) {
continue;
diff --git a/src/models/class-sitemap.php b/src/models/class-sitemap.php
index abacd15..33a1fb9 100644
--- a/src/models/class-sitemap.php
+++ b/src/models/class-sitemap.php
@@ -45,7 +45,7 @@ public function __construct( $product_api, $url ) {
* @throws \RuntimeException
*/
public function generate_index() {
- $sitemap_index = new SitemapIndex;
+ $sitemap_index = new SitemapIndex();
$total = $this->product_api->total();
for ( $i = 0; $i <= $total; $i += self::NUMBER_OF_ITEM_URLS_PER_PAGE ) {