Diglin\Ricardo\Services\System
Class System
This service exposes referential data about the ricardo's system, for example available languages, list of categories, list of possible packages
Synopsis
- // Inherited constants from ServiceAbstract
- const TOKEN_TYPE_ANONYMOUS = 'anonymous';
- const TOKEN_TYPE_IDENTIFIED = 'identified';
- const TOKEN_TYPE_ANTIFORGERY = 'antiforgery';
- const TOKEN_TYPE_TEMPORARY = 'temporary';
- const TOKEN_TYPE_DEFAULT = '';
- // members
- protected $_service;
- protected $_typeOfToken;
- // Inherited members from ServiceAbstract
- protected $_service;
- protected $_typeOfToken;
- // methods
- public array getAllErrorsCodes()
- public array getAllErrorsCodesResult()
- public array getArticleConditions()
- public array getArticleConditionsResult()
- public array getAvailabilities()
- public array getAvailabilitiesResult()
- public array getCategories()
- public array getCategoriesResult()
- public array getCategory()
- public array getCategoryResult()
- public array getCountries()
- public array getCountriesResult()
- public array getCountryIso()
- public array getCountryIsoResult()
- public array getDeliveryConditions()
- public array getDeliveryConditionsResult()
- public array getFirstChildsCategories()
- public array getFirstChildsCategoriesResult()
- public array getLanguages()
- public array getLanguagesResult()
- public array getPackages()
- public array getPackagesResult()
- public array getParentsCategories()
- public array getParentsCategoriesResult()
- public array getPartnerConfigurations()
- public array getPartnerConfigurationsResult()
- public array getPaymentConditions()
- public array getPaymentConditionsResult()
- public array getPaymentConditionsAndMethods()
- public array getPaymentConditionsAndMethodsResult()
- public array getPaymentMethods()
- public array getPaymentMethodsResult()
- public array getPhonePrefixes()
- public array getPhonePrefixesResult()
- public array getPromotions()
- public array getPromotionsResult()
- public array getRegions()
- public array getRegionsResult()
- public array getTemplates()
- public array getTemplatesResult()
- public array getWarranties()
- public array getWarrantiesResult()
- // Inherited methods from ServiceAbstract
- public string getService()
- public string getTypeOfToken()
Hierarchy
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
971 - 996 | NPathComplexity | The method getPromotions() has an NPath complexity of 627. The configured NPath complexity threshold is 200. |
Constants
Name | Value |
---|---|
TOKEN_TYPE_ANONYMOUS | 'anonymous' |
TOKEN_TYPE_IDENTIFIED | 'identified' |
TOKEN_TYPE_ANTIFORGERY | 'antiforgery' |
TOKEN_TYPE_TEMPORARY | 'temporary' |
TOKEN_TYPE_DEFAULT | '' |
Members
protected
- $_service — string
- $_service — string
- $_typeOfToken — string
- $_typeOfToken — string
Methods
public
- getAllErrorsCodes() — Gets all errors code list.
- getAllErrorsCodesResult() — Gets the result article conditions list
- getArticleConditions() — Gets the article conditions list
- getArticleConditionsResult() — Gets the result article conditions list
- getAvailabilities() — Get the product availabilities.
- getAvailabilitiesResult() — Get the product availabilities.
- getCategories() — Gets the categories list AllCategories: - 0 = Doesn't filter any categories - 1 = Filter the categories without branding ones - 2 = Filter categories to get only the branding ones
- getCategoriesResult() — Gets the categories list result
- getCategory() — Get a category
- getCategoryResult() — Get a category result
- getCountries() — Gets the countries.
- getCountriesResult() — Get the countries result
- getCountryIso() — Gets the 2 letter country ISO.
- getCountryIsoResult() — Gets the 2 letter country ISO result
- getDeliveryConditions() — Gets the delivery conditions.
- getDeliveryConditionsResult() — Get the delivery conditions result
- getFirstChildsCategories() — Gets the first childs categories.
- getFirstChildsCategoriesResult() — Gets the first childs categories result
- getLanguages() — Gets the languages.
- getLanguagesResult() — Get the languages result
- getPackages() — Gets list of listing packages
- getPackagesResult() — Get the languages result
- getParentsCategories() — Gets the parents categories.
- getParentsCategoriesResult() — Gets the parents categories result
- getPartnerConfigurations() — Gets the partner configurations.
- getPartnerConfigurationsResult() — Get the partner configuration result
- getPaymentConditions() — Gets the payment conditions.
- getPaymentConditionsAndMethods() — Gets the payment conditions and payment function associated.
- getPaymentConditionsAndMethodsResult() — Gets the payment conditions and payment function associated result
- getPaymentConditionsResult() — Get the payment conditions result
- getPaymentMethods() — Gets the payment methods.
- getPaymentMethodsResult() — Gets the payment methods result
- getPhonePrefixes() — Gets the phone prefixes.
- getPhonePrefixesResult() — Gets the phone prefixes result
- getPromotions() — Gets the promotions.
- getPromotionsResult() — Gets the phone prefixes result
- getRegions() — Gets the regions.
- getRegionsResult() — Gets the regions result
- getTemplates() — Gets the template.
- getTemplatesResult() — Gets the template result
- getWarranties() — Gets the warranties.
- getWarrantiesResult() — Gets the warranties result
Inherited from Diglin\Ricardo\Services\ServiceAbstract
public
- getService() — Get the current name of the API service
- getTypeOfToken() — Get the type of token needed for this service <pre> It can be: - anonymous - identified - antiforgery - empty </pre>
History
-
2014-10-06T14:18:46+02:00 (commit #40224e6)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Implement method service GetCountriesIso but it's useless. No Data returned and parameter is not what we need
-
2014-09-28T11:22:59+02:00 (commit #3e11a2c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Update the License to OSL v3.0, add license file, change code header and composer.json
-
2014-09-14T22:13:45+02:00 (commit #cda6bb1)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
API changes and test
-
2014-08-14T00:05:50+02:00 (commit #0588216)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Add additional methods to services and their test
-
2014-08-10T20:18:28+02:00 (commit #fc0e52a)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Standardize namespace use
-
2014-07-07T18:27:40+02:00 (commit #3b6fa9d)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-2] [FEATURE] finish to implement the System Service for the PHP library.
-
2014-07-01T13:49:07+02:00 (commit #37b2bde)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add test for Helper, add to the helper a method to convert in both directions date from/to json/php, add the Ricardo Service System and its test (still in progress), improve information of error curl message, add method into the testAbstract to get the latest api debug
-
2014-06-22T17:08:27+02:00 (commit #61fc8b6)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add PhpUnit Tests for Security, SellerAccount (in progress) and System (in progress) Services. Add a way to configure the unit test, documentation exist to configure it thanks to a readme file Implement the security protocol at the manager level