diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1cd14ae..216501a20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # CHANGELOG +## 8.0.0 - 2017-01-26 + +### Breaking changes + +* Support Shopping API version 983. +* Support Trading API version 983. +* SDK now uses HTTPS service endpoint when available. + +### Features + +* Allow object properties to be any type. +* Support Account API version 1. +* Support Analytics API version 1. +* Support Browse API version 1. +* Support Fulfillment API version 1. +* Support Inventory API version 1. +* Support Marketing API version 1. +* Support Metadata API version 1. +* Support Order API version 1. +* Support Post Order API version 2. +* Support Product API version 1.4.0. +* Support Product Metadata API version 1.3.0. +* Support Merchandising API version 1.5.0. +* Support Feedback API version 1.2.2. +* Support Related Items Management API version 1.0.0. +* Configuration option httpOptions now supports http_errors. +* Configuration option httpOptions now supports curl. +* Oauth Token can be used with the Trading service. + ## 7.0.0 - 2016-09-03 ### Breaking changes diff --git a/Makefile b/Makefile index 0103196cd..009829748 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,18 @@ release: check_tag package # Tags the repo and publishes a release. full_release: tag release +sync_account: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Account/src/Account/ src/Account/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Account/test/Account/ test/Account/ + +sync_analytics: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Analytics/src/Analytics/ src/Analytics/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Analytics/test/Analytics/ test/Analytics/ + +sync_browse: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Browse/src/Browse/ src/Browse/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Browse/test/Browse/ test/Browse/ + sync_bulk: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/BulkDataExchange/src/BulkDataExchange/ src/BulkDataExchange/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/BulkDataExchange/test/BulkDataExchange/ test/BulkDataExchange/ @@ -87,6 +99,10 @@ sync_bus: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/BusinessPoliciesManagement/src/BusinessPoliciesManagement/ src/BusinessPoliciesManagement/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/BusinessPoliciesManagement/test/BusinessPoliciesManagement/ test/BusinessPoliciesManagement/ +sync_feedback: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Feedback/src/Feedback/ src/Feedback/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Feedback/test/Feedback/ test/Feedback/ + sync_file: rsync -rtvu --delete --exclude *BaseService.php --exclude Data.php --exclude XopInclude.php ../ebay-api-sdk-php/dist/FileTransfer/src/FileTransfer/ src/FileTransfer/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/FileTransfer/test/FileTransfer/ test/FileTransfer/ @@ -97,14 +113,54 @@ sync_finding: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Finding/src/Finding/ src/Finding/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Finding/test/Finding/ test/Finding/ +sync_fulfillment: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Fulfillment/src/Fulfillment/ src/Fulfillment/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Fulfillment/test/Fulfillment/ test/Fulfillment/ + sync_half: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/HalfFinding/src/HalfFinding/ src/HalfFinding/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/HalfFinding/test/HalfFinding/ test/HalfFinding/ +sync_inventory: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Inventory/src/Inventory/ src/Inventory/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Inventory/test/Inventory/ test/Inventory/ + +sync_marketing: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Marketing/src/Marketing/ src/Marketing/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Marketing/test/Marketing/ test/Marketing/ + +sync_merchand: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Merchandising/src/Merchandising/ src/Merchandising/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Merchandising/test/Merchandising/ test/Merchandising/ + sync_merc: rsync -rtvu --delete --exclude MerchantData.php ../ebay-api-sdk-php/dist/MerchantData/src/MerchantData/ src/MerchantData/ rsync -rtvu --delete --exclude /Mocks/ --exclude MerchantDataTest.php ../ebay-api-sdk-php/dist/MerchantData/test/MerchantData/ test/MerchantData/ +sync_metadata: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Metadata/src/Metadata/ src/Metadata/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Metadata/test/Metadata/ test/Metadata/ + +sync_order: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Order/src/Order/ src/Order/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Order/test/Order/ test/Order/ + +sync_post: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/PostOrder/src/PostOrder/ src/PostOrder/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/PostOrder/test/PostOrder/ test/PostOrder/ + +sync_product: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Product/src/Product/ src/Product/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Product/test/Product/ test/Product/ + +sync_product_metadata: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/ProductMetadata/src/ProductMetadata/ src/ProductMetadata/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/ProductMetadata/test/ProductMetadata/ test/ProductMetadata/ + +sync_related: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/RelatedItemsManagement/src/RelatedItemsManagement/ src/RelatedItemsManagement/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/RelatedItemsManagement/test/RelatedItemsManagement/ test/RelatedItemsManagement/ + sync_res: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/ResolutionCaseManagement/src/ResolutionCaseManagement/ src/ResolutionCaseManagement/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/ResolutionCaseManagement/test/ResolutionCaseManagement/ test/ResolutionCaseManagement/ @@ -121,6 +177,29 @@ sync_trade: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Trading/src/Trading/ src/Trading/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Trading/test/Trading/ test/Trading/ -sync_all: sync_bulk sync_bus sync_file sync_finding sync_half sync_merc sync_res sync_return sync_shop sync_trade +sync_all: sync_account \ + sync_analytics \ + sync_browse \ + sync_bulk \ + sync_bus \ + sync_feedback \ + sync_file \ + sync_finding \ + sync_fulfillment \ + sync_half \ + sync_inventory \ + sync_marketing \ + sync_merchand \ + sync_merc \ + sync_metadata \ + sync_order \ + sync_post \ + sync_product \ + sync_product_metadata \ + sync_related \ + sync_res \ + sync_return \ + sync_shop \ + sync_trade .PHONY: test diff --git a/README.md b/README.md index cecda74fd..792840a7b 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ printf("The official eBay time is: %s\n", $response->Timestamp->format('H:i (\G\ - Be well maintained. - Be [well documented](http://devbay.net/sdk/guides/). - - Be [well tested](https://github.com/davidtsadler/ebay-sdk-php/tree/master/test/DTS/eBaySDK). + - Be [well tested](https://github.com/davidtsadler/ebay-sdk-php/tree/master/test). - Be well supported with [working examples](https://github.com/davidtsadler/ebay-sdk-examples). ## License diff --git a/docs/getting-started/supported-services.rst b/docs/getting-started/supported-services.rst index 31e24311d..e54193589 100644 --- a/docs/getting-started/supported-services.rst +++ b/docs/getting-started/supported-services.rst @@ -10,18 +10,46 @@ Namespaces ============================= ======================================== eBay Service SDK Namespace ============================= ======================================== +`Account`_ DTS\\eBaySDK\\Account +----------------------------- ---------------------------------------- +`Analytics`_ DTS\\eBaySDK\\Analytics +----------------------------- ---------------------------------------- +`Browse`_ DTS\\eBaySDK\\Browse +----------------------------- ---------------------------------------- `Bulk Data Exchange`_ DTS\\eBaySDK\\BulkDataExchange ----------------------------- ---------------------------------------- `Business Policies`_ DTS\\eBaySDK\\BusinessPoliciesManagement ----------------------------- ---------------------------------------- +`Feedback`_ DTS\\eBaySDK\\Feedback +----------------------------- ---------------------------------------- `File Transfer`_ DTS\\eBaySDK\\FileTransfer ----------------------------- ---------------------------------------- `Finding`_ DTS\\eBaySDK\\Finding ----------------------------- ---------------------------------------- +`Fulfillment`_ DTS\\eBaySDK\\Fulfillment +----------------------------- ---------------------------------------- `Half Finding`_ DTS\\eBaySDK\\HalfFinding ----------------------------- ---------------------------------------- +`Inventory`_ DTS\\eBaySDK\\Inventory +----------------------------- ---------------------------------------- +`Marketing`_ DTS\\eBaySDK\\Marketing +----------------------------- ---------------------------------------- +`Merchandising`_ DTS\\eBaySDK\\Merchandising +----------------------------- ---------------------------------------- `Merchant Data`_ DTS\\eBaySDK\\MerchantData ----------------------------- ---------------------------------------- +`Metadata`_ DTS\\eBaySDK\\Metadata +----------------------------- ---------------------------------------- +`Order`_ DTS\\eBaySDK\\Order +----------------------------- ---------------------------------------- +`Post Order`_ DTS\\eBaySDK\\PostOrder +----------------------------- ---------------------------------------- +`Product`_ DTS\\eBaySDK\\Product +----------------------------- ---------------------------------------- +`Product Metadata`_ DTS\\eBaySDK\\ProductMetadata +----------------------------- ---------------------------------------- +`Related Items Management`_ DTS\\eBaySDK\\RelatedItemsManagement +----------------------------- ---------------------------------------- `Resolution Case Management`_ DTS\\eBaySDK\\ResolutionCaseManagement ----------------------------- ---------------------------------------- `Return Management`_ DTS\\eBaySDK\\ReturnManagement @@ -31,13 +59,27 @@ eBay Service SDK Namespace `Trading`_ DTS\\eBaySDK\\Trading ============================= ======================================== -.. _Bulk Data Exchange: http://developer.ebay.com/DevZone/bulk-data-exchange/CallRef/index.html -.. _Business Policies: http://developer.ebay.com/Devzone/business-policies/CallRef/index.html -.. _File Transfer: http://developer.ebay.com/DevZone/file-transfer/CallRef/index.html -.. _Finding: http://developer.ebay.com/Devzone/finding/CallRef/index.html -.. _Half Finding: http://developer.ebay.com/devzone/half-finding/CallRef/index.html -.. _Merchant Data: http://developer.ebay.com/DevZone/merchant-data/CallRef/index.html -.. _Resolution Case Management: http://developer.ebay.com/Devzone/resolution-case-management/CallRef/index.html -.. _Return Management: http://developer.ebay.com/Devzone/return-management/CallRef/index.html -.. _Shopping: http://developer.ebay.com/Devzone/shopping/docs/CallRef/index.html -.. _Trading: http://developer.ebay.com/Devzone/XML/docs/Reference/eBay/index.html +.. _Account: http://developer.ebay.com/devzone/rest/api-ref/account/index.html +.. _Analytics: https://developer.ebay.com/devzone/rest/api-ref/analytics/index.html +.. _Browse: https://developer.ebay.com/devzone/rest/api-ref/browse/index.html +.. _Bulk Data Exchange: https://developer.ebay.com/DevZone/bulk-data-exchange/CallRef/index.html +.. _Business Policies: https://developer.ebay.com/Devzone/business-policies/CallRef/index.html +.. _Feedback: https://developer.ebay.com/DevZone/feedback/CallRef/index.html +.. _File Transfer: https://developer.ebay.com/DevZone/file-transfer/CallRef/index.html +.. _Finding: https://developer.ebay.com/Devzone/finding/CallRef/index.html +.. _Fulfillment: https://developer.ebay.com/devzone/rest/api-ref/fulfillment/index.html +.. _Half Finding: https://developer.ebay.com/devzone/half-finding/CallRef/index.html +.. _Inventory: https://developer.ebay.com/devzone/rest/api-ref/inventory/index.html +.. _Marketing: https://developer.ebay.com/devzone/rest/api-ref/marketing/index.html +.. _Merchandising: https://developer.ebay.com/DevZone/merchandising/docs/CallRef/index.html +.. _Merchant Data: https://developer.ebay.com/DevZone/merchant-data/CallRef/index.html +.. _Metadata: https://developer.ebay.com/devzone/rest/api-ref/metadata/index.html +.. _Order: https://developer.ebay.com/devzone/rest/api-ref/order/index.html +.. _Post Order: https://developer.ebay.com/Devzone/post-order/index.html +.. _Product: https://developer.ebay.com/DevZone/product/CallRef/index.html +.. _Product Metadata: https://developer.ebay.com/DevZone/product-metadata/CallRef/index.html +.. _Related Items Management: https://developer.ebay.com/Devzone/related-items/CallRef/index.html +.. _Resolution Case Management: https://developer.ebay.com/Devzone/resolution-case-management/CallRef/index.html +.. _Return Management: https://developer.ebay.com/Devzone/return-management/CallRef/index.html +.. _Shopping: https://developer.ebay.com/Devzone/shopping/docs/CallRef/index.html +.. _Trading: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/index.html diff --git a/docs/guide/configuration.rst b/docs/guide/configuration.rst index c33c91ec9..1af372392 100644 --- a/docs/guide/configuration.rst +++ b/docs/guide/configuration.rst @@ -73,16 +73,29 @@ If you do not provide a version number the SDK will default to the value that is You should specify an apiVerion in your production code and not leave it to the default value that is provided by the SDK as you code will be dependant upon a value that will changed when the SDK is updated. +authorization +~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Trading`` +:Required: true, except for the Trading service. + +All eBay RESTful services use OAuth 2.0 access tokens for application authentication and user authorization. The token passed via ``authorization`` can be either an User or Application token. You must ensure that the token has the require scope for the operation that you are calling. + +.. warning:: + + The Trading service can accept both an OAuth and Auth'n'auth token. The OAuth token will be used by the SDK if both are specified. + authToken ~~~~~~~~~ :Type: ``string`` -:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``FileTransfer``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Trading``. +:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``Feedback``, ``FileTransfer``, ``PostOrder``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Trading``. :Required: true, except for the Trading service. -Some services require an authentication token before you can perfrom operations on behalf of an eBay user. This token can be provided via the ``authToken`` option. +Some services require an Auth'n'auth token before you can perform operations on behalf of an eBay user. This token can be provided via the ``authToken`` option. -The Trading service is different to other services in that the auth token can be passed as a configuration option or via the actual request object. Use which ever method is suitable for your project requirements. +The Trading service is different to other services in that the Auth'n'auth token can be passed as a configuration option or via the actual request object. Use which ever method is suitable for your project requirements. .. code-block:: php @@ -105,6 +118,7 @@ credentials ~~~~~~~~~~~ :Type: ``array|DTS\eBaySDK\Credentials\CredentialsInterface|callable`` +:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``Feedback``, ``FileTransfer``, ``Finding``, ``HalfFinding``, ``Merchandising``, ``Product``, ``ProductMetadata``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Shopping``, ``Trading``. Provide your "Application ID", "Certificate ID", and "Developer ID" credentials that are required when using the eBay API. If you do not provide any credentials the SDK will attempt to load them in the following order: @@ -204,12 +218,11 @@ globalId ~~~~~~~~ :Type: ``string`` -:Services: ``BusinessPoliciesManagement``, ``Finding``, ``HalfFinding``, ``ResolutionCaseManagement``, ``ReturnManagement``. +:Services: ``BusinessPoliciesManagement``, ``Finding``, ``HalfFinding``, ``Merchandising``, ``Product``, ``ProductMeta``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``. :Required For: ``BusinessPoliciesManagement`` The unique string identifier for the eBay site your API requests are to be sent to. For example, you would pass the value EBAY-US to specify the eBay US site. A `complete list of eBay global IDs `_ is available. - .. _httpHandler: httpHandler @@ -268,6 +281,30 @@ A float specifying the number of seconds to wait when trying to connect to the A ] ]); +.. _http_options_curl: + +curl +^^^^ + +:Type: ``array`` + +Depending on your project's requirments you may find that you need to set custom cURL options. This can be done by passing an associative array of `CURLOPT_XXX options `_. + +.. code-block:: php + + use DTS\eBaySDK\Finding\Services\FindingService; + + $service = new FindingService([ + 'apiVersion' => '1.13.0', + 'globalId' => 'EBAY-US', + 'httpOptions' => [ + 'curl' => [ + CURLOPT_VERBOSE => true, + CURLOPT_INTERFACE => 'xxx.xxx.xxx.xxx' + ] + ] + ]); + .. _http_options_debug: debug @@ -286,6 +323,15 @@ delay The number of milliseconds to delay before sending the request. +.. _http_options_http_errors: + +http_errors +^^^^^^^^^^^ + +:Type: ``bool`` + +Set to false to disable throwing exceptions on an HTTP protocol errors (i.e., 4xx and 5xx responses). Exceptions are thrown by default when HTTP protocol errors are encountered. + .. _http_options_proxy: proxy @@ -352,10 +398,19 @@ Control the SSL certificate verification behavior of the request. * Set to ``false`` to disable verification. You should not do this in production as the SDK will connect to the API using an insecure connection. * Pass a string that is the path to the CA bundle to be used by the SDK. +marketplaceId +~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order`` + +The string identifier for the eBay site your API requests are to be sent to. For example, you would pass the value ``EBAY-UK`` to specify the eBay UK site. + profile ~~~~~~~ :Type: ``string`` +:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``Feedback``, ``FileTransfer``, ``Finding``, ``HalfFinding``, ``Merchandising``, ``Product``, ``ProductMetadata``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Shopping``, ``Trading``. Specifies the name of a profile within the ini file that is located in your HOME directory. The SDK will attempt to load the credentials from this profile. Note that the ``credentials`` option and ``EBAY_SDK_PROFILE`` environment variable are both ignored if this option is specified. @@ -369,6 +424,22 @@ Specifies the name of a profile within the ini file that is located in your HOME 'profile' => 'production' ]); +requestLanguage +~~~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order`` + +This configuration option will set the ``Content-Language`` HTTP header for the request. + +responseLanguage +~~~~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order`` + +This configuration option will set the ``Accept-Language`` HTTP header for the request. + sandbox ~~~~~~~ @@ -378,6 +449,7 @@ eBay provides a sandbox environment for testing your API calls. Pass ``true`` to siteId ~~~~~~ + :Type: ``string|integer`` :Services: ``Shopping``, ``Trading``. :Required For: ``Trading`` @@ -394,6 +466,7 @@ Affiliate parameter for applications that have registered on the `eBay Partner N trackingPartnerCode ~~~~~~~~~~~~~~~~~~~ + :Type: ``string`` :Services: ``Shopping`` diff --git a/docs/guide/credentials.rst b/docs/guide/credentials.rst index cec1ffbc6..1856479da 100644 --- a/docs/guide/credentials.rst +++ b/docs/guide/credentials.rst @@ -9,6 +9,10 @@ In order to authenticate requests, eBay services require you to provide your `de #. :ref:`hardcoded_credentials` #. :ref:`credentials_provider` +.. note:: + + The RESTful services do not require any credentials as authentication is done through an OAuth token. Therefore this guide is only applicable to eBay's older XML services. + .. _environment_credentials: Using credentials from environment variables diff --git a/docs/guide/index.rst b/docs/guide/index.rst index 980687b72..87ebc040a 100644 --- a/docs/guide/index.rst +++ b/docs/guide/index.rst @@ -10,6 +10,7 @@ Each of the following guides describe the components that make up the eBay SDK f configuration credentials request-and-response-objects + restful-services uploading-and-downloading-files promises jmespath diff --git a/docs/guide/request-and-response-objects.rst b/docs/guide/request-and-response-objects.rst index 0957ab929..7862a0c05 100644 --- a/docs/guide/request-and-response-objects.rst +++ b/docs/guide/request-and-response-objects.rst @@ -5,7 +5,7 @@ Request and Response objects Introduction ------------ -Working with the eBay API normally involves the sending and receiving of XML. By using the SDK this is hidden from your projects and it allows you to instead work with PHP objects for both the request and the response. +Working with the eBay API normally involves the sending and receiving of XML, or JSON if using eBay's RESTful services. By using the SDK this is hidden from your projects and it allows you to instead work with PHP objects for both the request and the response. Below is an example of a typical XML request to the Finding service. @@ -44,7 +44,7 @@ Instead of constructing this XML you use the SDK to instantiate various objects. $request->paginationInput->entriesPerPage = 10; $request->paginationInput->pageNumber = 1; -Likewise, the SDK creates objects for you by parsing the XML response. The example below shows a response from the Finding service and how you would handle this in your projects. +Likewise, the SDK creates objects for you by parsing the XML/JSON response. The example below shows a response from the Finding service and how you would handle this in your projects. .. code-block:: xml @@ -214,7 +214,7 @@ You can assign HTML to a property. $request->Description = '

Bits & Bobs

Just some <stuff> I found.

'; -The SDK will handle the escaping of it in the XML. +The SDK will handle the escaping of it in the XML/JSON. .. code-block:: xml diff --git a/docs/guide/restful-services.rst b/docs/guide/restful-services.rst new file mode 100644 index 000000000..d057b6d1a --- /dev/null +++ b/docs/guide/restful-services.rst @@ -0,0 +1,142 @@ +================ +RESTful Services +================ + +The SDK supports eBay's `RESTful services `_ in the same way that it supports eBay's older XML services. It will take care of constructing the JSON request and likewise parsing the JSON response. The SDK has some features that help with using the RESTful services. + +.. note:: + + These features are only available to parts of the SDK that deal with the RESTful services. These features may become available to the rest of the SDK in a future release. + +Naming conventions +------------------ + +The names of the classes for the request and response objects follow the patten ``RestRequest`` and ``RestResponse``. That is, the name of the operation followed by either **RestRequest** or **RestResponse**. For example, when using the `Browse `_ service and calling the `GetItem `_ operation, the class name for the request object would be ``GetItemRestRequest`` and likewise the response object's would be ``GetItemRestResponse``. + +.. code-block:: php + + getItem($request); + +URI and query parameters +------------------------ + +Many of the operations in the RESTful services require the usage of URI and query parameters. The SDK exposes these parameters as properties on the request object. + +The URL below uses the 3 query parameters **category_ids**, **q** and **limit**. + +``https://api.ebay.com/buy/browse/v1/item_summary/search?category_ids=29792&q=Harry+Potter&limit=50`` + +Since the SDK exposes these parameters as object properties they can be specified as shown in the below example. + +.. code-block:: php + + category_ids = '29792'; + $request->q = 'Harry Potter'; + $request->limit = '50'; + + $response = $service->getItem($request); + + +HTTP status code +---------------- + +Response objects provide the ``getStatusCode`` method in order to get the HTTP status code of the response. + +.. code-block:: php + + if ($response->getStatusCode() === 200) { + foreach ($response->itemSummaries as $item) { + printf( + "(%s) %s: %s %.2f\n", + $item->itemId, + $item->title, + $item->price->currency, + $item->price->value + ); + } + } + +HTTP headers +------------ + +Response objects provide several methods in order to obtain the HTTP headers of the response. + +getHeaders +~~~~~~~~~~ + +Returns an associative array of headers. Each key will be a header name, and each value will be an array of strings for that header. + +.. code-block:: php + + foreach ($response->getHeaders() as $name => $values) { + printf( + "(%s) %s\n", + $name, + implode(', ', $values) + ); + } + +hasHeader +~~~~~~~~~ + +Returns true if any header names match the given header name using a case-insensitive string comparison. Returns false if no matching header name is found in the response. + +.. code-block:: php + + if ($response->hasHeader('content-length')) { + printf( + "(Content-Length) %s\n", + implode(', ', $response->getHeader('content-length')) + ); + } + +getHeader +~~~~~~~~~ + +Returns an array of string values as provided for the given header. If the header does not appear in the message, this method will return an empty array. + +.. code-block:: php + + printf( + "(Content-Length) %s\n", + implode(', ', $response->getHeader('content-length')) + ); + +getHeaderLine +~~~~~~~~~~~~~ + +Returns a string of values as provided for the given header concatenated together using a comma. If the header does not appear in the message, this method will return an empty string. + +.. code-block:: php + + printf( + "(Content-Length) %s\n", + $response->getHeader('content-length') + ); + +hasHeader +~~~~~~~~~ + +Returns true if any header names match the given header name using a case-insensitive string comparison. Returns false if no matching header name is found in the response. + +.. code-block:: php + + if ($response->hasHeader('content-length')) { + printf( + "(Content-Length) %s\n", + implode(', ', $response->getHeader('content-length')) + ); + } + diff --git a/requirements_check.php b/requirements_check.php index 1d854213a..0845ba6a0 100644 --- a/requirements_check.php +++ b/requirements_check.php @@ -131,6 +131,6 @@ public function endCheck() $check->title('PHP information'); -$check->phpinfo(); +$check->phpInfo(); $check->endCheck(); diff --git a/src/Account/Enums/CategoryTypeEnum.php b/src/Account/Enums/CategoryTypeEnum.php new file mode 100644 index 000000000..952d6c5d1 --- /dev/null +++ b/src/Account/Enums/CategoryTypeEnum.php @@ -0,0 +1,17 @@ + 'https://api.sandbox.ebay.com/sell/account', + 'production' => 'https://api.ebay.com/sell/account' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Account\Services\AccountService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Account/Services/AccountService.php b/src/Account/Services/AccountService.php new file mode 100644 index 000000000..f4cd27614 --- /dev/null +++ b/src/Account/Services/AccountService.php @@ -0,0 +1,776 @@ + [ + 'method' => 'POST', + 'resource' => 'fulfillment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestResponse', + 'params' => [ + ] + ], + 'DeleteAFulfillmentPolicy' => [ + 'method' => 'DELETE', + 'resource' => 'fulfillment_policy/{fulfillmentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestResponse', + 'params' => [ + 'fulfillmentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetFulfillmentPoliciesByMarketplace' => [ + 'method' => 'GET', + 'resource' => 'fulfillment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAFulfillmentPolicyByID' => [ + 'method' => 'GET', + 'resource' => 'fulfillment_policy/{fulfillmentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestResponse', + 'params' => [ + 'fulfillmentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAFulfillmentPolicyByName' => [ + 'method' => 'GET', + 'resource' => 'fulfillment_policy/get_by_policy_name', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateAFulfillmentPolicy' => [ + 'method' => 'PUT', + 'resource' => 'fulfillment_policy/{fulfillmentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestResponse', + 'params' => [ + 'fulfillmentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAPaymentPolicy' => [ + 'method' => 'POST', + 'resource' => 'payment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestResponse', + 'params' => [ + ] + ], + 'DeleteAPaymentPolicy' => [ + 'method' => 'DELETE', + 'resource' => 'payment_policy/{payment_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestResponse', + 'params' => [ + 'payment_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPaymentPoliciesByMarketplace' => [ + 'method' => 'GET', + 'resource' => 'payment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAPaymentPolicyByID' => [ + 'method' => 'GET', + 'resource' => 'payment_policy/{paymentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestResponse', + 'params' => [ + 'paymentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAPaymentPolicyByName' => [ + 'method' => 'GET', + 'resource' => 'payment_policy/get_by_policy_name', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateAPaymentPolicy' => [ + 'method' => 'PUT', + 'resource' => 'payment_policy/{payment_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestResponse', + 'params' => [ + 'payment_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAccountPrivileges' => [ + 'method' => 'GET', + 'resource' => 'privilege', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAccountPrivilegesRestResponse', + 'params' => [ + ] + ], + 'GetOptedInPrograms' => [ + 'method' => 'GET', + 'resource' => 'program/get_opted_in_programs', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetOptedInProgramsRestResponse', + 'params' => [ + ] + ], + 'OptInToProgram' => [ + 'method' => 'POST', + 'resource' => 'program/opt_in', + 'responseClass' => '\DTS\eBaySDK\Account\Types\OptInToProgramRestResponse', + 'params' => [ + ] + ], + 'OptOutOfProgram' => [ + 'method' => 'POST', + 'resource' => 'program/opt_out', + 'responseClass' => '\DTS\eBaySDK\Account\Types\OptOutOfProgramRestResponse', + 'params' => [ + ] + ], + 'CreateAReturnPolicy' => [ + 'method' => 'POST', + 'resource' => 'return_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse', + 'params' => [ + ] + ], + 'DeleteAReturnPolicy' => [ + 'method' => 'DELETE', + 'resource' => 'return_policy/{return_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestResponse', + 'params' => [ + 'return_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnPoliciesByMarketplace' => [ + 'method' => 'GET', + 'resource' => 'return_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAReturnPolicyByID' => [ + 'method' => 'GET', + 'resource' => 'return_policy/{returnPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestResponse', + 'params' => [ + 'returnPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAReturnPolicyByName' => [ + 'method' => 'GET', + 'resource' => 'return_policy/get_by_policy_name', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateAReturnPolicy' => [ + 'method' => 'PUT', + 'resource' => 'return_policy/{return_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestResponse', + 'params' => [ + 'return_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateASalesTaxTable' => [ + 'method' => 'PUT', + 'resource' => 'sales_tax/{countryCode}/{jurisdictionId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ], + 'jurisdictionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteASalesTaxTable' => [ + 'method' => 'DELETE', + 'resource' => 'sales_tax/{countryCode}/{jurisdictionId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ], + 'jurisdictionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetASalesTaxTable' => [ + 'method' => 'GET', + 'resource' => 'sales_tax/{countryCode}/{jurisdictionId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ], + 'jurisdictionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAllSalesTaxTables' => [ + 'method' => 'GET', + 'resource' => 'sales_tax', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestResponse', + 'params' => [ + 'country_code' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestResponse + */ + public function createAFulfillmentPolicy(\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request) + { + return $this->createAFulfillmentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAFulfillmentPolicyAsync(\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request) + { + return $this->callOperationAsync('CreateAFulfillmentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestResponse + */ + public function deleteAFulfillmentPolicy(\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request) + { + return $this->deleteAFulfillmentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAFulfillmentPolicyAsync(\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request) + { + return $this->callOperationAsync('DeleteAFulfillmentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestResponse + */ + public function getFulfillmentPoliciesByMarketplace(\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request) + { + return $this->getFulfillmentPoliciesByMarketplaceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFulfillmentPoliciesByMarketplaceAsync(\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request) + { + return $this->callOperationAsync('GetFulfillmentPoliciesByMarketplace', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestResponse + */ + public function getAFulfillmentPolicyByID(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request) + { + return $this->getAFulfillmentPolicyByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAFulfillmentPolicyByIDAsync(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request) + { + return $this->callOperationAsync('GetAFulfillmentPolicyByID', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestResponse + */ + public function getAFulfillmentPolicyByName(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request) + { + return $this->getAFulfillmentPolicyByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAFulfillmentPolicyByNameAsync(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request) + { + return $this->callOperationAsync('GetAFulfillmentPolicyByName', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestResponse + */ + public function updateAFulfillmentPolicy(\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request) + { + return $this->updateAFulfillmentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateAFulfillmentPolicyAsync(\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request) + { + return $this->callOperationAsync('UpdateAFulfillmentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestResponse + */ + public function createAPaymentPolicy(\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request) + { + return $this->createAPaymentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAPaymentPolicyAsync(\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request) + { + return $this->callOperationAsync('CreateAPaymentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestResponse + */ + public function deleteAPaymentPolicy(\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request) + { + return $this->deleteAPaymentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAPaymentPolicyAsync(\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request) + { + return $this->callOperationAsync('DeleteAPaymentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestResponse + */ + public function getPaymentPoliciesByMarketplace(\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request) + { + return $this->getPaymentPoliciesByMarketplaceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPaymentPoliciesByMarketplaceAsync(\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request) + { + return $this->callOperationAsync('GetPaymentPoliciesByMarketplace', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestResponse + */ + public function getAPaymentPolicyByID(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request) + { + return $this->getAPaymentPolicyByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAPaymentPolicyByIDAsync(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request) + { + return $this->callOperationAsync('GetAPaymentPolicyByID', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestResponse + */ + public function getAPaymentPolicyByName(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request) + { + return $this->getAPaymentPolicyByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAPaymentPolicyByNameAsync(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request) + { + return $this->callOperationAsync('GetAPaymentPolicyByName', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestResponse + */ + public function updateAPaymentPolicy(\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request) + { + return $this->updateAPaymentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateAPaymentPolicyAsync(\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request) + { + return $this->callOperationAsync('UpdateAPaymentPolicy', $request); + } + + /** + * @return \DTS\eBaySDK\Account\Types\GetAccountPrivilegesRestResponse + */ + public function getAccountPrivileges() + { + return $this->getAccountPrivilegesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAccountPrivilegesAsync() + { + return $this->callOperationAsync('GetAccountPrivileges'); + } + + /** + * @return \DTS\eBaySDK\Account\Types\GetOptedInProgramsRestResponse + */ + public function getOptedInPrograms() + { + return $this->getOptedInProgramsAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOptedInProgramsAsync() + { + return $this->callOperationAsync('GetOptedInPrograms'); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request + * @return \DTS\eBaySDK\Account\Types\OptInToProgramRestResponse + */ + public function optInToProgram(\DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request) + { + return $this->optInToProgramAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function optInToProgramAsync(\DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request) + { + return $this->callOperationAsync('OptInToProgram', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request + * @return \DTS\eBaySDK\Account\Types\OptOutOfProgramRestResponse + */ + public function optOutOfProgram(\DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request) + { + return $this->optOutOfProgramAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function optOutOfProgramAsync(\DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request) + { + return $this->callOperationAsync('OptOutOfProgram', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse + */ + public function createAReturnPolicy(\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request) + { + return $this->createAReturnPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAReturnPolicyAsync(\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request) + { + return $this->callOperationAsync('CreateAReturnPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestResponse + */ + public function deleteAReturnPolicy(\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request) + { + return $this->deleteAReturnPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAReturnPolicyAsync(\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request) + { + return $this->callOperationAsync('DeleteAReturnPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestResponse + */ + public function getReturnPoliciesByMarketplace(\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request) + { + return $this->getReturnPoliciesByMarketplaceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnPoliciesByMarketplaceAsync(\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request) + { + return $this->callOperationAsync('GetReturnPoliciesByMarketplace', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestResponse + */ + public function getAReturnPolicyByID(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request) + { + return $this->getAReturnPolicyByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAReturnPolicyByIDAsync(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request) + { + return $this->callOperationAsync('GetAReturnPolicyByID', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestResponse + */ + public function getAReturnPolicyByName(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request) + { + return $this->getAReturnPolicyByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAReturnPolicyByNameAsync(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request) + { + return $this->callOperationAsync('GetAReturnPolicyByName', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestResponse + */ + public function updateAReturnPolicy(\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request) + { + return $this->updateAReturnPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateAReturnPolicyAsync(\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request) + { + return $this->callOperationAsync('UpdateAReturnPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestResponse + */ + public function createASalesTaxTable(\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request) + { + return $this->createASalesTaxTableAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createASalesTaxTableAsync(\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request) + { + return $this->callOperationAsync('CreateASalesTaxTable', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestResponse + */ + public function deleteASalesTaxTable(\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request) + { + return $this->deleteASalesTaxTableAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteASalesTaxTableAsync(\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request) + { + return $this->callOperationAsync('DeleteASalesTaxTable', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetASalesTaxTableRestResponse + */ + public function getASalesTaxTable(\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request) + { + return $this->getASalesTaxTableAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getASalesTaxTableAsync(\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request) + { + return $this->callOperationAsync('GetASalesTaxTable', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestResponse + */ + public function getAllSalesTaxTables(\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request) + { + return $this->getAllSalesTaxTablesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllSalesTaxTablesAsync(\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request) + { + return $this->callOperationAsync('GetAllSalesTaxTables', $request); + } +} diff --git a/src/Account/Types/Amount.php b/src/Account/Types/Amount.php new file mode 100644 index 000000000..d4edfbde7 --- /dev/null +++ b/src/Account/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CategoryType.php b/src/Account/Types/CategoryType.php new file mode 100644 index 000000000..28024fdfc --- /dev/null +++ b/src/Account/Types/CategoryType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'default' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAFulfillmentPolicyRestRequest.php b/src/Account/Types/CreateAFulfillmentPolicyRestRequest.php new file mode 100644 index 000000000..e9a26fda0 --- /dev/null +++ b/src/Account/Types/CreateAFulfillmentPolicyRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAFulfillmentPolicyRestResponse.php b/src/Account/Types/CreateAFulfillmentPolicyRestResponse.php new file mode 100644 index 000000000..0084967c5 --- /dev/null +++ b/src/Account/Types/CreateAFulfillmentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/CreateAPaymentPolicyRestRequest.php b/src/Account/Types/CreateAPaymentPolicyRestRequest.php new file mode 100644 index 000000000..1f6f49f96 --- /dev/null +++ b/src/Account/Types/CreateAPaymentPolicyRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAPaymentPolicyRestResponse.php b/src/Account/Types/CreateAPaymentPolicyRestResponse.php new file mode 100644 index 000000000..d609ff8bb --- /dev/null +++ b/src/Account/Types/CreateAPaymentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/CreateAReturnPolicyRestRequest.php b/src/Account/Types/CreateAReturnPolicyRestRequest.php new file mode 100644 index 000000000..d2d33048e --- /dev/null +++ b/src/Account/Types/CreateAReturnPolicyRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAReturnPolicyRestResponse.php b/src/Account/Types/CreateAReturnPolicyRestResponse.php new file mode 100644 index 000000000..bf17220eb --- /dev/null +++ b/src/Account/Types/CreateAReturnPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/CreateASalesTaxTableRestRequest.php b/src/Account/Types/CreateASalesTaxTableRestRequest.php new file mode 100644 index 000000000..e7f4a0487 --- /dev/null +++ b/src/Account/Types/CreateASalesTaxTableRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'jurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateASalesTaxTableRestResponse.php b/src/Account/Types/CreateASalesTaxTableRestResponse.php new file mode 100644 index 000000000..0d901513c --- /dev/null +++ b/src/Account/Types/CreateASalesTaxTableRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php b/src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php new file mode 100644 index 000000000..cc2980b3b --- /dev/null +++ b/src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php b/src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php new file mode 100644 index 000000000..ac1cfc862 --- /dev/null +++ b/src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteAPaymentPolicyRestRequest.php b/src/Account/Types/DeleteAPaymentPolicyRestRequest.php new file mode 100644 index 000000000..9712a6666 --- /dev/null +++ b/src/Account/Types/DeleteAPaymentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payment_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteAPaymentPolicyRestResponse.php b/src/Account/Types/DeleteAPaymentPolicyRestResponse.php new file mode 100644 index 000000000..5330c7005 --- /dev/null +++ b/src/Account/Types/DeleteAPaymentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteAReturnPolicyRestRequest.php b/src/Account/Types/DeleteAReturnPolicyRestRequest.php new file mode 100644 index 000000000..36cb6365b --- /dev/null +++ b/src/Account/Types/DeleteAReturnPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteAReturnPolicyRestResponse.php b/src/Account/Types/DeleteAReturnPolicyRestResponse.php new file mode 100644 index 000000000..468c8e414 --- /dev/null +++ b/src/Account/Types/DeleteAReturnPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteASalesTaxTableRestRequest.php b/src/Account/Types/DeleteASalesTaxTableRestRequest.php new file mode 100644 index 000000000..979f5dbc2 --- /dev/null +++ b/src/Account/Types/DeleteASalesTaxTableRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'jurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteASalesTaxTableRestResponse.php b/src/Account/Types/DeleteASalesTaxTableRestResponse.php new file mode 100644 index 000000000..b685e1eb0 --- /dev/null +++ b/src/Account/Types/DeleteASalesTaxTableRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/Deposit.php b/src/Account/Types/Deposit.php new file mode 100644 index 000000000..c7fd41017 --- /dev/null +++ b/src/Account/Types/Deposit.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'dueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dueIn' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ErrorDetailV3.php b/src/Account/Types/ErrorDetailV3.php new file mode 100644 index 000000000..89e42a183 --- /dev/null +++ b/src/Account/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ErrorParameterV3.php b/src/Account/Types/ErrorParameterV3.php new file mode 100644 index 000000000..0488dcf0b --- /dev/null +++ b/src/Account/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ExternalPaymentMethod.php b/src/Account/Types/ExternalPaymentMethod.php new file mode 100644 index 000000000..abeea75a8 --- /dev/null +++ b/src/Account/Types/ExternalPaymentMethod.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodName' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ], + 'primary' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primary' + ], + 'verified' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'verified' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/FulfillmentPolicy.php b/src/Account/Types/FulfillmentPolicy.php new file mode 100644 index 000000000..94b3e9c71 --- /dev/null +++ b/src/Account/Types/FulfillmentPolicy.php @@ -0,0 +1,123 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'freightShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freightShipping' + ], + 'fulfillmentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ], + 'globalShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalShipping' + ], + 'handlingTime' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'handlingTime' + ], + 'localPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localPickup' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'pickupDropOff' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupDropOff' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/FulfillmentPolicyRequest.php b/src/Account/Types/FulfillmentPolicyRequest.php new file mode 100644 index 000000000..7ab7f6da0 --- /dev/null +++ b/src/Account/Types/FulfillmentPolicyRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'freightShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freightShipping' + ], + 'globalShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalShipping' + ], + 'handlingTime' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'handlingTime' + ], + 'localPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localPickup' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'pickupDropOff' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupDropOff' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/FulfillmentPolicyResponse.php b/src/Account/Types/FulfillmentPolicyResponse.php new file mode 100644 index 000000000..7a2855691 --- /dev/null +++ b/src/Account/Types/FulfillmentPolicyResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\FulfillmentPolicy', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicies' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php b/src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php new file mode 100644 index 000000000..d62896e15 --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php b/src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php new file mode 100644 index 000000000..ac6667841 --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php b/src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php new file mode 100644 index 000000000..d931366e9 --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php b/src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php new file mode 100644 index 000000000..bf758890c --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByIDRestRequest.php b/src/Account/Types/GetAPaymentPolicyByIDRestRequest.php new file mode 100644 index 000000000..a59b65373 --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByIDRestResponse.php b/src/Account/Types/GetAPaymentPolicyByIDRestResponse.php new file mode 100644 index 000000000..938dc0f43 --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByNameRestRequest.php b/src/Account/Types/GetAPaymentPolicyByNameRestRequest.php new file mode 100644 index 000000000..6a52f0e83 --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByNameRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByNameRestResponse.php b/src/Account/Types/GetAPaymentPolicyByNameRestResponse.php new file mode 100644 index 000000000..89f05f95e --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByIDRestRequest.php b/src/Account/Types/GetAReturnPolicyByIDRestRequest.php new file mode 100644 index 000000000..0bc4d7b49 --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByIDRestResponse.php b/src/Account/Types/GetAReturnPolicyByIDRestResponse.php new file mode 100644 index 000000000..c78d121c3 --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByNameRestRequest.php b/src/Account/Types/GetAReturnPolicyByNameRestRequest.php new file mode 100644 index 000000000..b21a8695b --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByNameRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByNameRestResponse.php b/src/Account/Types/GetAReturnPolicyByNameRestResponse.php new file mode 100644 index 000000000..1c8d97764 --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetASalesTaxTableRestRequest.php b/src/Account/Types/GetASalesTaxTableRestRequest.php new file mode 100644 index 000000000..ab6ec6fdd --- /dev/null +++ b/src/Account/Types/GetASalesTaxTableRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'jurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetASalesTaxTableRestResponse.php b/src/Account/Types/GetASalesTaxTableRestResponse.php new file mode 100644 index 000000000..10784a7e1 --- /dev/null +++ b/src/Account/Types/GetASalesTaxTableRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAccountPrivilegesRestResponse.php b/src/Account/Types/GetAccountPrivilegesRestResponse.php new file mode 100644 index 000000000..67fd606f8 --- /dev/null +++ b/src/Account/Types/GetAccountPrivilegesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAllSalesTaxTablesRestRequest.php b/src/Account/Types/GetAllSalesTaxTablesRestRequest.php new file mode 100644 index 000000000..c27c8f7c4 --- /dev/null +++ b/src/Account/Types/GetAllSalesTaxTablesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country_code' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAllSalesTaxTablesRestResponse.php b/src/Account/Types/GetAllSalesTaxTablesRestResponse.php new file mode 100644 index 000000000..5f7976e33 --- /dev/null +++ b/src/Account/Types/GetAllSalesTaxTablesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php new file mode 100644 index 000000000..aa20b02f4 --- /dev/null +++ b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php new file mode 100644 index 000000000..f4ba5f6f5 --- /dev/null +++ b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetOptedInProgramsRestResponse.php b/src/Account/Types/GetOptedInProgramsRestResponse.php new file mode 100644 index 000000000..07f18a8f9 --- /dev/null +++ b/src/Account/Types/GetOptedInProgramsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php new file mode 100644 index 000000000..20dceea96 --- /dev/null +++ b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php new file mode 100644 index 000000000..231676198 --- /dev/null +++ b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php b/src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php new file mode 100644 index 000000000..729b84735 --- /dev/null +++ b/src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php b/src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php new file mode 100644 index 000000000..94d92789e --- /dev/null +++ b/src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/InventorySizing.php b/src/Account/Types/InventorySizing.php new file mode 100644 index 000000000..34b7b75cd --- /dev/null +++ b/src/Account/Types/InventorySizing.php @@ -0,0 +1,67 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentAvailableQuantity' + ], + 'currentInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentInventoryValue' + ], + 'inventorySnapshots' => [ + 'type' => 'DTS\eBaySDK\Account\Types\InventorySnapshot', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventorySnapshots' + ], + 'primarySalesCategory' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primarySalesCategory' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/InventorySnapshot.php b/src/Account/Types/InventorySnapshot.php new file mode 100644 index 000000000..bc49ce922 --- /dev/null +++ b/src/Account/Types/InventorySnapshot.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cumulativeInventoryValue' + ], + 'cumulativeQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cumulativeQuantity' + ], + 'lookbackPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\LookbackPeriod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackPeriod' + ], + 'maxAvailableQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxAvailableQuantity' + ], + 'maxInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxInventoryValue' + ], + 'minAvailableQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minAvailableQuantity' + ], + 'minInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minInventoryValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/LookbackPeriod.php b/src/Account/Types/LookbackPeriod.php new file mode 100644 index 000000000..6cc5cb2f8 --- /dev/null +++ b/src/Account/Types/LookbackPeriod.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lifetime' + ], + 'timeDuration' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timeDuration' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/MerchantExternalProfile.php b/src/Account/Types/MerchantExternalProfile.php new file mode 100644 index 000000000..ddc6a4b52 --- /dev/null +++ b/src/Account/Types/MerchantExternalProfile.php @@ -0,0 +1,102 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ExternalPaymentMethod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'acceptedPaymentMethods' + ], + 'accountCreationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'accountCreationDate' + ], + 'billingPaymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ExternalPaymentMethod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'billingPaymentMethods' + ], + 'inventorySizing' => [ + 'type' => 'DTS\eBaySDK\Account\Types\InventorySizing', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventorySizing' + ], + 'merchantCategoryCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantCategoryCode' + ], + 'primaryCurrency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryCurrency' + ], + 'returnSnapshots' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ReturnSnapshot', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnSnapshots' + ], + 'sicCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sicCode' + ], + 'transactionVolume' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TransactionVolume', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionVolume' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/OptInToProgramRestRequest.php b/src/Account/Types/OptInToProgramRestRequest.php new file mode 100644 index 000000000..4ab396456 --- /dev/null +++ b/src/Account/Types/OptInToProgramRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/OptInToProgramRestResponse.php b/src/Account/Types/OptInToProgramRestResponse.php new file mode 100644 index 000000000..7a078cd88 --- /dev/null +++ b/src/Account/Types/OptInToProgramRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/OptOutOfProgramRestRequest.php b/src/Account/Types/OptOutOfProgramRestRequest.php new file mode 100644 index 000000000..06d977537 --- /dev/null +++ b/src/Account/Types/OptOutOfProgramRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/OptOutOfProgramRestResponse.php b/src/Account/Types/OptOutOfProgramRestResponse.php new file mode 100644 index 000000000..299fb4590 --- /dev/null +++ b/src/Account/Types/OptOutOfProgramRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/PaymentMethod.php b/src/Account/Types/PaymentMethod.php new file mode 100644 index 000000000..d880ecf0a --- /dev/null +++ b/src/Account/Types/PaymentMethod.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'brands' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ], + 'recipientAccountReference' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RecipientAccountReference', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipientAccountReference' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/PaymentPolicy.php b/src/Account/Types/PaymentPolicy.php new file mode 100644 index 000000000..7b19992b4 --- /dev/null +++ b/src/Account/Types/PaymentPolicy.php @@ -0,0 +1,109 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'deposit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Deposit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deposit' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'fullPaymentDueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullPaymentDueIn' + ], + 'immediatePay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'immediatePay' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'paymentInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstructions' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ], + 'paymentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/PaymentPolicyRequest.php b/src/Account/Types/PaymentPolicyRequest.php new file mode 100644 index 000000000..1763c4721 --- /dev/null +++ b/src/Account/Types/PaymentPolicyRequest.php @@ -0,0 +1,102 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'deposit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Deposit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deposit' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'fullPaymentDueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullPaymentDueIn' + ], + 'immediatePay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'immediatePay' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'paymentInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstructions' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/PaymentPolicyResponse.php b/src/Account/Types/PaymentPolicyResponse.php new file mode 100644 index 000000000..74483d1ec --- /dev/null +++ b/src/Account/Types/PaymentPolicyResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'paymentPolicies' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentPolicy', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentPolicies' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/Program.php b/src/Account/Types/Program.php new file mode 100644 index 000000000..f9f5be2bf --- /dev/null +++ b/src/Account/Types/Program.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'programType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/Programs.php b/src/Account/Types/Programs.php new file mode 100644 index 000000000..a315a09e0 --- /dev/null +++ b/src/Account/Types/Programs.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Program', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'programs' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/RecipientAccountReference.php b/src/Account/Types/RecipientAccountReference.php new file mode 100644 index 000000000..c043a8945 --- /dev/null +++ b/src/Account/Types/RecipientAccountReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'referenceId' + ], + 'referenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'referenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/Region.php b/src/Account/Types/Region.php new file mode 100644 index 000000000..b37beaf00 --- /dev/null +++ b/src/Account/Types/Region.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'regionName' + ], + 'regionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'regionType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/RegionSet.php b/src/Account/Types/RegionSet.php new file mode 100644 index 000000000..9b379c534 --- /dev/null +++ b/src/Account/Types/RegionSet.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Region', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'regionExcluded' + ], + 'regionIncluded' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Region', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'regionIncluded' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnPolicy.php b/src/Account/Types/ReturnPolicy.php new file mode 100644 index 000000000..e25f6564f --- /dev/null +++ b/src/Account/Types/ReturnPolicy.php @@ -0,0 +1,130 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'extendedHolidayReturnsOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnPolicyRequest.php b/src/Account/Types/ReturnPolicyRequest.php new file mode 100644 index 000000000..39191c2ae --- /dev/null +++ b/src/Account/Types/ReturnPolicyRequest.php @@ -0,0 +1,123 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'extendedHolidayReturnsOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnPolicyResponse.php b/src/Account/Types/ReturnPolicyResponse.php new file mode 100644 index 000000000..c83be0700 --- /dev/null +++ b/src/Account/Types/ReturnPolicyResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'returnPolicies' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ReturnPolicy', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'returnPolicies' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnSnapshot.php b/src/Account/Types/ReturnSnapshot.php new file mode 100644 index 000000000..583880ece --- /dev/null +++ b/src/Account/Types/ReturnSnapshot.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\LookbackPeriod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackPeriod' + ], + 'returnedInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnedInventoryValue' + ], + 'returnedQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnedQuantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SalesTax.php b/src/Account/Types/SalesTax.php new file mode 100644 index 000000000..28546fe7d --- /dev/null +++ b/src/Account/Types/SalesTax.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'salesTaxJurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxJurisdictionId' + ], + 'salesTaxPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxPercentage' + ], + 'shippingAndHandlingTaxed' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAndHandlingTaxed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SalesTaxBase.php b/src/Account/Types/SalesTaxBase.php new file mode 100644 index 000000000..bb0dd7119 --- /dev/null +++ b/src/Account/Types/SalesTaxBase.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxPercentage' + ], + 'shippingAndHandlingTaxed' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAndHandlingTaxed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SalesTaxes.php b/src/Account/Types/SalesTaxes.php new file mode 100644 index 000000000..edda94b44 --- /dev/null +++ b/src/Account/Types/SalesTaxes.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\SalesTax', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'salesTaxes' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SellingLimit.php b/src/Account/Types/SellingLimit.php new file mode 100644 index 000000000..71b27866b --- /dev/null +++ b/src/Account/Types/SellingLimit.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SellingPrivileges.php b/src/Account/Types/SellingPrivileges.php new file mode 100644 index 000000000..15510ff5d --- /dev/null +++ b/src/Account/Types/SellingPrivileges.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerRegistrationCompleted' + ], + 'sellingLimit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\SellingLimit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellingLimit' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SetFulfillmentPolicyResponse.php b/src/Account/Types/SetFulfillmentPolicyResponse.php new file mode 100644 index 000000000..9b3df748e --- /dev/null +++ b/src/Account/Types/SetFulfillmentPolicyResponse.php @@ -0,0 +1,130 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'freightShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freightShipping' + ], + 'fulfillmentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ], + 'globalShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalShipping' + ], + 'handlingTime' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'handlingTime' + ], + 'localPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localPickup' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'pickupDropOff' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupDropOff' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SetPaymentPolicyResponse.php b/src/Account/Types/SetPaymentPolicyResponse.php new file mode 100644 index 000000000..562862930 --- /dev/null +++ b/src/Account/Types/SetPaymentPolicyResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'deposit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Deposit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deposit' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'fullPaymentDueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullPaymentDueIn' + ], + 'immediatePay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'immediatePay' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'paymentInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstructions' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ], + 'paymentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SetReturnPolicyResponse.php b/src/Account/Types/SetReturnPolicyResponse.php new file mode 100644 index 000000000..78f380772 --- /dev/null +++ b/src/Account/Types/SetReturnPolicyResponse.php @@ -0,0 +1,137 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'extendedHolidayReturnsOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ShippingOption.php b/src/Account/Types/ShippingOption.php new file mode 100644 index 000000000..bb7400271 --- /dev/null +++ b/src/Account/Types/ShippingOption.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'costType' + ], + 'insuranceFee' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'insuranceFee' + ], + 'insuranceOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'insuranceOffered' + ], + 'optionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'optionType' + ], + 'packageHandlingCost' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'packageHandlingCost' + ], + 'shippingServices' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingService', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingServices' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ShippingService.php b/src/Account/Types/ShippingService.php new file mode 100644 index 000000000..20057a0a7 --- /dev/null +++ b/src/Account/Types/ShippingService.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'additionalShippingCost' + ], + 'buyerResponsibleForPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponsibleForPickup' + ], + 'buyerResponsibleForShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponsibleForShipping' + ], + 'cashOnDeliveryFee' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cashOnDeliveryFee' + ], + 'freeShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freeShipping' + ], + 'shippingCarrierCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingServiceCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceCode' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ], + 'sortOrder' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'surcharge' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'surcharge' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SoldAggregatedMetrics.php b/src/Account/Types/SoldAggregatedMetrics.php new file mode 100644 index 000000000..8ccc3a097 --- /dev/null +++ b/src/Account/Types/SoldAggregatedMetrics.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxSoldInventoryValue' + ], + 'maxSoldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxSoldQuantity' + ], + 'minSoldInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minSoldInventoryValue' + ], + 'minSoldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minSoldQuantity' + ], + 'period' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'period' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/TimeDuration.php b/src/Account/Types/TimeDuration.php new file mode 100644 index 000000000..b29bb63e7 --- /dev/null +++ b/src/Account/Types/TimeDuration.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/TransactionSnapshot.php b/src/Account/Types/TransactionSnapshot.php new file mode 100644 index 000000000..8b47cbd25 --- /dev/null +++ b/src/Account/Types/TransactionSnapshot.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\SoldAggregatedMetrics', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'calendarWindowAggregatedMetrics' + ], + 'lookbackPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\LookbackPeriod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackPeriod' + ], + 'rollingWindowAggregatedMetrics' => [ + 'type' => 'DTS\eBaySDK\Account\Types\SoldAggregatedMetrics', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rollingWindowAggregatedMetrics' + ], + 'soldInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldInventoryValue' + ], + 'soldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldQuantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/TransactionVolume.php b/src/Account/Types/TransactionVolume.php new file mode 100644 index 000000000..a0a6c2fd1 --- /dev/null +++ b/src/Account/Types/TransactionVolume.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstOrderDate' + ], + 'transactionSnapshots' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TransactionSnapshot', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionSnapshots' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php b/src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php new file mode 100644 index 000000000..085ac51c1 --- /dev/null +++ b/src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php b/src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php new file mode 100644 index 000000000..9dd680ffb --- /dev/null +++ b/src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/UpdateAPaymentPolicyRestRequest.php b/src/Account/Types/UpdateAPaymentPolicyRestRequest.php new file mode 100644 index 000000000..661249702 --- /dev/null +++ b/src/Account/Types/UpdateAPaymentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payment_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAPaymentPolicyRestResponse.php b/src/Account/Types/UpdateAPaymentPolicyRestResponse.php new file mode 100644 index 000000000..36db18151 --- /dev/null +++ b/src/Account/Types/UpdateAPaymentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/UpdateAReturnPolicyRestRequest.php b/src/Account/Types/UpdateAReturnPolicyRestRequest.php new file mode 100644 index 000000000..1d7211c7c --- /dev/null +++ b/src/Account/Types/UpdateAReturnPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAReturnPolicyRestResponse.php b/src/Account/Types/UpdateAReturnPolicyRestResponse.php new file mode 100644 index 000000000..1dbd91bea --- /dev/null +++ b/src/Account/Types/UpdateAReturnPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Enums/CycleTypeEnum.php b/src/Analytics/Enums/CycleTypeEnum.php new file mode 100644 index 000000000..7de80679f --- /dev/null +++ b/src/Analytics/Enums/CycleTypeEnum.php @@ -0,0 +1,17 @@ + 'https://api.sandbox.ebay.com/sell/analytics', + 'production' => 'https://api.ebay.com/sell/analytics' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Analytics\Services\AnalyticsService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Analytics/Services/AnalyticsService.php b/src/Analytics/Services/AnalyticsService.php new file mode 100644 index 000000000..93e5da3e0 --- /dev/null +++ b/src/Analytics/Services/AnalyticsService.php @@ -0,0 +1,122 @@ + [ + 'method' => 'GET', + 'resource' => 'seller_standards_profile/{program}/{cycle}', + 'responseClass' => '\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestResponse', + 'params' => [ + 'cycle' => [ + 'valid' => ['string'], + 'required' => true + ], + 'program' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAllSellerProfiles' => [ + 'method' => 'GET', + 'resource' => 'seller_standards_profile', + 'responseClass' => '\DTS\eBaySDK\Analytics\Types\GetAllSellerProfilesRestResponse', + 'params' => [ + ] + ], + 'GetTrafficReport' => [ + 'method' => 'GET', + 'resource' => 'traffic_report', + 'responseClass' => '\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestResponse', + 'params' => [ + 'dimension' => [ + 'valid' => ['string'], + 'required' => true + ], + 'filter' => [ + 'valid' => ['string'] + ], + 'metric' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request + * @return \DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestResponse + */ + public function getASpecificSellerProfile(\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request) + { + return $this->getASpecificSellerProfileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getASpecificSellerProfileAsync(\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request) + { + return $this->callOperationAsync('GetASpecificSellerProfile', $request); + } + + /** + * @return \DTS\eBaySDK\Analytics\Types\GetAllSellerProfilesRestResponse + */ + public function getAllSellerProfiles() + { + return $this->getAllSellerProfilesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllSellerProfilesAsync() + { + return $this->callOperationAsync('GetAllSellerProfiles'); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request + * @return \DTS\eBaySDK\Analytics\Types\GetTrafficReportRestResponse + */ + public function getTrafficReport(\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request) + { + return $this->getTrafficReportAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTrafficReportAsync(\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request) + { + return $this->callOperationAsync('GetTrafficReport', $request); + } +} diff --git a/src/Analytics/Types/Cycle.php b/src/Analytics/Types/Cycle.php new file mode 100644 index 000000000..c4be5f646 --- /dev/null +++ b/src/Analytics/Types/Cycle.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cycleType' + ], + 'evaluationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'evaluationDate' + ], + 'evaluationMonth' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'evaluationMonth' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Definition.php b/src/Analytics/Types/Definition.php new file mode 100644 index 000000000..5e15abc91 --- /dev/null +++ b/src/Analytics/Types/Definition.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'key' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'key' + ], + 'localizedName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localizedName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/ErrorDetailV3.php b/src/Analytics/Types/ErrorDetailV3.php new file mode 100644 index 000000000..8ff198c51 --- /dev/null +++ b/src/Analytics/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/ErrorParameterV3.php b/src/Analytics/Types/ErrorParameterV3.php new file mode 100644 index 000000000..c8499c1d8 --- /dev/null +++ b/src/Analytics/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/FilterField.php b/src/Analytics/Types/FilterField.php new file mode 100644 index 000000000..2954e093b --- /dev/null +++ b/src/Analytics/Types/FilterField.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ], + 'negated' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'negated' + ], + 'range' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\RangeValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'set' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'set' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/FindSellerStandardsProfilesResponse.php b/src/Analytics/Types/FindSellerStandardsProfilesResponse.php new file mode 100644 index 000000000..eb29bf2ac --- /dev/null +++ b/src/Analytics/Types/FindSellerStandardsProfilesResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\StandardsProfile', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'standardsProfiles' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/GetASpecificSellerProfileRestRequest.php b/src/Analytics/Types/GetASpecificSellerProfileRestRequest.php new file mode 100644 index 000000000..3580b28f8 --- /dev/null +++ b/src/Analytics/Types/GetASpecificSellerProfileRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cycle' + ], + 'program' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'program' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/GetASpecificSellerProfileRestResponse.php b/src/Analytics/Types/GetASpecificSellerProfileRestResponse.php new file mode 100644 index 000000000..b72634527 --- /dev/null +++ b/src/Analytics/Types/GetASpecificSellerProfileRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Types/GetAllSellerProfilesRestResponse.php b/src/Analytics/Types/GetAllSellerProfilesRestResponse.php new file mode 100644 index 000000000..9ad51590b --- /dev/null +++ b/src/Analytics/Types/GetAllSellerProfilesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Types/GetTrafficReportRestRequest.php b/src/Analytics/Types/GetTrafficReportRestRequest.php new file mode 100644 index 000000000..debf67fae --- /dev/null +++ b/src/Analytics/Types/GetTrafficReportRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dimension' + ], + 'filter' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filter' + ], + 'metric' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metric' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/GetTrafficReportRestResponse.php b/src/Analytics/Types/GetTrafficReportRestResponse.php new file mode 100644 index 000000000..5c74acc2a --- /dev/null +++ b/src/Analytics/Types/GetTrafficReportRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Types/Header.php b/src/Analytics/Types/Header.php new file mode 100644 index 000000000..95629fb19 --- /dev/null +++ b/src/Analytics/Types/Header.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Definition', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dimensionKeys' + ], + 'metrics' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Definition', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metrics' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Metric.php b/src/Analytics/Types/Metric.php new file mode 100644 index 000000000..c8e035d56 --- /dev/null +++ b/src/Analytics/Types/Metric.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'level' + ], + 'lookbackEndDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackEndDate' + ], + 'lookbackStartDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackStartDate' + ], + 'metricKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metricKey' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'thresholdLowerBound' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thresholdLowerBound' + ], + 'thresholdMetaData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thresholdMetaData' + ], + 'thresholdUpperBound' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thresholdUpperBound' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ], + 'value' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/RangeValue.php b/src/Analytics/Types/RangeValue.php new file mode 100644 index 000000000..b060750f0 --- /dev/null +++ b/src/Analytics/Types/RangeValue.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end' + ], + 'exclusiveEnd' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveEnd' + ], + 'exclusiveStart' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveStart' + ], + 'range' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'start' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Record.php b/src/Analytics/Types/Record.php new file mode 100644 index 000000000..6cfc69525 --- /dev/null +++ b/src/Analytics/Types/Record.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dimensionValues' + ], + 'metricValues' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metricValues' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Report.php b/src/Analytics/Types/Report.php new file mode 100644 index 000000000..21fdf4e0c --- /dev/null +++ b/src/Analytics/Types/Report.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'header' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Header', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'header' + ], + 'lastUpdatedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastUpdatedDate' + ], + 'records' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Record', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'records' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/StandardsProfile.php b/src/Analytics/Types/StandardsProfile.php new file mode 100644 index 000000000..6ebb0c095 --- /dev/null +++ b/src/Analytics/Types/StandardsProfile.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Cycle', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cycle' + ], + 'defaultProgram' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'defaultProgram' + ], + 'evaluationReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'evaluationReason' + ], + 'metrics' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Metric', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metrics' + ], + 'program' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'program' + ], + 'standardsLevel' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'standardsLevel' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Value.php b/src/Analytics/Types/Value.php new file mode 100644 index 000000000..180c4a3f3 --- /dev/null +++ b/src/Analytics/Types/Value.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applicable' + ], + 'value' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Enums/AvailabilityStatusEnum.php b/src/Browse/Enums/AvailabilityStatusEnum.php new file mode 100644 index 000000000..a23e9f0ec --- /dev/null +++ b/src/Browse/Enums/AvailabilityStatusEnum.php @@ -0,0 +1,18 @@ + 'https://api.sandbox.ebay.com/buy/browse', + 'production' => 'https://api.ebay.com/buy/browse' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Browse\Services\BrowseService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Browse/Services/BrowseService.php b/src/Browse/Services/BrowseService.php new file mode 100644 index 000000000..8c2574e28 --- /dev/null +++ b/src/Browse/Services/BrowseService.php @@ -0,0 +1,165 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\GetItemRestResponse', + 'params' => [ + 'item_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'getItemFeed' => [ + 'method' => 'GET', + 'resource' => 'item_feed', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\GetItemFeedRestResponse', + 'params' => [ + 'category_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'date' => [ + 'valid' => ['string'], + 'required' => true + ], + 'feed_type' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'getItemGroup' => [ + 'method' => 'GET', + 'resource' => 'item_group/{item_group_id}', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\GetItemGroupRestResponse', + 'params' => [ + 'item_group_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'searchForItems' => [ + 'method' => 'GET', + 'resource' => 'item_summary/search', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\SearchForItemsRestResponse', + 'params' => [ + 'filter' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'q' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\GetItemRestResponse + */ + public function getItem(\DTS\eBaySDK\Browse\Types\GetItemRestRequest $request) + { + return $this->getItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemAsync(\DTS\eBaySDK\Browse\Types\GetItemRestRequest $request) + { + return $this->callOperationAsync('getItem', $request); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\GetItemFeedRestResponse + */ + public function getItemFeed(\DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request) + { + return $this->getItemFeedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemFeedAsync(\DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request) + { + return $this->callOperationAsync('getItemFeed', $request); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\GetItemGroupRestResponse + */ + public function getItemGroup(\DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request) + { + return $this->getItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemGroupAsync(\DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request) + { + return $this->callOperationAsync('getItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\SearchForItemsRestResponse + */ + public function searchForItems(\DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request) + { + return $this->searchForItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchForItemsAsync(\DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request) + { + return $this->callOperationAsync('searchForItems', $request); + } +} diff --git a/src/Browse/Types/Address.php b/src/Browse/Types/Address.php new file mode 100644 index 000000000..82b9bbc2c --- /dev/null +++ b/src/Browse/Types/Address.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Amount.php b/src/Browse/Types/Amount.php new file mode 100644 index 000000000..02b07034e --- /dev/null +++ b/src/Browse/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Amount_0.php b/src/Browse/Types/Amount_0.php new file mode 100644 index 000000000..21e0927ec --- /dev/null +++ b/src/Browse/Types/Amount_0.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Category.php b/src/Browse/Types/Category.php new file mode 100644 index 000000000..dd3519562 --- /dev/null +++ b/src/Browse/Types/Category.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ErrorDetailV3.php b/src/Browse/Types/ErrorDetailV3.php new file mode 100644 index 000000000..e9188fc36 --- /dev/null +++ b/src/Browse/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ErrorParameterV3.php b/src/Browse/Types/ErrorParameterV3.php new file mode 100644 index 000000000..e9f6dd292 --- /dev/null +++ b/src/Browse/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/FilterField.php b/src/Browse/Types/FilterField.php new file mode 100644 index 000000000..bf2fe38bc --- /dev/null +++ b/src/Browse/Types/FilterField.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ], + 'negated' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'negated' + ], + 'range' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\RangeValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'set' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'set' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemFeedRestRequest.php b/src/Browse/Types/GetItemFeedRestRequest.php new file mode 100644 index 000000000..df068dcee --- /dev/null +++ b/src/Browse/Types/GetItemFeedRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category_id' + ], + 'date' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'feed_type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feed_type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemFeedRestResponse.php b/src/Browse/Types/GetItemFeedRestResponse.php new file mode 100644 index 000000000..329fc101a --- /dev/null +++ b/src/Browse/Types/GetItemFeedRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/GetItemGroupRestRequest.php b/src/Browse/Types/GetItemGroupRestRequest.php new file mode 100644 index 000000000..e9e57c771 --- /dev/null +++ b/src/Browse/Types/GetItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_group_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemGroupRestResponse.php b/src/Browse/Types/GetItemGroupRestResponse.php new file mode 100644 index 000000000..525b33094 --- /dev/null +++ b/src/Browse/Types/GetItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/GetItemRestRequest.php b/src/Browse/Types/GetItemRestRequest.php new file mode 100644 index 000000000..b1a9bd4f9 --- /dev/null +++ b/src/Browse/Types/GetItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemRestResponse.php b/src/Browse/Types/GetItemRestResponse.php new file mode 100644 index 000000000..611ce9bd2 --- /dev/null +++ b/src/Browse/Types/GetItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/Image.php b/src/Browse/Types/Image.php new file mode 100644 index 000000000..1f411c937 --- /dev/null +++ b/src/Browse/Types/Image.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'height' + ], + 'imageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageUrl' + ], + 'width' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'width' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Item.php b/src/Browse/Types/Item.php new file mode 100644 index 000000000..184569a86 --- /dev/null +++ b/src/Browse/Types/Item.php @@ -0,0 +1,347 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImages' + ], + 'ageGroup' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ageGroup' + ], + 'availabilityStatusForShipToHome' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availabilityStatusForShipToHome' + ], + 'bidCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidCount' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'buyingOptions' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'buyingOptions' + ], + 'categoryPath' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryPath' + ], + 'color' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'color' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'currentBidPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentBidPrice' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'energyEfficiencyClass' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'energyEfficiencyClass' + ], + 'gender' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gender' + ], + 'gtin' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gtin' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemAffiliateWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemAffiliateWebUrl' + ], + 'itemEndDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemEndDate' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'itemLocation' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemLocation' + ], + 'itemWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemWebUrl' + ], + 'localizedAspects' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TypedNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'localizedAspects' + ], + 'marketingPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\MarketingPrice', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketingPrice' + ], + 'material' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'material' + ], + 'mpn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mpn' + ], + 'pattern' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pattern' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'priceDisplayCondition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDisplayCondition' + ], + 'primaryItemGroupHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryItemGroupHref' + ], + 'primaryItemGroupId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryItemGroupId' + ], + 'primaryProductReviewRating' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ReviewRating', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryProductReviewRating' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'quantitySold' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantitySold' + ], + 'returnTerms' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemReturnTerms', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnTerms' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shortDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shortDescription' + ], + 'size' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'sizeSystem' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeSystem' + ], + 'sizeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeType' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'topRatedBuyingExperience' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'topRatedBuyingExperience' + ], + 'uniqueBidderCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'uniqueBidderCount' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemDigest.php b/src/Browse/Types/ItemDigest.php new file mode 100644 index 000000000..6691fb79e --- /dev/null +++ b/src/Browse/Types/ItemDigest.php @@ -0,0 +1,165 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ageGroup' + ], + 'availabilityStatusForShipToHome' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availabilityStatusForShipToHome' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'color' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'color' + ], + 'gender' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gender' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemHref' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'localizedAspects' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TypedNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'localizedAspects' + ], + 'material' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'material' + ], + 'pattern' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pattern' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'priceDisplayCondition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDisplayCondition' + ], + 'quantitySold' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantitySold' + ], + 'size' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'sizeSystem' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeSystem' + ], + 'sizeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeType' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemFeed.php b/src/Browse/Types/ItemFeed.php new file mode 100644 index 000000000..4230e420a --- /dev/null +++ b/src/Browse/Types/ItemFeed.php @@ -0,0 +1,221 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImageUrls' + ], + 'ageGroup' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ageGroup' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'color' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'color' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'conditionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'conditionId' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'gender' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gender' + ], + 'gtin' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gtin' + ], + 'imageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageUrl' + ], + 'itemEndDate' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemEndDate' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'material' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'material' + ], + 'mpn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mpn' + ], + 'priceCurrency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceCurrency' + ], + 'priceValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceValue' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'sellerFeedbackPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerFeedbackPercentage' + ], + 'sellerFeedbackScore' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerFeedbackScore' + ], + 'sellerUsername' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerUsername' + ], + 'shipsTo' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipsTo' + ], + 'size' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'sizeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeType' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemFeedResponse.php b/src/Browse/Types/ItemFeedResponse.php new file mode 100644 index 000000000..655818a87 --- /dev/null +++ b/src/Browse/Types/ItemFeedResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemFeed', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemFeed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemGroup.php b/src/Browse/Types/ItemGroup.php new file mode 100644 index 000000000..a82c4743e --- /dev/null +++ b/src/Browse/Types/ItemGroup.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImages' + ], + 'categoryPath' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryPath' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemGroupId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemGroupId' + ], + 'items' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemDigest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'items' + ], + 'reviewRating' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ReviewRating', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reviewRating' + ], + 'shortDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shortDescription' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'variesByLocalizedAspects' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TypedNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'variesByLocalizedAspects' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemLocationImpl.php b/src/Browse/Types/ItemLocationImpl.php new file mode 100644 index 000000000..4b165dfbd --- /dev/null +++ b/src/Browse/Types/ItemLocationImpl.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemReturnTerms.php b/src/Browse/Types/ItemReturnTerms.php new file mode 100644 index 000000000..ce722de6b --- /dev/null +++ b/src/Browse/Types/ItemReturnTerms.php @@ -0,0 +1,95 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemSummary.php b/src/Browse/Types/ItemSummary.php new file mode 100644 index 000000000..d1d094c62 --- /dev/null +++ b/src/Browse/Types/ItemSummary.php @@ -0,0 +1,193 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImages' + ], + 'bidCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidCount' + ], + 'buyingOptions' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'buyingOptions' + ], + 'categories' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Category', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categories' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'currentBidPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentBidPrice' + ], + 'distanceFromPickupLocation' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TargetLocation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'distanceFromPickupLocation' + ], + 'energyEfficiencyClass' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'energyEfficiencyClass' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemAffiliateWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemAffiliateWebUrl' + ], + 'itemGroupHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemGroupHref' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'itemLocation' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemLocationImpl', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemLocation' + ], + 'itemWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemWebUrl' + ], + 'marketingPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\MarketingPrice_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketingPrice' + ], + 'pickupOptions' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\PickupOptionSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'pickupOptions' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ShippingOptionSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'thumbnailImages' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'thumbnailImages' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'topRatedBuyingExperience' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'topRatedBuyingExperience' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/MarketingPrice.php b/src/Browse/Types/MarketingPrice.php new file mode 100644 index 000000000..8fb13ba78 --- /dev/null +++ b/src/Browse/Types/MarketingPrice.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'discountPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPercentage' + ], + 'originalPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalPrice' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/MarketingPrice_0.php b/src/Browse/Types/MarketingPrice_0.php new file mode 100644 index 000000000..374c8cfea --- /dev/null +++ b/src/Browse/Types/MarketingPrice_0.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'discountPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPercentage' + ], + 'originalPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalPrice' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/PickupOptionSummary.php b/src/Browse/Types/PickupOptionSummary.php new file mode 100644 index 000000000..11f7bf129 --- /dev/null +++ b/src/Browse/Types/PickupOptionSummary.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupLocationType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/RangeValue.php b/src/Browse/Types/RangeValue.php new file mode 100644 index 000000000..6a4bffbdd --- /dev/null +++ b/src/Browse/Types/RangeValue.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end' + ], + 'exclusiveEnd' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveEnd' + ], + 'exclusiveStart' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveStart' + ], + 'range' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'start' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/RatingHistogram.php b/src/Browse/Types/RatingHistogram.php new file mode 100644 index 000000000..e39cc130c --- /dev/null +++ b/src/Browse/Types/RatingHistogram.php @@ -0,0 +1,53 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'count' + ], + 'rating' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ReviewRating.php b/src/Browse/Types/ReviewRating.php new file mode 100644 index 000000000..ca457cf5d --- /dev/null +++ b/src/Browse/Types/ReviewRating.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'averageRating' + ], + 'ratingHistograms' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\RatingHistogram', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ratingHistograms' + ], + 'reviewCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reviewCount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/SearchForItemsRestRequest.php b/src/Browse/Types/SearchForItemsRestRequest.php new file mode 100644 index 000000000..f8a69afa1 --- /dev/null +++ b/src/Browse/Types/SearchForItemsRestRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filter' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'q' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'q' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/SearchForItemsRestResponse.php b/src/Browse/Types/SearchForItemsRestResponse.php new file mode 100644 index 000000000..79c4afd9a --- /dev/null +++ b/src/Browse/Types/SearchForItemsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/SearchPagedCollection.php b/src/Browse/Types/SearchPagedCollection.php new file mode 100644 index 000000000..7f45ec732 --- /dev/null +++ b/src/Browse/Types/SearchPagedCollection.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'itemSummaries' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemSummaries' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Seller.php b/src/Browse/Types/Seller.php new file mode 100644 index 000000000..7b06fd0a5 --- /dev/null +++ b/src/Browse/Types/Seller.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackPercentage' + ], + 'feedbackScore' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackScore' + ], + 'sellerAccountType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerAccountType' + ], + 'username' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'username' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ShippingOption.php b/src/Browse/Types/ShippingOption.php new file mode 100644 index 000000000..bbe0cfb13 --- /dev/null +++ b/src/Browse/Types/ShippingOption.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ], + 'trademarkSymbol' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trademarkSymbol' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ShippingOptionSummary.php b/src/Browse/Types/ShippingOptionSummary.php new file mode 100644 index 000000000..0b2688bab --- /dev/null +++ b/src/Browse/Types/ShippingOptionSummary.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingCostType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCostType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/SortField.php b/src/Browse/Types/SortField.php new file mode 100644 index 000000000..050553c28 --- /dev/null +++ b/src/Browse/Types/SortField.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'field' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/TargetLocation.php b/src/Browse/Types/TargetLocation.php new file mode 100644 index 000000000..601f55feb --- /dev/null +++ b/src/Browse/Types/TargetLocation.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasure' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/TimeDuration.php b/src/Browse/Types/TimeDuration.php new file mode 100644 index 000000000..b142cae14 --- /dev/null +++ b/src/Browse/Types/TimeDuration.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/TypedNameValue.php b/src/Browse/Types/TypedNameValue.php new file mode 100644 index 000000000..a5342ef89 --- /dev/null +++ b/src/Browse/Types/TypedNameValue.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ], + 'value' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/BulkDataExchange/Enums/AckValue.php b/src/BulkDataExchange/Enums/AckValue.php index 7177dcfe6..617928b80 100644 --- a/src/BulkDataExchange/Enums/AckValue.php +++ b/src/BulkDataExchange/Enums/AckValue.php @@ -1,15 +1,15 @@ [ - 'type' => 'DTS\eBaySDK\BusinessPoliciesManagement\Types\PositiveInteger', + 'type' => 'integer', 'repeatable' => false, 'attribute' => false, 'elementName' => 'id' diff --git a/src/BusinessPoliciesManagement/Types/FreightShipping.php b/src/BusinessPoliciesManagement/Types/FreightShipping.php index b8dd4fc4c..256368b80 100644 --- a/src/BusinessPoliciesManagement/Types/FreightShipping.php +++ b/src/BusinessPoliciesManagement/Types/FreightShipping.php @@ -1,8 +1,11 @@ 'is_array', 'bool' => 'is_bool', @@ -21,7 +25,7 @@ class ConfigurationResolver /** * @param array $definitions Definitions for each configuration option. */ - public function __construct($definitions) + public function __construct(array $definitions) { $this->definitions = $definitions; } @@ -87,7 +91,14 @@ public function resolveOptions(array $configuration) return $configuration; } - private function checkType($valid, $name, $provided) + /** + * @param array $valid Array of valid types. + * @param $name Name of the configuration option. + * @param $provided Value to check the type of. + * + * @throws \InvalidArgumentException. + */ + private function checkType(array $valid, $name, $provided) { foreach ($valid as $check) { if (isset(self::$typeMap[$check])) { @@ -110,7 +121,12 @@ private function checkType($valid, $name, $provided) throw new \InvalidArgumentException($msg); } - private function throwRequired($configuration) + /** + * @param array $configuration Associative array of configuration options. + * + * @throws \InvalidArgumentException. + */ + private function throwRequired(array $configuration) { $missing = []; diff --git a/src/Constants/GlobalIds.php b/src/Constants/GlobalIds.php index 8d45e22a4..8cb9e2ad1 100644 --- a/src/Constants/GlobalIds.php +++ b/src/Constants/GlobalIds.php @@ -48,7 +48,7 @@ class GlobalIds const MY = 'EBAY-MY'; // Canada (French) const FRCA = 'EBAY-FRCA'; - // Philippones + // Philippines const PH = 'EBAY-PH'; // Poland const PL = 'EBAY-PL'; diff --git a/src/Constants/MarketplaceIds.php b/src/Constants/MarketplaceIds.php new file mode 100644 index 000000000..5a079b5bb --- /dev/null +++ b/src/Constants/MarketplaceIds.php @@ -0,0 +1,55 @@ +devId = trim($devId); } + /** + * Returns the application ID. + * + * @return string + */ public function getAppId() { return $this->appId; } + /** + * Returns the certificate ID. + * + * @return string + */ public function getCertId() { return $this->certId; } + /** + * Returns the developer ID. + * + * @return string + */ public function getDevId() { return $this->devId; diff --git a/src/Credentials/CredentialsProvider.php b/src/Credentials/CredentialsProvider.php index 64ea9fa13..68f0ed269 100644 --- a/src/Credentials/CredentialsProvider.php +++ b/src/Credentials/CredentialsProvider.php @@ -1,8 +1,6 @@ 'X-EBAY-SOA-SECURITY-TOKEN: SECURITY-TOKEN', '/^(X-EBAY-SOA-SECURITY-APPNAME:.*)?$/im' => 'X-EBAY-SOA-SECURITY-APPNAME: SECURITY-APPNAME', @@ -24,7 +30,7 @@ class Debugger /** * @param array $config Debug configuration. */ - public function __construct($config) + public function __construct(array $config) { $this->config = $config + [ 'logfn' => function ($msg) { @@ -37,6 +43,9 @@ public function __construct($config) $this->config['scrub_strings'] += self::$credentialsStrings; } + /** + * @param string $info The debug information. + */ public function __invoke($info) { if ($this->config['scrub_credentials']) { diff --git a/src/Exceptions/InvalidPropertyTypeException.php b/src/Exceptions/InvalidPropertyTypeException.php index f1df89228..40d9066bf 100644 --- a/src/Exceptions/InvalidPropertyTypeException.php +++ b/src/Exceptions/InvalidPropertyTypeException.php @@ -6,6 +6,13 @@ */ class InvalidPropertyTypeException extends \LogicException { + /** + * @param string $property The property name. + * @param string $expectedType The excpected type of the value.. + * @param string $actualType The actual type of the value. + * @param int $code|0 + * @param \Exception + */ public function __construct($property, $expectedType, $actualType, $code = 0, \Exception $previous = null) { parent::__construct("Invalid property type provided for $property. Expected $expectedType but got $actualType", $code, $previous); diff --git a/src/Exceptions/UnknownPropertyException.php b/src/Exceptions/UnknownPropertyException.php index 60424bfa1..e1396a646 100644 --- a/src/Exceptions/UnknownPropertyException.php +++ b/src/Exceptions/UnknownPropertyException.php @@ -6,6 +6,11 @@ */ class UnknownPropertyException extends \LogicException { + /** + * @param string $property The property name that does not exist. + * @param int $code|0 + * @param \Exception + */ public function __construct($property, $code = 0, \Exception $previous = null) { parent::__construct("Unknown property $property", $code, $previous); diff --git a/src/Feedback/Enums/AckValue.php b/src/Feedback/Enums/AckValue.php new file mode 100644 index 000000000..54e78cc63 --- /dev/null +++ b/src/Feedback/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Feedback\Services\FeedbackService::API_VERSION + ], + 'authToken' => [ + 'valid' => ['string'], + 'required' => true + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTH_TOKEN] = $this->getConfig('authToken'); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + return $headers; + } +} diff --git a/src/Feedback/Services/FeedbackService.php b/src/Feedback/Services/FeedbackService.php new file mode 100644 index 000000000..8c68048ca --- /dev/null +++ b/src/Feedback/Services/FeedbackService.php @@ -0,0 +1,134 @@ +createDSRSummaryByTransactionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByTransactionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByTransactionAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByTransactionRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByTransaction', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request + * @return \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse + */ + public function createDSRSummaryByPeriod(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request) + { + return $this->createDSRSummaryByPeriodAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByPeriodAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByPeriod', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request + * @return \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse + */ + public function createDSRSummaryByCategory(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request) + { + return $this->createDSRSummaryByCategoryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByCategoryAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByCategory', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request + * @return \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse + */ + public function createDSRSummaryByShippingDetail(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request) + { + return $this->createDSRSummaryByShippingDetailAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByShippingDetailAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByShippingDetail', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request + * @return \DTS\eBaySDK\Feedback\Types\GetDSRSummaryResponse + */ + public function getDSRSummary(\DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request) + { + return $this->getDSRSummaryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDSRSummaryAsync(\DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request) + { + return $this->callOperationAsync( + 'getDSRSummary', + $request, + '\DTS\eBaySDK\Feedback\Types\GetDSRSummaryResponse' + ); + } +} diff --git a/src/Feedback/Types/BaseServiceRequest.php b/src/Feedback/Types/BaseServiceRequest.php new file mode 100644 index 000000000..cba4817f7 --- /dev/null +++ b/src/Feedback/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/BaseServiceResponse.php b/src/Feedback/Types/BaseServiceResponse.php new file mode 100644 index 000000000..3f1b8282e --- /dev/null +++ b/src/Feedback/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\Feedback\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php b/src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php new file mode 100644 index 000000000..f6a53bce5 --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php @@ -0,0 +1,68 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DateRange', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRange' + ], + 'dateRangeEventType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRangeEventType' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByCategoryRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php b/src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php new file mode 100644 index 000000000..26acaf7a9 --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DateRange', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRange' + ], + 'dateRangeEventType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRangeEventType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByPeriodRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php b/src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php new file mode 100644 index 000000000..835c02933 --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php @@ -0,0 +1,89 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DateRange', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRange' + ], + 'dateRangeEventType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRangeEventType' + ], + 'shippingCostType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCostType' + ], + 'shippingDestinationType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingDestinationType' + ], + 'shipToCountry' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shipToCountry' + ], + 'shippingService' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingService' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByShippingDetailRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php b/src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php new file mode 100644 index 000000000..88d9ce57f --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\TransactionKey', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'transactionKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByTransactionRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryResponse.php b/src/Feedback/Types/CreateDSRSummaryResponse.php new file mode 100644 index 000000000..be8904f0e --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jobId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/DSRSummary.php b/src/Feedback/Types/DSRSummary.php new file mode 100644 index 000000000..d8287a08a --- /dev/null +++ b/src/Feedback/Types/DSRSummary.php @@ -0,0 +1,99 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'DSRType' + ], + 'DSRAverage' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'DSRAverage' + ], + 'totalRatingCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalRatingCount' + ], + 'rating1Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating1Count' + ], + 'rating2Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating2Count' + ], + 'rating3Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating3Count' + ], + 'rating4Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating4Count' + ], + 'rating5Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating5Count' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/DateRange.php b/src/Feedback/Types/DateRange.php new file mode 100644 index 000000000..a8ea50be1 --- /dev/null +++ b/src/Feedback/Types/DateRange.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateFrom' + ], + 'dateTo' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateTo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/ErrorData.php b/src/Feedback/Types/ErrorData.php new file mode 100644 index 000000000..50a0f5571 --- /dev/null +++ b/src/Feedback/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\Feedback\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/ErrorMessage.php b/src/Feedback/Types/ErrorMessage.php new file mode 100644 index 000000000..fd35842fa --- /dev/null +++ b/src/Feedback/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/ErrorParameter.php b/src/Feedback/Types/ErrorParameter.php new file mode 100644 index 000000000..cc6c766b5 --- /dev/null +++ b/src/Feedback/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/GetDSRSummaryRequest.php b/src/Feedback/Types/GetDSRSummaryRequest.php new file mode 100644 index 000000000..edf08e605 --- /dev/null +++ b/src/Feedback/Types/GetDSRSummaryRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jobId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getDSRSummaryRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/GetDSRSummaryResponse.php b/src/Feedback/Types/GetDSRSummaryResponse.php new file mode 100644 index 000000000..c0668a07b --- /dev/null +++ b/src/Feedback/Types/GetDSRSummaryResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DSRSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'DSRSummary' + ], + 'totalTransactionCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalTransactionCount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/TransactionKey.php b/src/Feedback/Types/TransactionKey.php new file mode 100644 index 000000000..9f9e85c73 --- /dev/null +++ b/src/Feedback/Types/TransactionKey.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/FileTransfer/Enums/AckValue.php b/src/FileTransfer/Enums/AckValue.php index bb9016f70..21a333c25 100644 --- a/src/FileTransfer/Enums/AckValue.php +++ b/src/FileTransfer/Enums/AckValue.php @@ -1,15 +1,15 @@ hasAttachment()) { /** - Don't modify a request if the file attachment already exists. + * Don't modify a request if the file attachment already exists. */ if (!isset($request->fileAttachment)) { $request->fileAttachment = new \DTS\eBaySDK\FileTransfer\Types\FileAttachment(); @@ -83,7 +93,7 @@ protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $reques } /** - * Build the needed eBay HTTP headers. + * Builds the needed eBay HTTP headers. * * @param string $operationName The name of the operation been called. * diff --git a/src/FileTransfer/Services/FileTransferService.php b/src/FileTransfer/Services/FileTransferService.php index 5a9b2273b..a889dc6b4 100644 --- a/src/FileTransfer/Services/FileTransferService.php +++ b/src/FileTransfer/Services/FileTransferService.php @@ -1,8 +1,11 @@ 'https://api.sandbox.ebay.com/sell/fulfillment', + 'production' => 'https://api.ebay.com/sell/fulfillment' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Fulfillment\Services\FulfillmentService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Fulfillment/Services/FulfillmentService.php b/src/Fulfillment/Services/FulfillmentService.php new file mode 100644 index 000000000..5b0ac37b2 --- /dev/null +++ b/src/Fulfillment/Services/FulfillmentService.php @@ -0,0 +1,187 @@ + [ + 'method' => 'GET', + 'resource' => 'order', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestResponse', + 'params' => [ + 'filter' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'orderIds' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetAnOrder' => [ + 'method' => 'GET', + 'resource' => 'order/{orderId}', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestResponse', + 'params' => [ + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAShippingFulfillment' => [ + 'method' => 'POST', + 'resource' => 'order/{orderId}/shipping_fulfillment', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestResponse', + 'params' => [ + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetShippingFulfillments' => [ + 'method' => 'GET', + 'resource' => 'order/{orderId}/shipping_fulfillment', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestResponse', + 'params' => [ + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAShippingFulfillment' => [ + 'method' => 'GET', + 'resource' => 'order/{orderId}/shipping_fulfillment/{fulfillmentId}', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestResponse', + 'params' => [ + 'fulfillmentId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetOrdersRestResponse + */ + public function getOrders(\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request) + { + return $this->getOrdersAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrdersAsync(\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request) + { + return $this->callOperationAsync('GetOrders', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestResponse + */ + public function getAnOrder(\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request) + { + return $this->getAnOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAnOrderAsync(\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request) + { + return $this->callOperationAsync('GetAnOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestResponse + */ + public function createAShippingFulfillment(\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request) + { + return $this->createAShippingFulfillmentAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAShippingFulfillmentAsync(\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request) + { + return $this->callOperationAsync('CreateAShippingFulfillment', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestResponse + */ + public function getShippingFulfillments(\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request) + { + return $this->getShippingFulfillmentsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getShippingFulfillmentsAsync(\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request) + { + return $this->callOperationAsync('GetShippingFulfillments', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestResponse + */ + public function getAShippingFulfillment(\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request) + { + return $this->getAShippingFulfillmentAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAShippingFulfillmentAsync(\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request) + { + return $this->callOperationAsync('GetAShippingFulfillment', $request); + } +} diff --git a/src/Fulfillment/Types/Address.php b/src/Fulfillment/Types/Address.php new file mode 100644 index 000000000..e498a4fa9 --- /dev/null +++ b/src/Fulfillment/Types/Address.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'countryCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Amount.php b/src/Fulfillment/Types/Amount.php new file mode 100644 index 000000000..0fc085e96 --- /dev/null +++ b/src/Fulfillment/Types/Amount.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromCurrency' + ], + 'convertedFromValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromValue' + ], + 'currency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/AppliedPromotion.php b/src/Fulfillment/Types/AppliedPromotion.php new file mode 100644 index 000000000..ca31a2527 --- /dev/null +++ b/src/Fulfillment/Types/AppliedPromotion.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'discountAmount' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'promotionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Attribute.php b/src/Fulfillment/Types/Attribute.php new file mode 100644 index 000000000..fc45b5ac7 --- /dev/null +++ b/src/Fulfillment/Types/Attribute.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Buyer.php b/src/Fulfillment/Types/Buyer.php new file mode 100644 index 000000000..617143332 --- /dev/null +++ b/src/Fulfillment/Types/Buyer.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'username' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CancelRequest.php b/src/Fulfillment/Types/CancelRequest.php new file mode 100644 index 000000000..e9bf558ea --- /dev/null +++ b/src/Fulfillment/Types/CancelRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCompletedDate' + ], + 'cancelInitiator' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelInitiator' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'cancelRequestedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestedDate' + ], + 'cancelRequestId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestId' + ], + 'cancelRequestState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestState' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CancelStatus.php b/src/Fulfillment/Types/CancelStatus.php new file mode 100644 index 000000000..c7bbbe7f6 --- /dev/null +++ b/src/Fulfillment/Types/CancelStatus.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelledDate' + ], + 'cancelRequests' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\CancelRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'cancelRequests' + ], + 'cancelState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelState' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Contact.php b/src/Fulfillment/Types/Contact.php new file mode 100644 index 000000000..388a59684 --- /dev/null +++ b/src/Fulfillment/Types/Contact.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'companyName' + ], + 'contactAddress' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactAddress' + ], + 'fullName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullName' + ], + 'primaryPhone' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PhoneNumber', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryPhone' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php b/src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php new file mode 100644 index 000000000..7c3bbdd6a --- /dev/null +++ b/src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php b/src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php new file mode 100644 index 000000000..40840832d --- /dev/null +++ b/src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/DeliveryCost.php b/src/Fulfillment/Types/DeliveryCost.php new file mode 100644 index 000000000..fd9043c75 --- /dev/null +++ b/src/Fulfillment/Types/DeliveryCost.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'importCharges' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingIntermediationFee' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingIntermediationFee' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ErrorDetailV3.php b/src/Fulfillment/Types/ErrorDetailV3.php new file mode 100644 index 000000000..27b2a2a0d --- /dev/null +++ b/src/Fulfillment/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ErrorParameterV3.php b/src/Fulfillment/Types/ErrorParameterV3.php new file mode 100644 index 000000000..0ac725d00 --- /dev/null +++ b/src/Fulfillment/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Fee.php b/src/Fulfillment/Types/Fee.php new file mode 100644 index 000000000..bb9ca8bfb --- /dev/null +++ b/src/Fulfillment/Types/Fee.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/FilterField.php b/src/Fulfillment/Types/FilterField.php new file mode 100644 index 000000000..4c5a6836f --- /dev/null +++ b/src/Fulfillment/Types/FilterField.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ], + 'range' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\RangeValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'set' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'set' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/FulfillmentInstructionsType.php b/src/Fulfillment/Types/FulfillmentInstructionsType.php new file mode 100644 index 000000000..171ae33d2 --- /dev/null +++ b/src/Fulfillment/Types/FulfillmentInstructionsType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/FulfillmentStartInstruction.php b/src/Fulfillment/Types/FulfillmentStartInstruction.php new file mode 100644 index 000000000..6c457cd42 --- /dev/null +++ b/src/Fulfillment/Types/FulfillmentStartInstruction.php @@ -0,0 +1,81 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ebaySupportedFulfillment' + ], + 'finalDestinationAddress' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'finalDestinationAddress' + ], + 'fulfillmentInstructionsType' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\FulfillmentInstructionsType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentInstructionsType' + ], + 'maxEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'shippingStep' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ShippingStep', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingStep' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php b/src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php new file mode 100644 index 000000000..2e17dab41 --- /dev/null +++ b/src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentId' + ], + 'orderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php b/src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php new file mode 100644 index 000000000..004bdcfe3 --- /dev/null +++ b/src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GetAnOrderRestRequest.php b/src/Fulfillment/Types/GetAnOrderRestRequest.php new file mode 100644 index 000000000..0a6775334 --- /dev/null +++ b/src/Fulfillment/Types/GetAnOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetAnOrderRestResponse.php b/src/Fulfillment/Types/GetAnOrderRestResponse.php new file mode 100644 index 000000000..3542b4069 --- /dev/null +++ b/src/Fulfillment/Types/GetAnOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GetOrdersRestRequest.php b/src/Fulfillment/Types/GetOrdersRestRequest.php new file mode 100644 index 000000000..adfb6aa17 --- /dev/null +++ b/src/Fulfillment/Types/GetOrdersRestRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filter' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'orderIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetOrdersRestResponse.php b/src/Fulfillment/Types/GetOrdersRestResponse.php new file mode 100644 index 000000000..13aa3c601 --- /dev/null +++ b/src/Fulfillment/Types/GetOrdersRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php b/src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php new file mode 100644 index 000000000..b0de835e1 --- /dev/null +++ b/src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php b/src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php new file mode 100644 index 000000000..8511c4f7a --- /dev/null +++ b/src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GiftDetails.php b/src/Fulfillment/Types/GiftDetails.php new file mode 100644 index 000000000..3b2b1cd91 --- /dev/null +++ b/src/Fulfillment/Types/GiftDetails.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'recipientEmail' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipientEmail' + ], + 'senderName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'senderName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/LineItem.php b/src/Fulfillment/Types/LineItem.php new file mode 100644 index 000000000..40abc0a16 --- /dev/null +++ b/src/Fulfillment/Types/LineItem.php @@ -0,0 +1,165 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\AppliedPromotion', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'appliedPromotions' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\DeliveryCost', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'discountedLineItemCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountedLineItemCost' + ], + 'giftDetails' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\GiftDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'giftDetails' + ], + 'legacyItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyItemId' + ], + 'legacyVariationId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyVariationId' + ], + 'lineItemCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemCost' + ], + 'lineItemFulfillmentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemFulfillmentStatus' + ], + 'lineItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'listingMarketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingMarketplaceId' + ], + 'properties' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItemProperties', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'properties' + ], + 'purchaseMarketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseMarketplaceId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'soldFormat' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldFormat' + ], + 'taxes' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Tax', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'taxes' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/LineItemProperties.php b/src/Fulfillment/Types/LineItemProperties.php new file mode 100644 index 000000000..c8394d6fc --- /dev/null +++ b/src/Fulfillment/Types/LineItemProperties.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerProtection' + ], + 'fromBestOffer' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fromBestOffer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/LineItemReference.php b/src/Fulfillment/Types/LineItemReference.php new file mode 100644 index 000000000..c68982a70 --- /dev/null +++ b/src/Fulfillment/Types/LineItemReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Order.php b/src/Fulfillment/Types/Order.php new file mode 100644 index 000000000..5ee51e302 --- /dev/null +++ b/src/Fulfillment/Types/Order.php @@ -0,0 +1,137 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Buyer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer' + ], + 'buyerCheckoutNotes' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCheckoutNotes' + ], + 'cancelStatus' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\CancelStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelStatus' + ], + 'creationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'fulfillmentHrefs' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillmentHrefs' + ], + 'fulfillmentStartInstructions' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\FulfillmentStartInstruction', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillmentStartInstructions' + ], + 'lastModifiedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'orderFulfillmentStatus' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\OrderFulfillmentStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderFulfillmentStatus' + ], + 'orderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ], + 'orderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderPaymentStatus' + ], + 'paymentSummary' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PaymentSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentSummary' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'sellerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/OrderFulfillmentStatus.php b/src/Fulfillment/Types/OrderFulfillmentStatus.php new file mode 100644 index 000000000..0079ffd21 --- /dev/null +++ b/src/Fulfillment/Types/OrderFulfillmentStatus.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/OrderRefund.php b/src/Fulfillment/Types/OrderRefund.php new file mode 100644 index 000000000..091941d06 --- /dev/null +++ b/src/Fulfillment/Types/OrderRefund.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'refundDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDate' + ], + 'refundReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundReferenceId' + ], + 'refundStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/OrderSearchPagedCollection.php b/src/Fulfillment/Types/OrderSearchPagedCollection.php new file mode 100644 index 000000000..afb5f9e8a --- /dev/null +++ b/src/Fulfillment/Types/OrderSearchPagedCollection.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'orders' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Order', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'orders' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Payment.php b/src/Fulfillment/Types/Payment.php new file mode 100644 index 000000000..d671196da --- /dev/null +++ b/src/Fulfillment/Types/Payment.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'paymentDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentDate' + ], + 'paymentHolds' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PaymentHold', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentHolds' + ], + 'paymentMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethod' + ], + 'paymentReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentReferenceId' + ], + 'paymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PaymentHold.php b/src/Fulfillment/Types/PaymentHold.php new file mode 100644 index 000000000..54cc0b68f --- /dev/null +++ b/src/Fulfillment/Types/PaymentHold.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expectedReleaseDate' + ], + 'holdAmount' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdAmount' + ], + 'holdReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdReason' + ], + 'holdState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdState' + ], + 'releaseDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'releaseDate' + ], + 'sellerActionsToRelease' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\SellerActionsToRelease', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sellerActionsToRelease' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PaymentSummary.php b/src/Fulfillment/Types/PaymentSummary.php new file mode 100644 index 000000000..774ae6466 --- /dev/null +++ b/src/Fulfillment/Types/PaymentSummary.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Payment', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'payments' + ], + 'refunds' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\OrderRefund', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'refunds' + ], + 'totalDueSeller' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalDueSeller' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PhoneNumber.php b/src/Fulfillment/Types/PhoneNumber.php new file mode 100644 index 000000000..c25ae4d13 --- /dev/null +++ b/src/Fulfillment/Types/PhoneNumber.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PricingSummary.php b/src/Fulfillment/Types/PricingSummary.php new file mode 100644 index 000000000..370a51683 --- /dev/null +++ b/src/Fulfillment/Types/PricingSummary.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adjustment' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'fee' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fee' + ], + 'priceDiscountSubtotal' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDiscountSubtotal' + ], + 'priceSubtotal' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSubtotal' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/RangeValue.php b/src/Fulfillment/Types/RangeValue.php new file mode 100644 index 000000000..60e477e4b --- /dev/null +++ b/src/Fulfillment/Types/RangeValue.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end' + ], + 'exclusiveEnd' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveEnd' + ], + 'exclusiveStart' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveStart' + ], + 'range' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'start' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/SellerActionsToRelease.php b/src/Fulfillment/Types/SellerActionsToRelease.php new file mode 100644 index 000000000..261851dd8 --- /dev/null +++ b/src/Fulfillment/Types/SellerActionsToRelease.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerActionToRelease' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingFulfillment.php b/src/Fulfillment/Types/ShippingFulfillment.php new file mode 100644 index 000000000..24570c128 --- /dev/null +++ b/src/Fulfillment/Types/ShippingFulfillment.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentId' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItemReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'shipmentTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingNumber' + ], + 'shippedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'shippingCarrierCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingFulfillmentDetails.php b/src/Fulfillment/Types/ShippingFulfillmentDetails.php new file mode 100644 index 000000000..de6d5660e --- /dev/null +++ b/src/Fulfillment/Types/ShippingFulfillmentDetails.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItemReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'shippedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'shippingCarrierCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php b/src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php new file mode 100644 index 000000000..ac577a15d --- /dev/null +++ b/src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ShippingFulfillment', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillments' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingStep.php b/src/Fulfillment/Types/ShippingStep.php new file mode 100644 index 000000000..46a748d43 --- /dev/null +++ b/src/Fulfillment/Types/ShippingStep.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ], + 'shippingServiceCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceCode' + ], + 'shipTo' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Contact', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipTo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Tax.php b/src/Fulfillment/Types/Tax.php new file mode 100644 index 000000000..51ff37cb2 --- /dev/null +++ b/src/Fulfillment/Types/Tax.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/HalfFinding/Enums/AckValue.php b/src/HalfFinding/Enums/AckValue.php index 6281debb7..99285f5c8 100644 --- a/src/HalfFinding/Enums/AckValue.php +++ b/src/HalfFinding/Enums/AckValue.php @@ -1,15 +1,15 @@ [ - 'type' => 'DTS\eBaySDK\HalfFinding\Types\PositiveInteger', + 'type' => 'integer', 'repeatable' => false, 'attribute' => false, 'elementName' => 'id' diff --git a/src/HalfFinding/Types/FindItemsRequest.php b/src/HalfFinding/Types/FindItemsRequest.php index 36e22df31..e44a7ca4f 100644 --- a/src/HalfFinding/Types/FindItemsRequest.php +++ b/src/HalfFinding/Types/FindItemsRequest.php @@ -1,8 +1,11 @@ true, + 'curl' => true, 'debug' => true, 'delay' => true, + 'http_errors' => true, 'proxy' => true, 'timeout' => true, 'verify' => true ]; /** - * @param ClientInterface $client + * @param \GuzzleHttp\ClientInterface $client The client for making the HTTP request. */ public function __construct(ClientInterface $client = null) { @@ -36,12 +38,11 @@ public function __construct(ClientInterface $client = null) } /** - * @param Psr7Request $request - * @param Array $options Http options for the client. + * @param \Psr7Request|RequestInterface $request + * @param array $options Http options for the client. * - * @return GuzzleHttp\Promise\PromiseInterface Promise that will be resolved with a - * Psr\Http\Message\ResponseInterface - * response object. + * @return \GuzzleHttp\Promise\PromiseInterface Promise that will be resolved with a + * Psr\Http\Message\ResponseInterface response object. */ public function __invoke(RequestInterface $request, array $options) { diff --git a/src/HttpHeadersTrait.php b/src/HttpHeadersTrait.php new file mode 100644 index 000000000..9e719364f --- /dev/null +++ b/src/HttpHeadersTrait.php @@ -0,0 +1,155 @@ +getHeaders() as $name => $values) { + * echo $name . ": " . implode(", ", $values); + * } + * + * // Emit headers iteratively: + * foreach ($obj->getHeaders() as $name => $values) { + * foreach ($values as $value) { + * header(sprintf('%s: %s', $name, $value), false); + * } + * } + * + * While header names are not case-sensitive, getHeaders() will preserve the + * exact case in which headers were originally specified. + * + * @return string[][] Returns an associative array of headers. Each + * key will be a header name, and each value will be an array of strings + * for that header. + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * Checks if a header exists by the given case-insensitive name. + * + * @param string $header Case-insensitive header field name. + * + * @return bool Returns true if any header names match the given header + * name using a case-insensitive string comparison. Returns false if + * no matching header name is found in the message. + */ + public function hasHeader($header) + { + return isset($this->headerNames[strtolower($header)]); + } + + /** + * Retrieves a message header value by the given case-insensitive name. + * + * This method returns an array of all the header values of the given + * case-insensitive header name. + * + * If the header does not appear in the message, this method will return an + * empty array. + * + * @param string $header Case-insensitive header field name. + * + * @return string[] An array of string values as provided for the given + * header. If the header does not appear in the message, this method will + * return an empty array. + */ + public function getHeader($header) + { + $header = strtolower($header); + + if (!isset($this->headerNames[$header])) { + return []; + } + + $header = $this->headerNames[$header]; + + return $this->headers[$header]; + } + + /** + * Retrieves a comma-separated string of the values for a single header. + * + * This method returns all of the header values of the given + * case-insensitive header name as a string concatenated together using + * a comma. + * + * NOTE: Not all header values may be appropriately represented using + * comma concatenation. For such headers, use getHeader() instead + * and supply your own delimiter when concatenating. + * + * If the header does not appear in the message, this method will return + * an empty string. + * + * @param string $header Case-insensitive header field name. + * + * @return string A string of values as provided for the given header + * concatenated together using a comma. If the header does not appear in + * the message, this method will return an empty string. + */ + public function getHeaderLine($header) + { + return implode(', ', $this->getHeader($header)); + } + + /** + * Stores the passed HTTP headers. Ensures header values can be access in a case-insenitive way + * while preserving the original case of the header name. + * + * @param array $headers Associative array of HTTP headers. + */ + private function setHeaders(array $headers) + { + $this->headerNames = $this->headers = []; + foreach ($headers as $header => $value) { + if (!is_array($value)) { + $value = [$value]; + } + + $value = $this->trimHeaderValues($value); + $normalized = strtolower($header); + if (isset($this->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $this->headers[$header] = array_merge($this->headers[$header], $value); + } else { + $this->headerNames[$normalized] = $header; + $this->headers[$header] = $value; + } + } + } + + /** + * Trims whitespace from the header values. + * + * @param string[] $values Header values + * + * @return string[] Trimmed header values + */ + private function trimHeaderValues(array $values) + { + return array_map(function ($value) { + return trim($value, " \t"); + }, $values); + } +} diff --git a/src/Inventory/Enums/AvailabilityTypeEnum.php b/src/Inventory/Enums/AvailabilityTypeEnum.php new file mode 100644 index 000000000..7885c7cfc --- /dev/null +++ b/src/Inventory/Enums/AvailabilityTypeEnum.php @@ -0,0 +1,18 @@ + 'https://api.sandbox.ebay.com/sell/inventory', + 'production' => 'https://api.ebay.com/sell/inventory' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Inventory\Services\InventoryService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Inventory/Services/InventoryService.php b/src/Inventory/Services/InventoryService.php new file mode 100644 index 000000000..70a2bba83 --- /dev/null +++ b/src/Inventory/Services/InventoryService.php @@ -0,0 +1,759 @@ + [ + 'method' => 'POST', + 'resource' => 'bulk_update_price_quantity', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestResponse', + 'params' => [ + ] + ], + 'CreateOrReplaceInventoryItem' => [ + 'method' => 'PUT', + 'resource' => 'inventory_item/{sku}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteInventoryItem' => [ + 'method' => 'DELETE', + 'resource' => 'inventory_item/{sku}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryItem' => [ + 'method' => 'GET', + 'resource' => 'inventory_item/{sku}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryItems' => [ + 'method' => 'GET', + 'resource' => 'inventory_item', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ] + ] + ], + 'CreateOrReplaceInventoryItemGroup' => [ + 'method' => 'PUT', + 'resource' => 'inventory_item_group/{inventoryItemGroupKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestResponse', + 'params' => [ + 'inventoryItemGroupKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteInventoryItemGroup' => [ + 'method' => 'DELETE', + 'resource' => 'inventory_item_group/{inventoryItemGroupKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestResponse', + 'params' => [ + 'inventoryItemGroupKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryItemGroup' => [ + 'method' => 'GET', + 'resource' => 'inventory_item_group/{inventoryItemGroupKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestResponse', + 'params' => [ + 'inventoryItemGroupKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteInventoryLocation' => [ + 'method' => 'DELETE', + 'resource' => 'location/{merchantLocationKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DisableInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}/disable', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'EnableInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}/enable', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryLocation' => [ + 'method' => 'GET', + 'resource' => 'location/{merchantLocationKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryLocations' => [ + 'method' => 'GET', + 'resource' => 'location', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ] + ] + ], + 'UpdateInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}/update_location_details', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateOffer' => [ + 'method' => 'POST', + 'resource' => 'offer', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOfferRestResponse', + 'params' => [ + ] + ], + 'DeleteOffer' => [ + 'method' => 'DELETE', + 'resource' => 'offer/{offerId}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetListingFees' => [ + 'method' => 'POST', + 'resource' => 'offer/get_listing_fees', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetListingFeesRestResponse', + 'params' => [ + ] + ], + 'GetOffer' => [ + 'method' => 'GET', + 'resource' => 'offer/{offerId}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetOffers' => [ + 'method' => 'GET', + 'resource' => 'offer', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetOffersRestResponse', + 'params' => [ + 'format' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'marketplace_id' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'PublishOffer' => [ + 'method' => 'POST', + 'resource' => 'offer/{offerId}/publish', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\PublishOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateOffer' => [ + 'method' => 'PUT', + 'resource' => 'offer/{offer_Id}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\UpdateOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateOrReplaceProductCompatibility' => [ + 'method' => 'PUT', + 'resource' => 'inventory_item/{sku}/product_compatibility', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteProductCompatibility' => [ + 'method' => 'DELETE', + 'resource' => 'inventory_item/{sku}/product_compatibility', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetProductCompatibility' => [ + 'method' => 'GET', + 'resource' => 'inventory_item/{sku}/product_compatibility', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestResponse + */ + public function bulkUpdatePriceAndQuantity(\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request) + { + return $this->bulkUpdatePriceAndQuantityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdatePriceAndQuantityAsync(\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request) + { + return $this->callOperationAsync('BulkUpdatePriceAndQuantity', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestResponse + */ + public function createOrReplaceInventoryItem(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request) + { + return $this->createOrReplaceInventoryItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrReplaceInventoryItemAsync(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request) + { + return $this->callOperationAsync('CreateOrReplaceInventoryItem', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestResponse + */ + public function deleteInventoryItem(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request) + { + return $this->deleteInventoryItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteInventoryItemAsync(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request) + { + return $this->callOperationAsync('DeleteInventoryItem', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryItemRestResponse + */ + public function getInventoryItem(\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request) + { + return $this->getInventoryItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryItemAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request) + { + return $this->callOperationAsync('GetInventoryItem', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestResponse + */ + public function getInventoryItems(\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request) + { + return $this->getInventoryItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryItemsAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request) + { + return $this->callOperationAsync('GetInventoryItems', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestResponse + */ + public function createOrReplaceInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request) + { + return $this->createOrReplaceInventoryItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrReplaceInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request) + { + return $this->callOperationAsync('CreateOrReplaceInventoryItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestResponse + */ + public function deleteInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request) + { + return $this->deleteInventoryItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request) + { + return $this->callOperationAsync('DeleteInventoryItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestResponse + */ + public function getInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request) + { + return $this->getInventoryItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request) + { + return $this->callOperationAsync('GetInventoryItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestResponse + */ + public function createInventoryLocation(\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request) + { + return $this->createInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('CreateInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestResponse + */ + public function deleteInventoryLocation(\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request) + { + return $this->deleteInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('DeleteInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestResponse + */ + public function disableInventoryLocation(\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request) + { + return $this->disableInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function disableInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('DisableInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestResponse + */ + public function enableInventoryLocation(\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request) + { + return $this->enableInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function enableInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('EnableInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestResponse + */ + public function getInventoryLocation(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request) + { + return $this->getInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('GetInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestResponse + */ + public function getInventoryLocations(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request) + { + return $this->getInventoryLocationsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryLocationsAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request) + { + return $this->callOperationAsync('GetInventoryLocations', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestResponse + */ + public function updateInventoryLocation(\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request) + { + return $this->updateInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('UpdateInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOfferRestResponse + */ + public function createOffer(\DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request) + { + return $this->createOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOfferAsync(\DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request) + { + return $this->callOperationAsync('CreateOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteOfferRestResponse + */ + public function deleteOffer(\DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request) + { + return $this->deleteOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteOfferAsync(\DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request) + { + return $this->callOperationAsync('DeleteOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetListingFeesRestResponse + */ + public function getListingFees(\DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request) + { + return $this->getListingFeesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getListingFeesAsync(\DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request) + { + return $this->callOperationAsync('GetListingFees', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetOfferRestResponse + */ + public function getOffer(\DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request) + { + return $this->getOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOfferAsync(\DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request) + { + return $this->callOperationAsync('GetOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetOffersRestResponse + */ + public function getOffers(\DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request) + { + return $this->getOffersAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOffersAsync(\DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request) + { + return $this->callOperationAsync('GetOffers', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\PublishOfferRestResponse + */ + public function publishOffer(\DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request) + { + return $this->publishOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function publishOfferAsync(\DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request) + { + return $this->callOperationAsync('PublishOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\UpdateOfferRestResponse + */ + public function updateOffer(\DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request) + { + return $this->updateOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateOfferAsync(\DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request) + { + return $this->callOperationAsync('UpdateOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestResponse + */ + public function createOrReplaceProductCompatibility(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request) + { + return $this->createOrReplaceProductCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrReplaceProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request) + { + return $this->callOperationAsync('CreateOrReplaceProductCompatibility', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestResponse + */ + public function deleteProductCompatibility(\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request) + { + return $this->deleteProductCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request) + { + return $this->callOperationAsync('DeleteProductCompatibility', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestResponse + */ + public function getProductCompatibility(\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request) + { + return $this->getProductCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request) + { + return $this->callOperationAsync('GetProductCompatibility', $request); + } +} diff --git a/src/Inventory/Types/Address.php b/src/Inventory/Types/Address.php new file mode 100644 index 000000000..bdd766308 --- /dev/null +++ b/src/Inventory/Types/Address.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Amount.php b/src/Inventory/Types/Amount.php new file mode 100644 index 000000000..73e6b879f --- /dev/null +++ b/src/Inventory/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Availability.php b/src/Inventory/Types/Availability.php new file mode 100644 index 000000000..2d5e39414 --- /dev/null +++ b/src/Inventory/Types/Availability.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PickupAtLocationAvailability', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'pickupAtLocationAvailability' + ], + 'shipToLocationAvailability' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ShipToLocationAvailability', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocationAvailability' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BaseResponse.php b/src/Inventory/Types/BaseResponse.php new file mode 100644 index 000000000..1b1326fee --- /dev/null +++ b/src/Inventory/Types/BaseResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkPriceQuantity.php b/src/Inventory/Types/BulkPriceQuantity.php new file mode 100644 index 000000000..2ad48b07a --- /dev/null +++ b/src/Inventory/Types/BulkPriceQuantity.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PriceQuantity', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkPriceQuantityResponse.php b/src/Inventory/Types/BulkPriceQuantityResponse.php new file mode 100644 index 000000000..4b27936f1 --- /dev/null +++ b/src/Inventory/Types/BulkPriceQuantityResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PriceQuantityResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responses' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php new file mode 100644 index 000000000..5a8b164f9 --- /dev/null +++ b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php new file mode 100644 index 000000000..e95e02107 --- /dev/null +++ b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/Compatibility.php b/src/Inventory/Types/Compatibility.php new file mode 100644 index 000000000..ad0273887 --- /dev/null +++ b/src/Inventory/Types/Compatibility.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\CompatibleProduct', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibleProducts' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CompatibleProduct.php b/src/Inventory/Types/CompatibleProduct.php new file mode 100644 index 000000000..ef74a82c2 --- /dev/null +++ b/src/Inventory/Types/CompatibleProduct.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'notes' + ], + 'productFamilyProperties' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ProductFamilyProperties', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productFamilyProperties' + ], + 'productIdentifier' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateInventoryLocationRestRequest.php b/src/Inventory/Types/CreateInventoryLocationRestRequest.php new file mode 100644 index 000000000..2ed3934b1 --- /dev/null +++ b/src/Inventory/Types/CreateInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateInventoryLocationRestResponse.php b/src/Inventory/Types/CreateInventoryLocationRestResponse.php new file mode 100644 index 000000000..898526adc --- /dev/null +++ b/src/Inventory/Types/CreateInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOfferRestRequest.php b/src/Inventory/Types/CreateOfferRestRequest.php new file mode 100644 index 000000000..dba4b0037 --- /dev/null +++ b/src/Inventory/Types/CreateOfferRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOfferRestResponse.php b/src/Inventory/Types/CreateOfferRestResponse.php new file mode 100644 index 000000000..47ef8910c --- /dev/null +++ b/src/Inventory/Types/CreateOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..12405362c --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..29dc9cf3b --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php b/src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php new file mode 100644 index 000000000..0c96582d1 --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php b/src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php new file mode 100644 index 000000000..1d9ee2f1f --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php new file mode 100644 index 000000000..ed9e3893b --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php new file mode 100644 index 000000000..5fb8aea03 --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php b/src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..69dc7ef4e --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php b/src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..2c6a31ab5 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemRestRequest.php b/src/Inventory/Types/DeleteInventoryItemRestRequest.php new file mode 100644 index 000000000..68495f252 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemRestResponse.php b/src/Inventory/Types/DeleteInventoryItemRestResponse.php new file mode 100644 index 000000000..88a0dd42c --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteInventoryLocationRestRequest.php b/src/Inventory/Types/DeleteInventoryLocationRestRequest.php new file mode 100644 index 000000000..f57d40623 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteInventoryLocationRestResponse.php b/src/Inventory/Types/DeleteInventoryLocationRestResponse.php new file mode 100644 index 000000000..c9dd2db90 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteOfferRestRequest.php b/src/Inventory/Types/DeleteOfferRestRequest.php new file mode 100644 index 000000000..e2155dc52 --- /dev/null +++ b/src/Inventory/Types/DeleteOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteOfferRestResponse.php b/src/Inventory/Types/DeleteOfferRestResponse.php new file mode 100644 index 000000000..e53fabb44 --- /dev/null +++ b/src/Inventory/Types/DeleteOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteProductCompatibilityRestRequest.php b/src/Inventory/Types/DeleteProductCompatibilityRestRequest.php new file mode 100644 index 000000000..2db4ec5da --- /dev/null +++ b/src/Inventory/Types/DeleteProductCompatibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteProductCompatibilityRestResponse.php b/src/Inventory/Types/DeleteProductCompatibilityRestResponse.php new file mode 100644 index 000000000..d30ac8571 --- /dev/null +++ b/src/Inventory/Types/DeleteProductCompatibilityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/Dimension.php b/src/Inventory/Types/Dimension.php new file mode 100644 index 000000000..fc3ff9b34 --- /dev/null +++ b/src/Inventory/Types/Dimension.php @@ -0,0 +1,67 @@ + [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'height' + ], + 'length' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'length' + ], + 'unit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'width' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'width' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DisableInventoryLocationRestRequest.php b/src/Inventory/Types/DisableInventoryLocationRestRequest.php new file mode 100644 index 000000000..1ab0d9661 --- /dev/null +++ b/src/Inventory/Types/DisableInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DisableInventoryLocationRestResponse.php b/src/Inventory/Types/DisableInventoryLocationRestResponse.php new file mode 100644 index 000000000..0d877d63f --- /dev/null +++ b/src/Inventory/Types/DisableInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/EbayOfferDetailsWithAll.php b/src/Inventory/Types/EbayOfferDetailsWithAll.php new file mode 100644 index 000000000..e9f819cb9 --- /dev/null +++ b/src/Inventory/Types/EbayOfferDetailsWithAll.php @@ -0,0 +1,144 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'format' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'format' + ], + 'listing' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listing' + ], + 'listingDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingDescription' + ], + 'listingPolicies' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingPolicies', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingPolicies' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'offerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'storeCategoryNames' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'storeCategoryNames' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Tax', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EbayOfferDetailsWithId.php b/src/Inventory/Types/EbayOfferDetailsWithId.php new file mode 100644 index 000000000..f283df340 --- /dev/null +++ b/src/Inventory/Types/EbayOfferDetailsWithId.php @@ -0,0 +1,102 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'listingDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingDescription' + ], + 'listingPolicies' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingPolicies', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingPolicies' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'storeCategoryNames' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'storeCategoryNames' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Tax', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EbayOfferDetailsWithKeys.php b/src/Inventory/Types/EbayOfferDetailsWithKeys.php new file mode 100644 index 000000000..c2aed1a71 --- /dev/null +++ b/src/Inventory/Types/EbayOfferDetailsWithKeys.php @@ -0,0 +1,123 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'format' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'format' + ], + 'listingDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingDescription' + ], + 'listingPolicies' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingPolicies', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingPolicies' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'storeCategoryNames' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'storeCategoryNames' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Tax', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EnableInventoryLocationRestRequest.php b/src/Inventory/Types/EnableInventoryLocationRestRequest.php new file mode 100644 index 000000000..c2da4ddea --- /dev/null +++ b/src/Inventory/Types/EnableInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EnableInventoryLocationRestResponse.php b/src/Inventory/Types/EnableInventoryLocationRestResponse.php new file mode 100644 index 000000000..654f2e32e --- /dev/null +++ b/src/Inventory/Types/EnableInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/ErrorDetailV3.php b/src/Inventory/Types/ErrorDetailV3.php new file mode 100644 index 000000000..8c2fb03f9 --- /dev/null +++ b/src/Inventory/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ErrorParameterV3.php b/src/Inventory/Types/ErrorParameterV3.php new file mode 100644 index 000000000..9c2a422dd --- /dev/null +++ b/src/Inventory/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Fee.php b/src/Inventory/Types/Fee.php new file mode 100644 index 000000000..d6f189189 --- /dev/null +++ b/src/Inventory/Types/Fee.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'feeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feeType' + ], + 'promotionalDiscount' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionalDiscount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/FeeSummary.php b/src/Inventory/Types/FeeSummary.php new file mode 100644 index 000000000..27d68b2db --- /dev/null +++ b/src/Inventory/Types/FeeSummary.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Fee', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fees' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/FeesSummaryResponse.php b/src/Inventory/Types/FeesSummaryResponse.php new file mode 100644 index 000000000..2891e686a --- /dev/null +++ b/src/Inventory/Types/FeesSummaryResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\FeeSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'feeSummaries' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GeoCoordinates.php b/src/Inventory/Types/GeoCoordinates.php new file mode 100644 index 000000000..f0e999357 --- /dev/null +++ b/src/Inventory/Types/GeoCoordinates.php @@ -0,0 +1,53 @@ + [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'latitude' + ], + 'longitude' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longitude' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemGroupRestRequest.php b/src/Inventory/Types/GetInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..41801912d --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemGroupRestResponse.php b/src/Inventory/Types/GetInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..fdea14dff --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryItemRestRequest.php b/src/Inventory/Types/GetInventoryItemRestRequest.php new file mode 100644 index 000000000..3335160cb --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemRestResponse.php b/src/Inventory/Types/GetInventoryItemRestResponse.php new file mode 100644 index 000000000..16ed30bd0 --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryItemsRestRequest.php b/src/Inventory/Types/GetInventoryItemsRestRequest.php new file mode 100644 index 000000000..d3d853c24 --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemsRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemsRestResponse.php b/src/Inventory/Types/GetInventoryItemsRestResponse.php new file mode 100644 index 000000000..1c56da165 --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationRestRequest.php b/src/Inventory/Types/GetInventoryLocationRestRequest.php new file mode 100644 index 000000000..e43d36c76 --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationRestResponse.php b/src/Inventory/Types/GetInventoryLocationRestResponse.php new file mode 100644 index 000000000..b1d9c7b63 --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationsRestRequest.php b/src/Inventory/Types/GetInventoryLocationsRestRequest.php new file mode 100644 index 000000000..75e7ceadd --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationsRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationsRestResponse.php b/src/Inventory/Types/GetInventoryLocationsRestResponse.php new file mode 100644 index 000000000..78b67dd59 --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetListingFeesRestRequest.php b/src/Inventory/Types/GetListingFeesRestRequest.php new file mode 100644 index 000000000..df1ded4b9 --- /dev/null +++ b/src/Inventory/Types/GetListingFeesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetListingFeesRestResponse.php b/src/Inventory/Types/GetListingFeesRestResponse.php new file mode 100644 index 000000000..c42bc6619 --- /dev/null +++ b/src/Inventory/Types/GetListingFeesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetOfferRestRequest.php b/src/Inventory/Types/GetOfferRestRequest.php new file mode 100644 index 000000000..4e82e582a --- /dev/null +++ b/src/Inventory/Types/GetOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetOfferRestResponse.php b/src/Inventory/Types/GetOfferRestResponse.php new file mode 100644 index 000000000..fcb592c9a --- /dev/null +++ b/src/Inventory/Types/GetOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetOffersRestRequest.php b/src/Inventory/Types/GetOffersRestRequest.php new file mode 100644 index 000000000..be0ff769a --- /dev/null +++ b/src/Inventory/Types/GetOffersRestRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'format' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'marketplace_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetOffersRestResponse.php b/src/Inventory/Types/GetOffersRestResponse.php new file mode 100644 index 000000000..91bfccc92 --- /dev/null +++ b/src/Inventory/Types/GetOffersRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetProductCompatibilityRestRequest.php b/src/Inventory/Types/GetProductCompatibilityRestRequest.php new file mode 100644 index 000000000..667048554 --- /dev/null +++ b/src/Inventory/Types/GetProductCompatibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetProductCompatibilityRestResponse.php b/src/Inventory/Types/GetProductCompatibilityRestResponse.php new file mode 100644 index 000000000..17b449be1 --- /dev/null +++ b/src/Inventory/Types/GetProductCompatibilityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/Interval.php b/src/Inventory/Types/Interval.php new file mode 100644 index 000000000..18f8b035f --- /dev/null +++ b/src/Inventory/Types/Interval.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'close' + ], + 'open' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'open' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryItem.php b/src/Inventory/Types/InventoryItem.php new file mode 100644 index 000000000..d2c91fae8 --- /dev/null +++ b/src/Inventory/Types/InventoryItem.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Availability', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availability' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'conditionDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'conditionDescription' + ], + 'packageWeightAndSize' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PackageWeightAndSize', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'packageWeightAndSize' + ], + 'product' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Product', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'product' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryItemGroup.php b/src/Inventory/Types/InventoryItemGroup.php new file mode 100644 index 000000000..5edc91ae4 --- /dev/null +++ b/src/Inventory/Types/InventoryItemGroup.php @@ -0,0 +1,95 @@ + [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspects' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'imageUrls' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'imageUrls' + ], + 'inventoryItemGroupKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'variantSKUs' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'variantSKUs' + ], + 'variesBy' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\VariesBy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'variesBy' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryItems.php b/src/Inventory/Types/InventoryItems.php new file mode 100644 index 000000000..494d0b1b8 --- /dev/null +++ b/src/Inventory/Types/InventoryItems.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'inventoryItems' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\InventoryItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inventoryItems' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'size' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryLocation.php b/src/Inventory/Types/InventoryLocation.php new file mode 100644 index 000000000..6d1de82bc --- /dev/null +++ b/src/Inventory/Types/InventoryLocation.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationAdditionalInformation' + ], + 'locationInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationInstructions' + ], + 'locationWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationWebUrl' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'operatingHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OperatingHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'operatingHours' + ], + 'phone' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phone' + ], + 'specialHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\SpecialHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specialHours' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryLocationFull.php b/src/Inventory/Types/InventoryLocationFull.php new file mode 100644 index 000000000..12b26e084 --- /dev/null +++ b/src/Inventory/Types/InventoryLocationFull.php @@ -0,0 +1,109 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Location', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'location' + ], + 'locationAdditionalInformation' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationAdditionalInformation' + ], + 'locationInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationInstructions' + ], + 'locationTypes' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'locationTypes' + ], + 'locationWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationWebUrl' + ], + 'merchantLocationStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationStatus' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'operatingHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OperatingHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'operatingHours' + ], + 'phone' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phone' + ], + 'specialHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\SpecialHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specialHours' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryLocationResponse.php b/src/Inventory/Types/InventoryLocationResponse.php new file mode 100644 index 000000000..0d629e92d --- /dev/null +++ b/src/Inventory/Types/InventoryLocationResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Location', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'location' + ], + 'locationAdditionalInformation' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationAdditionalInformation' + ], + 'locationInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationInstructions' + ], + 'locationTypes' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'locationTypes' + ], + 'locationWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationWebUrl' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'merchantLocationStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationStatus' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'operatingHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OperatingHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'operatingHours' + ], + 'phone' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phone' + ], + 'specialHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\SpecialHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specialHours' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ListingDetails.php b/src/Inventory/Types/ListingDetails.php new file mode 100644 index 000000000..f5c17d238 --- /dev/null +++ b/src/Inventory/Types/ListingDetails.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'listingStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingStatus' + ], + 'soldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldQuantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ListingPolicies.php b/src/Inventory/Types/ListingPolicies.php new file mode 100644 index 000000000..9d07d6944 --- /dev/null +++ b/src/Inventory/Types/ListingPolicies.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ], + 'paymentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ], + 'returnPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ], + 'shippingCostOverrides' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ShippingCostOverride', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingCostOverrides' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Location.php b/src/Inventory/Types/Location.php new file mode 100644 index 000000000..09c22f987 --- /dev/null +++ b/src/Inventory/Types/Location.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'address' + ], + 'geoCoordinates' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\GeoCoordinates', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'geoCoordinates' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/LocationResponse.php b/src/Inventory/Types/LocationResponse.php new file mode 100644 index 000000000..b2daa8de9 --- /dev/null +++ b/src/Inventory/Types/LocationResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'locations' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\InventoryLocationResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'locations' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferKeyWithId.php b/src/Inventory/Types/OfferKeyWithId.php new file mode 100644 index 000000000..28d21ff17 --- /dev/null +++ b/src/Inventory/Types/OfferKeyWithId.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferKeysWithId.php b/src/Inventory/Types/OfferKeysWithId.php new file mode 100644 index 000000000..96b4e17fb --- /dev/null +++ b/src/Inventory/Types/OfferKeysWithId.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OfferKeyWithId', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'offers' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferPriceQuantity.php b/src/Inventory/Types/OfferPriceQuantity.php new file mode 100644 index 000000000..19c5b2525 --- /dev/null +++ b/src/Inventory/Types/OfferPriceQuantity.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'offerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferResponse.php b/src/Inventory/Types/OfferResponse.php new file mode 100644 index 000000000..885183c55 --- /dev/null +++ b/src/Inventory/Types/OfferResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Offers.php b/src/Inventory/Types/Offers.php new file mode 100644 index 000000000..97be4440e --- /dev/null +++ b/src/Inventory/Types/Offers.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offers' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithAll', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'offers' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'size' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OperatingHours.php b/src/Inventory/Types/OperatingHours.php new file mode 100644 index 000000000..6773523e7 --- /dev/null +++ b/src/Inventory/Types/OperatingHours.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dayOfWeekEnum' + ], + 'intervals' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Interval', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'intervals' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PackageWeightAndSize.php b/src/Inventory/Types/PackageWeightAndSize.php new file mode 100644 index 000000000..0ad89136d --- /dev/null +++ b/src/Inventory/Types/PackageWeightAndSize.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Dimension', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dimensions' + ], + 'packageType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'packageType' + ], + 'weight' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Weight', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'weight' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PickupAtLocationAvailability.php b/src/Inventory/Types/PickupAtLocationAvailability.php new file mode 100644 index 000000000..bb33ec968 --- /dev/null +++ b/src/Inventory/Types/PickupAtLocationAvailability.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availabilityType' + ], + 'fulfillmentTime' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentTime' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PriceQuantity.php b/src/Inventory/Types/PriceQuantity.php new file mode 100644 index 000000000..0c355d145 --- /dev/null +++ b/src/Inventory/Types/PriceQuantity.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OfferPriceQuantity', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'offers' + ], + 'shipToLocationAvailability' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ShipToLocationAvailability', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocationAvailability' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PriceQuantityResponse.php b/src/Inventory/Types/PriceQuantityResponse.php new file mode 100644 index 000000000..524b6936f --- /dev/null +++ b/src/Inventory/Types/PriceQuantityResponse.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'offerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'statusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PricingSummary.php b/src/Inventory/Types/PricingSummary.php new file mode 100644 index 000000000..df361d143 --- /dev/null +++ b/src/Inventory/Types/PricingSummary.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minimumAdvertisedPrice' + ], + 'originallySoldForRetailPriceOn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originallySoldForRetailPriceOn' + ], + 'originalRetailPrice' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalRetailPrice' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'pricingVisibility' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingVisibility' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Product.php b/src/Inventory/Types/Product.php new file mode 100644 index 000000000..c21e4efcc --- /dev/null +++ b/src/Inventory/Types/Product.php @@ -0,0 +1,109 @@ + [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspects' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'ean' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ean' + ], + 'imageUrls' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'imageUrls' + ], + 'isbn' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'isbn' + ], + 'mpn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mpn' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'upc' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'upc' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ProductFamilyProperties.php b/src/Inventory/Types/ProductFamilyProperties.php new file mode 100644 index 000000000..0901bc949 --- /dev/null +++ b/src/Inventory/Types/ProductFamilyProperties.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'engine' + ], + 'make' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'make' + ], + 'model' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'model' + ], + 'trim' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trim' + ], + 'year' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'year' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ProductIdentifier.php b/src/Inventory/Types/ProductIdentifier.php new file mode 100644 index 000000000..e939fc143 --- /dev/null +++ b/src/Inventory/Types/ProductIdentifier.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'epid' + ], + 'gtin' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gtin' + ], + 'ktype' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ktype' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PublishOfferRestRequest.php b/src/Inventory/Types/PublishOfferRestRequest.php new file mode 100644 index 000000000..ff9a7abfc --- /dev/null +++ b/src/Inventory/Types/PublishOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PublishOfferRestResponse.php b/src/Inventory/Types/PublishOfferRestResponse.php new file mode 100644 index 000000000..d890bbc6f --- /dev/null +++ b/src/Inventory/Types/PublishOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/PublishResponse.php b/src/Inventory/Types/PublishResponse.php new file mode 100644 index 000000000..993194a23 --- /dev/null +++ b/src/Inventory/Types/PublishResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ShipToLocationAvailability.php b/src/Inventory/Types/ShipToLocationAvailability.php new file mode 100644 index 000000000..3103530a0 --- /dev/null +++ b/src/Inventory/Types/ShipToLocationAvailability.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ShippingCostOverride.php b/src/Inventory/Types/ShippingCostOverride.php new file mode 100644 index 000000000..06225a25d --- /dev/null +++ b/src/Inventory/Types/ShippingCostOverride.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'additionalShippingCost' + ], + 'priority' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingServiceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceType' + ], + 'surcharge' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'surcharge' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/SpecialHours.php b/src/Inventory/Types/SpecialHours.php new file mode 100644 index 000000000..7d7c14ba7 --- /dev/null +++ b/src/Inventory/Types/SpecialHours.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'intervals' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Interval', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'intervals' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Specification.php b/src/Inventory/Types/Specification.php new file mode 100644 index 000000000..7cb1b900a --- /dev/null +++ b/src/Inventory/Types/Specification.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'values' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'values' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Tax.php b/src/Inventory/Types/Tax.php new file mode 100644 index 000000000..6b230158a --- /dev/null +++ b/src/Inventory/Types/Tax.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applyTax' + ], + 'thirdPartyTaxCategory' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thirdPartyTaxCategory' + ], + 'vatPercentage' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'vatPercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/TimeDuration.php b/src/Inventory/Types/TimeDuration.php new file mode 100644 index 000000000..c48592d64 --- /dev/null +++ b/src/Inventory/Types/TimeDuration.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/UpdateInventoryLocationRestRequest.php b/src/Inventory/Types/UpdateInventoryLocationRestRequest.php new file mode 100644 index 000000000..269b7b448 --- /dev/null +++ b/src/Inventory/Types/UpdateInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/UpdateInventoryLocationRestResponse.php b/src/Inventory/Types/UpdateInventoryLocationRestResponse.php new file mode 100644 index 000000000..9958ecea6 --- /dev/null +++ b/src/Inventory/Types/UpdateInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/UpdateOfferRestRequest.php b/src/Inventory/Types/UpdateOfferRestRequest.php new file mode 100644 index 000000000..ac5cb9353 --- /dev/null +++ b/src/Inventory/Types/UpdateOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/UpdateOfferRestResponse.php b/src/Inventory/Types/UpdateOfferRestResponse.php new file mode 100644 index 000000000..a6a8d3a93 --- /dev/null +++ b/src/Inventory/Types/UpdateOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/VariesBy.php b/src/Inventory/Types/VariesBy.php new file mode 100644 index 000000000..498472a08 --- /dev/null +++ b/src/Inventory/Types/VariesBy.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'aspectsImageVariesBy' + ], + 'specifications' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Specification', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specifications' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Weight.php b/src/Inventory/Types/Weight.php new file mode 100644 index 000000000..0d207982a --- /dev/null +++ b/src/Inventory/Types/Weight.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/JmesPath/FnDispatcher.php b/src/JmesPath/FnDispatcher.php index 7289c8d18..ee55b2051 100644 --- a/src/JmesPath/FnDispatcher.php +++ b/src/JmesPath/FnDispatcher.php @@ -422,7 +422,10 @@ private function wrapExpression($from, callable $expr, array $types) }; } - /** @internal Pass function name validation off to runtime */ + /** @internal Pass function name validation off to runtime + * @param $name + * @param $args + */ public function __call($name, $args) { $name = str_replace('fn_', '', $name); diff --git a/src/JmesPath/Parser.php b/src/JmesPath/Parser.php index 0f84e790e..4fe17aec2 100644 --- a/src/JmesPath/Parser.php +++ b/src/JmesPath/Parser.php @@ -515,6 +515,8 @@ private function assertNotToken($type) /** * @internal Handles undefined tokens without paying the cost of validation + * @param $method + * @param $args */ public function __call($method, $args) { diff --git a/src/JmesPath/TreeCompiler.php b/src/JmesPath/TreeCompiler.php index 9a3ec853a..ecdbab34b 100644 --- a/src/JmesPath/TreeCompiler.php +++ b/src/JmesPath/TreeCompiler.php @@ -431,7 +431,10 @@ private function visit_comparator(array $node) return $this; } - /** @internal */ + /** @internal + * @param $method + * @param $args + */ public function __call($method, $args) { throw new \RuntimeException( diff --git a/src/JmesPath/TreeInterpreter.php b/src/JmesPath/TreeInterpreter.php index ccdeaf6b2..7484807ff 100644 --- a/src/JmesPath/TreeInterpreter.php +++ b/src/JmesPath/TreeInterpreter.php @@ -57,6 +57,8 @@ public function visit(array $node, $data) * Recursively traverses an AST using depth-first, pre-order traversal. * The evaluation logic for each node type is embedded into a large switch * statement to avoid the cost of "double dispatch". + * @param array $node + * @param $value * @return mixed */ private function dispatch(array $node, $value) @@ -238,6 +240,9 @@ private function dispatch(array $node, $value) } /** + * @param $left + * @param $right + * @param $cmp * @return bool */ private static function relativeCmp($left, $right, $cmp) diff --git a/src/Marketing/Enums/CampaignStatusEnum.php b/src/Marketing/Enums/CampaignStatusEnum.php new file mode 100644 index 000000000..e450de3c2 --- /dev/null +++ b/src/Marketing/Enums/CampaignStatusEnum.php @@ -0,0 +1,22 @@ + 'https://api.sandbox.ebay.com/sell/marketing', + 'production' => 'https://api.ebay.com/sell/marketing' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Marketing\Services\MarketingService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Marketing/Services/MarketingService.php b/src/Marketing/Services/MarketingService.php new file mode 100644 index 000000000..c047463a9 --- /dev/null +++ b/src/Marketing/Services/MarketingService.php @@ -0,0 +1,1042 @@ + [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/bulk_create_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkCreateAdsByListingID' => [ + 'method' => 'POST', + 'resource' => 'campaign/{campaign_id}/bulk_create_ads_by_listing_id', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkDeleteAdsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'campaign/{campaign_id}/bulk_delete_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkDeleteAdsByListingID' => [ + 'method' => 'POST', + 'resource' => 'campaign/{campaign_id}/bulk_delete_ads_by_listing_id', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkUpdateAdBidsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/bulk_update_ads_bid_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkUpdateAdBidsByListingID' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/bulk_update_ads_bid_by_listing_id', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAdByListingID' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/ad', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAdsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/create_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteAdByID' => [ + 'method' => 'DELETE', + 'resource' => 'ad_campaign/{campaign_id}/ad/{ad_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestResponse', + 'params' => [ + 'ad_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteAdsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/delete_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAdByID' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}/ad/{ad_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAdByIDRestResponse', + 'params' => [ + 'ad_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAds' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}/ad', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAdsRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'listing_ids' => [ + 'valid' => ['string'], + 'required' => true + ], + 'offset' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetAdsByInventoryReference' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}/get_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'inventory_reference_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'inventory_reference_type' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateBid' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/ad/{ad_id}/update_bid', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\UpdateBidRestResponse', + 'params' => [ + 'ad_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CloneCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/clone', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CloneCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateCampaignRestResponse', + 'params' => [ + ] + ], + 'DeleteCampaign' => [ + 'method' => 'DELETE', + 'resource' => 'ad_campaign/{campaign_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'EndCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/end', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\EndCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'FindCampaignByAdReference' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/find_campaign_by_ad_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestResponse', + 'params' => [ + 'inventory_reference_id' => [ + 'valid' => ['string'] + ], + 'inventory_reference_type' => [ + 'valid' => ['string'] + ], + 'listing_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetAllCampaigns' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestResponse', + 'params' => [ + 'campaign_name' => [ + 'valid' => ['string'] + ], + 'campaign_status' => [ + 'valid' => ['string'] + ], + 'end_date_range' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'start_date_range' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetCampaignByName' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/get_campaign_by_name', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestResponse', + 'params' => [ + 'campaign_name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetCampaignByID' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'PauseCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/pause', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\PauseCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ResumeCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/resume', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateCampaignIDentification' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/update_campaign_identification', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateItemPromotion' => [ + 'method' => 'POST', + 'resource' => 'item_promotion', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestResponse', + 'params' => [ + ] + ], + 'DeleteItemPromotion' => [ + 'method' => 'DELETE', + 'resource' => 'item_promotion/{promotion_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetItemPromotion' => [ + 'method' => 'GET', + 'resource' => 'item_promotion/{promotion_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateItemPromotion' => [ + 'method' => 'PUT', + 'resource' => 'item_promotion/{promotion_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPromotions' => [ + 'method' => 'GET', + 'resource' => 'promotion', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetPromotionsRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'marketplace_id' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'promotion_status' => [ + 'valid' => ['string'] + ], + 'q' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ] + ] + ], + 'PauseAPromotion' => [ + 'method' => 'POST', + 'resource' => 'promotion/{promotion_id}/pause', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ResumeAPromotion' => [ + 'method' => 'POST', + 'resource' => 'promotion/{promotion_id}/resume', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPromotionSummaryReport' => [ + 'method' => 'GET', + 'resource' => 'promotion_summary_report', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestResponse + */ + public function bulkCreateAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request) + { + return $this->bulkCreateAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkCreateAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('BulkCreateAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestResponse + */ + public function bulkCreateAdsByListingID(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request) + { + return $this->bulkCreateAdsByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkCreateAdsByListingIDAsync(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request) + { + return $this->callOperationAsync('BulkCreateAdsByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestResponse + */ + public function bulkDeleteAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->bulkDeleteAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkDeleteAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('BulkDeleteAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestResponse + */ + public function bulkDeleteAdsByListingID(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request) + { + return $this->bulkDeleteAdsByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkDeleteAdsByListingIDAsync(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request) + { + return $this->callOperationAsync('BulkDeleteAdsByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestResponse + */ + public function bulkUpdateAdBidsByInventoryReference(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request) + { + return $this->bulkUpdateAdBidsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdateAdBidsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('BulkUpdateAdBidsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestResponse + */ + public function bulkUpdateAdBidsByListingID(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request) + { + return $this->bulkUpdateAdBidsByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdateAdBidsByListingIDAsync(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request) + { + return $this->callOperationAsync('BulkUpdateAdBidsByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestResponse + */ + public function createAdByListingID(\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request) + { + return $this->createAdByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAdByListingIDAsync(\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request) + { + return $this->callOperationAsync('CreateAdByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestResponse + */ + public function createAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request) + { + return $this->createAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('CreateAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestResponse + */ + public function deleteAdByID(\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request) + { + return $this->deleteAdByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAdByIDAsync(\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request) + { + return $this->callOperationAsync('DeleteAdByID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestResponse + */ + public function deleteAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->deleteAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('DeleteAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAdByIDRestResponse + */ + public function getAdByID(\DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request) + { + return $this->getAdByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdByIDAsync(\DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request) + { + return $this->callOperationAsync('GetAdByID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAdsRestResponse + */ + public function getAds(\DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request) + { + return $this->getAdsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdsAsync(\DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request) + { + return $this->callOperationAsync('GetAds', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestResponse + */ + public function getAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request) + { + return $this->getAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('GetAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\UpdateBidRestResponse + */ + public function updateBid(\DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request) + { + return $this->updateBidAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateBidAsync(\DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request) + { + return $this->callOperationAsync('UpdateBid', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CloneCampaignRestResponse + */ + public function cloneCampaign(\DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request) + { + return $this->cloneCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cloneCampaignAsync(\DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request) + { + return $this->callOperationAsync('CloneCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateCampaignRestResponse + */ + public function createCampaign(\DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request) + { + return $this->createCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createCampaignAsync(\DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request) + { + return $this->callOperationAsync('CreateCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteCampaignRestResponse + */ + public function deleteCampaign(\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request) + { + return $this->deleteCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCampaignAsync(\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request) + { + return $this->callOperationAsync('DeleteCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\EndCampaignRestResponse + */ + public function endCampaign(\DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request) + { + return $this->endCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function endCampaignAsync(\DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request) + { + return $this->callOperationAsync('EndCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestResponse + */ + public function findCampaignByAdReference(\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request) + { + return $this->findCampaignByAdReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findCampaignByAdReferenceAsync(\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request) + { + return $this->callOperationAsync('FindCampaignByAdReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestResponse + */ + public function getAllCampaigns(\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request) + { + return $this->getAllCampaignsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllCampaignsAsync(\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request) + { + return $this->callOperationAsync('GetAllCampaigns', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestResponse + */ + public function getCampaignByName(\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request) + { + return $this->getCampaignByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCampaignByNameAsync(\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request) + { + return $this->callOperationAsync('GetCampaignByName', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestResponse + */ + public function getCampaignByID(\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request) + { + return $this->getCampaignByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCampaignByIDAsync(\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request) + { + return $this->callOperationAsync('GetCampaignByID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\PauseCampaignRestResponse + */ + public function pauseCampaign(\DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request) + { + return $this->pauseCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function pauseCampaignAsync(\DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request) + { + return $this->callOperationAsync('PauseCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\ResumeCampaignRestResponse + */ + public function resumeCampaign(\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request) + { + return $this->resumeCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function resumeCampaignAsync(\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request) + { + return $this->callOperationAsync('ResumeCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestResponse + */ + public function updateCampaignIDentification(\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request) + { + return $this->updateCampaignIDentificationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCampaignIDentificationAsync(\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request) + { + return $this->callOperationAsync('UpdateCampaignIDentification', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestResponse + */ + public function createItemPromotion(\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request) + { + return $this->createItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request) + { + return $this->callOperationAsync('CreateItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestResponse + */ + public function deleteItemPromotion(\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request) + { + return $this->deleteItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request) + { + return $this->callOperationAsync('DeleteItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetItemPromotionRestResponse + */ + public function getItemPromotion(\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request) + { + return $this->getItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request) + { + return $this->callOperationAsync('GetItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestResponse + */ + public function updateItemPromotion(\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request) + { + return $this->updateItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request) + { + return $this->callOperationAsync('UpdateItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetPromotionsRestResponse + */ + public function getPromotions(\DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request) + { + return $this->getPromotionsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromotionsAsync(\DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request) + { + return $this->callOperationAsync('GetPromotions', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\PauseAPromotionRestResponse + */ + public function pauseAPromotion(\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request) + { + return $this->pauseAPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function pauseAPromotionAsync(\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request) + { + return $this->callOperationAsync('PauseAPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestResponse + */ + public function resumeAPromotion(\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request) + { + return $this->resumeAPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function resumeAPromotionAsync(\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request) + { + return $this->callOperationAsync('ResumeAPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestResponse + */ + public function getPromotionSummaryReport(\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request) + { + return $this->getPromotionSummaryReportAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromotionSummaryReportAsync(\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request) + { + return $this->callOperationAsync('GetPromotionSummaryReport', $request); + } +} diff --git a/src/Marketing/Types/Ad.php b/src/Marketing/Types/Ad.php new file mode 100644 index 000000000..17f96a494 --- /dev/null +++ b/src/Marketing/Types/Ad.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'bidPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'inventoryReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdIds.php b/src/Marketing/Types/AdIds.php new file mode 100644 index 000000000..42d050c6e --- /dev/null +++ b/src/Marketing/Types/AdIds.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'adIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdPagedCollection.php b/src/Marketing/Types/AdPagedCollection.php new file mode 100644 index 000000000..dcc3cd2ac --- /dev/null +++ b/src/Marketing/Types/AdPagedCollection.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Ad', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ads' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdReference.php b/src/Marketing/Types/AdReference.php new file mode 100644 index 000000000..9ff36d1ce --- /dev/null +++ b/src/Marketing/Types/AdReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdReferences.php b/src/Marketing/Types/AdReferences.php new file mode 100644 index 000000000..b7be58d60 --- /dev/null +++ b/src/Marketing/Types/AdReferences.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\AdReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ads' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdResponse.php b/src/Marketing/Types/AdResponse.php new file mode 100644 index 000000000..a2945be32 --- /dev/null +++ b/src/Marketing/Types/AdResponse.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'statusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/Ads.php b/src/Marketing/Types/Ads.php new file mode 100644 index 000000000..ea0be1730 --- /dev/null +++ b/src/Marketing/Types/Ads.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Ad', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ads' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/Amount.php b/src/Marketing/Types/Amount.php new file mode 100644 index 000000000..3b8d1e037 --- /dev/null +++ b/src/Marketing/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkAdResponse.php b/src/Marketing/Types/BulkAdResponse.php new file mode 100644 index 000000000..f51c2e80f --- /dev/null +++ b/src/Marketing/Types/BulkAdResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\AdResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responses' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdRequest.php b/src/Marketing/Types/BulkCreateAdRequest.php new file mode 100644 index 000000000..457799c0b --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CreateAdRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..b9e37e334 --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..ab81bcbd4 --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..74d571fda --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php b/src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php new file mode 100644 index 000000000..dee02413f --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php b/src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php new file mode 100644 index 000000000..9889ede07 --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdRequest.php b/src/Marketing/Types/BulkDeleteAdRequest.php new file mode 100644 index 000000000..91bb7755d --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DeleteAdRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdResponse.php b/src/Marketing/Types/BulkDeleteAdResponse.php new file mode 100644 index 000000000..15a1d8f23 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DeleteAdResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responses' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..deadf68b6 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..bd8e87088 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..65f405306 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php b/src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php new file mode 100644 index 000000000..b44b86163 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php b/src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php new file mode 100644 index 000000000..f84d57e98 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..ace32e16c --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..8d1e733f3 --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php new file mode 100644 index 000000000..28d414fe1 --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php new file mode 100644 index 000000000..337d9bb07 --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/Campaign.php b/src/Marketing/Types/Campaign.php new file mode 100644 index 000000000..2430eacdc --- /dev/null +++ b/src/Marketing/Types/Campaign.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CampaignCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignCriterion' + ], + 'campaignId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignId' + ], + 'campaignName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'campaignStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignStatus' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'fundingStrategy' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\FundingStrategy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingStrategy' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CampaignCriterion.php b/src/Marketing/Types/CampaignCriterion.php new file mode 100644 index 000000000..6e418ef82 --- /dev/null +++ b/src/Marketing/Types/CampaignCriterion.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'autoSelectFutureInventory' + ], + 'criterionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'criterionType' + ], + 'selectionRules' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\SelectionRule', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'selectionRules' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CampaignPagedCollection.php b/src/Marketing/Types/CampaignPagedCollection.php new file mode 100644 index 000000000..e68b4acdd --- /dev/null +++ b/src/Marketing/Types/CampaignPagedCollection.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Campaign', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'campaigns' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/Campaigns.php b/src/Marketing/Types/Campaigns.php new file mode 100644 index 000000000..f186ea4ba --- /dev/null +++ b/src/Marketing/Types/Campaigns.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Campaign', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'campaigns' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CloneCampaignRequest.php b/src/Marketing/Types/CloneCampaignRequest.php new file mode 100644 index 000000000..ca50be745 --- /dev/null +++ b/src/Marketing/Types/CloneCampaignRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'fundingStrategy' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\FundingStrategy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingStrategy' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CloneCampaignRestRequest.php b/src/Marketing/Types/CloneCampaignRestRequest.php new file mode 100644 index 000000000..12cecff06 --- /dev/null +++ b/src/Marketing/Types/CloneCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CloneCampaignRestResponse.php b/src/Marketing/Types/CloneCampaignRestResponse.php new file mode 100644 index 000000000..9698235f8 --- /dev/null +++ b/src/Marketing/Types/CloneCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateAdByListingIDRestRequest.php b/src/Marketing/Types/CreateAdByListingIDRestRequest.php new file mode 100644 index 000000000..d3249b58b --- /dev/null +++ b/src/Marketing/Types/CreateAdByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdByListingIDRestResponse.php b/src/Marketing/Types/CreateAdByListingIDRestResponse.php new file mode 100644 index 000000000..100659a21 --- /dev/null +++ b/src/Marketing/Types/CreateAdByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateAdRequest.php b/src/Marketing/Types/CreateAdRequest.php new file mode 100644 index 000000000..eaf4a7a4e --- /dev/null +++ b/src/Marketing/Types/CreateAdRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php b/src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..da04698b0 --- /dev/null +++ b/src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'inventoryReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..4ab3d080e --- /dev/null +++ b/src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..589bc96bf --- /dev/null +++ b/src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateCampaignRequest.php b/src/Marketing/Types/CreateCampaignRequest.php new file mode 100644 index 000000000..3b5ea1703 --- /dev/null +++ b/src/Marketing/Types/CreateCampaignRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CampaignCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignCriterion' + ], + 'campaignName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'fundingStrategy' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\FundingStrategy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingStrategy' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateCampaignRestRequest.php b/src/Marketing/Types/CreateCampaignRestRequest.php new file mode 100644 index 000000000..f6e9e8359 --- /dev/null +++ b/src/Marketing/Types/CreateCampaignRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateCampaignRestResponse.php b/src/Marketing/Types/CreateCampaignRestResponse.php new file mode 100644 index 000000000..2459fb96e --- /dev/null +++ b/src/Marketing/Types/CreateCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateItemPromotionRestRequest.php b/src/Marketing/Types/CreateItemPromotionRestRequest.php new file mode 100644 index 000000000..53ea4c881 --- /dev/null +++ b/src/Marketing/Types/CreateItemPromotionRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateItemPromotionRestResponse.php b/src/Marketing/Types/CreateItemPromotionRestResponse.php new file mode 100644 index 000000000..43b6e51a5 --- /dev/null +++ b/src/Marketing/Types/CreateItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteAdByIDRestRequest.php b/src/Marketing/Types/DeleteAdByIDRestRequest.php new file mode 100644 index 000000000..06f297354 --- /dev/null +++ b/src/Marketing/Types/DeleteAdByIDRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ad_id' + ], + 'campaign_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdByIDRestResponse.php b/src/Marketing/Types/DeleteAdByIDRestResponse.php new file mode 100644 index 000000000..a2e1b3d56 --- /dev/null +++ b/src/Marketing/Types/DeleteAdByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteAdRequest.php b/src/Marketing/Types/DeleteAdRequest.php new file mode 100644 index 000000000..b2888d7e8 --- /dev/null +++ b/src/Marketing/Types/DeleteAdRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdResponse.php b/src/Marketing/Types/DeleteAdResponse.php new file mode 100644 index 000000000..f89164d17 --- /dev/null +++ b/src/Marketing/Types/DeleteAdResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'statusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php b/src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..0b3f4cb95 --- /dev/null +++ b/src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..0f813e535 --- /dev/null +++ b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..e233aa947 --- /dev/null +++ b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteCampaignRestRequest.php b/src/Marketing/Types/DeleteCampaignRestRequest.php new file mode 100644 index 000000000..3fd9d26b2 --- /dev/null +++ b/src/Marketing/Types/DeleteCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteCampaignRestResponse.php b/src/Marketing/Types/DeleteCampaignRestResponse.php new file mode 100644 index 000000000..0ec3fed1c --- /dev/null +++ b/src/Marketing/Types/DeleteCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteItemPromotionRestRequest.php b/src/Marketing/Types/DeleteItemPromotionRestRequest.php new file mode 100644 index 000000000..ba201851a --- /dev/null +++ b/src/Marketing/Types/DeleteItemPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteItemPromotionRestResponse.php b/src/Marketing/Types/DeleteItemPromotionRestResponse.php new file mode 100644 index 000000000..2c382b96d --- /dev/null +++ b/src/Marketing/Types/DeleteItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DiscountBenefit.php b/src/Marketing/Types/DiscountBenefit.php new file mode 100644 index 000000000..ad7c0e0d3 --- /dev/null +++ b/src/Marketing/Types/DiscountBenefit.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amountOffItem' + ], + 'amountOffOrder' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amountOffOrder' + ], + 'percentageOffItem' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'percentageOffItem' + ], + 'percentageOffOrder' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'percentageOffOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DiscountRule.php b/src/Marketing/Types/DiscountRule.php new file mode 100644 index 000000000..34068ec89 --- /dev/null +++ b/src/Marketing/Types/DiscountRule.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountBenefit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountBenefit' + ], + 'discountSpecification' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountSpecification', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountSpecification' + ], + 'ruleOrder' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DiscountSpecification.php b/src/Marketing/Types/DiscountSpecification.php new file mode 100644 index 000000000..62a100719 --- /dev/null +++ b/src/Marketing/Types/DiscountSpecification.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forEachAmount' + ], + 'forEachQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forEachQuantity' + ], + 'minAmount' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minAmount' + ], + 'minQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minQuantity' + ], + 'numberOfDiscountedItems' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'numberOfDiscountedItems' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/EndCampaignRestRequest.php b/src/Marketing/Types/EndCampaignRestRequest.php new file mode 100644 index 000000000..5dbe7fb85 --- /dev/null +++ b/src/Marketing/Types/EndCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/EndCampaignRestResponse.php b/src/Marketing/Types/EndCampaignRestResponse.php new file mode 100644 index 000000000..f7c36b8be --- /dev/null +++ b/src/Marketing/Types/EndCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/ErrorDetailV3.php b/src/Marketing/Types/ErrorDetailV3.php new file mode 100644 index 000000000..5db7d47f4 --- /dev/null +++ b/src/Marketing/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ErrorParameterV3.php b/src/Marketing/Types/ErrorParameterV3.php new file mode 100644 index 000000000..ce7be5625 --- /dev/null +++ b/src/Marketing/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php b/src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php new file mode 100644 index 000000000..7712c63f1 --- /dev/null +++ b/src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_id' + ], + 'inventory_reference_type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_type' + ], + 'listing_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listing_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php b/src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php new file mode 100644 index 000000000..cde2cfba7 --- /dev/null +++ b/src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/FundingStrategy.php b/src/Marketing/Types/FundingStrategy.php new file mode 100644 index 000000000..c5a3dd887 --- /dev/null +++ b/src/Marketing/Types/FundingStrategy.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'fundingModel' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingModel' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdByIDRestRequest.php b/src/Marketing/Types/GetAdByIDRestRequest.php new file mode 100644 index 000000000..f621608ca --- /dev/null +++ b/src/Marketing/Types/GetAdByIDRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ad_id' + ], + 'campaign_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdByIDRestResponse.php b/src/Marketing/Types/GetAdByIDRestResponse.php new file mode 100644 index 000000000..9bcf78727 --- /dev/null +++ b/src/Marketing/Types/GetAdByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..6cdc5d3b2 --- /dev/null +++ b/src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ], + 'inventory_reference_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_id' + ], + 'inventory_reference_type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..da30f9607 --- /dev/null +++ b/src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetAdsRestRequest.php b/src/Marketing/Types/GetAdsRestRequest.php new file mode 100644 index 000000000..bc8319129 --- /dev/null +++ b/src/Marketing/Types/GetAdsRestRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'listing_ids' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listing_ids' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdsRestResponse.php b/src/Marketing/Types/GetAdsRestResponse.php new file mode 100644 index 000000000..d45778bb8 --- /dev/null +++ b/src/Marketing/Types/GetAdsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetAllCampaignsRestRequest.php b/src/Marketing/Types/GetAllCampaignsRestRequest.php new file mode 100644 index 000000000..58a347c5d --- /dev/null +++ b/src/Marketing/Types/GetAllCampaignsRestRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_name' + ], + 'campaign_status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_status' + ], + 'end_date_range' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end_date_range' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'start_date_range' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start_date_range' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAllCampaignsRestResponse.php b/src/Marketing/Types/GetAllCampaignsRestResponse.php new file mode 100644 index 000000000..14806d59c --- /dev/null +++ b/src/Marketing/Types/GetAllCampaignsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetCampaignByIDRestRequest.php b/src/Marketing/Types/GetCampaignByIDRestRequest.php new file mode 100644 index 000000000..e9a0883a3 --- /dev/null +++ b/src/Marketing/Types/GetCampaignByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetCampaignByIDRestResponse.php b/src/Marketing/Types/GetCampaignByIDRestResponse.php new file mode 100644 index 000000000..eb891d985 --- /dev/null +++ b/src/Marketing/Types/GetCampaignByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetCampaignByNameRestRequest.php b/src/Marketing/Types/GetCampaignByNameRestRequest.php new file mode 100644 index 000000000..65124c9f1 --- /dev/null +++ b/src/Marketing/Types/GetCampaignByNameRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetCampaignByNameRestResponse.php b/src/Marketing/Types/GetCampaignByNameRestResponse.php new file mode 100644 index 000000000..3f3e56a8b --- /dev/null +++ b/src/Marketing/Types/GetCampaignByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetItemPromotionRestRequest.php b/src/Marketing/Types/GetItemPromotionRestRequest.php new file mode 100644 index 000000000..239f01d67 --- /dev/null +++ b/src/Marketing/Types/GetItemPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetItemPromotionRestResponse.php b/src/Marketing/Types/GetItemPromotionRestResponse.php new file mode 100644 index 000000000..fc5cd542a --- /dev/null +++ b/src/Marketing/Types/GetItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetPromotionSummaryReportRestRequest.php b/src/Marketing/Types/GetPromotionSummaryReportRestRequest.php new file mode 100644 index 000000000..a553119d6 --- /dev/null +++ b/src/Marketing/Types/GetPromotionSummaryReportRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetPromotionSummaryReportRestResponse.php b/src/Marketing/Types/GetPromotionSummaryReportRestResponse.php new file mode 100644 index 000000000..b516b5db5 --- /dev/null +++ b/src/Marketing/Types/GetPromotionSummaryReportRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetPromotionsRestRequest.php b/src/Marketing/Types/GetPromotionsRestRequest.php new file mode 100644 index 000000000..4eaf726e8 --- /dev/null +++ b/src/Marketing/Types/GetPromotionsRestRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'marketplace_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'promotion_status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_status' + ], + 'q' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'q' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetPromotionsRestResponse.php b/src/Marketing/Types/GetPromotionsRestResponse.php new file mode 100644 index 000000000..7e699ac34 --- /dev/null +++ b/src/Marketing/Types/GetPromotionsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/InventoryCriterion.php b/src/Marketing/Types/InventoryCriterion.php new file mode 100644 index 000000000..18189ba6a --- /dev/null +++ b/src/Marketing/Types/InventoryCriterion.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryCriterionType' + ], + 'inventoryItems' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\InventoryItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inventoryItems' + ], + 'listingIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listingIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/InventoryItem.php b/src/Marketing/Types/InventoryItem.php new file mode 100644 index 000000000..50b301171 --- /dev/null +++ b/src/Marketing/Types/InventoryItem.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ItemPromotion.php b/src/Marketing/Types/ItemPromotion.php new file mode 100644 index 000000000..36f7f1a65 --- /dev/null +++ b/src/Marketing/Types/ItemPromotion.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'discountRules' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountRule', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'discountRules' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'inventoryCriterion' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\InventoryCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryCriterion' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'priority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'promotionImageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionImageUrl' + ], + 'promotionStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionStatus' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ItemPromotionResponse.php b/src/Marketing/Types/ItemPromotionResponse.php new file mode 100644 index 000000000..ef948f845 --- /dev/null +++ b/src/Marketing/Types/ItemPromotionResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'discountRules' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountRule', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'discountRules' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'inventoryCriterion' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\InventoryCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryCriterion' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'priority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'promotionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionId' + ], + 'promotionImageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionImageUrl' + ], + 'promotionStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionStatus' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PauseAPromotionRestRequest.php b/src/Marketing/Types/PauseAPromotionRestRequest.php new file mode 100644 index 000000000..b78f40ebf --- /dev/null +++ b/src/Marketing/Types/PauseAPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PauseAPromotionRestResponse.php b/src/Marketing/Types/PauseAPromotionRestResponse.php new file mode 100644 index 000000000..030a9ca3f --- /dev/null +++ b/src/Marketing/Types/PauseAPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/PauseCampaignRestRequest.php b/src/Marketing/Types/PauseCampaignRestRequest.php new file mode 100644 index 000000000..13cca2efb --- /dev/null +++ b/src/Marketing/Types/PauseCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PauseCampaignRestResponse.php b/src/Marketing/Types/PauseCampaignRestResponse.php new file mode 100644 index 000000000..5ae077c28 --- /dev/null +++ b/src/Marketing/Types/PauseCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/PromotionDetail.php b/src/Marketing/Types/PromotionDetail.php new file mode 100644 index 000000000..2a792d059 --- /dev/null +++ b/src/Marketing/Types/PromotionDetail.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'priority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'promotionHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionHref' + ], + 'promotionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionId' + ], + 'promotionImageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionImageUrl' + ], + 'promotionStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionStatus' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PromotionsPagedCollection.php b/src/Marketing/Types/PromotionsPagedCollection.php new file mode 100644 index 000000000..cf3ff792f --- /dev/null +++ b/src/Marketing/Types/PromotionsPagedCollection.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'promotions' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\PromotionDetail', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'promotions' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ResumeAPromotionRestRequest.php b/src/Marketing/Types/ResumeAPromotionRestRequest.php new file mode 100644 index 000000000..7234c12ae --- /dev/null +++ b/src/Marketing/Types/ResumeAPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ResumeAPromotionRestResponse.php b/src/Marketing/Types/ResumeAPromotionRestResponse.php new file mode 100644 index 000000000..5c489476d --- /dev/null +++ b/src/Marketing/Types/ResumeAPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/ResumeCampaignRestRequest.php b/src/Marketing/Types/ResumeCampaignRestRequest.php new file mode 100644 index 000000000..faf509d2c --- /dev/null +++ b/src/Marketing/Types/ResumeCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ResumeCampaignRestResponse.php b/src/Marketing/Types/ResumeCampaignRestResponse.php new file mode 100644 index 000000000..62866c598 --- /dev/null +++ b/src/Marketing/Types/ResumeCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/SelectionRule.php b/src/Marketing/Types/SelectionRule.php new file mode 100644 index 000000000..66b0175da --- /dev/null +++ b/src/Marketing/Types/SelectionRule.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'brands' + ], + 'categoryIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryIds' + ], + 'categoryScope' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryScope' + ], + 'listingConditionIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listingConditionIds' + ], + 'maxPrice' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxPrice' + ], + 'minPrice' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minPrice' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/SortField.php b/src/Marketing/Types/SortField.php new file mode 100644 index 000000000..9d381a965 --- /dev/null +++ b/src/Marketing/Types/SortField.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'field' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/SummaryReportResponse.php b/src/Marketing/Types/SummaryReportResponse.php new file mode 100644 index 000000000..1665acb76 --- /dev/null +++ b/src/Marketing/Types/SummaryReportResponse.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'baseSale' + ], + 'lastUpdated' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastUpdated' + ], + 'percentageSalesLift' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'percentageSalesLift' + ], + 'promotionSale' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionSale' + ], + 'totalSale' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalSale' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateBidPercentageRequest.php b/src/Marketing/Types/UpdateBidPercentageRequest.php new file mode 100644 index 000000000..178075697 --- /dev/null +++ b/src/Marketing/Types/UpdateBidPercentageRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateBidRestRequest.php b/src/Marketing/Types/UpdateBidRestRequest.php new file mode 100644 index 000000000..3bd2e4c37 --- /dev/null +++ b/src/Marketing/Types/UpdateBidRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ad_id' + ], + 'campaign_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateBidRestResponse.php b/src/Marketing/Types/UpdateBidRestResponse.php new file mode 100644 index 000000000..55d285307 --- /dev/null +++ b/src/Marketing/Types/UpdateBidRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php b/src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php new file mode 100644 index 000000000..81bb81e42 --- /dev/null +++ b/src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php b/src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php new file mode 100644 index 000000000..20b058721 --- /dev/null +++ b/src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/UpdateCampaignIdentificationRequest.php b/src/Marketing/Types/UpdateCampaignIdentificationRequest.php new file mode 100644 index 000000000..9a04f8d27 --- /dev/null +++ b/src/Marketing/Types/UpdateCampaignIdentificationRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateItemPromotionRestRequest.php b/src/Marketing/Types/UpdateItemPromotionRestRequest.php new file mode 100644 index 000000000..111ace935 --- /dev/null +++ b/src/Marketing/Types/UpdateItemPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateItemPromotionRestResponse.php b/src/Marketing/Types/UpdateItemPromotionRestResponse.php new file mode 100644 index 000000000..61e073bf3 --- /dev/null +++ b/src/Marketing/Types/UpdateItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Merchandising/Enums/AckValue.php b/src/Merchandising/Enums/AckValue.php new file mode 100644 index 000000000..7be734402 --- /dev/null +++ b/src/Merchandising/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Merchandising\Services\MerchandisingService::API_VERSION + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_APP_ID] = $this->getConfig('credentials')->getAppId(); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/Merchandising/Services/MerchandisingService.php b/src/Merchandising/Services/MerchandisingService.php new file mode 100644 index 000000000..87076b821 --- /dev/null +++ b/src/Merchandising/Services/MerchandisingService.php @@ -0,0 +1,156 @@ +getRelatedCategoryItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetRelatedCategoryItemsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getRelatedCategoryItemsAsync(\DTS\eBaySDK\Merchandising\Types\GetRelatedCategoryItemsRequest $request) + { + return $this->callOperationAsync( + 'getRelatedCategoryItems', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse + */ + public function getMostWatchedItems(\DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request) + { + return $this->getMostWatchedItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMostWatchedItemsAsync(\DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request) + { + return $this->callOperationAsync( + 'getMostWatchedItems', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductResponse + */ + public function getTopSellingProducts(\DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request) + { + return $this->getTopSellingProductsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTopSellingProductsAsync(\DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request) + { + return $this->callOperationAsync( + 'getTopSellingProducts', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse + */ + public function getDeals(\DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request) + { + return $this->getDealsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDealsAsync(\DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request) + { + return $this->callOperationAsync( + 'getDeals', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse + */ + public function getSimilarItems(\DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request) + { + return $this->getSimilarItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSimilarItemsAsync(\DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request) + { + return $this->callOperationAsync( + 'getSimilarItems', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\GetVersionResponse + */ + public function getVersion(\DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request) + { + return $this->getVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getVersionAsync(\DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request) + { + return $this->callOperationAsync( + 'getVersion', + $request, + '\DTS\eBaySDK\Merchandising\Types\GetVersionResponse' + ); + } +} diff --git a/src/Merchandising/Types/Affiliate.php b/src/Merchandising/Types/Affiliate.php new file mode 100644 index 000000000..25cecff0e --- /dev/null +++ b/src/Merchandising/Types/Affiliate.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingId' + ], + 'networkId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'networkId' + ], + 'customId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'customId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/Amount.php b/src/Merchandising/Types/Amount.php new file mode 100644 index 000000000..ca351b643 --- /dev/null +++ b/src/Merchandising/Types/Amount.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'currencyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseMerchandisingServiceRequest.php b/src/Merchandising/Types/BaseMerchandisingServiceRequest.php new file mode 100644 index 000000000..a01884e47 --- /dev/null +++ b/src/Merchandising/Types/BaseMerchandisingServiceRequest.php @@ -0,0 +1,57 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxResults' + ], + 'affiliate' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Affiliate', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'affiliate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseMerchandisingServiceResponse.php b/src/Merchandising/Types/BaseMerchandisingServiceResponse.php new file mode 100644 index 000000000..244c9032b --- /dev/null +++ b/src/Merchandising/Types/BaseMerchandisingServiceResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseServiceRequest.php b/src/Merchandising/Types/BaseServiceRequest.php new file mode 100644 index 000000000..3b280729a --- /dev/null +++ b/src/Merchandising/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseServiceResponse.php b/src/Merchandising/Types/BaseServiceResponse.php new file mode 100644 index 000000000..d2dd0a741 --- /dev/null +++ b/src/Merchandising/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/DiscountPriceInfo.php b/src/Merchandising/Types/DiscountPriceInfo.php new file mode 100644 index 000000000..e7791c1e3 --- /dev/null +++ b/src/Merchandising/Types/DiscountPriceInfo.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalRetailPrice' + ], + 'pricingTreatment' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingTreatment' + ], + 'soldOnEbay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldOnEbay' + ], + 'soldOffEbay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldOffEbay' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ErrorData.php b/src/Merchandising/Types/ErrorData.php new file mode 100644 index 000000000..a8cddb88d --- /dev/null +++ b/src/Merchandising/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ErrorMessage.php b/src/Merchandising/Types/ErrorMessage.php new file mode 100644 index 000000000..be469f131 --- /dev/null +++ b/src/Merchandising/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ErrorParameter.php b/src/Merchandising/Types/ErrorParameter.php new file mode 100644 index 000000000..f6b09abc8 --- /dev/null +++ b/src/Merchandising/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetDealsRequest.php b/src/Merchandising/Types/GetDealsRequest.php new file mode 100644 index 000000000..4beef9595 --- /dev/null +++ b/src/Merchandising/Types/GetDealsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'keywords' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getDealsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetMostWatchedItemsRequest.php b/src/Merchandising/Types/GetMostWatchedItemsRequest.php new file mode 100644 index 000000000..f080d9b14 --- /dev/null +++ b/src/Merchandising/Types/GetMostWatchedItemsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getMostWatchedItemsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetRelatedCategoryItemsRequest.php b/src/Merchandising/Types/GetRelatedCategoryItemsRequest.php new file mode 100644 index 000000000..5cd83993e --- /dev/null +++ b/src/Merchandising/Types/GetRelatedCategoryItemsRequest.php @@ -0,0 +1,68 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'itemFilter' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ItemFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getRelatedCategoryItemsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetSimilarItemsRequest.php b/src/Merchandising/Types/GetSimilarItemsRequest.php new file mode 100644 index 000000000..75a1b5b0c --- /dev/null +++ b/src/Merchandising/Types/GetSimilarItemsRequest.php @@ -0,0 +1,103 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'categoryIdExclude' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryIdExclude' + ], + 'listingType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingType' + ], + 'endTimeTo' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endTimeTo' + ], + 'endTimeFrom' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endTimeFrom' + ], + 'maxPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxPrice' + ], + 'itemFilter' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ItemFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getSimilarItemsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetTopSellingProductsRequest.php b/src/Merchandising/Types/GetTopSellingProductsRequest.php new file mode 100644 index 000000000..e3afc39a5 --- /dev/null +++ b/src/Merchandising/Types/GetTopSellingProductsRequest.php @@ -0,0 +1,47 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetVersionRequest.php b/src/Merchandising/Types/GetVersionRequest.php new file mode 100644 index 000000000..d3333517c --- /dev/null +++ b/src/Merchandising/Types/GetVersionRequest.php @@ -0,0 +1,47 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetVersionResponse.php b/src/Merchandising/Types/GetVersionResponse.php new file mode 100644 index 000000000..0312fc1f9 --- /dev/null +++ b/src/Merchandising/Types/GetVersionResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/Item.php b/src/Merchandising/Types/Item.php new file mode 100644 index 000000000..d0b14618d --- /dev/null +++ b/src/Merchandising/Types/Item.php @@ -0,0 +1,169 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'viewItemURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'viewItemURL' + ], + 'currentPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentPrice' + ], + 'originalPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalPrice' + ], + 'globalId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalId' + ], + 'timeLeft' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timeLeft' + ], + 'primaryCategoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryCategoryId' + ], + 'primaryCategoryName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryCategoryName' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'bidCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidCount' + ], + 'buyItNowPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyItNowPrice' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'imageURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageURL' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingType' + ], + 'watchCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'watchCount' + ], + 'discountPriceInfo' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\DiscountPriceInfo', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPriceInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ItemFilter.php b/src/Merchandising/Types/ItemFilter.php new file mode 100644 index 000000000..97e28f65f --- /dev/null +++ b/src/Merchandising/Types/ItemFilter.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paramName' + ], + 'paramValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paramValue' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ItemRecommendations.php b/src/Merchandising/Types/ItemRecommendations.php new file mode 100644 index 000000000..5c2d7213a --- /dev/null +++ b/src/Merchandising/Types/ItemRecommendations.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Item', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'item' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/MerchandisingServiceItemResponse.php b/src/Merchandising/Types/MerchandisingServiceItemResponse.php new file mode 100644 index 000000000..d1a6a6ce3 --- /dev/null +++ b/src/Merchandising/Types/MerchandisingServiceItemResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ItemRecommendations', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemRecommendations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/MerchandisingServiceProductResponse.php b/src/Merchandising/Types/MerchandisingServiceProductResponse.php new file mode 100644 index 000000000..2e444cb79 --- /dev/null +++ b/src/Merchandising/Types/MerchandisingServiceProductResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ProductRecommendations', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productRecommendations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/Product.php b/src/Merchandising/Types/Product.php new file mode 100644 index 000000000..c0383ece6 --- /dev/null +++ b/src/Merchandising/Types/Product.php @@ -0,0 +1,99 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ProductId', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productId' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'productURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productURL' + ], + 'catalogName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'catalogName' + ], + 'imageURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageURL' + ], + 'reviewCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reviewCount' + ], + 'priceRangeMin' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceRangeMin' + ], + 'priceRangeMax' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceRangeMax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ProductId.php b/src/Merchandising/Types/ProductId.php new file mode 100644 index 000000000..54b9bb420 --- /dev/null +++ b/src/Merchandising/Types/ProductId.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ProductRecommendations.php b/src/Merchandising/Types/ProductRecommendations.php new file mode 100644 index 000000000..c3cc8137e --- /dev/null +++ b/src/Merchandising/Types/ProductRecommendations.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'product' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/MerchantData/Enums/AckCodeType.php b/src/MerchantData/Enums/AckCodeType.php index c261520d9..fc44cc92f 100644 --- a/src/MerchantData/Enums/AckCodeType.php +++ b/src/MerchantData/Enums/AckCodeType.php @@ -1,15 +1,15 @@ bulkDataExchangeResponses($xml)->VerifyAddItemResponse; } + /** + * @param string $xml + * + * @return \DTS\eBaySDK\MerchantData\Types\BulkDataExchangeResponsesType + */ private function parseXml($xml) { return $this->xmlParser->parse($xml); diff --git a/src/MerchantData/Types/AbstractRequestType.php b/src/MerchantData/Types/AbstractRequestType.php index 09ae67d37..d7c0c0094 100644 --- a/src/MerchantData/Types/AbstractRequestType.php +++ b/src/MerchantData/Types/AbstractRequestType.php @@ -1,16 +1,17 @@ [ - 'type' => 'DTS\eBaySDK\MerchantData\Types\CustomSecurityHeaderType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RequesterCredentials' - ], - 'RequesterCredentials' => [ - 'type' => 'DTS\eBaySDK\MerchantData\Types\XMLRequesterCredentialsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RequesterCredentials' - ], 'DetailLevel' => [ 'type' => 'string', 'repeatable' => true, diff --git a/src/MerchantData/Types/AbstractResponseType.php b/src/MerchantData/Types/AbstractResponseType.php index 95d92c925..7a2d4e1e9 100644 --- a/src/MerchantData/Types/AbstractResponseType.php +++ b/src/MerchantData/Types/AbstractResponseType.php @@ -1,8 +1,11 @@ 'https://api.sandbox.ebay.com/sell/metadata', + 'production' => 'https://api.ebay.com/sell/metadata' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Metadata\Services\MetadataService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Metadata/Services/MetadataService.php b/src/Metadata/Services/MetadataService.php new file mode 100644 index 000000000..18fd84588 --- /dev/null +++ b/src/Metadata/Services/MetadataService.php @@ -0,0 +1,59 @@ + [ + 'method' => 'GET', + 'resource' => 'country/{countryCode}/sales_tax_jurisdiction', + 'responseClass' => '\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request + * @return \DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestResponse + */ + public function getSalesTaxJurisdictions(\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request) + { + return $this->getSalesTaxJurisdictionsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSalesTaxJurisdictionsAsync(\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request) + { + return $this->callOperationAsync('GetSalesTaxJurisdictions', $request); + } +} diff --git a/src/Metadata/Types/ErrorDetailV3.php b/src/Metadata/Types/ErrorDetailV3.php new file mode 100644 index 000000000..e9c116129 --- /dev/null +++ b/src/Metadata/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Metadata\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subDomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subDomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/ErrorParameterV3.php b/src/Metadata/Types/ErrorParameterV3.php new file mode 100644 index 000000000..0c2540e3c --- /dev/null +++ b/src/Metadata/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php b/src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php new file mode 100644 index 000000000..e28227d39 --- /dev/null +++ b/src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php b/src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php new file mode 100644 index 000000000..7fd18b31d --- /dev/null +++ b/src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Metadata\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Metadata\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Metadata/Types/SalesTaxJurisdiction.php b/src/Metadata/Types/SalesTaxJurisdiction.php new file mode 100644 index 000000000..142a48be0 --- /dev/null +++ b/src/Metadata/Types/SalesTaxJurisdiction.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxJurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/SalesTaxJurisdictions.php b/src/Metadata/Types/SalesTaxJurisdictions.php new file mode 100644 index 000000000..820abce9b --- /dev/null +++ b/src/Metadata/Types/SalesTaxJurisdictions.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Metadata\Types\SalesTaxJurisdiction', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'salesTaxJurisdictions' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Enums/CountryCodeEnum.php b/src/Order/Enums/CountryCodeEnum.php new file mode 100644 index 000000000..0730c04de --- /dev/null +++ b/src/Order/Enums/CountryCodeEnum.php @@ -0,0 +1,264 @@ + 'https://api.sandbox.ebay.com/buy/order', + 'production' => 'https://api.ebay.com/buy/order' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * HTTP header constant. This header specifies the risk correlation ID, which is provided by a security software library. + */ + const HDR_END_USER_CTX = 'X-EBAY-C-ENDUSERCTX'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Order\Services\OrderService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ], + 'riskCorrelationId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + if ($this->getConfig('riskCorrelationId')) { + $headers[self::HDR_END_USER_CTX ] = 'deviceId='.$this->getConfig('riskCorrelationId'); + } + + return $headers; + } +} diff --git a/src/Order/Services/OrderService.php b/src/Order/Services/OrderService.php new file mode 100644 index 000000000..92211705a --- /dev/null +++ b/src/Order/Services/OrderService.php @@ -0,0 +1,486 @@ + [ + 'method' => 'GET', + 'resource' => 'checkout_session/{checkoutSessionId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'InitiateCheckoutSession' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/initiate', + 'responseClass' => '\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestResponse', + 'params' => [ + ] + ], + 'PlaceOrder' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/place_order', + 'responseClass' => '\DTS\eBaySDK\Order\Types\PlaceOrderRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdatePaymentInfo' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/update_payment_info', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateQuantityForLineItem' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/update_quantity', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateShippingAddress' => [ + 'method' => 'POST', + 'resource' => '_session/{checkoutSessionId}/update_shipping_address', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateShippingOption' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/update_shipping_option', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetGuestCheckoutSession' => [ + 'method' => 'GET', + 'resource' => 'guest_checkout_session/{checkoutSessionId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'InitiateGuestCheckoutSession' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/initiate', + 'responseClass' => '\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestResponse', + 'params' => [ + ] + ], + 'PlaceGuestOrder' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/place_order', + 'responseClass' => '\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestLineItemQuantity' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_quantity', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestLineItemShippingAddress' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_shipping_address', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestPaymentInfo' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_payment_info', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestShippingOption' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_shipping_option', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetGuestPurchaseOrder' => [ + 'method' => 'GET', + 'resource' => 'guest_purchase_order/{purchaseOrderId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestResponse', + 'params' => [ + 'purchaseOrderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPurchaseOrder' => [ + 'method' => 'GET', + 'resource' => 'purchase_order/{purchaseOrderId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestResponse', + 'params' => [ + 'purchaseOrderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetCheckoutSessionRestResponse + */ + public function getCheckoutSession(\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request) + { + return $this->getCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('GetCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestResponse + */ + public function initiateCheckoutSession(\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request) + { + return $this->initiateCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initiateCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('InitiateCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\PlaceOrderRestResponse + */ + public function placeOrder(\DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request) + { + return $this->placeOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function placeOrderAsync(\DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request) + { + return $this->callOperationAsync('PlaceOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestResponse + */ + public function updatePaymentInfo(\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request) + { + return $this->updatePaymentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePaymentInfoAsync(\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request) + { + return $this->callOperationAsync('UpdatePaymentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestResponse + */ + public function updateQuantityForLineItem(\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request) + { + return $this->updateQuantityForLineItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateQuantityForLineItemAsync(\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request) + { + return $this->callOperationAsync('UpdateQuantityForLineItem', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateShippingAddressRestResponse + */ + public function updateShippingAddress(\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request) + { + return $this->updateShippingAddressAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateShippingAddressAsync(\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request) + { + return $this->callOperationAsync('UpdateShippingAddress', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateShippingOptionRestResponse + */ + public function updateShippingOption(\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request) + { + return $this->updateShippingOptionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateShippingOptionAsync(\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request) + { + return $this->callOperationAsync('UpdateShippingOption', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestResponse + */ + public function getGuestCheckoutSession(\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request) + { + return $this->getGuestCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGuestCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('GetGuestCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestResponse + */ + public function initiateGuestCheckoutSession(\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request) + { + return $this->initiateGuestCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initiateGuestCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('InitiateGuestCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\PlaceGuestOrderRestResponse + */ + public function placeGuestOrder(\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request) + { + return $this->placeGuestOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function placeGuestOrderAsync(\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request) + { + return $this->callOperationAsync('PlaceGuestOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestResponse + */ + public function updateGuestLineItemQuantity(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request) + { + return $this->updateGuestLineItemQuantityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestLineItemQuantityAsync(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestLineItemQuantity', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestResponse + */ + public function updateGuestLineItemShippingAddress(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request) + { + return $this->updateGuestLineItemShippingAddressAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestLineItemShippingAddressAsync(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestLineItemShippingAddress', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestResponse + */ + public function updateGuestPaymentInfo(\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request) + { + return $this->updateGuestPaymentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestPaymentInfoAsync(\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestPaymentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestResponse + */ + public function updateGuestShippingOption(\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request) + { + return $this->updateGuestShippingOptionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestShippingOptionAsync(\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestShippingOption', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestResponse + */ + public function getGuestPurchaseOrder(\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request) + { + return $this->getGuestPurchaseOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGuestPurchaseOrderAsync(\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request) + { + return $this->callOperationAsync('GetGuestPurchaseOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetPurchaseOrderRestResponse + */ + public function getPurchaseOrder(\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request) + { + return $this->getPurchaseOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPurchaseOrderAsync(\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request) + { + return $this->callOperationAsync('GetPurchaseOrder', $request); + } +} diff --git a/src/Order/Types/Adjustment.php b/src/Order/Types/Adjustment.php new file mode 100644 index 000000000..ede578fc3 --- /dev/null +++ b/src/Order/Types/Adjustment.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'label' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'label' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Adjustment_0.php b/src/Order/Types/Adjustment_0.php new file mode 100644 index 000000000..9066f0e99 --- /dev/null +++ b/src/Order/Types/Adjustment_0.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'label' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'label' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Amount.php b/src/Order/Types/Amount.php new file mode 100644 index 000000000..d356d21bb --- /dev/null +++ b/src/Order/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Amount_0.php b/src/Order/Types/Amount_0.php new file mode 100644 index 000000000..6e00a534f --- /dev/null +++ b/src/Order/Types/Amount_0.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/BillingAddress.php b/src/Order/Types/BillingAddress.php new file mode 100644 index 000000000..44e98f507 --- /dev/null +++ b/src/Order/Types/BillingAddress.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'firstName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstName' + ], + 'lastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastName' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CheckoutSessionResponse.php b/src/Order/Types/CheckoutSessionResponse.php new file mode 100644 index 000000000..640fc9327 --- /dev/null +++ b/src/Order/Types/CheckoutSessionResponse.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'acceptedPaymentMethods' + ], + 'checkoutSessionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ], + 'expirationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expirationDate' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'providedPaymentInstrument' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ProvidedPaymentInstrument', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'providedPaymentInstrument' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CreateGuestCheckoutSessionRequest.php b/src/Order/Types/CreateGuestCheckoutSessionRequest.php new file mode 100644 index 000000000..d1a3d9094 --- /dev/null +++ b/src/Order/Types/CreateGuestCheckoutSessionRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactEmail' + ], + 'contactFirstName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactFirstName' + ], + 'contactLastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactLastName' + ], + 'creditCard' => [ + 'type' => 'DTS\eBaySDK\Order\Types\CreditCard', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creditCard' + ], + 'lineItemInputs' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItemInput', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItemInputs' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CreateSignInCheckoutSessionRequest.php b/src/Order/Types/CreateSignInCheckoutSessionRequest.php new file mode 100644 index 000000000..a50dce332 --- /dev/null +++ b/src/Order/Types/CreateSignInCheckoutSessionRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\CreditCard', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creditCard' + ], + 'lineItemInputs' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItemInput', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItemInputs' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CreditCard.php b/src/Order/Types/CreditCard.php new file mode 100644 index 000000000..62d0910b4 --- /dev/null +++ b/src/Order/Types/CreditCard.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'accountHolderName' + ], + 'billingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\BillingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'billingAddress' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'cardNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cardNumber' + ], + 'cvvNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cvvNumber' + ], + 'expireMonth' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expireMonth' + ], + 'expireYear' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expireYear' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ErrorDetailV3.php b/src/Order/Types/ErrorDetailV3.php new file mode 100644 index 000000000..97dcf2877 --- /dev/null +++ b/src/Order/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ErrorParameterV3.php b/src/Order/Types/ErrorParameterV3.php new file mode 100644 index 000000000..425044e88 --- /dev/null +++ b/src/Order/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetCheckoutSessionRestRequest.php b/src/Order/Types/GetCheckoutSessionRestRequest.php new file mode 100644 index 000000000..15b16bf9c --- /dev/null +++ b/src/Order/Types/GetCheckoutSessionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetCheckoutSessionRestResponse.php b/src/Order/Types/GetCheckoutSessionRestResponse.php new file mode 100644 index 000000000..bd48bead0 --- /dev/null +++ b/src/Order/Types/GetCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GetGuestCheckoutSessionRestRequest.php b/src/Order/Types/GetGuestCheckoutSessionRestRequest.php new file mode 100644 index 000000000..0118ee69d --- /dev/null +++ b/src/Order/Types/GetGuestCheckoutSessionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetGuestCheckoutSessionRestResponse.php b/src/Order/Types/GetGuestCheckoutSessionRestResponse.php new file mode 100644 index 000000000..ffef6f753 --- /dev/null +++ b/src/Order/Types/GetGuestCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GetGuestPurchaseOrderRestRequest.php b/src/Order/Types/GetGuestPurchaseOrderRestRequest.php new file mode 100644 index 000000000..702b5d426 --- /dev/null +++ b/src/Order/Types/GetGuestPurchaseOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetGuestPurchaseOrderRestResponse.php b/src/Order/Types/GetGuestPurchaseOrderRestResponse.php new file mode 100644 index 000000000..f23d7e4dc --- /dev/null +++ b/src/Order/Types/GetGuestPurchaseOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GetPurchaseOrderRestRequest.php b/src/Order/Types/GetPurchaseOrderRestRequest.php new file mode 100644 index 000000000..3c6b74c4b --- /dev/null +++ b/src/Order/Types/GetPurchaseOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetPurchaseOrderRestResponse.php b/src/Order/Types/GetPurchaseOrderRestResponse.php new file mode 100644 index 000000000..12f1c10cc --- /dev/null +++ b/src/Order/Types/GetPurchaseOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GuestPurchaseOrder.php b/src/Order/Types/GuestPurchaseOrder.php new file mode 100644 index 000000000..99ab6d2f0 --- /dev/null +++ b/src/Order/Types/GuestPurchaseOrder.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItem_0', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PricingSummary_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'purchaseOrderCreationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderCreationDate' + ], + 'purchaseOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ], + 'purchaseOrderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderPaymentStatus' + ], + 'purchaseOrderStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderStatus' + ], + 'refundedAmount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundedAmount' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Image.php b/src/Order/Types/Image.php new file mode 100644 index 000000000..0f49d0fc6 --- /dev/null +++ b/src/Order/Types/Image.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'height' + ], + 'imageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageUrl' + ], + 'width' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'width' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/InitiateCheckoutSessionRestRequest.php b/src/Order/Types/InitiateCheckoutSessionRestRequest.php new file mode 100644 index 000000000..34545f79c --- /dev/null +++ b/src/Order/Types/InitiateCheckoutSessionRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/InitiateCheckoutSessionRestResponse.php b/src/Order/Types/InitiateCheckoutSessionRestResponse.php new file mode 100644 index 000000000..27799663f --- /dev/null +++ b/src/Order/Types/InitiateCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php b/src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php new file mode 100644 index 000000000..1fe4c95d0 --- /dev/null +++ b/src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php b/src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php new file mode 100644 index 000000000..217244c4d --- /dev/null +++ b/src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/LineItem.php b/src/Order/Types/LineItem.php new file mode 100644 index 000000000..65f814f9d --- /dev/null +++ b/src/Order/Types/LineItem.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'baseUnitPrice' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lineItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'netPrice' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'netPrice' + ], + 'promotions' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Promotion', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'promotions' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shortDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shortDescription' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/LineItemInput.php b/src/Order/Types/LineItemInput.php new file mode 100644 index 000000000..7e043fbc8 --- /dev/null +++ b/src/Order/Types/LineItemInput.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/LineItemReference.php b/src/Order/Types/LineItemReference.php new file mode 100644 index 000000000..8278c970c --- /dev/null +++ b/src/Order/Types/LineItemReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/LineItem_0.php b/src/Order/Types/LineItem_0.php new file mode 100644 index 000000000..b93bd9dca --- /dev/null +++ b/src/Order/Types/LineItem_0.php @@ -0,0 +1,109 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lineItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'lineItemPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemPaymentStatus' + ], + 'lineItemStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemStatus' + ], + 'netPrice' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'netPrice' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingDetail' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingDetail', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingDetail' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentInstrument.php b/src/Order/Types/PaymentInstrument.php new file mode 100644 index 000000000..0a9001e4a --- /dev/null +++ b/src/Order/Types/PaymentInstrument.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodBrand', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentInstrumentReference.php b/src/Order/Types/PaymentInstrumentReference.php new file mode 100644 index 000000000..c200b7712 --- /dev/null +++ b/src/Order/Types/PaymentInstrumentReference.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastFourDigitForCreditCard' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentMethod.php b/src/Order/Types/PaymentMethod.php new file mode 100644 index 000000000..61d852298 --- /dev/null +++ b/src/Order/Types/PaymentMethod.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'label' + ], + 'logoImage' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'logoImage' + ], + 'paymentMethodBrands' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodBrand', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethodBrands' + ], + 'paymentMethodMessages' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodMessage', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethodMessages' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentMethodBrand.php b/src/Order/Types/PaymentMethodBrand.php new file mode 100644 index 000000000..2ad03e630 --- /dev/null +++ b/src/Order/Types/PaymentMethodBrand.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'logoImage' + ], + 'paymentMethodBrandType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodBrandType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentMethodMessage.php b/src/Order/Types/PaymentMethodMessage.php new file mode 100644 index 000000000..a577a66f4 --- /dev/null +++ b/src/Order/Types/PaymentMethodMessage.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legalMessage' + ], + 'requiredForUserConfirmation' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requiredForUserConfirmation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PlaceGuestOrderRestRequest.php b/src/Order/Types/PlaceGuestOrderRestRequest.php new file mode 100644 index 000000000..c251ebcf9 --- /dev/null +++ b/src/Order/Types/PlaceGuestOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PlaceGuestOrderRestResponse.php b/src/Order/Types/PlaceGuestOrderRestResponse.php new file mode 100644 index 000000000..ac1d3276d --- /dev/null +++ b/src/Order/Types/PlaceGuestOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/PlaceOrderRestRequest.php b/src/Order/Types/PlaceOrderRestRequest.php new file mode 100644 index 000000000..c8b1621f2 --- /dev/null +++ b/src/Order/Types/PlaceOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PlaceOrderRestResponse.php b/src/Order/Types/PlaceOrderRestResponse.php new file mode 100644 index 000000000..05e233256 --- /dev/null +++ b/src/Order/Types/PlaceOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/PricingSummary.php b/src/Order/Types/PricingSummary.php new file mode 100644 index 000000000..da95ffa4f --- /dev/null +++ b/src/Order/Types/PricingSummary.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Adjustment', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adjustment' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'fee' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fee' + ], + 'priceDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDiscount' + ], + 'priceSubtotal' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSubtotal' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PricingSummary_0.php b/src/Order/Types/PricingSummary_0.php new file mode 100644 index 000000000..5c62d7562 --- /dev/null +++ b/src/Order/Types/PricingSummary_0.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Adjustment_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adjustment' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'fee' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fee' + ], + 'priceDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDiscount' + ], + 'priceSubtotal' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSubtotal' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Promotion.php b/src/Order/Types/Promotion.php new file mode 100644 index 000000000..7d9da9a4b --- /dev/null +++ b/src/Order/Types/Promotion.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discount' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'promotionCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionCode' + ], + 'promotionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ProvidedPaymentInstrument.php b/src/Order/Types/ProvidedPaymentInstrument.php new file mode 100644 index 000000000..19be7d65a --- /dev/null +++ b/src/Order/Types/ProvidedPaymentInstrument.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentInstrumentReference', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstrumentReference' + ], + 'paymentMethodBrand' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodBrand', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodBrand' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PurchaseOrder.php b/src/Order/Types/PurchaseOrder.php new file mode 100644 index 000000000..b0ac5287e --- /dev/null +++ b/src/Order/Types/PurchaseOrder.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItem_0', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'paymentInstrument' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentInstrument', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstrument' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PricingSummary_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'purchaseOrderCreationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderCreationDate' + ], + 'purchaseOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ], + 'purchaseOrderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderPaymentStatus' + ], + 'purchaseOrderStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderStatus' + ], + 'refundedAmount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundedAmount' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ], + 'shippingFulfillments' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingFulfillment', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingFulfillments' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PurchaseOrderSummary.php b/src/Order/Types/PurchaseOrderSummary.php new file mode 100644 index 000000000..2b8650c8d --- /dev/null +++ b/src/Order/Types/PurchaseOrderSummary.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderHref' + ], + 'purchaseOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ], + 'purchaseOrderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderPaymentStatus' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Seller.php b/src/Order/Types/Seller.php new file mode 100644 index 000000000..1013ec129 --- /dev/null +++ b/src/Order/Types/Seller.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackPercentage' + ], + 'feedbackScore' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackScore' + ], + 'sellerAccountType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerAccountType' + ], + 'username' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'username' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingAddress.php b/src/Order/Types/ShippingAddress.php new file mode 100644 index 000000000..6e56d9480 --- /dev/null +++ b/src/Order/Types/ShippingAddress.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'phoneNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'recipient' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipient' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingAddressImpl.php b/src/Order/Types/ShippingAddressImpl.php new file mode 100644 index 000000000..b3595bd6d --- /dev/null +++ b/src/Order/Types/ShippingAddressImpl.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'phoneNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'recipient' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipient' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingAddress_0.php b/src/Order/Types/ShippingAddress_0.php new file mode 100644 index 000000000..f4dede9d1 --- /dev/null +++ b/src/Order/Types/ShippingAddress_0.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'phoneNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'recipient' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipient' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingDetail.php b/src/Order/Types/ShippingDetail.php new file mode 100644 index 000000000..0d9c7c480 --- /dev/null +++ b/src/Order/Types/ShippingDetail.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingFulfillment.php b/src/Order/Types/ShippingFulfillment.php new file mode 100644 index 000000000..60d627f1d --- /dev/null +++ b/src/Order/Types/ShippingFulfillment.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualDeliveryDate' + ], + 'lineItemReferences' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItemReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItemReferences' + ], + 'maxEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'shipmentTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingNumber' + ], + 'shipmentTrackingUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingUrl' + ], + 'shippedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingOption.php b/src/Order/Types/ShippingOption.php new file mode 100644 index 000000000..e56de71b7 --- /dev/null +++ b/src/Order/Types/ShippingOption.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'baseDeliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'maxEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'selected' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'selected' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingOptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingOptionId' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php b/src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php new file mode 100644 index 000000000..58e1a28f1 --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php b/src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php new file mode 100644 index 000000000..59d476fc6 --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php b/src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php new file mode 100644 index 000000000..3e8e5a8e0 --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php b/src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php new file mode 100644 index 000000000..97c862fbd --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateGuestPaymentInfoRestRequest.php b/src/Order/Types/UpdateGuestPaymentInfoRestRequest.php new file mode 100644 index 000000000..7fc4b4988 --- /dev/null +++ b/src/Order/Types/UpdateGuestPaymentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestPaymentInfoRestResponse.php b/src/Order/Types/UpdateGuestPaymentInfoRestResponse.php new file mode 100644 index 000000000..ded889201 --- /dev/null +++ b/src/Order/Types/UpdateGuestPaymentInfoRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateGuestShippingOptionRestRequest.php b/src/Order/Types/UpdateGuestShippingOptionRestRequest.php new file mode 100644 index 000000000..4905886b3 --- /dev/null +++ b/src/Order/Types/UpdateGuestShippingOptionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestShippingOptionRestResponse.php b/src/Order/Types/UpdateGuestShippingOptionRestResponse.php new file mode 100644 index 000000000..02b802027 --- /dev/null +++ b/src/Order/Types/UpdateGuestShippingOptionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdatePaymentInfoRestRequest.php b/src/Order/Types/UpdatePaymentInfoRestRequest.php new file mode 100644 index 000000000..dd5a3ce4e --- /dev/null +++ b/src/Order/Types/UpdatePaymentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdatePaymentInfoRestResponse.php b/src/Order/Types/UpdatePaymentInfoRestResponse.php new file mode 100644 index 000000000..be5af7538 --- /dev/null +++ b/src/Order/Types/UpdatePaymentInfoRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdatePaymentInformation.php b/src/Order/Types/UpdatePaymentInformation.php new file mode 100644 index 000000000..423d367b2 --- /dev/null +++ b/src/Order/Types/UpdatePaymentInformation.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\CreditCard', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creditCard' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateQuantity.php b/src/Order/Types/UpdateQuantity.php new file mode 100644 index 000000000..a017128ee --- /dev/null +++ b/src/Order/Types/UpdateQuantity.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateQuantityForLineItemRestRequest.php b/src/Order/Types/UpdateQuantityForLineItemRestRequest.php new file mode 100644 index 000000000..a49db2d2e --- /dev/null +++ b/src/Order/Types/UpdateQuantityForLineItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateQuantityForLineItemRestResponse.php b/src/Order/Types/UpdateQuantityForLineItemRestResponse.php new file mode 100644 index 000000000..704cfe0a2 --- /dev/null +++ b/src/Order/Types/UpdateQuantityForLineItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateShippingAddressRestRequest.php b/src/Order/Types/UpdateShippingAddressRestRequest.php new file mode 100644 index 000000000..96eb63d5d --- /dev/null +++ b/src/Order/Types/UpdateShippingAddressRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateShippingAddressRestResponse.php b/src/Order/Types/UpdateShippingAddressRestResponse.php new file mode 100644 index 000000000..c2c7e603c --- /dev/null +++ b/src/Order/Types/UpdateShippingAddressRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateShippingOption.php b/src/Order/Types/UpdateShippingOption.php new file mode 100644 index 000000000..c46c32415 --- /dev/null +++ b/src/Order/Types/UpdateShippingOption.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'shippingOptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingOptionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateShippingOptionRestRequest.php b/src/Order/Types/UpdateShippingOptionRestRequest.php new file mode 100644 index 000000000..a3e3a617f --- /dev/null +++ b/src/Order/Types/UpdateShippingOptionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateShippingOptionRestResponse.php b/src/Order/Types/UpdateShippingOptionRestResponse.php new file mode 100644 index 000000000..e27ce6402 --- /dev/null +++ b/src/Order/Types/UpdateShippingOptionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Parser/XmlParser.php b/src/Parser/XmlParser.php index 2ba15cd89..04e7f69ce 100644 --- a/src/Parser/XmlParser.php +++ b/src/Parser/XmlParser.php @@ -60,7 +60,7 @@ public function parse($xml) * * @param resource $parser Reference to the XML parser calling the handler. * @param string $name The name of the element. - * @param arrary $attributes Associative array of the element's attributes. + * @param array $attributes Associative array of the element's attributes. */ private function startElement($parser, $name, array $attributes) { @@ -114,7 +114,7 @@ private function endElement($parser, $name) /** * Handles element names that may have namespaces in them. * - * @param string Element name. + * @param string $name Element name. * * @return string The element name stripped of any namespaces. */ @@ -131,7 +131,7 @@ private function normalizeElementName($name) } /** - * Returns that parent PHP object. + * Returns the parent PHP object. * * @return mixed The parent PHP object. */ @@ -145,14 +145,14 @@ private function getParentObject() * * Allow the parser to build the required PHP object for an element. * - * @param string $name The name of the element. - * @param arrary $attributes Associative array of the element's attributes. + * @param string $elementName The element name. + * @param array $attributes Associative array of the element's attributes. * - * @return array Associative array containing the PHP meta data. + * @return \stdClass */ - private function getPhpMeta($elementName, $attributes) + private function getPhpMeta($elementName, array $attributes) { - $meta = new \StdClass(); + $meta = new \stdClass(); $meta->propertyName = ''; $meta->phpType = ''; $meta->repeatable = false; @@ -197,11 +197,11 @@ private function getPhpMeta($elementName, $attributes) /** * Builds the required PHP object. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * * @return mixed A new PHP object or null. */ - private function newPhpObject($meta) + private function newPhpObject(\stdClass $meta) { $phpTypes = explode('|', $meta->phpType); @@ -224,11 +224,11 @@ private function newPhpObject($meta) /** * Returns a value that will be assigned to an object's property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * * @return mixed The value to assign. */ - private function getValueToAssign($meta) + private function getValueToAssign(\stdClass $meta) { if ($this->isSimplePhpType($meta)) { return $this->getValueToAssignToProperty($meta); @@ -243,11 +243,11 @@ private function getValueToAssign($meta) /** * Determines if the type of the property is simple. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * - * @return boolean True if the property type is simple. + * @return bool True if the property type is simple. */ - private function isSimplePhpType($meta) + private function isSimplePhpType(\stdClass $meta) { $phpTypes = explode('|', $meta->phpType); @@ -270,11 +270,11 @@ private function isSimplePhpType($meta) /** * Determines if the the property of an object is set by a _value_ property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * - * @return boolean True if the property need to be set by _value_. + * @return bool True if the property needs to be set by _value_. */ - private function setByValue($meta) + private function setByValue(\stdClass $meta) { return ( is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\Base64BinaryType', false) || @@ -291,11 +291,11 @@ private function setByValue($meta) /** * Returns a value that will be assigned to an object's property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * - * @return boolean True if the property type is simlple. + * @return mixed The value to assign. */ - private function getValueToAssignToProperty($meta) + private function getValueToAssignToProperty(\stdClass $meta) { switch ($meta->phpType) { case 'integer': @@ -315,27 +315,27 @@ private function getValueToAssignToProperty($meta) /** * Returns a value that will be assigned to an object's _value_ property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * * @return mixed The value to assign. */ - private function getValueToAssignToValue($meta) + private function getValueToAssignToValue(\stdClass $meta) { if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\Base64BinaryType', false)) { return $meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\BooleanType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\BooleanType', false)) { return strtolower($meta->strData) === 'true'; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DecimalType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DecimalType', false)) { return is_int(0 + $meta->strData) ? (integer)$meta->strData : (double)$meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DoubleType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DoubleType', false)) { return (double)$meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\IntegerType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\IntegerType', false)) { return (integer)$meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\StringType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\StringType', false)) { return $meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\TokenType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\TokenType', false)) { return $meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\URIType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\URIType', false)) { return $meta->strData; } diff --git a/src/PostOrder/Enums/ActivityOptionEnum.php b/src/PostOrder/Enums/ActivityOptionEnum.php new file mode 100644 index 000000000..424fa3b68 --- /dev/null +++ b/src/PostOrder/Enums/ActivityOptionEnum.php @@ -0,0 +1,88 @@ + 'https://api.sandbox.ebay.com/post-order', + 'production' => 'https://api.ebay.com/post-order' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTH_TOKEN = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\PostOrder\Services\PostOrderService::API_VERSION, + 'required' => true + ], + 'authToken' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTH_TOKEN] = 'TOKEN '.$this->getConfig('authToken'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/PostOrder/Services/PostOrderService.php b/src/PostOrder/Services/PostOrderService.php new file mode 100644 index 000000000..9c1980cbd --- /dev/null +++ b/src/PostOrder/Services/PostOrderService.php @@ -0,0 +1,2153 @@ + [ + 'method' => 'POST', + 'resource' => 'cancellation/{cancelId}/approve', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CheckCancellationEligibility' => [ + 'method' => 'POST', + 'resource' => 'cancellation/check_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestResponse', + 'params' => [ + ] + ], + 'ConfirmCancellationRefund' => [ + 'method' => 'POST', + 'resource' => 'cancellation/{cancelId}/confirm', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetCancellation' => [ + 'method' => 'GET', + 'resource' => 'cancellation/{cancelId}?', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCancellationRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'fieldgroups' => [ + 'valid' => ['string'] + ] + ] + ], + 'RejectCancellationRequest' => [ + 'method' => 'POST', + 'resource' => 'cancellation/{cancelId}/reject', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchCancellations' => [ + 'method' => 'GET', + 'resource' => 'cancellation/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestResponse', + 'params' => [ + 'buyer_login_name' => [ + 'valid' => ['string'] + ], + 'cancel_id' => [ + 'valid' => ['string'] + ], + 'creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'legacy_order_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'seller_login_name' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'SubmitCancellationRequest' => [ + 'method' => 'POST', + 'resource' => 'cancellation', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestResponse', + 'params' => [ + ] + ], + 'AppealCaseDecision' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/appeal', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CloseCase' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/close', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CloseCaseRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetCase' => [ + 'method' => 'GET', + 'resource' => 'casemanagement/{caseId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCaseRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'IssueCaseRefund' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/issue_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvideReturnShipmentInfo' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/provide_shipment_info', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvidesReturnAddress' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/provide_return_address', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchCases' => [ + 'method' => 'GET', + 'resource' => 'casemanagement/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchCasesRestResponse', + 'params' => [ + 'case_creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'case_creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'case_status_filter' => [ + 'valid' => ['string'] + ], + 'fieldgroups' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'order_id' => [ + 'valid' => ['string'] + ], + 'return_id' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'CheckInquiryEligibility' => [ + 'method' => 'POST', + 'resource' => 'inquiry/check_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestResponse', + 'params' => [ + ] + ], + 'CloseInquiry' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/close', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ConfirmInquiryRefund' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/confirm_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateInquiry' => [ + 'method' => 'POST', + 'resource' => 'inquiry', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestResponse', + 'params' => [ + ] + ], + 'EscalateInquiry' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/escalate', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInquiry' => [ + 'method' => 'GET', + 'resource' => 'inquiry/{inquiryId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetInquiryRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'IssueInquiryRefund' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/issue_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvideInquiryRefundInfo' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/provide_refund_info', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvideInquiryShipmentInfo' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/provide_shipment_info', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchInquiries' => [ + 'method' => 'GET', + 'resource' => 'inquiry/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ], + 'inquiry_creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'inquiry_creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'inquiry_status' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'order_id' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'SendInquiryMessage' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/send_message', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'AddShippingLabelInfo' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/add_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CancelReturnRequest' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/cancel', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CheckReturnEligibility' => [ + 'method' => 'POST', + 'resource' => 'return/check_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestResponse', + 'params' => [ + ] + ], + 'CheckShippingLabelEligibility' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/check_label_print_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateReturnDraft' => [ + 'method' => 'POST', + 'resource' => 'return/draft', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestResponse', + 'params' => [ + ] + ], + 'CreateReturnRequest' => [ + 'method' => 'POST', + 'resource' => 'return', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ] + ] + ], + 'CreateReturnShippingLabel' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/initiate_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteReturnDraftFile' => [ + 'method' => 'DELETE', + 'resource' => 'return/draft/{draftId}/file/{fileId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'fileId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteReturnFile' => [ + 'method' => 'DELETE', + 'resource' => 'return/{returnId}/file/{fileId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestResponse', + 'params' => [ + 'fileId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'EscalateReturn' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/escalate', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturn' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ], + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnDraft' => [ + 'method' => 'GET', + 'resource' => 'return/draft/{draftId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnDraftFiles' => [ + 'method' => 'GET', + 'resource' => 'return/draft/{draftId}/files', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnEstimate' => [ + 'method' => 'POST', + 'resource' => 'return/estimate', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestResponse', + 'params' => [ + ] + ], + 'GetReturnFiles' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/files', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnMetadata' => [ + 'method' => 'GET', + 'resource' => 'return/metadata/{metadataKey}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestResponse', + 'params' => [ + 'metadataKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnPreferences' => [ + 'method' => 'GET', + 'resource' => 'return/preference', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnPreferencesRestResponse', + 'params' => [ + ] + ], + 'GetReturnShippingLabel' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/get_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestResponse', + 'params' => [ + 'return_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetShipmentTracking' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/tracking', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestResponse', + 'params' => [ + 'carrier_used' => [ + 'valid' => ['string'], + 'required' => true + ], + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'tracking_number' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'IssueReturnRefund' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/issue_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnReceived' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_as_received', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnRefundReceived' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_refund_received', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnRefundSent' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_refund_sent', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnShipped' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_as_shipped', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProcessReturnRequest' => [ + 'method' => 'MET', + 'resource' => 'RES', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchReturns' => [ + 'method' => 'GET', + 'resource' => 'return/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestResponse', + 'params' => [ + 'creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'return_state' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'states' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'SendReturnMessage' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/send_message', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SendReturnShippingLabel' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/send_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestResponse', + 'params' => [ + 'return_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'to_email_address' => [ + 'valid' => ['string'] + ] + ] + ], + 'SetReturnPreferences' => [ + 'method' => 'POST', + 'resource' => 'return/preference', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestResponse', + 'params' => [ + ] + ], + 'SubmitReturnFile' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/file/submit', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateReturnDraft' => [ + 'method' => 'PUT', + 'resource' => 'return/draft/{draftId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateShipmentTracking' => [ + 'method' => 'PUT', + 'resource' => 'return/{returnId}/update_tracking', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UploadReturnDraftFile' => [ + 'method' => 'POST', + 'resource' => 'return/draft/{draftId}/file/upload', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UploadReturnFile' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/file/upload', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'VoidShippingLabel' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/void_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateCustomList' => [ + 'method' => 'POST', + 'resource' => 'rules/custom_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestResponse', + 'params' => [ + ] + ], + 'CreateReturnRules' => [ + 'method' => 'POST', + 'resource' => 'rules', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestResponse', + 'params' => [ + ] + ], + 'GetCustomList' => [ + 'method' => 'GET', + 'resource' => 'rules/custom_list_detail', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCustomListRestResponse', + 'params' => [ + ] + ], + 'GetCustomLists' => [ + 'method' => 'GET', + 'resource' => 'rules/custom_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCustomListsRestResponse', + 'params' => [ + ] + ], + 'GetReturnRuleTemplates' => [ + 'method' => 'GET', + 'resource' => 'rules/get_templates', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRuleTemplatesRestResponse', + 'params' => [ + ] + ], + 'GetStoreCategories' => [ + 'method' => 'GET', + 'resource' => 'rules/get_store_category', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetStoreCategoriesRestResponse', + 'params' => [ + ] + ], + 'GetReturnRule' => [ + 'method' => 'GET', + 'resource' => 'rules/{ruleId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestResponse', + 'params' => [ + 'ruleId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnRuleHistory' => [ + 'method' => 'GET', + 'resource' => 'rules/{ruleId}/get_trigger_history', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'ruleId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'trigger_date_range_from' => [ + 'valid' => ['string'] + ], + 'trigger_date_range_to' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetReturnRules' => [ + 'method' => 'GET', + 'resource' => 'rules/disposition_rules_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ] + ] + ], + 'UpdateCustomList' => [ + 'method' => 'PUT', + 'resource' => 'rules/custom_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestResponse', + 'params' => [ + ] + ], + 'UpdateReturnRules' => [ + 'method' => 'PUT', + 'resource' => 'rules', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestResponse', + 'params' => [ + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestResponse + */ + public function approveCancellationRequest(\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request) + { + return $this->approveCancellationRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function approveCancellationRequestAsync(\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request) + { + return $this->callOperationAsync('ApproveCancellationRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestResponse + */ + public function checkCancellationEligibility(\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request) + { + return $this->checkCancellationEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkCancellationEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckCancellationEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestResponse + */ + public function confirmCancellationRefund(\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request) + { + return $this->confirmCancellationRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function confirmCancellationRefundAsync(\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request) + { + return $this->callOperationAsync('ConfirmCancellationRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetCancellationRestResponse + */ + public function getCancellation(\DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request) + { + return $this->getCancellationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCancellationAsync(\DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request) + { + return $this->callOperationAsync('GetCancellation', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestResponse + */ + public function rejectCancellationRequest(\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request) + { + return $this->rejectCancellationRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rejectCancellationRequestAsync(\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request) + { + return $this->callOperationAsync('RejectCancellationRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestResponse + */ + public function searchCancellations(\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request) + { + return $this->searchCancellationsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchCancellationsAsync(\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request) + { + return $this->callOperationAsync('SearchCancellations', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestResponse + */ + public function submitCancellationRequest(\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request) + { + return $this->submitCancellationRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitCancellationRequestAsync(\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request) + { + return $this->callOperationAsync('SubmitCancellationRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestResponse + */ + public function appealCaseDecision(\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request) + { + return $this->appealCaseDecisionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function appealCaseDecisionAsync(\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request) + { + return $this->callOperationAsync('AppealCaseDecision', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CloseCaseRestResponse + */ + public function closeCase(\DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request) + { + return $this->closeCaseAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeCaseAsync(\DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request) + { + return $this->callOperationAsync('CloseCase', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetCaseRestResponse + */ + public function getCase(\DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request) + { + return $this->getCaseAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCaseAsync(\DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request) + { + return $this->callOperationAsync('GetCase', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestResponse + */ + public function issueCaseRefund(\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request) + { + return $this->issueCaseRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function issueCaseRefundAsync(\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request) + { + return $this->callOperationAsync('IssueCaseRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestResponse + */ + public function provideReturnShipmentInfo(\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request) + { + return $this->provideReturnShipmentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function provideReturnShipmentInfoAsync(\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request) + { + return $this->callOperationAsync('ProvideReturnShipmentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestResponse + */ + public function providesReturnAddress(\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request) + { + return $this->providesReturnAddressAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function providesReturnAddressAsync(\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request) + { + return $this->callOperationAsync('ProvidesReturnAddress', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchCasesRestResponse + */ + public function searchCases(\DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request) + { + return $this->searchCasesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchCasesAsync(\DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request) + { + return $this->callOperationAsync('SearchCases', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestResponse + */ + public function checkInquiryEligibility(\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request) + { + return $this->checkInquiryEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkInquiryEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckInquiryEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CloseInquiryRestResponse + */ + public function closeInquiry(\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request) + { + return $this->closeInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeInquiryAsync(\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request) + { + return $this->callOperationAsync('CloseInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestResponse + */ + public function confirmInquiryRefund(\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request) + { + return $this->confirmInquiryRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function confirmInquiryRefundAsync(\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request) + { + return $this->callOperationAsync('ConfirmInquiryRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateInquiryRestResponse + */ + public function createInquiry(\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request) + { + return $this->createInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createInquiryAsync(\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request) + { + return $this->callOperationAsync('CreateInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestResponse + */ + public function escalateInquiry(\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request) + { + return $this->escalateInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function escalateInquiryAsync(\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request) + { + return $this->callOperationAsync('EscalateInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetInquiryRestResponse + */ + public function getInquiry(\DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request) + { + return $this->getInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInquiryAsync(\DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request) + { + return $this->callOperationAsync('GetInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestResponse + */ + public function issueInquiryRefund(\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request) + { + return $this->issueInquiryRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function issueInquiryRefundAsync(\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request) + { + return $this->callOperationAsync('IssueInquiryRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestResponse + */ + public function provideInquiryRefundInfo(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request) + { + return $this->provideInquiryRefundInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function provideInquiryRefundInfoAsync(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request) + { + return $this->callOperationAsync('ProvideInquiryRefundInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestResponse + */ + public function provideInquiryShipmentInfo(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request) + { + return $this->provideInquiryShipmentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function provideInquiryShipmentInfoAsync(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request) + { + return $this->callOperationAsync('ProvideInquiryShipmentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestResponse + */ + public function searchInquiries(\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request) + { + return $this->searchInquiriesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchInquiriesAsync(\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request) + { + return $this->callOperationAsync('SearchInquiries', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestResponse + */ + public function sendInquiryMessage(\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request) + { + return $this->sendInquiryMessageAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function sendInquiryMessageAsync(\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request) + { + return $this->callOperationAsync('SendInquiryMessage', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestResponse + */ + public function addShippingLabelInfo(\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request) + { + return $this->addShippingLabelInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addShippingLabelInfoAsync(\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request) + { + return $this->callOperationAsync('AddShippingLabelInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestResponse + */ + public function cancelReturnRequest(\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request) + { + return $this->cancelReturnRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelReturnRequestAsync(\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request) + { + return $this->callOperationAsync('CancelReturnRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestResponse + */ + public function checkReturnEligibility(\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request) + { + return $this->checkReturnEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkReturnEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckReturnEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestResponse + */ + public function checkShippingLabelEligibility(\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request) + { + return $this->checkShippingLabelEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkShippingLabelEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckShippingLabelEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestResponse + */ + public function createReturnDraft(\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request) + { + return $this->createReturnDraftAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnDraftAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request) + { + return $this->callOperationAsync('CreateReturnDraft', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestResponse + */ + public function createReturnRequest(\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request) + { + return $this->createReturnRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnRequestAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request) + { + return $this->callOperationAsync('CreateReturnRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestResponse + */ + public function createReturnShippingLabel(\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request) + { + return $this->createReturnShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request) + { + return $this->callOperationAsync('CreateReturnShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestResponse + */ + public function deleteReturnDraftFile(\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request) + { + return $this->deleteReturnDraftFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteReturnDraftFileAsync(\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request) + { + return $this->callOperationAsync('DeleteReturnDraftFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestResponse + */ + public function deleteReturnFile(\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request) + { + return $this->deleteReturnFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteReturnFileAsync(\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request) + { + return $this->callOperationAsync('DeleteReturnFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\EscalateReturnRestResponse + */ + public function escalateReturn(\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request) + { + return $this->escalateReturnAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function escalateReturnAsync(\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request) + { + return $this->callOperationAsync('EscalateReturn', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRestResponse + */ + public function getReturn(\DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request) + { + return $this->getReturnAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request) + { + return $this->callOperationAsync('GetReturn', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestResponse + */ + public function getReturnDraft(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request) + { + return $this->getReturnDraftAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnDraftAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request) + { + return $this->callOperationAsync('GetReturnDraft', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestResponse + */ + public function getReturnDraftFiles(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request) + { + return $this->getReturnDraftFilesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnDraftFilesAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request) + { + return $this->callOperationAsync('GetReturnDraftFiles', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestResponse + */ + public function getReturnEstimate(\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request) + { + return $this->getReturnEstimateAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnEstimateAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request) + { + return $this->callOperationAsync('GetReturnEstimate', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestResponse + */ + public function getReturnFiles(\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request) + { + return $this->getReturnFilesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnFilesAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request) + { + return $this->callOperationAsync('GetReturnFiles', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestResponse + */ + public function getReturnMetadata(\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request) + { + return $this->getReturnMetadataAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnMetadataAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request) + { + return $this->callOperationAsync('GetReturnMetadata', $request); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnPreferencesRestResponse + */ + public function getReturnPreferences() + { + return $this->getReturnPreferencesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnPreferencesAsync() + { + return $this->callOperationAsync('GetReturnPreferences'); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestResponse + */ + public function getReturnShippingLabel(\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request) + { + return $this->getReturnShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request) + { + return $this->callOperationAsync('GetReturnShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestResponse + */ + public function getShipmentTracking(\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request) + { + return $this->getShipmentTrackingAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getShipmentTrackingAsync(\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request) + { + return $this->callOperationAsync('GetShipmentTracking', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestResponse + */ + public function issueReturnRefund(\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request) + { + return $this->issueReturnRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function issueReturnRefundAsync(\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request) + { + return $this->callOperationAsync('IssueReturnRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestResponse + */ + public function markReturnReceived(\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request) + { + return $this->markReturnReceivedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnReceivedAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request) + { + return $this->callOperationAsync('MarkReturnReceived', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestResponse + */ + public function markReturnRefundReceived(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request) + { + return $this->markReturnRefundReceivedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnRefundReceivedAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request) + { + return $this->callOperationAsync('MarkReturnRefundReceived', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestResponse + */ + public function markReturnRefundSent(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request) + { + return $this->markReturnRefundSentAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnRefundSentAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request) + { + return $this->callOperationAsync('MarkReturnRefundSent', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestResponse + */ + public function markReturnShipped(\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request) + { + return $this->markReturnShippedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnShippedAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request) + { + return $this->callOperationAsync('MarkReturnShipped', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse + */ + public function processReturnRequest(\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request) + { + return $this->processReturnRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function processReturnRequestAsync(\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request) + { + return $this->callOperationAsync('ProcessReturnRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchReturnsRestResponse + */ + public function searchReturns(\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request) + { + return $this->searchReturnsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchReturnsAsync(\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request) + { + return $this->callOperationAsync('SearchReturns', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestResponse + */ + public function sendReturnMessage(\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request) + { + return $this->sendReturnMessageAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function sendReturnMessageAsync(\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request) + { + return $this->callOperationAsync('SendReturnMessage', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestResponse + */ + public function sendReturnShippingLabel(\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request) + { + return $this->sendReturnShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function sendReturnShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request) + { + return $this->callOperationAsync('SendReturnShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestResponse + */ + public function setReturnPreferences(\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request) + { + return $this->setReturnPreferencesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setReturnPreferencesAsync(\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request) + { + return $this->callOperationAsync('SetReturnPreferences', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestResponse + */ + public function submitReturnFile(\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request) + { + return $this->submitReturnFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitReturnFileAsync(\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request) + { + return $this->callOperationAsync('SubmitReturnFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestResponse + */ + public function updateReturnDraft(\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request) + { + return $this->updateReturnDraftAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateReturnDraftAsync(\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request) + { + return $this->callOperationAsync('UpdateReturnDraft', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestResponse + */ + public function updateShipmentTracking(\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request) + { + return $this->updateShipmentTrackingAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateShipmentTrackingAsync(\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request) + { + return $this->callOperationAsync('UpdateShipmentTracking', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestResponse + */ + public function uploadReturnDraftFile(\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request) + { + return $this->uploadReturnDraftFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadReturnDraftFileAsync(\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request) + { + return $this->callOperationAsync('UploadReturnDraftFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestResponse + */ + public function uploadReturnFile(\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request) + { + return $this->uploadReturnFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadReturnFileAsync(\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request) + { + return $this->callOperationAsync('UploadReturnFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestResponse + */ + public function voidShippingLabel(\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request) + { + return $this->voidShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function voidShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request) + { + return $this->callOperationAsync('VoidShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateCustomListRestResponse + */ + public function createCustomList(\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request) + { + return $this->createCustomListAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createCustomListAsync(\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request) + { + return $this->callOperationAsync('CreateCustomList', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestResponse + */ + public function createReturnRules(\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request) + { + return $this->createReturnRulesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnRulesAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request) + { + return $this->callOperationAsync('CreateReturnRules', $request); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetCustomListRestResponse + */ + public function getCustomList() + { + return $this->getCustomListAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCustomListAsync() + { + return $this->callOperationAsync('GetCustomList'); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetCustomListsRestResponse + */ + public function getCustomLists() + { + return $this->getCustomListsAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCustomListsAsync() + { + return $this->callOperationAsync('GetCustomLists'); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRuleTemplatesRestResponse + */ + public function getReturnRuleTemplates() + { + return $this->getReturnRuleTemplatesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRuleTemplatesAsync() + { + return $this->callOperationAsync('GetReturnRuleTemplates'); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetStoreCategoriesRestResponse + */ + public function getStoreCategories() + { + return $this->getStoreCategoriesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStoreCategoriesAsync() + { + return $this->callOperationAsync('GetStoreCategories'); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestResponse + */ + public function getReturnRule(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request) + { + return $this->getReturnRuleAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRuleAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request) + { + return $this->callOperationAsync('GetReturnRule', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestResponse + */ + public function getReturnRuleHistory(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request) + { + return $this->getReturnRuleHistoryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRuleHistoryAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request) + { + return $this->callOperationAsync('GetReturnRuleHistory', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestResponse + */ + public function getReturnRules(\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request) + { + return $this->getReturnRulesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRulesAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request) + { + return $this->callOperationAsync('GetReturnRules', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestResponse + */ + public function updateCustomList(\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request) + { + return $this->updateCustomListAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCustomListAsync(\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request) + { + return $this->callOperationAsync('UpdateCustomList', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestResponse + */ + public function updateReturnRules(\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request) + { + return $this->updateReturnRulesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateReturnRulesAsync(\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request) + { + return $this->callOperationAsync('UpdateReturnRules', $request); + } +} diff --git a/src/PostOrder/Types/ActionDeadlines.php b/src/PostOrder/Types/ActionDeadlines.php new file mode 100644 index 000000000..2b210e296 --- /dev/null +++ b/src/PostOrder/Types/ActionDeadlines.php @@ -0,0 +1,74 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysForBuyerToProvideProofOfShipment' + ], + 'daysToExpireWithoutResponse' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysToExpireWithoutResponse' + ], + 'daysToExpireWithResponse' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysToExpireWithResponse' + ], + 'daysToReturnItem' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysToReturnItem' + ], + 'maxDaysToFileClaim' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxDaysToFileClaim' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ActualRefundDetailType.php b/src/PostOrder/Types/ActualRefundDetailType.php new file mode 100644 index 000000000..00b28c0f5 --- /dev/null +++ b/src/PostOrder/Types/ActualRefundDetailType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualRefund' + ], + 'refundInitiationType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundInitiationType' + ], + 'refundIssuedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundIssuedDate' + ], + 'refundStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AddShippingLabelInfoRestRequest.php b/src/PostOrder/Types/AddShippingLabelInfoRestRequest.php new file mode 100644 index 000000000..c0eea9822 --- /dev/null +++ b/src/PostOrder/Types/AddShippingLabelInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AddShippingLabelInfoRestResponse.php b/src/PostOrder/Types/AddShippingLabelInfoRestResponse.php new file mode 100644 index 000000000..b7e0a70e3 --- /dev/null +++ b/src/PostOrder/Types/AddShippingLabelInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/Address.php b/src/PostOrder/Types/Address.php new file mode 100644 index 000000000..6020aa9c6 --- /dev/null +++ b/src/PostOrder/Types/Address.php @@ -0,0 +1,130 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'addressType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressType' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'isTransliterated' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isTransliterated' + ], + 'nationalRegion' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'nationalRegion' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'script' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'script' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ], + 'transliteratedFromScript' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transliteratedFromScript' + ], + 'worldRegion' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'worldRegion' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/Amount.php b/src/PostOrder/Types/Amount.php new file mode 100644 index 000000000..3e70459a2 --- /dev/null +++ b/src/PostOrder/Types/Amount.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromCurrency' + ], + 'convertedFromValue' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromValue' + ], + 'currency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AppealCaseDecisionRestRequest.php b/src/PostOrder/Types/AppealCaseDecisionRestRequest.php new file mode 100644 index 000000000..3b1d593c4 --- /dev/null +++ b/src/PostOrder/Types/AppealCaseDecisionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AppealCaseDecisionRestResponse.php b/src/PostOrder/Types/AppealCaseDecisionRestResponse.php new file mode 100644 index 000000000..bd2bed8ad --- /dev/null +++ b/src/PostOrder/Types/AppealCaseDecisionRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/AppealDetails.php b/src/PostOrder/Types/AppealDetails.php new file mode 100644 index 000000000..63bd3d237 --- /dev/null +++ b/src/PostOrder/Types/AppealDetails.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealCloseReasonEnum' + ], + 'appealDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealDate' + ], + 'appealReasonCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealReasonCode' + ], + 'appealStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealStatus' + ], + 'appealStatusEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealStatusEnum' + ], + 'eligibleForAppeal' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibleForAppeal' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AppealRequest.php b/src/PostOrder/Types/AppealRequest.php new file mode 100644 index 000000000..678e323fe --- /dev/null +++ b/src/PostOrder/Types/AppealRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ApproveCancellationRequestRestRequest.php b/src/PostOrder/Types/ApproveCancellationRequestRestRequest.php new file mode 100644 index 000000000..627c160e8 --- /dev/null +++ b/src/PostOrder/Types/ApproveCancellationRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ApproveCancellationRequestRestResponse.php b/src/PostOrder/Types/ApproveCancellationRequestRestResponse.php new file mode 100644 index 000000000..33ddfd137 --- /dev/null +++ b/src/PostOrder/Types/ApproveCancellationRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/AvailableOptionType.php b/src/PostOrder/Types/AvailableOptionType.php new file mode 100644 index 000000000..1cf2f8595 --- /dev/null +++ b/src/PostOrder/Types/AvailableOptionType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionType' + ], + 'actionURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionURL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/BuyerCloseCaseRequest.php b/src/PostOrder/Types/BuyerCloseCaseRequest.php new file mode 100644 index 000000000..8e2663251 --- /dev/null +++ b/src/PostOrder/Types/BuyerCloseCaseRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'closeReason' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/BuyerCloseInquiryRequest.php b/src/PostOrder/Types/BuyerCloseInquiryRequest.php new file mode 100644 index 000000000..efcc120e2 --- /dev/null +++ b/src/PostOrder/Types/BuyerCloseInquiryRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'closeReason' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelActivityHistory.php b/src/PostOrder/Types/CancelActivityHistory.php new file mode 100644 index 000000000..6586bb05d --- /dev/null +++ b/src/PostOrder/Types/CancelActivityHistory.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDate' + ], + 'activityParty' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activityParty' + ], + 'activityType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activityType' + ], + 'stateFrom' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateFrom' + ], + 'stateTo' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateTo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelDetail.php b/src/PostOrder/Types/CancelDetail.php new file mode 100644 index 000000000..3a1e31b66 --- /dev/null +++ b/src/PostOrder/Types/CancelDetail.php @@ -0,0 +1,172 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CancelActivityHistory', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'activityHistories' + ], + 'buyerResponseDueDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponseDueDate' + ], + 'cancelCloseDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseDate' + ], + 'cancelCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseReason' + ], + 'cancelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'cancelRequestDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestDate' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\OrderCancelLineItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'paymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentStatus' + ], + 'requestorType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestorType' + ], + 'requestRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestRefundAmount' + ], + 'sellerResponseDueDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerResponseDueDate' + ], + 'shipmentDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentDate' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelReturnRequestRestRequest.php b/src/PostOrder/Types/CancelReturnRequestRestRequest.php new file mode 100644 index 000000000..be463fb26 --- /dev/null +++ b/src/PostOrder/Types/CancelReturnRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelReturnRequestRestResponse.php b/src/PostOrder/Types/CancelReturnRequestRestResponse.php new file mode 100644 index 000000000..2fbaecd8e --- /dev/null +++ b/src/PostOrder/Types/CancelReturnRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CancelSortField.php b/src/PostOrder/Types/CancelSortField.php new file mode 100644 index 000000000..68800309b --- /dev/null +++ b/src/PostOrder/Types/CancelSortField.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'enumValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'enumValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelSummary.php b/src/PostOrder/Types/CancelSummary.php new file mode 100644 index 000000000..8800601ee --- /dev/null +++ b/src/PostOrder/Types/CancelSummary.php @@ -0,0 +1,144 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponseDueDate' + ], + 'cancelCloseDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseDate' + ], + 'cancelCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseReason' + ], + 'cancelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'cancelRequestDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestDate' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'paymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentStatus' + ], + 'requestorType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestorType' + ], + 'requestRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestRefundAmount' + ], + 'sellerResponseDueDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerResponseDueDate' + ], + 'shipmentDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentDate' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CarrierShippingCostInfoType.php b/src/PostOrder/Types/CarrierShippingCostInfoType.php new file mode 100644 index 000000000..fc4cb0a18 --- /dev/null +++ b/src/PostOrder/Types/CarrierShippingCostInfoType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnShippingCostDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseDetails.php b/src/PostOrder/Types/CaseDetails.php new file mode 100644 index 000000000..f496c5686 --- /dev/null +++ b/src/PostOrder/Types/CaseDetails.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerFinalAcceptResolution' + ], + 'buyerInitExpectResolution' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerInitExpectResolution' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'escalationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationDate' + ], + 'expirationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expirationDate' + ], + 'lastBuyerRespDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastBuyerRespDate' + ], + 'lastSellerRespDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastSellerRespDate' + ], + 'paypalPaid' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paypalPaid' + ], + 'refundAmounts' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundAmounts', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmounts' + ], + 'refundDeadlineDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDeadlineDate' + ], + 'refundType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseDetailsResponse.php b/src/PostOrder/Types/CaseDetailsResponse.php new file mode 100644 index 000000000..fb5280059 --- /dev/null +++ b/src/PostOrder/Types/CaseDetailsResponse.php @@ -0,0 +1,242 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ActionDeadlines', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDeadlines' + ], + 'appealDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AppealDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealDetails' + ], + 'buyerClosureReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerClosureReason' + ], + 'buyerProtectedProgramLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerProtectedProgramLink' + ], + 'caseDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CaseDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseDetails' + ], + 'caseHistoryDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ClaimHistoryResponse', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseHistoryDetails' + ], + 'caseId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'caseQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseQuantity' + ], + 'caseType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseType' + ], + 'claimAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'escalatedBy' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalatedBy' + ], + 'escalateReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalateReason' + ], + 'eventTicketsLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventTicketsLink' + ], + 'extTransactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extTransactionId' + ], + 'fsnadDaysToAddTrackingAfterShippingItem' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fsnadDaysToAddTrackingAfterShippingItem' + ], + 'fsnadShipToSellerByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fsnadShipToSellerByDate' + ], + 'initiator' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'initiator' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lastModifiedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'payForItemLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payForItemLink' + ], + 'priceSignatureConfirmationAmount' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSignatureConfirmationAmount' + ], + 'recalledItemLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recalledItemLink' + ], + 'returnDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDetails' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'sellerClosureReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerClosureReason' + ], + 'shippingFee' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingFee' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseSearchResponse.php b/src/PostOrder/Types/CaseSearchResponse.php new file mode 100644 index 000000000..b34d5dea8 --- /dev/null +++ b/src/PostOrder/Types/CaseSearchResponse.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CaseSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'members' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'totalNumberOfCases' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalNumberOfCases' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseStatusFilter.php b/src/PostOrder/Types/CaseStatusFilter.php new file mode 100644 index 000000000..6ae3ea086 --- /dev/null +++ b/src/PostOrder/Types/CaseStatusFilter.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseSummaryType.php b/src/PostOrder/Types/CaseSummaryType.php new file mode 100644 index 000000000..c4459f7e4 --- /dev/null +++ b/src/PostOrder/Types/CaseSummaryType.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer' + ], + 'caseId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'caseStatusEnum' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Rsp:CaseStatusEnum', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseStatusEnum' + ], + 'claimAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'itemId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lastModifiedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'respondByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'respondByDate' + ], + 'seller' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'transactionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseVoluntaryRefundRequest.php b/src/PostOrder/Types/CaseVoluntaryRefundRequest.php new file mode 100644 index 000000000..73583d583 --- /dev/null +++ b/src/PostOrder/Types/CaseVoluntaryRefundRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php b/src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php new file mode 100644 index 000000000..cd03cdbb6 --- /dev/null +++ b/src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php b/src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php new file mode 100644 index 000000000..eecf5deb0 --- /dev/null +++ b/src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CheckEligibilityRequest.php b/src/PostOrder/Types/CheckEligibilityRequest.php new file mode 100644 index 000000000..67dd3421f --- /dev/null +++ b/src/PostOrder/Types/CheckEligibilityRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'checkTypes' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckEligibilityResponse.php b/src/PostOrder/Types/CheckEligibilityResponse.php new file mode 100644 index 000000000..8a54c4142 --- /dev/null +++ b/src/PostOrder/Types/CheckEligibilityResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityPerItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityResultPerItem' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityRequest.php b/src/PostOrder/Types/CheckInquiryEligibilityRequest.php new file mode 100644 index 000000000..69adcc6b6 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityResponse.php b/src/PostOrder/Types/CheckInquiryEligibilityResponse.php new file mode 100644 index 000000000..44d3f70c9 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'earliestPossibleFilingDate' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'estimatedDeliveryDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedDeliveryDate' + ], + 'inquiryEligibilityStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryEligibilityStatus' + ], + 'inquiryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ], + 'latestPossibleFilingDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'latestPossibleFilingDate' + ], + 'nonOverridableErrors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'nonOverridableErrors' + ], + 'paypalReasonToDenyRequestFiling' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paypalReasonToDenyRequestFiling' + ], + 'returnFilingDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnFilingDate' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php b/src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php new file mode 100644 index 000000000..acfe78e94 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php b/src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php new file mode 100644 index 000000000..5efc69665 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php b/src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php new file mode 100644 index 000000000..f23c720f6 --- /dev/null +++ b/src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'printLabelValid' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckReturnEligibilityRestRequest.php b/src/PostOrder/Types/CheckReturnEligibilityRestRequest.php new file mode 100644 index 000000000..19c22295d --- /dev/null +++ b/src/PostOrder/Types/CheckReturnEligibilityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckReturnEligibilityRestResponse.php b/src/PostOrder/Types/CheckReturnEligibilityRestResponse.php new file mode 100644 index 000000000..10a5b44d1 --- /dev/null +++ b/src/PostOrder/Types/CheckReturnEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php b/src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php new file mode 100644 index 000000000..d5230dfa2 --- /dev/null +++ b/src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php b/src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php new file mode 100644 index 000000000..f0e30e310 --- /dev/null +++ b/src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ClaimHistoryEventModel.php b/src/PostOrder/Types/ClaimHistoryEventModel.php new file mode 100644 index 000000000..ae5f9d0fe --- /dev/null +++ b/src/PostOrder/Types/ClaimHistoryEventModel.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'action' + ], + 'actor' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actor' + ], + 'date' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'moneyMovement' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementEntries', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'moneyMovement' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ClaimHistoryResponse.php b/src/PostOrder/Types/ClaimHistoryResponse.php new file mode 100644 index 000000000..2c85ad9ae --- /dev/null +++ b/src/PostOrder/Types/ClaimHistoryResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ClaimHistoryEventModel', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'history' + ], + 'shipmentTrackingDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentTrackingDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CloseCaseRestRequest.php b/src/PostOrder/Types/CloseCaseRestRequest.php new file mode 100644 index 000000000..545fe7f73 --- /dev/null +++ b/src/PostOrder/Types/CloseCaseRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CloseCaseRestResponse.php b/src/PostOrder/Types/CloseCaseRestResponse.php new file mode 100644 index 000000000..87a1ab022 --- /dev/null +++ b/src/PostOrder/Types/CloseCaseRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CloseInquiryRestRequest.php b/src/PostOrder/Types/CloseInquiryRestRequest.php new file mode 100644 index 000000000..be7ec5ed7 --- /dev/null +++ b/src/PostOrder/Types/CloseInquiryRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CloseInquiryRestResponse.php b/src/PostOrder/Types/CloseInquiryRestResponse.php new file mode 100644 index 000000000..6c45f048f --- /dev/null +++ b/src/PostOrder/Types/CloseInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CloseReturnRequest.php b/src/PostOrder/Types/CloseReturnRequest.php new file mode 100644 index 000000000..020d4a73e --- /dev/null +++ b/src/PostOrder/Types/CloseReturnRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCloseReason' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConditionDataRangeType.php b/src/PostOrder/Types/ConditionDataRangeType.php new file mode 100644 index 000000000..dbf5cce67 --- /dev/null +++ b/src/PostOrder/Types/ConditionDataRangeType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Mrk:Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConditionListDetailType.php b/src/PostOrder/Types/ConditionListDetailType.php new file mode 100644 index 000000000..aaeee722f --- /dev/null +++ b/src/PostOrder/Types/ConditionListDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'all' + ], + 'isMultiple' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isMultiple' + ], + 'selected' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'selected' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php b/src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php new file mode 100644 index 000000000..a0c336170 --- /dev/null +++ b/src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php b/src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php new file mode 100644 index 000000000..4e93b702c --- /dev/null +++ b/src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php b/src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php new file mode 100644 index 000000000..51d54e4b0 --- /dev/null +++ b/src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php b/src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php new file mode 100644 index 000000000..2abf2e20e --- /dev/null +++ b/src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ConfirmRefundRequest.php b/src/PostOrder/Types/ConfirmRefundRequest.php new file mode 100644 index 000000000..c049f1d47 --- /dev/null +++ b/src/PostOrder/Types/ConfirmRefundRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDate' + ], + 'unpaidOrder' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unpaidOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CountSummaryType.php b/src/PostOrder/Types/CountSummaryType.php new file mode 100644 index 000000000..7fb6e6ee5 --- /dev/null +++ b/src/PostOrder/Types/CountSummaryType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'count' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCancelRequest.php b/src/PostOrder/Types/CreateCancelRequest.php new file mode 100644 index 000000000..d04a1f549 --- /dev/null +++ b/src/PostOrder/Types/CreateCancelRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerPaid' + ], + 'buyerPaidDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerPaidDate' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCancelResponse.php b/src/PostOrder/Types/CreateCancelResponse.php new file mode 100644 index 000000000..7bd003f5f --- /dev/null +++ b/src/PostOrder/Types/CreateCancelResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'orderEligibilityResult' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\OrderEligibilityResult', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderEligibilityResult' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListRequest.php b/src/PostOrder/Types/CreateCustomListRequest.php new file mode 100644 index 000000000..8c2bbd3bb --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'customListDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListResponse.php b/src/PostOrder/Types/CreateCustomListResponse.php new file mode 100644 index 000000000..c11330cf5 --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListRestRequest.php b/src/PostOrder/Types/CreateCustomListRestRequest.php new file mode 100644 index 000000000..4f7298ffb --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListRestResponse.php b/src/PostOrder/Types/CreateCustomListRestResponse.php new file mode 100644 index 000000000..7c7394376 --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateDispositionRuleRequest.php b/src/PostOrder/Types/CreateDispositionRuleRequest.php new file mode 100644 index 000000000..3185a82a4 --- /dev/null +++ b/src/PostOrder/Types/CreateDispositionRuleRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailInputType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateDispositionRuleResponse.php b/src/PostOrder/Types/CreateDispositionRuleResponse.php new file mode 100644 index 000000000..9b80a5d58 --- /dev/null +++ b/src/PostOrder/Types/CreateDispositionRuleResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateInquiryRequest.php b/src/PostOrder/Types/CreateInquiryRequest.php new file mode 100644 index 000000000..0276642e2 --- /dev/null +++ b/src/PostOrder/Types/CreateInquiryRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimQuantity' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'desiredOutcome' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'desiredOutcome' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateInquiryRestRequest.php b/src/PostOrder/Types/CreateInquiryRestRequest.php new file mode 100644 index 000000000..77667689c --- /dev/null +++ b/src/PostOrder/Types/CreateInquiryRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateInquiryRestResponse.php b/src/PostOrder/Types/CreateInquiryRestResponse.php new file mode 100644 index 000000000..4a19dd3b4 --- /dev/null +++ b/src/PostOrder/Types/CreateInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnDraftRestRequest.php b/src/PostOrder/Types/CreateReturnDraftRestRequest.php new file mode 100644 index 000000000..3bdd9d3f5 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnDraftRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnDraftRestResponse.php b/src/PostOrder/Types/CreateReturnDraftRestResponse.php new file mode 100644 index 000000000..968dc9483 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnDraftRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnRequest.php b/src/PostOrder/Types/CreateReturnRequest.php new file mode 100644 index 000000000..d1e97527c --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ], + 'returnRequest' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnRequestType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRequestRestRequest.php b/src/PostOrder/Types/CreateReturnRequestRestRequest.php new file mode 100644 index 000000000..f94cb979d --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRequestRestResponse.php b/src/PostOrder/Types/CreateReturnRequestRestResponse.php new file mode 100644 index 000000000..44dbf86a6 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnResponse.php b/src/PostOrder/Types/CreateReturnResponse.php new file mode 100644 index 000000000..156087a6d --- /dev/null +++ b/src/PostOrder/Types/CreateReturnResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\GetDetailResponse', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'detail' + ], + 'eligibilityResult' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityPerItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityResult' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'summary' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'summary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRulesRestRequest.php b/src/PostOrder/Types/CreateReturnRulesRestRequest.php new file mode 100644 index 000000000..f33fe93a5 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRulesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRulesRestResponse.php b/src/PostOrder/Types/CreateReturnRulesRestResponse.php new file mode 100644 index 000000000..ac873bb47 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRulesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php b/src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php new file mode 100644 index 000000000..3557f725e --- /dev/null +++ b/src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php b/src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php new file mode 100644 index 000000000..5e28ad1e1 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CustomListDataType.php b/src/PostOrder/Types/CustomListDataType.php new file mode 100644 index 000000000..8707381f9 --- /dev/null +++ b/src/PostOrder/Types/CustomListDataType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'identify' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'identify' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CustomListDetailType.php b/src/PostOrder/Types/CustomListDetailType.php new file mode 100644 index 000000000..6317c723b --- /dev/null +++ b/src/PostOrder/Types/CustomListDetailType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listData' + ], + 'listId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listId' + ], + 'listName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listName' + ], + 'listType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CustomListModificationType.php b/src/PostOrder/Types/CustomListModificationType.php new file mode 100644 index 000000000..be79a832a --- /dev/null +++ b/src/PostOrder/Types/CustomListModificationType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CustomListType.php b/src/PostOrder/Types/CustomListType.php new file mode 100644 index 000000000..f7cc489f6 --- /dev/null +++ b/src/PostOrder/Types/CustomListType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DateTime.php b/src/PostOrder/Types/DateTime.php new file mode 100644 index 000000000..2b6bfc031 --- /dev/null +++ b/src/PostOrder/Types/DateTime.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'formattedValue' + ], + 'value' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DecideReturnRequest.php b/src/PostOrder/Types/DecideReturnRequest.php new file mode 100644 index 000000000..627912569 --- /dev/null +++ b/src/PostOrder/Types/DecideReturnRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'decision' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'decision' + ], + 'partialRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'partialRefundAmount' + ], + 'RMANumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMANumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DecideReturnResponse.php b/src/PostOrder/Types/DecideReturnResponse.php new file mode 100644 index 000000000..f871998b9 --- /dev/null +++ b/src/PostOrder/Types/DecideReturnResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php b/src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php new file mode 100644 index 000000000..1f9e8cc54 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php b/src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php new file mode 100644 index 000000000..845b1ea57 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/DeleteReturnFileRestRequest.php b/src/PostOrder/Types/DeleteReturnFileRestRequest.php new file mode 100644 index 000000000..1b9aa1259 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnFileRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DeleteReturnFileRestResponse.php b/src/PostOrder/Types/DeleteReturnFileRestResponse.php new file mode 100644 index 000000000..e05ac41e0 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/DispositionRuleDetailType.php b/src/PostOrder/Types/DispositionRuleDetailType.php new file mode 100644 index 000000000..d66daea4e --- /dev/null +++ b/src/PostOrder/Types/DispositionRuleDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ], + 'ruleName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleName' + ], + 'ruleTemplate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleTemplate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EligibilityErrorType.php b/src/PostOrder/Types/EligibilityErrorType.php new file mode 100644 index 000000000..5ec92f6d5 --- /dev/null +++ b/src/PostOrder/Types/EligibilityErrorType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'code' + ], + 'content' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'content' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EligibilityResponseError.php b/src/PostOrder/Types/EligibilityResponseError.php new file mode 100644 index 000000000..16851e21a --- /dev/null +++ b/src/PostOrder/Types/EligibilityResponseError.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EligibilityResultType.php b/src/PostOrder/Types/EligibilityResultType.php new file mode 100644 index 000000000..a3be05880 --- /dev/null +++ b/src/PostOrder/Types/EligibilityResultType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'eligibilityErrorDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityErrorDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'eligibilityErrorDetail' + ], + 'eligibilityStatus' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\StatusType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityStatus' + ], + 'eligibleStartDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibleStartDate' + ], + 'returnCreationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnCreationDate' + ], + 'returnDeadline' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDeadline' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/Error.php b/src/PostOrder/Types/Error.php new file mode 100644 index 000000000..8e837c5e9 --- /dev/null +++ b/src/PostOrder/Types/Error.php @@ -0,0 +1,95 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'httpStatusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'httpStatusCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorDetailV3.php b/src/PostOrder/Types/ErrorDetailV3.php new file mode 100644 index 000000000..16f3050a9 --- /dev/null +++ b/src/PostOrder/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subDomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subDomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorMessage.php b/src/PostOrder/Types/ErrorMessage.php new file mode 100644 index 000000000..f42777da1 --- /dev/null +++ b/src/PostOrder/Types/ErrorMessage.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorParameter.php b/src/PostOrder/Types/ErrorParameter.php new file mode 100644 index 000000000..09391c6c2 --- /dev/null +++ b/src/PostOrder/Types/ErrorParameter.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorParameterV3.php b/src/PostOrder/Types/ErrorParameterV3.php new file mode 100644 index 000000000..2bbd1a841 --- /dev/null +++ b/src/PostOrder/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateInquiryRequest.php b/src/PostOrder/Types/EscalateInquiryRequest.php new file mode 100644 index 000000000..b46da9e8a --- /dev/null +++ b/src/PostOrder/Types/EscalateInquiryRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'escalationReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationReason' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateInquiryRestRequest.php b/src/PostOrder/Types/EscalateInquiryRestRequest.php new file mode 100644 index 000000000..a5d87956b --- /dev/null +++ b/src/PostOrder/Types/EscalateInquiryRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateInquiryRestResponse.php b/src/PostOrder/Types/EscalateInquiryRestResponse.php new file mode 100644 index 000000000..0f3ed303d --- /dev/null +++ b/src/PostOrder/Types/EscalateInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/EscalateRequest.php b/src/PostOrder/Types/EscalateRequest.php new file mode 100644 index 000000000..e38f82f33 --- /dev/null +++ b/src/PostOrder/Types/EscalateRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateResponse.php b/src/PostOrder/Types/EscalateResponse.php new file mode 100644 index 000000000..1ef646146 --- /dev/null +++ b/src/PostOrder/Types/EscalateResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateReturnRestRequest.php b/src/PostOrder/Types/EscalateReturnRestRequest.php new file mode 100644 index 000000000..301482c3f --- /dev/null +++ b/src/PostOrder/Types/EscalateReturnRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateReturnRestResponse.php b/src/PostOrder/Types/EscalateReturnRestResponse.php new file mode 100644 index 000000000..235ed9b61 --- /dev/null +++ b/src/PostOrder/Types/EscalateReturnRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/EscalationEligibilityInfo.php b/src/PostOrder/Types/EscalationEligibilityInfo.php new file mode 100644 index 000000000..a1615318e --- /dev/null +++ b/src/PostOrder/Types/EscalationEligibilityInfo.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligible' + ], + 'endTime' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endTime' + ], + 'startTime' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startTime' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalationInfoType.php b/src/PostOrder/Types/EscalationInfoType.php new file mode 100644 index 000000000..e72a98750 --- /dev/null +++ b/src/PostOrder/Types/EscalationInfoType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EscalationEligibilityInfo', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerEscalationEligibilityInfo' + ], + 'caseId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'sellerEscalationEligibilityInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EscalationEligibilityInfo', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerEscalationEligibilityInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedRefundDetailType.php b/src/PostOrder/Types/EstimatedRefundDetailType.php new file mode 100644 index 000000000..fb2dc3d5f --- /dev/null +++ b/src/PostOrder/Types/EstimatedRefundDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemizedRefundDetails' + ], + 'optionalRefundLineItems' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'optionalRefundLineItems' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedRefundInfoType.php b/src/PostOrder/Types/EstimatedRefundInfoType.php new file mode 100644 index 000000000..dcd5cab8c --- /dev/null +++ b/src/PostOrder/Types/EstimatedRefundInfoType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerTotalAmount' + ], + 'estimatedRefundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedRefundDetail' + ], + 'sellerTotalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerTotalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedRefundType.php b/src/PostOrder/Types/EstimatedRefundType.php new file mode 100644 index 000000000..e85d2ae84 --- /dev/null +++ b/src/PostOrder/Types/EstimatedRefundType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedAmount' + ], + 'maxAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxAmount' + ], + 'minAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minAmount' + ], + 'refundFeeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundFeeType' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedShippingInfoType.php b/src/PostOrder/Types/EstimatedShippingInfoType.php new file mode 100644 index 000000000..d5f6097ca --- /dev/null +++ b/src/PostOrder/Types/EstimatedShippingInfoType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CarrierShippingCostInfoType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'carriers' + ], + 'returnShipmentPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShipmentPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/FindCancelResponse.php b/src/PostOrder/Types/FindCancelResponse.php new file mode 100644 index 000000000..bdc78948f --- /dev/null +++ b/src/PostOrder/Types/FindCancelResponse.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CancelSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'cancellations' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancelDetailResponse.php b/src/PostOrder/Types/GetCancelDetailResponse.php new file mode 100644 index 000000000..3febae596 --- /dev/null +++ b/src/PostOrder/Types/GetCancelDetailResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CancelDetail', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancelFieldGroup.php b/src/PostOrder/Types/GetCancelFieldGroup.php new file mode 100644 index 000000000..600825450 --- /dev/null +++ b/src/PostOrder/Types/GetCancelFieldGroup.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancellationRestRequest.php b/src/PostOrder/Types/GetCancellationRestRequest.php new file mode 100644 index 000000000..20cfb0007 --- /dev/null +++ b/src/PostOrder/Types/GetCancellationRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'fieldgroups' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancellationRestResponse.php b/src/PostOrder/Types/GetCancellationRestResponse.php new file mode 100644 index 000000000..27cb3c080 --- /dev/null +++ b/src/PostOrder/Types/GetCancellationRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetCaseRestRequest.php b/src/PostOrder/Types/GetCaseRestRequest.php new file mode 100644 index 000000000..6863a7b83 --- /dev/null +++ b/src/PostOrder/Types/GetCaseRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCaseRestResponse.php b/src/PostOrder/Types/GetCaseRestResponse.php new file mode 100644 index 000000000..1a264175c --- /dev/null +++ b/src/PostOrder/Types/GetCaseRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetCustomListDetailResponse.php b/src/PostOrder/Types/GetCustomListDetailResponse.php new file mode 100644 index 000000000..c3b2e0df4 --- /dev/null +++ b/src/PostOrder/Types/GetCustomListDetailResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCustomListRestResponse.php b/src/PostOrder/Types/GetCustomListRestResponse.php new file mode 100644 index 000000000..1995a5734 --- /dev/null +++ b/src/PostOrder/Types/GetCustomListRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetCustomListsResponse.php b/src/PostOrder/Types/GetCustomListsResponse.php new file mode 100644 index 000000000..845ec02f6 --- /dev/null +++ b/src/PostOrder/Types/GetCustomListsResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCustomListsRestResponse.php b/src/PostOrder/Types/GetCustomListsRestResponse.php new file mode 100644 index 000000000..fc9be6d9e --- /dev/null +++ b/src/PostOrder/Types/GetCustomListsRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetDetailResponse.php b/src/PostOrder/Types/GetDetailResponse.php new file mode 100644 index 000000000..12844916e --- /dev/null +++ b/src/PostOrder/Types/GetDetailResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'detail' + ], + 'summary' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'summary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRuleDetailResponse.php b/src/PostOrder/Types/GetDispositionRuleDetailResponse.php new file mode 100644 index 000000000..1995663aa --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRuleDetailResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleDetail' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php b/src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php new file mode 100644 index 000000000..a6a690140 --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleTemplateDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ruleTemplates' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php b/src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php new file mode 100644 index 000000000..8da1a6d33 --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleTriggerHistDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'historyDetail' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRulesResponse.php b/src/PostOrder/Types/GetDispositionRulesResponse.php new file mode 100644 index 000000000..3f628f037 --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRulesResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDisabled' + ], + 'rule' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'rule' + ], + 'totalNumRules' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalNumRules' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetEstimateRequest.php b/src/PostOrder/Types/GetEstimateRequest.php new file mode 100644 index 000000000..bef344c33 --- /dev/null +++ b/src/PostOrder/Types/GetEstimateRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetEstimateResponse.php b/src/PostOrder/Types/GetEstimateResponse.php new file mode 100644 index 000000000..d24e35ce0 --- /dev/null +++ b/src/PostOrder/Types/GetEstimateResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundInfo' + ], + 'returnShippingCostInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedShippingInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetFileResponse.php b/src/PostOrder/Types/GetFileResponse.php new file mode 100644 index 000000000..616ccff41 --- /dev/null +++ b/src/PostOrder/Types/GetFileResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnFileType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'files' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetInquiryRestRequest.php b/src/PostOrder/Types/GetInquiryRestRequest.php new file mode 100644 index 000000000..1cd7ba8c8 --- /dev/null +++ b/src/PostOrder/Types/GetInquiryRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetInquiryRestResponse.php b/src/PostOrder/Types/GetInquiryRestResponse.php new file mode 100644 index 000000000..f97ca3576 --- /dev/null +++ b/src/PostOrder/Types/GetInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetMetadataResponse.php b/src/PostOrder/Types/GetMetadataResponse.php new file mode 100644 index 000000000..687caa724 --- /dev/null +++ b/src/PostOrder/Types/GetMetadataResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnMetadataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metadata' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnCreationSessionResponse.php b/src/PostOrder/Types/GetReturnCreationSessionResponse.php new file mode 100644 index 000000000..05d7a2f38 --- /dev/null +++ b/src/PostOrder/Types/GetReturnCreationSessionResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnRequestType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftFilesRestRequest.php b/src/PostOrder/Types/GetReturnDraftFilesRestRequest.php new file mode 100644 index 000000000..a81e2f98c --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftFilesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftFilesRestResponse.php b/src/PostOrder/Types/GetReturnDraftFilesRestResponse.php new file mode 100644 index 000000000..8586efbc8 --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftFilesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftRestRequest.php b/src/PostOrder/Types/GetReturnDraftRestRequest.php new file mode 100644 index 000000000..cd24eff9a --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftRestResponse.php b/src/PostOrder/Types/GetReturnDraftRestResponse.php new file mode 100644 index 000000000..9d4c9fedd --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnEstimateRestRequest.php b/src/PostOrder/Types/GetReturnEstimateRestRequest.php new file mode 100644 index 000000000..7d49cfa0e --- /dev/null +++ b/src/PostOrder/Types/GetReturnEstimateRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnEstimateRestResponse.php b/src/PostOrder/Types/GetReturnEstimateRestResponse.php new file mode 100644 index 000000000..e96e7c4d7 --- /dev/null +++ b/src/PostOrder/Types/GetReturnEstimateRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnFilesRestRequest.php b/src/PostOrder/Types/GetReturnFilesRestRequest.php new file mode 100644 index 000000000..51e97bb77 --- /dev/null +++ b/src/PostOrder/Types/GetReturnFilesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnFilesRestResponse.php b/src/PostOrder/Types/GetReturnFilesRestResponse.php new file mode 100644 index 000000000..b003ab337 --- /dev/null +++ b/src/PostOrder/Types/GetReturnFilesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnMetadataRestRequest.php b/src/PostOrder/Types/GetReturnMetadataRestRequest.php new file mode 100644 index 000000000..c9fba9561 --- /dev/null +++ b/src/PostOrder/Types/GetReturnMetadataRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnMetadataRestResponse.php b/src/PostOrder/Types/GetReturnMetadataRestResponse.php new file mode 100644 index 000000000..d699913a9 --- /dev/null +++ b/src/PostOrder/Types/GetReturnMetadataRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnPreferencesRestResponse.php b/src/PostOrder/Types/GetReturnPreferencesRestResponse.php new file mode 100644 index 000000000..5a85f2034 --- /dev/null +++ b/src/PostOrder/Types/GetReturnPreferencesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRestRequest.php b/src/PostOrder/Types/GetReturnRestRequest.php new file mode 100644 index 000000000..24bcfabe9 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRestResponse.php b/src/PostOrder/Types/GetReturnRestResponse.php new file mode 100644 index 000000000..db263904c --- /dev/null +++ b/src/PostOrder/Types/GetReturnRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php b/src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php new file mode 100644 index 000000000..6dba6c668 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'ruleId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ], + 'trigger_date_range_from' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trigger_date_range_from' + ], + 'trigger_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trigger_date_range_to' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php b/src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php new file mode 100644 index 000000000..cf35d4b83 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleRestRequest.php b/src/PostOrder/Types/GetReturnRuleRestRequest.php new file mode 100644 index 000000000..574543fcb --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleRestResponse.php b/src/PostOrder/Types/GetReturnRuleRestResponse.php new file mode 100644 index 000000000..06ea38e92 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php b/src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php new file mode 100644 index 000000000..6d634a94e --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRulesRestRequest.php b/src/PostOrder/Types/GetReturnRulesRestRequest.php new file mode 100644 index 000000000..752ab4227 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRulesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRulesRestResponse.php b/src/PostOrder/Types/GetReturnRulesRestResponse.php new file mode 100644 index 000000000..b71dc9b3d --- /dev/null +++ b/src/PostOrder/Types/GetReturnRulesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnShippingLabelRestRequest.php b/src/PostOrder/Types/GetReturnShippingLabelRestRequest.php new file mode 100644 index 000000000..3f2651a66 --- /dev/null +++ b/src/PostOrder/Types/GetReturnShippingLabelRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnShippingLabelRestResponse.php b/src/PostOrder/Types/GetReturnShippingLabelRestResponse.php new file mode 100644 index 000000000..417c72bb8 --- /dev/null +++ b/src/PostOrder/Types/GetReturnShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetSellerReturnPreferenceResponse.php b/src/PostOrder/Types/GetSellerReturnPreferenceResponse.php new file mode 100644 index 000000000..8d8e55a9f --- /dev/null +++ b/src/PostOrder/Types/GetSellerReturnPreferenceResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'advanceRulesEnabled' + ], + 'basicRules' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'basicRules' + ], + 'RMARequired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMARequired' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetShipmentTrackingRestRequest.php b/src/PostOrder/Types/GetShipmentTrackingRestRequest.php new file mode 100644 index 000000000..eeefa0b5b --- /dev/null +++ b/src/PostOrder/Types/GetShipmentTrackingRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier_used' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'tracking_number' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tracking_number' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetShipmentTrackingRestResponse.php b/src/PostOrder/Types/GetShipmentTrackingRestResponse.php new file mode 100644 index 000000000..abcf11496 --- /dev/null +++ b/src/PostOrder/Types/GetShipmentTrackingRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetShippingLabelResponse.php b/src/PostOrder/Types/GetShippingLabelResponse.php new file mode 100644 index 000000000..3c658da58 --- /dev/null +++ b/src/PostOrder/Types/GetShippingLabelResponse.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'labelContent' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelContent' + ], + 'labelCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelCost' + ], + 'labelPrintStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelPrintStatus' + ], + 'labelURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetStoreCategoriesRestResponse.php b/src/PostOrder/Types/GetStoreCategoriesRestResponse.php new file mode 100644 index 000000000..2277a7799 --- /dev/null +++ b/src/PostOrder/Types/GetStoreCategoriesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetStoreCategoryResponse.php b/src/PostOrder/Types/GetStoreCategoryResponse.php new file mode 100644 index 000000000..87067ce54 --- /dev/null +++ b/src/PostOrder/Types/GetStoreCategoryResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\StoreCategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categories' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetSummaryResponse.php b/src/PostOrder/Types/GetSummaryResponse.php new file mode 100644 index 000000000..89962872c --- /dev/null +++ b/src/PostOrder/Types/GetSummaryResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CountSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'countSummary' + ], + 'members' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'members' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetTrackingHistoryResponse.php b/src/PostOrder/Types/GetTrackingHistoryResponse.php new file mode 100644 index 000000000..b9874ecf1 --- /dev/null +++ b/src/PostOrder/Types/GetTrackingHistoryResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'scanHistory' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ScanDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'scanHistory' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ], + 'trackingStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InitiateShippingLabelResponse.php b/src/PostOrder/Types/InitiateShippingLabelResponse.php new file mode 100644 index 000000000..57b0930e8 --- /dev/null +++ b/src/PostOrder/Types/InitiateShippingLabelResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'labelData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelData' + ], + 'labelURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryDetails.php b/src/PostOrder/Types/InquiryDetails.php new file mode 100644 index 000000000..2800ad55e --- /dev/null +++ b/src/PostOrder/Types/InquiryDetails.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AppealDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealDetails' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'escalationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationDate' + ], + 'expirationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expirationDate' + ], + 'lastBuyerRespDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastBuyerRespDate' + ], + 'refundAmounts' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundAmounts', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmounts' + ], + 'refundDeadlineDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDeadlineDate' + ], + 'totalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryDetailsResponse.php b/src/PostOrder/Types/InquiryDetailsResponse.php new file mode 100644 index 000000000..3c6536048 --- /dev/null +++ b/src/PostOrder/Types/InquiryDetailsResponse.php @@ -0,0 +1,151 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'extTransactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extTransactionId' + ], + 'initiator' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'initiator' + ], + 'inquiryDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\InquiryDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryDetails' + ], + 'inquiryHistoryDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ClaimHistoryResponse', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryHistoryDetails' + ], + 'inquiryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ], + 'inquiryQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryQuantity' + ], + 'itemDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemDetails' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDetails' + ], + 'sellerMakeItRightByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerMakeItRightByDate' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ], + 'viewPPTrasanctionUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'viewPPTrasanctionUrl' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquirySearchResponse.php b/src/PostOrder/Types/InquirySearchResponse.php new file mode 100644 index 000000000..e84faa5b7 --- /dev/null +++ b/src/PostOrder/Types/InquirySearchResponse.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\InquirySummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'members' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'totalNumberOfInquiries' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalNumberOfInquiries' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryStatusFilter.php b/src/PostOrder/Types/InquiryStatusFilter.php new file mode 100644 index 000000000..9bf0aa6c8 --- /dev/null +++ b/src/PostOrder/Types/InquiryStatusFilter.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquirySummaryType.php b/src/PostOrder/Types/InquirySummaryType.php new file mode 100644 index 000000000..b9a5d45a7 --- /dev/null +++ b/src/PostOrder/Types/InquirySummaryType.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer' + ], + 'claimAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'inquiryId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ], + 'inquiryStatusEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryStatusEnum' + ], + 'itemId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lastModifiedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'respondByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'respondByDate' + ], + 'seller' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'transactionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryVoluntaryRefundRequest.php b/src/PostOrder/Types/InquiryVoluntaryRefundRequest.php new file mode 100644 index 000000000..7c8964eba --- /dev/null +++ b/src/PostOrder/Types/InquiryVoluntaryRefundRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueCaseRefundRestRequest.php b/src/PostOrder/Types/IssueCaseRefundRestRequest.php new file mode 100644 index 000000000..a5f7c732f --- /dev/null +++ b/src/PostOrder/Types/IssueCaseRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueCaseRefundRestResponse.php b/src/PostOrder/Types/IssueCaseRefundRestResponse.php new file mode 100644 index 000000000..3cadc4cae --- /dev/null +++ b/src/PostOrder/Types/IssueCaseRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/IssueInquiryRefundRestRequest.php b/src/PostOrder/Types/IssueInquiryRefundRestRequest.php new file mode 100644 index 000000000..950c29570 --- /dev/null +++ b/src/PostOrder/Types/IssueInquiryRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueInquiryRefundRestResponse.php b/src/PostOrder/Types/IssueInquiryRefundRestResponse.php new file mode 100644 index 000000000..7cff5b831 --- /dev/null +++ b/src/PostOrder/Types/IssueInquiryRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/IssueRefundRequest.php b/src/PostOrder/Types/IssueRefundRequest.php new file mode 100644 index 000000000..ba1fb14fd --- /dev/null +++ b/src/PostOrder/Types/IssueRefundRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'refundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueRefundResponse.php b/src/PostOrder/Types/IssueRefundResponse.php new file mode 100644 index 000000000..1ccce5744 --- /dev/null +++ b/src/PostOrder/Types/IssueRefundResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueReturnRefundRestRequest.php b/src/PostOrder/Types/IssueReturnRefundRestRequest.php new file mode 100644 index 000000000..477d39a19 --- /dev/null +++ b/src/PostOrder/Types/IssueReturnRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueReturnRefundRestResponse.php b/src/PostOrder/Types/IssueReturnRefundRestResponse.php new file mode 100644 index 000000000..d9398fc38 --- /dev/null +++ b/src/PostOrder/Types/IssueReturnRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ItemDetailType.php b/src/PostOrder/Types/ItemDetailType.php new file mode 100644 index 000000000..7462ca012 --- /dev/null +++ b/src/PostOrder/Types/ItemDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemDetails.php b/src/PostOrder/Types/ItemDetails.php new file mode 100644 index 000000000..26298277e --- /dev/null +++ b/src/PostOrder/Types/ItemDetails.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemPictureUrl' + ], + 'itemPrice' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemPrice' + ], + 'itemTitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemTitle' + ], + 'viewPurchasedItemUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'viewPurchasedItemUrl' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemEligibilityResult.php b/src/PostOrder/Types/ItemEligibilityResult.php new file mode 100644 index 000000000..ffdf7fa5a --- /dev/null +++ b/src/PostOrder/Types/ItemEligibilityResult.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligible' + ], + 'failureReason' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'failureReason' + ], + 'itemId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemizedRefundDetailType.php b/src/PostOrder/Types/ItemizedRefundDetailType.php new file mode 100644 index 000000000..7916c9517 --- /dev/null +++ b/src/PostOrder/Types/ItemizedRefundDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmount' + ], + 'refundFeeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundFeeType' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemizedReturnShippingCostType.php b/src/PostOrder/Types/ItemizedReturnShippingCostType.php new file mode 100644 index 000000000..701613ccb --- /dev/null +++ b/src/PostOrder/Types/ItemizedReturnShippingCostType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'returnShippingCostType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnShippingCostType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ListDataType.php b/src/PostOrder/Types/ListDataType.php new file mode 100644 index 000000000..74b9d1d79 --- /dev/null +++ b/src/PostOrder/Types/ListDataType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkAsReceivedRequest.php b/src/PostOrder/Types/MarkAsReceivedRequest.php new file mode 100644 index 000000000..f7abe8a5a --- /dev/null +++ b/src/PostOrder/Types/MarkAsReceivedRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkAsShippedRequest.php b/src/PostOrder/Types/MarkAsShippedRequest.php new file mode 100644 index 000000000..8bad946c3 --- /dev/null +++ b/src/PostOrder/Types/MarkAsShippedRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierEnum' + ], + 'carrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierName' + ], + 'carrierUsed' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'shippedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkRefundSentRequest.php b/src/PostOrder/Types/MarkRefundSentRequest.php new file mode 100644 index 000000000..066e86808 --- /dev/null +++ b/src/PostOrder/Types/MarkRefundSentRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'partialRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'partialRefundAmount' + ], + 'refundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnReceivedRestRequest.php b/src/PostOrder/Types/MarkReturnReceivedRestRequest.php new file mode 100644 index 000000000..5fae8d9f5 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnReceivedRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnReceivedRestResponse.php b/src/PostOrder/Types/MarkReturnReceivedRestResponse.php new file mode 100644 index 000000000..4bfafc890 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnReceivedRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php b/src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php new file mode 100644 index 000000000..703c1d5bd --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php b/src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php new file mode 100644 index 000000000..72994e100 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundSentRestRequest.php b/src/PostOrder/Types/MarkReturnRefundSentRestRequest.php new file mode 100644 index 000000000..370a449cb --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundSentRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundSentRestResponse.php b/src/PostOrder/Types/MarkReturnRefundSentRestResponse.php new file mode 100644 index 000000000..ff8061822 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundSentRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/MarkReturnShippedRestRequest.php b/src/PostOrder/Types/MarkReturnShippedRestRequest.php new file mode 100644 index 000000000..1aeac76f8 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnShippedRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnShippedRestResponse.php b/src/PostOrder/Types/MarkReturnShippedRestResponse.php new file mode 100644 index 000000000..09456ac9b --- /dev/null +++ b/src/PostOrder/Types/MarkReturnShippedRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ModifyCustomListRequest.php b/src/PostOrder/Types/ModifyCustomListRequest.php new file mode 100644 index 000000000..2dad2d5ba --- /dev/null +++ b/src/PostOrder/Types/ModifyCustomListRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'customListDetail' + ], + 'forceDelete' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forceDelete' + ], + 'operation' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListModificationType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'operation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ModifyCustomListResponse.php b/src/PostOrder/Types/ModifyCustomListResponse.php new file mode 100644 index 000000000..864167503 --- /dev/null +++ b/src/PostOrder/Types/ModifyCustomListResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listId' + ], + 'ruleAffected' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ruleAffected' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ModifyDispositionRuleRequest.php b/src/PostOrder/Types/ModifyDispositionRuleRequest.php new file mode 100644 index 000000000..ea8d2270c --- /dev/null +++ b/src/PostOrder/Types/ModifyDispositionRuleRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleModificationType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'operation' + ], + 'priorityList' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PriorityListType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priorityList' + ], + 'ruleDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailInputType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleDetail' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementDetailType.php b/src/PostOrder/Types/MoneyMovementDetailType.php new file mode 100644 index 000000000..71b29ba93 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementDetailType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'externalPaymentId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'externalPaymentId' + ], + 'moneyMovementType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'moneyMovementType' + ], + 'paymentProvider' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentProvider' + ], + 'requestedAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestedAmount' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementEntries.php b/src/PostOrder/Types/MoneyMovementEntries.php new file mode 100644 index 000000000..9a7ce0b86 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementEntries.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementEntry', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'moneyMovementEntryList' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementEntry.php b/src/PostOrder/Types/MoneyMovementEntry.php new file mode 100644 index 000000000..19efe59f9 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementEntry.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'date' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementRef.php b/src/PostOrder/Types/MoneyMovementRef.php new file mode 100644 index 000000000..02b98dcb6 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementRef.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'idref' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/OrderCancelLineItem.php b/src/PostOrder/Types/OrderCancelLineItem.php new file mode 100644 index 000000000..703e802a7 --- /dev/null +++ b/src/PostOrder/Types/OrderCancelLineItem.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/OrderEligibilityCheckInfo.php b/src/PostOrder/Types/OrderEligibilityCheckInfo.php new file mode 100644 index 000000000..b451be3a1 --- /dev/null +++ b/src/PostOrder/Types/OrderEligibilityCheckInfo.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/OrderEligibilityResult.php b/src/PostOrder/Types/OrderEligibilityResult.php new file mode 100644 index 000000000..879c35c7b --- /dev/null +++ b/src/PostOrder/Types/OrderEligibilityResult.php @@ -0,0 +1,74 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligible' + ], + 'eligibleCancelReason' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'eligibleCancelReason' + ], + 'failureReason' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'failureReason' + ], + 'itemEligibilityResult' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemEligibilityResult', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemEligibilityResult' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/PaginationOutput.php b/src/PostOrder/Types/PaginationOutput.php new file mode 100644 index 000000000..d3660e8ce --- /dev/null +++ b/src/PostOrder/Types/PaginationOutput.php @@ -0,0 +1,67 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'totalEntries' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalEntries' + ], + 'totalPages' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalPages' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/PriorityListType.php b/src/PostOrder/Types/PriorityListType.php new file mode 100644 index 000000000..a5e63c500 --- /dev/null +++ b/src/PostOrder/Types/PriorityListType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ruleId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProcessReturnRequestRestRequest.php b/src/PostOrder/Types/ProcessReturnRequestRestRequest.php new file mode 100644 index 000000000..aee621431 --- /dev/null +++ b/src/PostOrder/Types/ProcessReturnRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProcessReturnRequestRestResponse.php b/src/PostOrder/Types/ProcessReturnRequestRestResponse.php new file mode 100644 index 000000000..4705e1378 --- /dev/null +++ b/src/PostOrder/Types/ProcessReturnRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php b/src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php new file mode 100644 index 000000000..50315c5bc --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php b/src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php new file mode 100644 index 000000000..5edb84a4b --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php new file mode 100644 index 000000000..fa8f95629 --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php new file mode 100644 index 000000000..efee5adf8 --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideLabelRequest.php b/src/PostOrder/Types/ProvideLabelRequest.php new file mode 100644 index 000000000..108134c3c --- /dev/null +++ b/src/PostOrder/Types/ProvideLabelRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierEnum' + ], + 'carrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierName' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ], + 'forwardShippingLabelProvided' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forwardShippingLabelProvided' + ], + 'labelAction' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelAction' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ], + 'labelSentDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelSentDate' + ], + 'noLabelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'noLabelReason' + ], + 'returnLabelCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\B:Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnLabelCost' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideLabelResponse.php b/src/PostOrder/Types/ProvideLabelResponse.php new file mode 100644 index 000000000..94dffa5fc --- /dev/null +++ b/src/PostOrder/Types/ProvideLabelResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelData' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ], + 'labelURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php b/src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php new file mode 100644 index 000000000..cb92e06af --- /dev/null +++ b/src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php b/src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php new file mode 100644 index 000000000..3a6876632 --- /dev/null +++ b/src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideShipmentInfoRequest.php b/src/PostOrder/Types/ProvideShipmentInfoRequest.php new file mode 100644 index 000000000..c8e07ad41 --- /dev/null +++ b/src/PostOrder/Types/ProvideShipmentInfoRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvidesReturnAddressRestRequest.php b/src/PostOrder/Types/ProvidesReturnAddressRestRequest.php new file mode 100644 index 000000000..6dddd9dcf --- /dev/null +++ b/src/PostOrder/Types/ProvidesReturnAddressRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvidesReturnAddressRestResponse.php b/src/PostOrder/Types/ProvidesReturnAddressRestResponse.php new file mode 100644 index 000000000..c45bdd6e9 --- /dev/null +++ b/src/PostOrder/Types/ProvidesReturnAddressRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/RefundAmounts.php b/src/PostOrder/Types/RefundAmounts.php new file mode 100644 index 000000000..b4da9179f --- /dev/null +++ b/src/PostOrder/Types/RefundAmounts.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerFinalAcceptRefundAmt' + ], + 'buyerInitExpectRefundAmt' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerInitExpectRefundAmt' + ], + 'internationalRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'internationalRefundAmount' + ], + 'refundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RefundDetailType.php b/src/PostOrder/Types/RefundDetailType.php new file mode 100644 index 000000000..7788fb3d9 --- /dev/null +++ b/src/PostOrder/Types/RefundDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemizedRefundDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemizedRefundDetail' + ], + 'totalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RefundInfoType.php b/src/PostOrder/Types/RefundInfoType.php new file mode 100644 index 000000000..3be2dbf26 --- /dev/null +++ b/src/PostOrder/Types/RefundInfoType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ActualRefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualRefundDetail' + ], + 'estimatedRefundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedRefundDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RefundType.php b/src/PostOrder/Types/RefundType.php new file mode 100644 index 000000000..9a5dfbd62 --- /dev/null +++ b/src/PostOrder/Types/RefundType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RejectCancelRequest.php b/src/PostOrder/Types/RejectCancelRequest.php new file mode 100644 index 000000000..fb5b72322 --- /dev/null +++ b/src/PostOrder/Types/RejectCancelRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RejectCancellationRequestRestRequest.php b/src/PostOrder/Types/RejectCancellationRequestRestRequest.php new file mode 100644 index 000000000..468af0efb --- /dev/null +++ b/src/PostOrder/Types/RejectCancellationRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RejectCancellationRequestRestResponse.php b/src/PostOrder/Types/RejectCancellationRequestRestResponse.php new file mode 100644 index 000000000..eeaecee76 --- /dev/null +++ b/src/PostOrder/Types/RejectCancellationRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ResponseHistoryAttributesType.php b/src/PostOrder/Types/ResponseHistoryAttributesType.php new file mode 100644 index 000000000..87fdd70b2 --- /dev/null +++ b/src/PostOrder/Types/ResponseHistoryAttributesType.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'escalateReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalateReason' + ], + 'moneyMovementRef' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementRef', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'moneyMovementRef' + ], + 'partialRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'partialRefundAmount' + ], + 'RMA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMA' + ], + 'sellerReturnAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerReturnAddress' + ], + 'toEmailAddress' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'toEmailAddress' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnAddress.php b/src/PostOrder/Types/ReturnAddress.php new file mode 100644 index 000000000..a308a850f --- /dev/null +++ b/src/PostOrder/Types/ReturnAddress.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'address' + ], + 'editable' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'editable' + ], + 'firstName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstName' + ], + 'lastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastName' + ], + 'RMA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMA' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnAddressRequest.php b/src/PostOrder/Types/ReturnAddressRequest.php new file mode 100644 index 000000000..9984e7eb5 --- /dev/null +++ b/src/PostOrder/Types/ReturnAddressRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstName' + ], + 'lastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastName' + ], + 'returnAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnAddress' + ], + 'RMA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMA' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnAddressType.php b/src/PostOrder/Types/ReturnAddressType.php new file mode 100644 index 000000000..9aa1fff18 --- /dev/null +++ b/src/PostOrder/Types/ReturnAddressType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'address' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnCloseInfoType.php b/src/PostOrder/Types/ReturnCloseInfoType.php new file mode 100644 index 000000000..3593fa40c --- /dev/null +++ b/src/PostOrder/Types/ReturnCloseInfoType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCloseComment' + ], + 'buyerCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCloseReason' + ], + 'returnCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnCloseReason' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnCreationInfoType.php b/src/PostOrder/Types/ReturnCreationInfoType.php new file mode 100644 index 000000000..4ff55145d --- /dev/null +++ b/src/PostOrder/Types/ReturnCreationInfoType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'item' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnDetailType.php b/src/PostOrder/Types/ReturnDetailType.php new file mode 100644 index 000000000..113f76bcb --- /dev/null +++ b/src/PostOrder/Types/ReturnDetailType.php @@ -0,0 +1,151 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerAddress' + ], + 'buyerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerLoginName' + ], + 'closeInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnCloseInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'closeInfo' + ], + 'dispositionRuleDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DispositionRuleDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dispositionRuleDetail' + ], + 'files' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnFileType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'files' + ], + 'holdInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnHoldInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdInfo' + ], + 'itemDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemDetail' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'moneyMovementInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'moneyMovementInfo' + ], + 'refundInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundInfo' + ], + 'replacementShipmentInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'replacementShipmentInfo' + ], + 'responseHistory' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnResponseHistoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responseHistory' + ], + 'returnShipmentInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShipmentInfo' + ], + 'RMANumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMANumber' + ], + 'sellerAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerAddress' + ], + 'sellerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerLoginName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityErrorDetailType.php b/src/PostOrder/Types/ReturnEligibilityErrorDetailType.php new file mode 100644 index 000000000..4d9a26f59 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityErrorDetailType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityErrorType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityError' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php b/src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php new file mode 100644 index 000000000..f5947bee7 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkType' + ], + 'eligibilityInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResultType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityItemType.php b/src/PostOrder/Types/ReturnEligibilityItemType.php new file mode 100644 index 000000000..8e4f73eb2 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityItemType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityPerItemType.php b/src/PostOrder/Types/ReturnEligibilityPerItemType.php new file mode 100644 index 000000000..ada87a646 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityPerItemType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemPerCheckTypeResult', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'eligibilityResultsPerCheckType' + ], + 'returnItem' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnItem' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnFileType.php b/src/PostOrder/Types/ReturnFileType.php new file mode 100644 index 000000000..ab5319f0f --- /dev/null +++ b/src/PostOrder/Types/ReturnFileType.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'fileData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileData' + ], + 'fileFormat' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileFormat' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ], + 'filePurpose' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filePurpose' + ], + 'fileStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileStatus' + ], + 'resizedFileData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'resizedFileData' + ], + 'submitter' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'submitter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnHoldInfoType.php b/src/PostOrder/Types/ReturnHoldInfoType.php new file mode 100644 index 000000000..7f11c83b7 --- /dev/null +++ b/src/PostOrder/Types/ReturnHoldInfoType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdCreationDate' + ], + 'holdReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdReferenceId' + ], + 'holdReleaseDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdReleaseDate' + ], + 'holdStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdStatus' + ], + 'holdTransactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdTransactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnItemType.php b/src/PostOrder/Types/ReturnItemType.php new file mode 100644 index 000000000..5a94c3c36 --- /dev/null +++ b/src/PostOrder/Types/ReturnItemType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnMetadataType.php b/src/PostOrder/Types/ReturnMetadataType.php new file mode 100644 index 000000000..bf0b88ac5 --- /dev/null +++ b/src/PostOrder/Types/ReturnMetadataType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'isArray' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isArray' + ], + 'siteMetadataKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'siteMetadataKey' + ], + 'values' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'values' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnPolicyType.php b/src/PostOrder/Types/ReturnPolicyType.php new file mode 100644 index 000000000..dcca246e9 --- /dev/null +++ b/src/PostOrder/Types/ReturnPolicyType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMARequired' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnRequestType.php b/src/PostOrder/Types/ReturnRequestType.php new file mode 100644 index 000000000..136f9b4e3 --- /dev/null +++ b/src/PostOrder/Types/ReturnRequestType.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'requestType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestType' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnResponseDueType.php b/src/PostOrder/Types/ReturnResponseDueType.php new file mode 100644 index 000000000..a3ecbc070 --- /dev/null +++ b/src/PostOrder/Types/ReturnResponseDueType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activityDue' + ], + 'respondByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'respondByDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnResponseHistoryType.php b/src/PostOrder/Types/ReturnResponseHistoryType.php new file mode 100644 index 000000000..0bbd9c62e --- /dev/null +++ b/src/PostOrder/Types/ReturnResponseHistoryType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activity' + ], + 'attributes' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ResponseHistoryAttributesType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'attributes' + ], + 'author' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'author' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'fromState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fromState' + ], + 'notes' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'notes' + ], + 'toState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'toState' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnShippingCostDetailType.php b/src/PostOrder/Types/ReturnShippingCostDetailType.php new file mode 100644 index 000000000..9cf0f1ae9 --- /dev/null +++ b/src/PostOrder/Types/ReturnShippingCostDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemizedReturnShippingCostType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemizedReturnShippingCost' + ], + 'totalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnShippingCostType.php b/src/PostOrder/Types/ReturnShippingCostType.php new file mode 100644 index 000000000..987c93f98 --- /dev/null +++ b/src/PostOrder/Types/ReturnShippingCostType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnSortField.php b/src/PostOrder/Types/ReturnSortField.php new file mode 100644 index 000000000..c3dba73ce --- /dev/null +++ b/src/PostOrder/Types/ReturnSortField.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'enumValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'enumValue' + ], + 'field' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnSummaryType.php b/src/PostOrder/Types/ReturnSummaryType.php new file mode 100644 index 000000000..d592fdd43 --- /dev/null +++ b/src/PostOrder/Types/ReturnSummaryType.php @@ -0,0 +1,151 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AvailableOptionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'buyerAvailableOptions' + ], + 'buyerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerLoginName' + ], + 'buyerResponseDue' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnResponseDueType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponseDue' + ], + 'buyerTotalRefund' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\TotalRefundAmountType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerTotalRefund' + ], + 'creationInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnCreationInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationInfo' + ], + 'currentType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentType' + ], + 'dispositionRuleTriggered' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dispositionRuleTriggered' + ], + 'escalationInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EscalationInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationInfo' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'returnPolicy' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnPolicyType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicy' + ], + 'sellerAvailableOptions' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AvailableOptionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sellerAvailableOptions' + ], + 'sellerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerLoginName' + ], + 'sellerResponseDue' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnResponseDueType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerResponseDue' + ], + 'sellerTotalRefund' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\TotalRefundAmountType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerTotalRefund' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionDataDetailType.php b/src/PostOrder/Types/RuleActionDataDetailType.php new file mode 100644 index 000000000..ab61b7b82 --- /dev/null +++ b/src/PostOrder/Types/RuleActionDataDetailType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionDataType.php b/src/PostOrder/Types/RuleActionDataType.php new file mode 100644 index 000000000..2cd89e7f4 --- /dev/null +++ b/src/PostOrder/Types/RuleActionDataType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionDetailType.php b/src/PostOrder/Types/RuleActionDetailType.php new file mode 100644 index 000000000..9620ef952 --- /dev/null +++ b/src/PostOrder/Types/RuleActionDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'actionData' + ], + 'dataType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'isInvalid' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isInvalid' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionInputType.php b/src/PostOrder/Types/RuleActionInputType.php new file mode 100644 index 000000000..fae14a1ba --- /dev/null +++ b/src/PostOrder/Types/RuleActionInputType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'actionData' + ], + 'actionDataType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDataType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleConditionDetailType.php b/src/PostOrder/Types/RuleConditionDetailType.php new file mode 100644 index 000000000..ef0c263df --- /dev/null +++ b/src/PostOrder/Types/RuleConditionDetailType.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ConditionListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataList' + ], + 'isChecked' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isChecked' + ], + 'isEbayPlus' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isEbayPlus' + ], + 'isInvalid' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isInvalid' + ], + 'storeCategory' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeCategory' + ], + 'storeId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleConditionInputType.php b/src/PostOrder/Types/RuleConditionInputType.php new file mode 100644 index 000000000..8597222b2 --- /dev/null +++ b/src/PostOrder/Types/RuleConditionInputType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataList' + ], + 'dataRange' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ConditionDataRangeType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataRange' + ], + 'isEbayPlus' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isEbayPlus' + ], + 'storeCategory' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeCategory' + ], + 'storeId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleDetailInputType.php b/src/PostOrder/Types/RuleDetailInputType.php new file mode 100644 index 000000000..675a4c373 --- /dev/null +++ b/src/PostOrder/Types/RuleDetailInputType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionInputType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDetail' + ], + 'condition' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionInputType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'priority' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleDetailType.php b/src/PostOrder/Types/RuleDetailType.php new file mode 100644 index 000000000..42746304d --- /dev/null +++ b/src/PostOrder/Types/RuleDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDetail' + ], + 'condition' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'ruleSummary' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleSummaryType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleSummary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleModificationType.php b/src/PostOrder/Types/RuleModificationType.php new file mode 100644 index 000000000..5e0d2210b --- /dev/null +++ b/src/PostOrder/Types/RuleModificationType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleSummaryType.php b/src/PostOrder/Types/RuleSummaryType.php new file mode 100644 index 000000000..c196cde70 --- /dev/null +++ b/src/PostOrder/Types/RuleSummaryType.php @@ -0,0 +1,81 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'count' + ], + 'countInTestMode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countInTestMode' + ], + 'invalidAction' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invalidAction' + ], + 'invalidConditions' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'invalidConditions' + ], + 'lastModifiedDate' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'priority' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleTemplateDetailType.php b/src/PostOrder/Types/RuleTemplateDetailType.php new file mode 100644 index 000000000..d30c81caf --- /dev/null +++ b/src/PostOrder/Types/RuleTemplateDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDetail' + ], + 'condition' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'condition' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleTriggerHistDetailType.php b/src/PostOrder/Types/RuleTriggerHistDetailType.php new file mode 100644 index 000000000..9c92accec --- /dev/null +++ b/src/PostOrder/Types/RuleTriggerHistDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Java:XMLGregorianCalendar', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDate' + ], + 'returnId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ScanDetailType.php b/src/PostOrder/Types/ScanDetailType.php new file mode 100644 index 000000000..92c53b34f --- /dev/null +++ b/src/PostOrder/Types/ScanDetailType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventCity' + ], + 'eventCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventCode' + ], + 'eventDesc' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventDesc' + ], + 'eventPostalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventPostalCode' + ], + 'eventStateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventStateOrProvince' + ], + 'eventStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventStatus' + ], + 'eventTime' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventTime' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchCancellationsRestRequest.php b/src/PostOrder/Types/SearchCancellationsRestRequest.php new file mode 100644 index 000000000..fffdbc28c --- /dev/null +++ b/src/PostOrder/Types/SearchCancellationsRestRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer_login_name' + ], + 'cancel_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancel_id' + ], + 'creation_date_range_from' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_from' + ], + 'creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_to' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'legacy_order_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacy_order_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'seller_login_name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller_login_name' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchCancellationsRestResponse.php b/src/PostOrder/Types/SearchCancellationsRestResponse.php new file mode 100644 index 000000000..43917b67b --- /dev/null +++ b/src/PostOrder/Types/SearchCancellationsRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SearchCasesRestRequest.php b/src/PostOrder/Types/SearchCasesRestRequest.php new file mode 100644 index 000000000..c327b8443 --- /dev/null +++ b/src/PostOrder/Types/SearchCasesRestRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'case_creation_date_range_from' + ], + 'case_creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'case_creation_date_range_to' + ], + 'case_status_filter' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'case_status_filter' + ], + 'fieldgroups' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'order_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order_id' + ], + 'return_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_id' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchCasesRestResponse.php b/src/PostOrder/Types/SearchCasesRestResponse.php new file mode 100644 index 000000000..5934c6396 --- /dev/null +++ b/src/PostOrder/Types/SearchCasesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SearchInquiriesRestRequest.php b/src/PostOrder/Types/SearchInquiriesRestRequest.php new file mode 100644 index 000000000..5c5104c18 --- /dev/null +++ b/src/PostOrder/Types/SearchInquiriesRestRequest.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ], + 'inquiry_creation_date_range_from' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiry_creation_date_range_from' + ], + 'inquiry_creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiry_creation_date_range_to' + ], + 'inquiry_status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiry_status' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'order_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order_id' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchInquiriesRestResponse.php b/src/PostOrder/Types/SearchInquiriesRestResponse.php new file mode 100644 index 000000000..c2f7f0aab --- /dev/null +++ b/src/PostOrder/Types/SearchInquiriesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SearchReturnsRestRequest.php b/src/PostOrder/Types/SearchReturnsRestRequest.php new file mode 100644 index 000000000..f874be88d --- /dev/null +++ b/src/PostOrder/Types/SearchReturnsRestRequest.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_from' + ], + 'creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_to' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'return_state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_state' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'states' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'states' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchReturnsRestResponse.php b/src/PostOrder/Types/SearchReturnsRestResponse.php new file mode 100644 index 000000000..e06f24fb8 --- /dev/null +++ b/src/PostOrder/Types/SearchReturnsRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SellerProvideRefundInfoRequest.php b/src/PostOrder/Types/SellerProvideRefundInfoRequest.php new file mode 100644 index 000000000..d3c6788bc --- /dev/null +++ b/src/PostOrder/Types/SellerProvideRefundInfoRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendInquiryMessageRestRequest.php b/src/PostOrder/Types/SendInquiryMessageRestRequest.php new file mode 100644 index 000000000..782eaa8ad --- /dev/null +++ b/src/PostOrder/Types/SendInquiryMessageRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendInquiryMessageRestResponse.php b/src/PostOrder/Types/SendInquiryMessageRestResponse.php new file mode 100644 index 000000000..cc8ae3492 --- /dev/null +++ b/src/PostOrder/Types/SendInquiryMessageRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SendMessageRequest.php b/src/PostOrder/Types/SendMessageRequest.php new file mode 100644 index 000000000..aeac0b59a --- /dev/null +++ b/src/PostOrder/Types/SendMessageRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendReturnMessageRestRequest.php b/src/PostOrder/Types/SendReturnMessageRestRequest.php new file mode 100644 index 000000000..99226419f --- /dev/null +++ b/src/PostOrder/Types/SendReturnMessageRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendReturnMessageRestResponse.php b/src/PostOrder/Types/SendReturnMessageRestResponse.php new file mode 100644 index 000000000..3e760e8ae --- /dev/null +++ b/src/PostOrder/Types/SendReturnMessageRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SendReturnShippingLabelRestRequest.php b/src/PostOrder/Types/SendReturnShippingLabelRestRequest.php new file mode 100644 index 000000000..22b39561a --- /dev/null +++ b/src/PostOrder/Types/SendReturnShippingLabelRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_id' + ], + 'to_email_address' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'to_email_address' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendReturnShippingLabelRestResponse.php b/src/PostOrder/Types/SendReturnShippingLabelRestResponse.php new file mode 100644 index 000000000..b32ffb9db --- /dev/null +++ b/src/PostOrder/Types/SendReturnShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SendShippingLabelResponse.php b/src/PostOrder/Types/SendShippingLabelResponse.php new file mode 100644 index 000000000..3cb0992f2 --- /dev/null +++ b/src/PostOrder/Types/SendShippingLabelResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnCreationSessionRequest.php b/src/PostOrder/Types/SetReturnCreationSessionRequest.php new file mode 100644 index 000000000..8f594c2a2 --- /dev/null +++ b/src/PostOrder/Types/SetReturnCreationSessionRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnRequestType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnCreationSessionResponse.php b/src/PostOrder/Types/SetReturnCreationSessionResponse.php new file mode 100644 index 000000000..1eb5dd5ca --- /dev/null +++ b/src/PostOrder/Types/SetReturnCreationSessionResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnPreferencesRestRequest.php b/src/PostOrder/Types/SetReturnPreferencesRestRequest.php new file mode 100644 index 000000000..7351e26f4 --- /dev/null +++ b/src/PostOrder/Types/SetReturnPreferencesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnPreferencesRestResponse.php b/src/PostOrder/Types/SetReturnPreferencesRestResponse.php new file mode 100644 index 000000000..78e20139d --- /dev/null +++ b/src/PostOrder/Types/SetReturnPreferencesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SetSellerReturnPreferenceRequest.php b/src/PostOrder/Types/SetSellerReturnPreferenceRequest.php new file mode 100644 index 000000000..993fd47d0 --- /dev/null +++ b/src/PostOrder/Types/SetSellerReturnPreferenceRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMARequired' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentInfoRequest.php b/src/PostOrder/Types/ShipmentInfoRequest.php new file mode 100644 index 000000000..e9f0aa876 --- /dev/null +++ b/src/PostOrder/Types/ShipmentInfoRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'proofOfShipmentUploaded' + ], + 'sellerComments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerComments' + ], + 'shippedWithTracking' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedWithTracking' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentTrackingDetailType.php b/src/PostOrder/Types/ShipmentTrackingDetailType.php new file mode 100644 index 000000000..d099c87eb --- /dev/null +++ b/src/PostOrder/Types/ShipmentTrackingDetailType.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'currentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentStatus' + ], + 'estimateFromDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimateFromDate' + ], + 'estimateToDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimateToDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ], + 'trackingURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingURL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentTrackingType.php b/src/PostOrder/Types/ShipmentTrackingType.php new file mode 100644 index 000000000..e7c2aaf5e --- /dev/null +++ b/src/PostOrder/Types/ShipmentTrackingType.php @@ -0,0 +1,214 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'active' + ], + 'actualDeliveryDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualDeliveryDate' + ], + 'actualShipDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualShipDate' + ], + 'carrierEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierEnum' + ], + 'carrierId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierId' + ], + 'carrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierName' + ], + 'carrierUsed' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'deliveryDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDate' + ], + 'deliveryStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryStatus' + ], + 'destinationAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'destinationAddress' + ], + 'errorCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorCode' + ], + 'labelAvailableUntilDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelAvailableUntilDate' + ], + 'labelDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelDate' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ], + 'labelPrintExpired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelPrintExpired' + ], + 'labelVoidExpired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelVoidExpired' + ], + 'markAsReceived' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'markAsReceived' + ], + 'maxDeliveryEstimate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxDeliveryEstimate' + ], + 'minDeliveryEstimate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minDeliveryEstimate' + ], + 'originAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originAddress' + ], + 'shipDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipDate' + ], + 'shipmentId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentId' + ], + 'shippedBy' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedBy' + ], + 'shippingMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingMethod' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentType.php b/src/PostOrder/Types/ShipmentType.php new file mode 100644 index 000000000..b9d14ed1e --- /dev/null +++ b/src/PostOrder/Types/ShipmentType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentTrackingType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'allShipmentTrackings' + ], + 'payee' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payee' + ], + 'shipmentTracking' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentTrackingType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTracking' + ], + 'shippingLabelCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnShippingCostDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingLabelCost' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/StatusType.php b/src/PostOrder/Types/StatusType.php new file mode 100644 index 000000000..502968131 --- /dev/null +++ b/src/PostOrder/Types/StatusType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/StoreCategoryType.php b/src/PostOrder/Types/StoreCategoryType.php new file mode 100644 index 000000000..dfe998067 --- /dev/null +++ b/src/PostOrder/Types/StoreCategoryType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'categoryName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryName' + ], + 'isLeaf' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isLeaf' + ], + 'isPseudo' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isPseudo' + ], + 'storeId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitCancellationRequestRestRequest.php b/src/PostOrder/Types/SubmitCancellationRequestRestRequest.php new file mode 100644 index 000000000..a93fb4945 --- /dev/null +++ b/src/PostOrder/Types/SubmitCancellationRequestRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitCancellationRequestRestResponse.php b/src/PostOrder/Types/SubmitCancellationRequestRestResponse.php new file mode 100644 index 000000000..e214409c4 --- /dev/null +++ b/src/PostOrder/Types/SubmitCancellationRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SubmitFileRequest.php b/src/PostOrder/Types/SubmitFileRequest.php new file mode 100644 index 000000000..7245434ef --- /dev/null +++ b/src/PostOrder/Types/SubmitFileRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filePurpose' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitFileResponse.php b/src/PostOrder/Types/SubmitFileResponse.php new file mode 100644 index 000000000..1ead440ea --- /dev/null +++ b/src/PostOrder/Types/SubmitFileResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'removedFileIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitReturnFileRestRequest.php b/src/PostOrder/Types/SubmitReturnFileRestRequest.php new file mode 100644 index 000000000..e61a7410e --- /dev/null +++ b/src/PostOrder/Types/SubmitReturnFileRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitReturnFileRestResponse.php b/src/PostOrder/Types/SubmitReturnFileRestResponse.php new file mode 100644 index 000000000..1a81251c0 --- /dev/null +++ b/src/PostOrder/Types/SubmitReturnFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/Text.php b/src/PostOrder/Types/Text.php new file mode 100644 index 000000000..4af15a8dd --- /dev/null +++ b/src/PostOrder/Types/Text.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'content' + ], + 'language' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'language' + ], + 'translatedFromContent' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'translatedFromContent' + ], + 'translatedFromLanguage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'translatedFromLanguage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/TotalRefundAmountType.php b/src/PostOrder/Types/TotalRefundAmountType.php new file mode 100644 index 000000000..5d496a684 --- /dev/null +++ b/src/PostOrder/Types/TotalRefundAmountType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualRefundAmount' + ], + 'estimatedRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedRefundAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateCustomListRestRequest.php b/src/PostOrder/Types/UpdateCustomListRestRequest.php new file mode 100644 index 000000000..6f3641da5 --- /dev/null +++ b/src/PostOrder/Types/UpdateCustomListRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateCustomListRestResponse.php b/src/PostOrder/Types/UpdateCustomListRestResponse.php new file mode 100644 index 000000000..95014dbc5 --- /dev/null +++ b/src/PostOrder/Types/UpdateCustomListRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateReturnDraftRestRequest.php b/src/PostOrder/Types/UpdateReturnDraftRestRequest.php new file mode 100644 index 000000000..e606a09e9 --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnDraftRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateReturnDraftRestResponse.php b/src/PostOrder/Types/UpdateReturnDraftRestResponse.php new file mode 100644 index 000000000..73d880485 --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnDraftRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateReturnRulesRestRequest.php b/src/PostOrder/Types/UpdateReturnRulesRestRequest.php new file mode 100644 index 000000000..7360badbf --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnRulesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateReturnRulesRestResponse.php b/src/PostOrder/Types/UpdateReturnRulesRestResponse.php new file mode 100644 index 000000000..a7fa2358a --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnRulesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php b/src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php new file mode 100644 index 000000000..8b067bdf8 --- /dev/null +++ b/src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php b/src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php new file mode 100644 index 000000000..98eb1c4ea --- /dev/null +++ b/src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateTrackingRequest.php b/src/PostOrder/Types/UpdateTrackingRequest.php new file mode 100644 index 000000000..59689f6ae --- /dev/null +++ b/src/PostOrder/Types/UpdateTrackingRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'newCarrierEnum' + ], + 'newCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'newCarrierName' + ], + 'newTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'newTrackingNumber' + ], + 'usedCarrierEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'usedCarrierEnum' + ], + 'usedCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'usedCarrierName' + ], + 'usedTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'usedTrackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadFileRequest.php b/src/PostOrder/Types/UploadFileRequest.php new file mode 100644 index 000000000..52a663808 --- /dev/null +++ b/src/PostOrder/Types/UploadFileRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'data' + ], + 'fileName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileName' + ], + 'filePurpose' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filePurpose' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadFileResponse.php b/src/PostOrder/Types/UploadFileResponse.php new file mode 100644 index 000000000..9205d69e2 --- /dev/null +++ b/src/PostOrder/Types/UploadFileResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'compressedFileData' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadReturnDraftFileRestRequest.php b/src/PostOrder/Types/UploadReturnDraftFileRestRequest.php new file mode 100644 index 000000000..ae7f5fcc7 --- /dev/null +++ b/src/PostOrder/Types/UploadReturnDraftFileRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadReturnDraftFileRestResponse.php b/src/PostOrder/Types/UploadReturnDraftFileRestResponse.php new file mode 100644 index 000000000..8242fa319 --- /dev/null +++ b/src/PostOrder/Types/UploadReturnDraftFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UploadReturnFileRestRequest.php b/src/PostOrder/Types/UploadReturnFileRestRequest.php new file mode 100644 index 000000000..819c61b1a --- /dev/null +++ b/src/PostOrder/Types/UploadReturnFileRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadReturnFileRestResponse.php b/src/PostOrder/Types/UploadReturnFileRestResponse.php new file mode 100644 index 000000000..99d84801c --- /dev/null +++ b/src/PostOrder/Types/UploadReturnFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/VoidLabelRequest.php b/src/PostOrder/Types/VoidLabelRequest.php new file mode 100644 index 000000000..7b5a63bc0 --- /dev/null +++ b/src/PostOrder/Types/VoidLabelRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/VoidShippingLabelRestRequest.php b/src/PostOrder/Types/VoidShippingLabelRestRequest.php new file mode 100644 index 000000000..4134eec3f --- /dev/null +++ b/src/PostOrder/Types/VoidShippingLabelRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/VoidShippingLabelRestResponse.php b/src/PostOrder/Types/VoidShippingLabelRestResponse.php new file mode 100644 index 000000000..d9ed20105 --- /dev/null +++ b/src/PostOrder/Types/VoidShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/VoluntaryRefundResponse.php b/src/PostOrder/Types/VoluntaryRefundResponse.php new file mode 100644 index 000000000..e9badbcf0 --- /dev/null +++ b/src/PostOrder/Types/VoluntaryRefundResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResult', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundResult' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/VoluntaryRefundResult.php b/src/PostOrder/Types/VoluntaryRefundResult.php new file mode 100644 index 000000000..8663ebdef --- /dev/null +++ b/src/PostOrder/Types/VoluntaryRefundResult.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundSource' + ], + 'refundStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Enums/AckValue.php b/src/Product/Enums/AckValue.php new file mode 100644 index 000000000..566f1fe45 --- /dev/null +++ b/src/Product/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Product\Services\ProductService::API_VERSION + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_APP_ID] = $this->getConfig('credentials')->getAppId(); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/Product/Services/ProductService.php b/src/Product/Services/ProductService.php new file mode 100644 index 000000000..1d400b9d0 --- /dev/null +++ b/src/Product/Services/ProductService.php @@ -0,0 +1,178 @@ +findProductsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindProductsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findProductsAsync(\DTS\eBaySDK\Product\Types\FindProductsRequest $request) + { + return $this->callOperationAsync( + 'findProducts', + $request, + '\DTS\eBaySDK\Product\Types\FindProductsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request + * @return \DTS\eBaySDK\Product\Types\FindProductsResponse + */ + public function findProductsByCompatibility(\DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request) + { + return $this->findProductsByCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findProductsByCompatibilityAsync(\DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request) + { + return $this->callOperationAsync( + 'findProductsByCompatibility', + $request, + '\DTS\eBaySDK\Product\Types\FindProductsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request + * @return \DTS\eBaySDK\Product\Types\GetProductDetailsResponse + */ + public function getProductDetails(\DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request) + { + return $this->getProductDetailsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductDetailsAsync(\DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request) + { + return $this->callOperationAsync( + 'getProductDetails', + $request, + '\DTS\eBaySDK\Product\Types\GetProductDetailsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request + * @return \DTS\eBaySDK\Product\Types\GetProductCompatiblitiesResponse + */ + public function getProductCompatibilities(\DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request) + { + return $this->getProductCompatibilitiesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductCompatibilitiesAsync(\DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request) + { + return $this->callOperationAsync( + 'getProductCompatibilities', + $request, + '\DTS\eBaySDK\Product\Types\GetProductCompatiblitiesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request + * @return \DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationResponse + */ + public function findCompatibilitiesBySpecification(\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request) + { + return $this->findCompatibilitiesBySpecificationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findCompatibilitiesBySpecificationAsync(\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request) + { + return $this->callOperationAsync( + 'findCompatibilitiesBySpecification', + $request, + '\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\AddProductsRequest $request + * @return \DTS\eBaySDK\Product\Types\AddProductsResponse + */ + public function addProducts(\DTS\eBaySDK\Product\Types\AddProductsRequest $request) + { + return $this->addProductsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\AddProductsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addProductsAsync(\DTS\eBaySDK\Product\Types\AddProductsRequest $request) + { + return $this->callOperationAsync( + 'addProducts', + $request, + '\DTS\eBaySDK\Product\Types\AddProductsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request + * @return \DTS\eBaySDK\Product\Types\GetProductSubmissionsResponse + */ + public function getProductSubmissions(\DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request) + { + return $this->getProductSubmissionsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSubmissionsAsync(\DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request) + { + return $this->callOperationAsync( + 'getProductSubmissions', + $request, + '\DTS\eBaySDK\Product\Types\GetProductSubmissionsResponse' + ); + } +} diff --git a/src/Product/Types/AddProductResponse.php b/src/Product/Types/AddProductResponse.php new file mode 100644 index 000000000..b8d8ec5cc --- /dev/null +++ b/src/Product/Types/AddProductResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ], + 'status' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/AddProductsRequest.php b/src/Product/Types/AddProductsRequest.php new file mode 100644 index 000000000..487a05367 --- /dev/null +++ b/src/Product/Types/AddProductsRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmission', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'addProductRequest' + ], + 'clientBatchId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'clientBatchId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'addProductsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/AddProductsResponse.php b/src/Product/Types/AddProductsResponse.php new file mode 100644 index 000000000..1bb4f5a8e --- /dev/null +++ b/src/Product/Types/AddProductsResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\AddProductResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'addProductResponse' + ], + 'clientBatchId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'clientBatchId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/BaseServiceRequest.php b/src/Product/Types/BaseServiceRequest.php new file mode 100644 index 000000000..b84f967a3 --- /dev/null +++ b/src/Product/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/BaseServiceResponse.php b/src/Product/Types/BaseServiceResponse.php new file mode 100644 index 000000000..db7eb27ff --- /dev/null +++ b/src/Product/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/CompatibilityDetails.php b/src/Product/Types/CompatibilityDetails.php new file mode 100644 index 000000000..0c6a2caca --- /dev/null +++ b/src/Product/Types/CompatibilityDetails.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityProperty' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/CompatibilityPropertyFilter.php b/src/Product/Types/CompatibilityPropertyFilter.php new file mode 100644 index 000000000..01a73ca27 --- /dev/null +++ b/src/Product/Types/CompatibilityPropertyFilter.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyFilter' + ], + 'AAIA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'AAIA' + ], + 'HSNTSN' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'HSNTSN' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/CompatibilitySort.php b/src/Product/Types/CompatibilitySort.php new file mode 100644 index 000000000..a438aed54 --- /dev/null +++ b/src/Product/Types/CompatibilitySort.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\SortOrder', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'sortPriority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortPriority' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ErrorData.php b/src/Product/Types/ErrorData.php new file mode 100644 index 000000000..f51881494 --- /dev/null +++ b/src/Product/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ErrorMessage.php b/src/Product/Types/ErrorMessage.php new file mode 100644 index 000000000..7f9e60f41 --- /dev/null +++ b/src/Product/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ErrorParameter.php b/src/Product/Types/ErrorParameter.php new file mode 100644 index 000000000..ced5a792f --- /dev/null +++ b/src/Product/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindCompatibilitiesBySpecificationRequest.php b/src/Product/Types/FindCompatibilitiesBySpecificationRequest.php new file mode 100644 index 000000000..576cf98e6 --- /dev/null +++ b/src/Product/Types/FindCompatibilitiesBySpecificationRequest.php @@ -0,0 +1,103 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'compatibilityPropertyFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityPropertyFilter' + ], + 'specification' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specification' + ], + 'dataSet' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataSet' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ], + 'exactMatch' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exactMatch' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilitySort', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findCompatibilitiesBySpecificationRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindCompatibilitiesBySpecificationResponse.php b/src/Product/Types/FindCompatibilitiesBySpecificationResponse.php new file mode 100644 index 000000000..fd9052f47 --- /dev/null +++ b/src/Product/Types/FindCompatibilitiesBySpecificationResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'compatibilityDetails' => [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilityDetails', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindProductsByCompatibilityRequest.php b/src/Product/Types/FindProductsByCompatibilityRequest.php new file mode 100644 index 000000000..a67cc8673 --- /dev/null +++ b/src/Product/Types/FindProductsByCompatibilityRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductByCompatibilityRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productByCompatibilitySearch' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findProductsByCompatibilityRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindProductsRequest.php b/src/Product/Types/FindProductsRequest.php new file mode 100644 index 000000000..ac3713b74 --- /dev/null +++ b/src/Product/Types/FindProductsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSearch' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findProductsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindProductsResponse.php b/src/Product/Types/FindProductsResponse.php new file mode 100644 index 000000000..ec09dd183 --- /dev/null +++ b/src/Product/Types/FindProductsResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSearchResult' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductCompatibilitiesRequest.php b/src/Product/Types/GetProductCompatibilitiesRequest.php new file mode 100644 index 000000000..84ad262c3 --- /dev/null +++ b/src/Product/Types/GetProductCompatibilitiesRequest.php @@ -0,0 +1,96 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'applicationPropertyFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'applicationPropertyFilter' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilitySort', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'disabledProductFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'disabledProductFilter' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductCompatibilitiesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductCompatiblitiesResponse.php b/src/Product/Types/GetProductCompatiblitiesResponse.php new file mode 100644 index 000000000..aa0e253a5 --- /dev/null +++ b/src/Product/Types/GetProductCompatiblitiesResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'compatibilityDetails' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductDetailsRequest.php b/src/Product/Types/GetProductDetailsRequest.php new file mode 100644 index 000000000..791be715c --- /dev/null +++ b/src/Product/Types/GetProductDetailsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductDetailsRequestType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productDetailsRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductDetailsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductDetailsResponse.php b/src/Product/Types/GetProductDetailsResponse.php new file mode 100644 index 000000000..9e10dcb0d --- /dev/null +++ b/src/Product/Types/GetProductDetailsResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'product' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductSubmissionsRequest.php b/src/Product/Types/GetProductSubmissionsRequest.php new file mode 100644 index 000000000..8ef8bea7d --- /dev/null +++ b/src/Product/Types/GetProductSubmissionsRequest.php @@ -0,0 +1,75 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSubmissionFilter' + ], + 'outputSelector' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'outputSelector' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'sortOption' => [ + 'type' => 'DTS\eBaySDK\Product\Types\SortOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOption' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSubmissionsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductSubmissionsResponse.php b/src/Product/Types/GetProductSubmissionsResponse.php new file mode 100644 index 000000000..6c221ad3e --- /dev/null +++ b/src/Product/Types/GetProductSubmissionsResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'productSubmissionResponse' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionResult', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSubmissionResponse' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Media.php b/src/Product/Types/Media.php new file mode 100644 index 000000000..d3a93b38f --- /dev/null +++ b/src/Product/Types/Media.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\MediaIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mediaIdentifier' + ], + 'mediaType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mediaType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/MediaIdentifier.php b/src/Product/Types/MediaIdentifier.php new file mode 100644 index 000000000..116090b73 --- /dev/null +++ b/src/Product/Types/MediaIdentifier.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'url' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Notes.php b/src/Product/Types/Notes.php new file mode 100644 index 000000000..b434ffa69 --- /dev/null +++ b/src/Product/Types/Notes.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'noteDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/NumericValue.php b/src/Product/Types/NumericValue.php new file mode 100644 index 000000000..eec5d712c --- /dev/null +++ b/src/Product/Types/NumericValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ], + 'unitOfMeasurement' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasurement' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/PaginationInput.php b/src/Product/Types/PaginationInput.php new file mode 100644 index 000000000..f49a4ea91 --- /dev/null +++ b/src/Product/Types/PaginationInput.php @@ -0,0 +1,57 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pageNumber' + ], + 'entriesPerPage' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'entriesPerPage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/PaginationOutput.php b/src/Product/Types/PaginationOutput.php new file mode 100644 index 000000000..11dae53d5 --- /dev/null +++ b/src/Product/Types/PaginationOutput.php @@ -0,0 +1,71 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalPages' + ], + 'totalEntries' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalEntries' + ], + 'pageNumber' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pageNumber' + ], + 'entriesPerPage' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'entriesPerPage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Product.php b/src/Product/Types/Product.php new file mode 100644 index 000000000..eb0ccd8c7 --- /dev/null +++ b/src/Product/Types/Product.php @@ -0,0 +1,92 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ], + 'stockPhotoURL' => [ + 'type' => 'DTS\eBaySDK\Product\Types\StockPhotoURL', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stockPhotoURL' + ], + 'productDetails' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productDetails' + ], + 'productStatus' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productStatus' + ], + 'compatibilityCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'compatibilityCount' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ], + 'notes' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Notes', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'notes' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductByCompatibilityRequest.php b/src/Product/Types/ProductByCompatibilityRequest.php new file mode 100644 index 000000000..094fa7f97 --- /dev/null +++ b/src/Product/Types/ProductByCompatibilityRequest.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilityPropertyFilter', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applicationPropertyFilter' + ], + 'productSearch' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductRequest', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productSearch' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductDetailsRequestType.php b/src/Product/Types/ProductDetailsRequestType.php new file mode 100644 index 000000000..c1b62a591 --- /dev/null +++ b/src/Product/Types/ProductDetailsRequestType.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ], + 'productStatusFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productStatusFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/MerchantData/Types/UserIdPasswordType.php b/src/Product/Types/ProductIdentifier.php similarity index 63% rename from src/MerchantData/Types/UserIdPasswordType.php rename to src/Product/Types/ProductIdentifier.php index 6c2cce6cd..fadd514d1 100644 --- a/src/MerchantData/Types/UserIdPasswordType.php +++ b/src/Product/Types/ProductIdentifier.php @@ -1,55 +1,58 @@ [ + 'ePID' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'AppId' + 'elementName' => 'ePID' ], - 'DevId' => [ + 'ISBN' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'DevId' + 'elementName' => 'ISBN' ], - 'AuthCert' => [ + 'UPC' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'AuthCert' + 'elementName' => 'UPC' ], - 'Username' => [ + 'EAN' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'Username' + 'elementName' => 'EAN' ], - 'Password' => [ + 'productId' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'Password' + 'elementName' => 'productId' ] ]; @@ -67,7 +70,7 @@ public function __construct(array $values = []) } if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; } $this->setValues(__CLASS__, $childValues); diff --git a/src/Product/Types/ProductRequest.php b/src/Product/Types/ProductRequest.php new file mode 100644 index 000000000..ab083b923 --- /dev/null +++ b/src/Product/Types/ProductRequest.php @@ -0,0 +1,106 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'keywords' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'keywords' + ], + 'propertyFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyFilter' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\Product\Types\SortOrder', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'productStatusFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productStatusFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductResponse.php b/src/Product/Types/ProductResponse.php new file mode 100644 index 000000000..93cd39736 --- /dev/null +++ b/src/Product/Types/ProductResponse.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'products' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'invocationId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductStatus.php b/src/Product/Types/ProductStatus.php new file mode 100644 index 000000000..73e3aa649 --- /dev/null +++ b/src/Product/Types/ProductStatus.php @@ -0,0 +1,64 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'excludeForeBaySelling' + ], + 'excludeForeBayReviews' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'excludeForeBayReviews' + ], + 'excludeForHalfSelling' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'excludeForHalfSelling' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmission.php b/src/Product/Types/ProductSubmission.php new file mode 100644 index 000000000..6de70c7bc --- /dev/null +++ b/src/Product/Types/ProductSubmission.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'productPropertyValue' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productPropertyValue' + ], + 'media' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Media', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'media' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmissionFilter.php b/src/Product/Types/ProductSubmissionFilter.php new file mode 100644 index 000000000..2b766b568 --- /dev/null +++ b/src/Product/Types/ProductSubmissionFilter.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filterName' + ], + 'filterValue' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'filterValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmissionResult.php b/src/Product/Types/ProductSubmissionResult.php new file mode 100644 index 000000000..8865444e4 --- /dev/null +++ b/src/Product/Types/ProductSubmissionResult.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmission', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productSubmission' + ], + 'status' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmissionStatus.php b/src/Product/Types/ProductSubmissionStatus.php new file mode 100644 index 000000000..0cc73ed6b --- /dev/null +++ b/src/Product/Types/ProductSubmissionStatus.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productSubmissionId' + ], + 'statusCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ], + 'ePID' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ePID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/PropertyValue.php b/src/Product/Types/PropertyValue.php new file mode 100644 index 000000000..2aeedfbd6 --- /dev/null +++ b/src/Product/Types/PropertyValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'value' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/SortOption.php b/src/Product/Types/SortOption.php new file mode 100644 index 000000000..be04d96ea --- /dev/null +++ b/src/Product/Types/SortOption.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortType' + ], + 'sortOrder' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/SortOrder.php b/src/Product/Types/SortOrder.php new file mode 100644 index 000000000..5b340977b --- /dev/null +++ b/src/Product/Types/SortOrder.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'order' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/StockPhotoURL.php b/src/Product/Types/StockPhotoURL.php new file mode 100644 index 000000000..f015d270d --- /dev/null +++ b/src/Product/Types/StockPhotoURL.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thumbnail' + ], + 'standard' => [ + 'type' => 'DTS\eBaySDK\Product\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'standard' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/StringValue.php b/src/Product/Types/StringValue.php new file mode 100644 index 000000000..3f10c1430 --- /dev/null +++ b/src/Product/Types/StringValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/URIValue.php b/src/Product/Types/URIValue.php new file mode 100644 index 000000000..b50bb35b3 --- /dev/null +++ b/src/Product/Types/URIValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Value.php b/src/Product/Types/Value.php new file mode 100644 index 000000000..86614d6f0 --- /dev/null +++ b/src/Product/Types/Value.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\StringValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'text' + ], + 'number' => [ + 'type' => 'DTS\eBaySDK\Product\Types\NumericValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'number' + ], + 'URL' => [ + 'type' => 'DTS\eBaySDK\Product\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'URL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Enums/AckValue.php b/src/ProductMetadata/Enums/AckValue.php new file mode 100644 index 000000000..264bd7193 --- /dev/null +++ b/src/ProductMetadata/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\ProductMetadata\Services\ProductMetadataService::API_VERSION + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_APP_ID] = $this->getConfig('credentials')->getAppId(); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/ProductMetadata/Services/ProductMetadataService.php b/src/ProductMetadata/Services/ProductMetadataService.php new file mode 100644 index 000000000..4530289be --- /dev/null +++ b/src/ProductMetadata/Services/ProductMetadataService.php @@ -0,0 +1,222 @@ +getProductSearchNamesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchNamesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchNames', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesResponse + */ + public function getCompatibilitySearchNames(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request) + { + return $this->getCompatibilitySearchNamesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchNamesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchNames', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse + */ + public function getProductSearchValues(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request) + { + return $this->getProductSearchValuesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchValuesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchValues', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkResponse + */ + public function getProductSearchValuesBulk(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request) + { + return $this->getProductSearchValuesBulkAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchValuesBulkAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchValuesBulk', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesResponse + */ + public function getCompatibilitySearchValues(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request) + { + return $this->getCompatibilitySearchValuesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchValuesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchValues', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkResponse + */ + public function getCompatibilitySearchValuesBulk(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request) + { + return $this->getCompatibilitySearchValuesBulkAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchValuesBulkAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchValuesBulk', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionResponse + */ + public function getProductSearchDataVersion(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request) + { + return $this->getProductSearchDataVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchDataVersionAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchDataVersion', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionResponse + */ + public function getCompatibilitySearchDataVersion(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request) + { + return $this->getCompatibilitySearchDataVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchDataVersionAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchDataVersion', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkResponse + */ + public function getProductMetadataBulk(\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request) + { + return $this->getProductMetadataBulkAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductMetadataBulkAsync(\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request) + { + return $this->callOperationAsync( + 'getProductMetadataBulk', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkResponse' + ); + } +} diff --git a/src/ProductMetadata/Types/BaseRequest.php b/src/ProductMetadata/Types/BaseRequest.php new file mode 100644 index 000000000..0859eee53 --- /dev/null +++ b/src/ProductMetadata/Types/BaseRequest.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/BaseResponse.php b/src/ProductMetadata/Types/BaseResponse.php new file mode 100644 index 000000000..6d0de46a7 --- /dev/null +++ b/src/ProductMetadata/Types/BaseResponse.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ], + 'extension' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/BaseServiceRequest.php b/src/ProductMetadata/Types/BaseServiceRequest.php new file mode 100644 index 000000000..5eafedc3d --- /dev/null +++ b/src/ProductMetadata/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/BaseServiceResponse.php b/src/ProductMetadata/Types/BaseServiceResponse.php new file mode 100644 index 000000000..8191ed12c --- /dev/null +++ b/src/ProductMetadata/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ErrorData.php b/src/ProductMetadata/Types/ErrorData.php new file mode 100644 index 000000000..cc73933d7 --- /dev/null +++ b/src/ProductMetadata/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ErrorMessage.php b/src/ProductMetadata/Types/ErrorMessage.php new file mode 100644 index 000000000..2fafe3d9b --- /dev/null +++ b/src/ProductMetadata/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ErrorParameter.php b/src/ProductMetadata/Types/ErrorParameter.php new file mode 100644 index 000000000..2ccdf0752 --- /dev/null +++ b/src/ProductMetadata/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/MerchantData/Types/CustomSecurityHeaderType.php b/src/ProductMetadata/Types/ExtensionType.php similarity index 53% rename from src/MerchantData/Types/CustomSecurityHeaderType.php rename to src/ProductMetadata/Types/ExtensionType.php index 16da37454..7bf2a28e6 100644 --- a/src/MerchantData/Types/CustomSecurityHeaderType.php +++ b/src/ProductMetadata/Types/ExtensionType.php @@ -1,48 +1,51 @@ [ - 'type' => 'string', + 'id' => [ + 'type' => 'integer', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'eBayAuthToken' + 'elementName' => 'id' ], - 'HardExpirationWarning' => [ + 'version' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'HardExpirationWarning' + 'elementName' => 'version' ], - 'Credentials' => [ - 'type' => 'DTS\eBaySDK\MerchantData\Types\UserIdPasswordType', + 'contentType' => [ + 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'Credentials' + 'elementName' => 'contentType' ], - 'NotificationSignature' => [ + 'value' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'NotificationSignature' + 'elementName' => 'value' ] ]; @@ -60,11 +63,7 @@ public function __construct(array $values = []) } if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; - } - - if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { - self::$requestXmlRootElementNames[__CLASS__] = 'RequesterCredentials'; + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; } $this->setValues(__CLASS__, $childValues); diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php new file mode 100644 index 000000000..5e03afb22 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchDataVersionRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php new file mode 100644 index 000000000..8966dbb50 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'namesDetails' + ], + 'valueDetails' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'valueDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php new file mode 100644 index 000000000..e929da214 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchNamesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php new file mode 100644 index 000000000..da2e167bb --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'properties' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Properties', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'properties' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php new file mode 100644 index 000000000..5f6b871e9 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchValuesBulkRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php new file mode 100644 index 000000000..039f38138 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'medataDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php new file mode 100644 index 000000000..35c6c83e3 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchValuesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php new file mode 100644 index 000000000..e2bba8671 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataVersion' + ], + 'propertyValues' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyValues' + ], + 'propertyValuesTree' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyValuesTree' + ], + 'treeFormat' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'treeFormat' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php b/src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php new file mode 100644 index 000000000..439d4ef24 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchDataVersionRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php b/src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php new file mode 100644 index 000000000..a186a5703 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'namesDetails' + ], + 'valueDetails' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'valueDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchNamesRequest.php b/src/ProductMetadata/Types/GetProductSearchNamesRequest.php new file mode 100644 index 000000000..8e5d9b5ed --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchNamesRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchNamesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchNamesResponse.php b/src/ProductMetadata/Types/GetProductSearchNamesResponse.php new file mode 100644 index 000000000..25754384a --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchNamesResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'properties' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Properties', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'properties' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php b/src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php new file mode 100644 index 000000000..4dda7d9e2 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'propertyFilter' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyFilter' + ], + 'listFormatOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listFormatOnly' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\SortOrder', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php b/src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php new file mode 100644 index 000000000..0d9b2f55c --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchValuesBulkRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php b/src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php new file mode 100644 index 000000000..2d6a70998 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesRequest.php b/src/ProductMetadata/Types/GetProductSearchValuesRequest.php new file mode 100644 index 000000000..a1874bc91 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchValuesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesResponse.php b/src/ProductMetadata/Types/GetProductSearchValuesResponse.php new file mode 100644 index 000000000..fe927269e --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataVersion' + ], + 'propertyValues' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyValues' + ], + 'propertyValuesTree' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyValuesTree' + ], + 'treeFormat' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'treeFormat' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GroupProperties.php b/src/ProductMetadata/Types/GroupProperties.php new file mode 100644 index 000000000..6dfaf8464 --- /dev/null +++ b/src/ProductMetadata/Types/GroupProperties.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'groupType' + ], + 'groupName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'groupName' + ], + 'groupProperty' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\GroupProperty', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'groupProperty' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GroupProperty.php b/src/ProductMetadata/Types/GroupProperty.php new file mode 100644 index 000000000..4c952e072 --- /dev/null +++ b/src/ProductMetadata/Types/GroupProperty.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'tag' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Tag', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'tag' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/MediaTypeSpecificInformation.php b/src/ProductMetadata/Types/MediaTypeSpecificInformation.php new file mode 100644 index 000000000..857bf2345 --- /dev/null +++ b/src/ProductMetadata/Types/MediaTypeSpecificInformation.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/NumericTypeSpecificInformation.php b/src/ProductMetadata/Types/NumericTypeSpecificInformation.php new file mode 100644 index 000000000..141091cc8 --- /dev/null +++ b/src/ProductMetadata/Types/NumericTypeSpecificInformation.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasurement' + ], + 'maximumValueAllowed' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maximumValueAllowed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/NumericValue.php b/src/ProductMetadata/Types/NumericValue.php new file mode 100644 index 000000000..de1fb449e --- /dev/null +++ b/src/ProductMetadata/Types/NumericValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ], + 'unitOfMeasurement' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasurement' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadata.php b/src/ProductMetadata/Types/ProductMetadata.php new file mode 100644 index 000000000..8900ab1af --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadata.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyMetadata', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyMetadata' + ], + 'groupProperties' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\GroupProperties', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'groupProperties' + ], + 'productMetadataVersion' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productMetadataVersion' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataBulkRequest.php b/src/ProductMetadata/Types/ProductMetadataBulkRequest.php new file mode 100644 index 000000000..ccebb0c1e --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataBulkRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadataRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productMetadataRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductMetadataBulkRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataBulkResponse.php b/src/ProductMetadata/Types/ProductMetadataBulkResponse.php new file mode 100644 index 000000000..a13319dac --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataBulkResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadataResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productMetadataResponse' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataRequest.php b/src/ProductMetadata/Types/ProductMetadataRequest.php new file mode 100644 index 000000000..34f338077 --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataRequest.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'includeManagedValues' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'includeManagedValues' + ], + 'includeGroupPropertiesOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'includeGroupPropertiesOnly' + ], + 'groupType' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'groupType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataResponse.php b/src/ProductMetadata/Types/ProductMetadataResponse.php new file mode 100644 index 000000000..506abf7b3 --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadata', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productMetadata' + ], + 'requestInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadataRequest', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestInformation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Properties.php b/src/ProductMetadata/Types/Properties.php new file mode 100644 index 000000000..b7bd7f821 --- /dev/null +++ b/src/ProductMetadata/Types/Properties.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataVersion' + ], + 'propertyName' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Property', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Property.php b/src/ProductMetadata/Types/Property.php new file mode 100644 index 000000000..b4fe6555d --- /dev/null +++ b/src/ProductMetadata/Types/Property.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'propertyNameMetadata' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameMetadata', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyNameMetadata' + ], + 'propertyDisplayName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyDisplayName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyMetadata.php b/src/ProductMetadata/Types/PropertyMetadata.php new file mode 100644 index 000000000..86c48023e --- /dev/null +++ b/src/ProductMetadata/Types/PropertyMetadata.php @@ -0,0 +1,99 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'alternatePropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'alternatePropertyName' + ], + 'dataType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'typeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\TypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'typeSpecificInformation' + ], + 'multiValued' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'multiValued' + ], + 'canonicalName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'canonicalName' + ], + 'propertyTags' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Tag', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyTags' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyNameMetadata.php b/src/ProductMetadata/Types/PropertyNameMetadata.php new file mode 100644 index 000000000..3b92f8141 --- /dev/null +++ b/src/ProductMetadata/Types/PropertyNameMetadata.php @@ -0,0 +1,50 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'displaySequence' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyNameValue.php b/src/ProductMetadata/Types/PropertyNameValue.php new file mode 100644 index 000000000..c50507767 --- /dev/null +++ b/src/ProductMetadata/Types/PropertyNameValue.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'value' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Value', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ], + 'childPropertyNameValue' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'childPropertyNameValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyValue.php b/src/ProductMetadata/Types/PropertyValue.php new file mode 100644 index 000000000..32261fa14 --- /dev/null +++ b/src/ProductMetadata/Types/PropertyValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'value' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/SortOrder.php b/src/ProductMetadata/Types/SortOrder.php new file mode 100644 index 000000000..6c3cec1ce --- /dev/null +++ b/src/ProductMetadata/Types/SortOrder.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'order' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/StringTypeSpecificInformation.php b/src/ProductMetadata/Types/StringTypeSpecificInformation.php new file mode 100644 index 000000000..e6d1c6b7a --- /dev/null +++ b/src/ProductMetadata/Types/StringTypeSpecificInformation.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'managedValue' + ], + 'maximumCharactersAllowed' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maximumCharactersAllowed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/StringValue.php b/src/ProductMetadata/Types/StringValue.php new file mode 100644 index 000000000..475252e17 --- /dev/null +++ b/src/ProductMetadata/Types/StringValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Tag.php b/src/ProductMetadata/Types/Tag.php new file mode 100644 index 000000000..4e4f76dab --- /dev/null +++ b/src/ProductMetadata/Types/Tag.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'dataType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/TypeSpecificInformation.php b/src/ProductMetadata/Types/TypeSpecificInformation.php new file mode 100644 index 000000000..3aa6d1057 --- /dev/null +++ b/src/ProductMetadata/Types/TypeSpecificInformation.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\URITypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'uriTypeSpecificInformation' + ], + 'numericTypeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\NumericTypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'numericTypeSpecificInformation' + ], + 'mediaTypeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\MediaTypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mediaTypeSpecificInformation' + ], + 'stringTypeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\StringTypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stringTypeSpecificInformation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/URITypeSpecificInformation.php b/src/ProductMetadata/Types/URITypeSpecificInformation.php new file mode 100644 index 000000000..40b92adfb --- /dev/null +++ b/src/ProductMetadata/Types/URITypeSpecificInformation.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/URIValue.php b/src/ProductMetadata/Types/URIValue.php new file mode 100644 index 000000000..69f032dad --- /dev/null +++ b/src/ProductMetadata/Types/URIValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Value.php b/src/ProductMetadata/Types/Value.php new file mode 100644 index 000000000..f459f6175 --- /dev/null +++ b/src/ProductMetadata/Types/Value.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\StringValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'text' + ], + 'number' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\NumericValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'number' + ], + 'URL' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'URL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/VersionDetails.php b/src/ProductMetadata/Types/VersionDetails.php new file mode 100644 index 000000000..7a81c60e7 --- /dev/null +++ b/src/ProductMetadata/Types/VersionDetails.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'updateTime' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'updateTime' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Enums/AckValue.php b/src/RelatedItemsManagement/Enums/AckValue.php new file mode 100644 index 000000000..1d2bb291d --- /dev/null +++ b/src/RelatedItemsManagement/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\RelatedItemsManagement\Services\RelatedItemsManagementService::API_VERSION + ], + 'authToken' => [ + 'valid' => ['string'], + 'required' => true + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTH_TOKEN] = $this->getConfig('authToken'); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/RelatedItemsManagement/Services/RelatedItemsManagementService.php b/src/RelatedItemsManagement/Services/RelatedItemsManagementService.php new file mode 100644 index 000000000..6f2dd93ed --- /dev/null +++ b/src/RelatedItemsManagement/Services/RelatedItemsManagementService.php @@ -0,0 +1,178 @@ +createBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesRequest $request) + { + return $this->callOperationAsync( + 'createBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesResponse + */ + public function findBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request) + { + return $this->findBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request) + { + return $this->callOperationAsync( + 'findBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesResponse + */ + public function getBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request) + { + return $this->getBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request) + { + return $this->callOperationAsync( + 'getBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesResponse + */ + public function updateBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request) + { + return $this->updateBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request) + { + return $this->callOperationAsync( + 'updateBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusResponse + */ + public function updateBundleStatus(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request) + { + return $this->updateBundleStatusAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateBundleStatusAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request) + { + return $this->callOperationAsync( + 'updateBundleStatus', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesResponse + */ + public function deleteBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request) + { + return $this->deleteBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request) + { + return $this->callOperationAsync( + 'deleteBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionResponse + */ + public function getVersion(\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request) + { + return $this->getVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getVersionAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request) + { + return $this->callOperationAsync( + 'getVersion', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionResponse' + ); + } +} diff --git a/src/RelatedItemsManagement/Types/Amount.php b/src/RelatedItemsManagement/Types/Amount.php new file mode 100644 index 000000000..fb5ded532 --- /dev/null +++ b/src/RelatedItemsManagement/Types/Amount.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'currencyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BaseRequest.php b/src/RelatedItemsManagement/Types/BaseRequest.php new file mode 100644 index 000000000..abe71044a --- /dev/null +++ b/src/RelatedItemsManagement/Types/BaseRequest.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BaseResponse.php b/src/RelatedItemsManagement/Types/BaseResponse.php new file mode 100644 index 000000000..7293b4ffe --- /dev/null +++ b/src/RelatedItemsManagement/Types/BaseResponse.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ], + 'extension' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/Bundle.php b/src/RelatedItemsManagement/Types/Bundle.php new file mode 100644 index 000000000..0e3300f49 --- /dev/null +++ b/src/RelatedItemsManagement/Types/Bundle.php @@ -0,0 +1,106 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ], + 'bundleName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleName' + ], + 'primarySKU' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'primarySKU' + ], + 'scheduledStartTime' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'scheduledStartTime' + ], + 'scheduledEndTime' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'scheduledEndTime' + ], + 'relatedProductGroup' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProductGroup', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'relatedProductGroup' + ], + 'bundleStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ], + 'isoCurrencyCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isoCurrencyCode' + ], + 'site' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'site' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BundleFilter.php b/src/RelatedItemsManagement/Types/BundleFilter.php new file mode 100644 index 000000000..8bea6079d --- /dev/null +++ b/src/RelatedItemsManagement/Types/BundleFilter.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primarySKU' + ], + 'bundleID' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BundleStatus.php b/src/RelatedItemsManagement/Types/BundleStatus.php new file mode 100644 index 000000000..06a7c4c00 --- /dev/null +++ b/src/RelatedItemsManagement/Types/BundleStatus.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleName' + ], + 'primarySKU' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'primarySKU' + ], + 'bundleID' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ], + 'ack' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BundleStatusMap.php b/src/RelatedItemsManagement/Types/BundleStatusMap.php new file mode 100644 index 000000000..907ebef7d --- /dev/null +++ b/src/RelatedItemsManagement/Types/BundleStatusMap.php @@ -0,0 +1,57 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ], + 'bundleStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/CreateBundlesRequest.php b/src/RelatedItemsManagement/Types/CreateBundlesRequest.php new file mode 100644 index 000000000..0fe119ed3 --- /dev/null +++ b/src/RelatedItemsManagement/Types/CreateBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/CreateBundlesResponse.php b/src/RelatedItemsManagement/Types/CreateBundlesResponse.php new file mode 100644 index 000000000..d9508c066 --- /dev/null +++ b/src/RelatedItemsManagement/Types/CreateBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/DeleteBundlesRequest.php b/src/RelatedItemsManagement/Types/DeleteBundlesRequest.php new file mode 100644 index 000000000..3fe7fe285 --- /dev/null +++ b/src/RelatedItemsManagement/Types/DeleteBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'integer', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'deleteBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/DeleteBundlesResponse.php b/src/RelatedItemsManagement/Types/DeleteBundlesResponse.php new file mode 100644 index 000000000..d1b72b3df --- /dev/null +++ b/src/RelatedItemsManagement/Types/DeleteBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/Discount.php b/src/RelatedItemsManagement/Types/Discount.php new file mode 100644 index 000000000..7e3a12bad --- /dev/null +++ b/src/RelatedItemsManagement/Types/Discount.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'discountType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountType' + ], + 'discountPercent' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPercent' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ErrorData.php b/src/RelatedItemsManagement/Types/ErrorData.php new file mode 100644 index 000000000..7ff26b1eb --- /dev/null +++ b/src/RelatedItemsManagement/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ErrorMessage.php b/src/RelatedItemsManagement/Types/ErrorMessage.php new file mode 100644 index 000000000..b5c386014 --- /dev/null +++ b/src/RelatedItemsManagement/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ErrorParameter.php b/src/RelatedItemsManagement/Types/ErrorParameter.php new file mode 100644 index 000000000..fd4383c27 --- /dev/null +++ b/src/RelatedItemsManagement/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ExtensionType.php b/src/RelatedItemsManagement/Types/ExtensionType.php new file mode 100644 index 000000000..5844ec509 --- /dev/null +++ b/src/RelatedItemsManagement/Types/ExtensionType.php @@ -0,0 +1,71 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'contentType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contentType' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/FindBundlesRequest.php b/src/RelatedItemsManagement/Types/FindBundlesRequest.php new file mode 100644 index 000000000..1f7c78f64 --- /dev/null +++ b/src/RelatedItemsManagement/Types/FindBundlesRequest.php @@ -0,0 +1,68 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleDetailSelector' + ], + 'findAllByStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'findAllByStatus' + ], + 'bundleFilter' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/FindBundlesResponse.php b/src/RelatedItemsManagement/Types/FindBundlesResponse.php new file mode 100644 index 000000000..abb0d86be --- /dev/null +++ b/src/RelatedItemsManagement/Types/FindBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetBundlesRequest.php b/src/RelatedItemsManagement/Types/GetBundlesRequest.php new file mode 100644 index 000000000..ad3475eca --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'integer', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetBundlesResponse.php b/src/RelatedItemsManagement/Types/GetBundlesResponse.php new file mode 100644 index 000000000..d49a9f116 --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetVersionRequest.php b/src/RelatedItemsManagement/Types/GetVersionRequest.php new file mode 100644 index 000000000..2bcc64a47 --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetVersionRequest.php @@ -0,0 +1,47 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetVersionResponse.php b/src/RelatedItemsManagement/Types/GetVersionResponse.php new file mode 100644 index 000000000..4a1983af4 --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetVersionResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/RelatedProduct.php b/src/RelatedItemsManagement/Types/RelatedProduct.php new file mode 100644 index 000000000..3e43337bd --- /dev/null +++ b/src/RelatedItemsManagement/Types/RelatedProduct.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'SKU' + ], + 'discount' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Discount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discount' + ], + 'rank' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rank' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'maxQtyForSinglePrimary' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxQtyForSinglePrimary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/RelatedProductGroup.php b/src/RelatedItemsManagement/Types/RelatedProductGroup.php new file mode 100644 index 000000000..e5a2523f3 --- /dev/null +++ b/src/RelatedItemsManagement/Types/RelatedProductGroup.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProduct', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'relatedProduct' + ], + 'groupName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'groupName' + ], + 'rank' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rank' + ], + 'singleRelatedSKUPurchaseOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'singleRelatedSKUPurchaseOnly' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php b/src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php new file mode 100644 index 000000000..f96ac05aa --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatusMap', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatusMap' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'updateBundleStatusRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php b/src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php new file mode 100644 index 000000000..fd943208f --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundlesRequest.php b/src/RelatedItemsManagement/Types/UpdateBundlesRequest.php new file mode 100644 index 000000000..a8e12c10e --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'updateBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundlesResponse.php b/src/RelatedItemsManagement/Types/UpdateBundlesResponse.php new file mode 100644 index 000000000..606feae04 --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ResolutionCaseManagement/Enums/AckValue.php b/src/ResolutionCaseManagement/Enums/AckValue.php index 8294e4718..552208462 100644 --- a/src/ResolutionCaseManagement/Enums/AckValue.php +++ b/src/ResolutionCaseManagement/Enums/AckValue.php @@ -1,15 +1,15 @@ [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'idref' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/resolution/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php b/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php index 5a74bc1f9..791ef8a5a 100644 --- a/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php +++ b/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php @@ -1,8 +1,11 @@ [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'idref' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/resolution/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ResolutionCaseManagement/Types/NotificationEventType.php b/src/ResolutionCaseManagement/Types/NotificationEventType.php index 8c8deaca6..c426ee8e0 100644 --- a/src/ResolutionCaseManagement/Types/NotificationEventType.php +++ b/src/ResolutionCaseManagement/Types/NotificationEventType.php @@ -1,8 +1,11 @@ false, 'attribute' => false, 'elementName' => 'onholdReasonDetail' - ], - 'idref' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'idref' - ], - 'idref' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'idref' ] ]; diff --git a/src/ResolutionCaseManagement/Types/ShipmentType.php b/src/ResolutionCaseManagement/Types/ShipmentType.php index 0cf3af272..179a52acf 100644 --- a/src/ResolutionCaseManagement/Types/ShipmentType.php +++ b/src/ResolutionCaseManagement/Types/ShipmentType.php @@ -1,8 +1,11 @@ config = $config; } + /** + * @param string $name The method name. + * @param array $args Arguments that will be passed to the method. + * + * @return \DTS\eBaySDK\Services\BaseService + * @throws \BadMethodCallException + */ public function __call($name, array $args) { if (strpos($name, 'create') === 0) { @@ -43,7 +74,7 @@ public function __call($name, array $args) * Create a service object by namespace. Service is configured using array of options. * * @param string $namespace Service namespace (e.g. Finding, Trading). - * @param array $config Configuration options for the service. + * @param array $config Configuration options for the service. * * @return \DTS\eBaySDK\Services\BaseService **/ diff --git a/src/Services/BaseRestService.php b/src/Services/BaseRestService.php new file mode 100644 index 000000000..b841aae23 --- /dev/null +++ b/src/Services/BaseRestService.php @@ -0,0 +1,272 @@ +resolver = new ConfigurationResolver(static::getConfigDefinitions()); + $this->uriResolver = new UriResolver(); + $this->config = $this->resolver->resolve($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + return [ + 'debug' => [ + 'valid' => ['bool', 'array'], + 'fn' => 'DTS\eBaySDK\applyDebug', + 'default' => false + ], + 'httpHandler' => [ + 'valid' => ['callable'], + 'default' => 'DTS\eBaySDK\defaultHttpHandler' + ], + 'httpOptions' => [ + 'valid' => ['array'], + 'default' => [ + 'http_errors' => false + ] + ], + 'requestLanguage' => [ + 'valid' => ['string'] + ], + 'responseLanguage' => [ + 'valid' => ['string'] + ], + 'sandbox' => [ + 'valid' => ['bool'], + 'default' => false + ] + ]; + } + + /** + * Method to get the service's configuration. + * + * @param string|null $option The name of the option whos value will be returned. + * + * @return mixed Returns an associative array of configuration options if no parameters are passed, + * otherwise returns the value for the specified configuration option. + */ + public function getConfig($option = null) + { + return $option === null + ? $this->config + : (isset($this->config[$option]) + ? $this->config[$option] + : null); + } + + /** + * Set multiple configuration options. + * + * @param array $configuration Associative array of configuration options and their values. + */ + public function setConfig(array $configuration) + { + $this->config = Functions\arrayMergeDeep( + $this->config, + $this->resolver->resolveOptions($configuration) + ); + } + + /** + * Sends an asynchronous API request. + * + * @param string $name The name of the operation. + * @param \DTS\eBaySDK\Types\BaseType $request Request object containing the request information. + * + * @return \GuzzleHttp\Promise\PromiseInterface A promise that will be resolved with an object created from the JSON response. + */ + protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $request = null) + { + $operation = static::$operations[$name]; + + $paramValues = []; + $requestValues = []; + + if ($request) { + $requestArray = $request->toArray(); + $paramValues = array_intersect_key($requestArray, $operation['params']); + $requestValues = array_diff_key($requestArray, $operation['params']); + } + + $url = $this->uriResolver->resolve( + $this->getUrl(), + $this->getConfig('apiVersion'), + $operation['resource'], + $operation['params'], + $paramValues + ); + $method = $operation['method']; + $body = $this->buildRequestBody($requestValues); + $headers = $this->buildRequestHeaders($body); + $responseClass = $operation['responseClass']; + $debug = $this->getConfig('debug'); + $httpHandler = $this->getConfig('httpHandler'); + $httpOptions = $this->getConfig('httpOptions'); + + if ($debug !== false) { + $this->debugRequest($url, $headers, $body); + } + + $request = new Request($method, $url, $headers, $body); + + return $httpHandler($request, $httpOptions)->then( + function (ResponseInterface $res) use ($debug, $responseClass) { + $json = $res->getBody()->getContents(); + + if ($debug !== false) { + $this->debugResponse($json); + } + + return new $responseClass( + $json !== '' ? json_decode($json, true) : [], + $res->getStatusCode(), + $res->getHeaders() + ); + } + ); + } + + /** + * Helper function to return the URL as determined by the sandbox configuration option. + * + * @return string Either the production or sandbox URL. + */ + private function getUrl() + { + return $this->getConfig('sandbox') ? static::$endPoints['sandbox'] : static::$endPoints['production']; + } + + /** + * Builds the request body string. + * + * @param array $request Associative array that is the request body. + * + * @return string The request body in JSON format. + */ + private function buildRequestBody(array $request) + { + return empty($request) ? '' : json_encode($request); + } + + /** + * Helper function that builds the HTTP request headers. + * + * @param string $body The request body. + * + * @return array An associative array of HTTP headers. + */ + private function buildRequestHeaders($body) + { + $headers = $this->getEbayHeaders(); + + $headers['Accept'] = 'application/json'; + $headers['Content-Type'] = 'application/json'; + $headers['Content-Length'] = strlen($body); + + // Add optional headers. + if ($this->getConfig('requestLanguage')) { + $headers[self::HDR_REQUEST_LANGUAGE] = $this->getConfig('requestLanguage'); + } + + if ($this->getConfig('responseLanguage')) { + $headers[self::HDR_RESPONSE_LANGUAGE] = $this->getConfig('responseLanguage'); + } + + return $headers; + } + + /** + * Derived classes must implement this method that will build the needed eBay http headers. + * + * @return array An associative array of eBay http headers. + */ + abstract protected function getEbayHeaders(); + + /** + * Sends a debug string of the request details. + * + * @param string $url API endpoint. + * @param array $headers Associative array of HTTP headers. + * @param string $body The JSON body of the request. + */ + private function debugRequest($url, array $headers, $body) + { + $str = $url.PHP_EOL; + + $str .= array_reduce(array_keys($headers), function ($str, $key) use ($headers) { + $str .= $key.': '.$headers[$key].PHP_EOL; + return $str; + }, ''); + + $str .= $body; + + $this->debug($str); + } + + /** + * Sends a debug string of the response details. + * + * @param string $body The JSON body of the response. + */ + private function debugResponse($body) + { + $this->debug($body); + } + + /** + * Sends a debug string via the attach debugger. + * + * @param string $str The debug information. + */ + private function debug($str) + { + $debugger = $this->getConfig('debug'); + $debugger($str); + } +} diff --git a/src/Services/BaseService.php b/src/Services/BaseService.php index d7e87df6e..95626b5af 100644 --- a/src/Services/BaseService.php +++ b/src/Services/BaseService.php @@ -2,7 +2,6 @@ namespace DTS\eBaySDK\Services; use DTS\eBaySDK\Parser\XmlParser; -use DTS\eBaySDK\Exceptions; use DTS\eBaySDK\ConfigurationResolver; use DTS\eBaySDK\Credentials\CredentialsProvider; use \DTS\eBaySDK as Functions; @@ -20,7 +19,7 @@ abstract class BaseService const CRLF = "\r\n"; /** - * @var DTS\eBaySDK\ConfigurationResolver Resolves configuration options. + * @var \DTS\eBaySDK\ConfigurationResolver Resolves configuration options. */ private $resolver; @@ -56,9 +55,9 @@ public function __construct( } /** - * Get an array of service configuration option definitions. + * Returns definitions for each configuration option that is supported. * - * @return array + * @return array An associative array of configuration definitions. */ public static function getConfigDefinitions() { @@ -95,7 +94,10 @@ public static function getConfigDefinitions() /** * Method to get the service's configuration. * - * @return mixed Returns an associative array of configuration options if no parameters are passed, otherwise returns the value for the specified configuration option. + * @param string|null $option The name of the option whos value will be returned. + * + * @return mixed Returns an associative array of configuration options if no parameters are passed, + * otherwise returns the value for the specified configuration option. */ public function getConfig($option = null) { @@ -106,7 +108,12 @@ public function getConfig($option = null) : null); } - public function setConfig($configuration) + /** + * Set multiple configuration options. + * + * @param array $configuration Associative array of configuration options and their values. + */ + public function setConfig(array $configuration) { $this->config = Functions\arrayMergeDeep( $this->config, @@ -115,6 +122,8 @@ public function setConfig($configuration) } /** + * Helper method to return the value of the credentials configuration option. + * * @return \DTS\eBaySDK\Credentials\CredentialsInterface */ public function getCredentials() @@ -127,7 +136,7 @@ public function getCredentials() * * @param string $name The name of the operation. * @param \DTS\eBaySDK\Types\BaseType $request Request object containing the request information. - * @param string The name of the PHP class that will be created from the XML response. + * @param string $responseClass The name of the PHP class that will be created from the XML response. * * @return \GuzzleHttp\Promise\PromiseInterface A promise that will be resolved with an object created from the XML response. */ @@ -216,7 +225,7 @@ private function buildXopDocument(\DTS\eBaySDK\Types\BaseType $request) * * @return string The attachment part of request body. */ - private function buildAttachmentBody($attachment) + private function buildAttachmentBody(array $attachment) { return sprintf( '%s%s%s%s%s%s', @@ -256,10 +265,10 @@ private function buildRequestHeaders($name, $request, $body) /** * Extracts the XML from the response if it contains an attachment. * - * @param string The XML response body. + * @param string $response The XML response body. * * @return array first item is the XML part of response body and the second - * is an attachement if one was present in the API response. + * is an attachement if one was present in the API response. */ private function extractXml($response) { @@ -276,7 +285,7 @@ private function extractXml($response) /** * Extracts the XML and the attachment from the response if it contains an attachment. * - * @param string The XML response body. + * @param string $response The XML response body. * * @return string The XML part of response body. */ @@ -320,7 +329,7 @@ abstract protected function getEbayHeaders($operationName); * @param array $headers Associative array of HTTP headers. * @param string $body The XML body of the POST request. */ - private function debugRequest($url, $headers, $body) + private function debugRequest($url, array $headers, $body) { $str = $url.PHP_EOL; @@ -346,6 +355,8 @@ private function debugResponse($body) /** * Sends a debug string via the attach debugger. + * + * @param string $str */ private function debug($str) { diff --git a/src/Shopping/Enums/AckCodeType.php b/src/Shopping/Enums/AckCodeType.php index e92dcf27e..0216cfb83 100644 --- a/src/Shopping/Enums/AckCodeType.php +++ b/src/Shopping/Enums/AckCodeType.php @@ -1,15 +1,15 @@ statusCode; + } +} diff --git a/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php b/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php index 29422baf9..33a8b138b 100644 --- a/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php +++ b/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php @@ -1,15 +1,15 @@ \DTS\eBaySDK\Trading\Services\TradingService::API_VERSION, 'required' => true ], + 'authorization' => [ + 'valid' => ['string'] + ], 'authToken' => [ 'valid' => ['string'] ], @@ -50,11 +81,11 @@ public static function getConfigDefinitions() * Sends an API request. * * This method overrides the parent so that it can modify - * the request object before is handled by the parent class. + * the request object before it is handled by the parent class. * * @param string $name The name of the operation. * @param \DTS\eBaySDK\Types\BaseType $request Request object containing the request information. - * @param string The name of the PHP class that will be created from the XML response. + * @param string $responseClass The name of the PHP class that will be created from the XML response. * * @return \GuzzleHttp\Promise\PromiseInterface A promise that will be resolved with an object created from the XML response. */ @@ -63,7 +94,14 @@ protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $reques /** * Modify the request object to include the auth token that was set up in the configuration. */ - if ($this->getConfig('authToken') !== null) { + if ($this->getConfig('authorization') !== null) { + /** + * Don't send requester credentials if oauth authentication needed. + */ + if (isset($request->RequesterCredentials)) { + unset($request->RequesterCredentials); + } + } elseif ($this->getConfig('authToken') !== null) { /** * Don't modify a request if the token already exists. */ @@ -79,7 +117,7 @@ protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $reques } /** - * Build the needed eBay HTTP headers. + * Builds the needed eBay HTTP headers. * * @param string $operationName The name of the operation been called. * @@ -101,15 +139,19 @@ protected function getEbayHeaders($operationName) // Add optional headers. if ($appId) { - $headers[self::HDR_APP_ID] = $credentials->getAppId(); + $headers[self::HDR_APP_ID] = $appId; } if ($certId) { - $headers[self::HDR_CERT_ID] = $credentials->getCertId(); + $headers[self::HDR_CERT_ID] = $certId; } if ($devId) { - $headers[self::HDR_DEV_ID] = $credentials->getDevId(); + $headers[self::HDR_DEV_ID] = $devId; + } + + if ($this->getConfig('authorization')) { + $headers[self::HDR_AUTHORIZATION] = $this->getConfig('authorization'); } return $headers; diff --git a/src/Trading/Services/TradingService.php b/src/Trading/Services/TradingService.php index ec698828c..4bf2e8bbc 100644 --- a/src/Trading/Services/TradingService.php +++ b/src/Trading/Services/TradingService.php @@ -1,15 +1,18 @@ [ The name of the property. - * 'type' => 'string', The data type or class name. - * 'repeatable' => false, Indicates if the property is repeatable, I.e is an array. - * 'attribute' => false, Indicates if the proeprty is an attribute in the XML. - * 'elementName' => 'Subject' The corressponding element in the XML. - * ] + * 'subject' => [ The name of the property. + * 'type' => 'string', The data type or class name. + * 'repeatable' => false, Indicates if the property is repeatable, I.e is an array. + * 'attribute' => false, Indicates if the proeprty is an attribute in the XML. + * 'elementName' => 'Subject' The corressponding element in the XML. + * ] * */ protected static $properties = []; @@ -68,6 +68,8 @@ public function __construct(array $values = []) * PHP magic function that is called when getting a property. * * @param string $name The property name. + * + * @return mixed */ public function __get($name) { @@ -89,6 +91,8 @@ public function __set($name, $value) * PHP magic function that is called to determine if a property is set. * * @param string $name The property name. + * + * @return bool */ public function __isset($name) { @@ -119,7 +123,7 @@ public function toRequestXml() * Converts the object to a XML string. * * @param string $elementName The XML element that the object's properties will be a children of. - * @param boolean $rootElement Indicates if the XML will be the root element. + * @param bool $rootElement Indicates if the XML will be the root element. * * @return string The XML. */ @@ -142,7 +146,7 @@ private function toXml($elementName, $rootElement = false) * This method is used when parsing the XML into a PHP object. The parser * needs the meta data for a property when the parser has only the element name. * - * @param $string $elementName The XML element that we want the meta for. + * @param string $elementName The element name. * * @return mixed The meta for the property or null if not found. */ @@ -154,7 +158,7 @@ public function elementMeta($elementName) $nameKey = $info['attribute'] ? 'attributeName' : 'elementName'; if (array_key_exists($nameKey, $info)) { if ($info[$nameKey] === $elementName) { - $meta = new \StdClass(); + $meta = new \stdClass(); $meta->propertyName = $elementName; $meta->phpType = $info['type']; $meta->repeatable = $info['repeatable']; @@ -173,9 +177,8 @@ public function elementMeta($elementName) /** * Method to get or set the object's attachment. Overrides any existing attachment is setting. * - * @param mixed If a string it is assumed to be the contents of the attachment. - * If an array copy its values across. - * @param string The MIME type of the attachment that will be used in the request. Defaults to application/octet-stream. + * @param mixed $data If a string it is assumed to be the contents of the attachment. If an array copy its values across. + * @param string $mimeType The MIME type of the attachment that will be used in the request. Defaults to application/octet-stream. * * @return mixed Returns the contents of the current atachment or null if none has been specified. */ @@ -197,7 +200,7 @@ public function attachment($data = null, $mimeType = 'application/octet-stream') /** * Helper method to check if an object has an attachment. * - * @return boolean Returns true if an object has an attachment. + * @return bool Returns true if an object has an attachment. */ public function hasAttachment() { @@ -247,6 +250,9 @@ public function search($expression) return Env::search($expression, $this); } + /** + * @return string JSON string of the object's properties and values. + */ public function __toString() { return json_encode($this->toArray()); @@ -257,14 +263,18 @@ public function __toString() * * @param string $class The name of the class the properties belong to. * @param array $values. Associative array of property names and their values. - * @throws UnknownPropertyException If the property does not exist. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property. */ protected function setValues($class, array $values = []) { foreach ($values as $property => $value) { - $actualValue = self::determineActualValueToAssign($class, $property, $value); - $this->set($class, $property, $actualValue); + $value = self::removeNull($value); + if (!is_null($value)) { + $actualValue = self::determineActualValueToAssign($class, $property, $value); + $this->set($class, $property, $actualValue); + } } } @@ -273,9 +283,9 @@ protected function setValues($class, array $values = []) * * @param string $class The name of the class the property belongs to. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. * - * @return mixed The value of the property. + * @return mixed The property value. + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private function get($class, $name) { @@ -290,8 +300,9 @@ private function get($class, $name) * @param string $class The name of the class the properties belong to. * @param string $name The property name. * @param mixed $value. The value to assign to the property. - * @throws UnknownPropertyException If the property does not exist. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property. */ private function set($class, $name, $value) { @@ -306,9 +317,9 @@ private function set($class, $name, $value) * * @param string $class The name of the class the properties belong to. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. * - * @return boolean Returns if the property has been set. + * @return bool Returns if the property has been set. + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private function isPropertySet($class, $name) { @@ -322,7 +333,8 @@ private function isPropertySet($class, $name) * * @param string $class The name of the class the properties belong to. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private function unSetProperty($class, $name) { @@ -337,7 +349,7 @@ private function unSetProperty($class, $name) * @param string $class The name of the class the properties belong to. * @param string $name The property name. * - * @return mixed The value of the property. + * @return mixed The property value. */ private function getValue($class, $name) { @@ -356,7 +368,8 @@ private function getValue($class, $name) * @param string $class The name of the class the properties belong to. * @param string $name The property name. * @param mixed $value. The value to assign to the property. - * @throws InvalidPropertyTypeException If trying to assign a non array type to an repeatable property. + * + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If trying to assign a non array type to an repeatable property. */ private function setValue($class, $name, $value) { @@ -442,7 +455,8 @@ private function propertiesToXml() * * @param string $class The name of the class that we are checking for. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private static function ensurePropertyExists($class, $name) { @@ -455,9 +469,10 @@ private static function ensurePropertyExists($class, $name) * Determines if the value is the correct type to assign to a property. * * @param string $class The name of the class that we are checking for. - * @param string $name The property name. - * @param mixed $name The value to check the type of. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * @param mixed $name The property name. + * @param mixed $value The value to check the type of. + * + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property. */ private static function ensurePropertyType($class, $name, $value) { @@ -467,7 +482,7 @@ private static function ensurePropertyType($class, $name, $value) $valid = explode('|', $info['type']); foreach ($valid as $check) { - if (\DTS\eBaySDK\checkPropertyType($check)) { + if ($check !== 'any' && \DTS\eBaySDK\checkPropertyType($check)) { if ($check === $actualType || 'array' === $actualType) { return; } @@ -505,7 +520,7 @@ private static function getActualType($value) * Helper function to return the meta data of a property. * * @param string $class The name of the class the property belongs to. - * @param string $name The of the property. + * @param string $name The property name. * * @return array The meta data for the property. */ @@ -517,8 +532,11 @@ private static function propertyInfo($class, $name) /** * Helper function to remove the properties and values that belong to a object's parent. * + * @param array $properties + * @param array $values + * * @return array The first element is an array of parent properties and values. - * The second element is an array of the object's properties and values. + * The second element is an array of the object's properties and values. */ protected static function getParentValues(array $properties, array $values) { @@ -531,8 +549,8 @@ protected static function getParentValues(array $properties, array $values) /** * Helper function to convert an attribute property into XML * - * @param string $class The name of the class the property belongs to. - * @param string $name The of the attribute property. + * @param string $name The attribute name. + * @param mixed $value The attribute value. * * @return string The XML. */ @@ -544,8 +562,8 @@ private static function attributeToXml($name, $value) /** * Helper function to convert an property into XML * - * @param string $name The of the property. - * @param mixed $value The value of the property. + * @param string $name The property name. + * @param mixed $value The property value. * * @return string The XML. */ @@ -561,7 +579,7 @@ private static function propertyToXml($name, $value) /** * Helper function to convert a value into XML * - * @param mixed $value The value of the property. + * @param mixed $value The property value. * * @return string The XML. */ @@ -569,7 +587,7 @@ private static function encodeValueXml($value) { if ($value instanceof \DateTime) { return $value->format('Y-m-d\TH:i:s.000\Z'); - } else if (is_bool($value)) { + } elseif (is_bool($value)) { return $value ? 'true' : 'false'; } else { return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', true); @@ -579,7 +597,7 @@ private static function encodeValueXml($value) /** * Helper function to convert a property in a value that we want in an array. * - * @param mixed $value The value of the property. + * @param mixed $value The property value. * * @return mixed A value to add to an array. */ @@ -587,7 +605,7 @@ private static function propertyToArrayValue($value) { if (is_subclass_of($value, '\DTS\eBaySDK\Types\BaseType', false)) { return $value->toArray(); - } else if ($value instanceof \DateTime) { + } elseif ($value instanceof \DateTime) { return $value->format('Y-m-d\TH:i:s.000\Z'); } else { return $value; @@ -597,6 +615,12 @@ private static function propertyToArrayValue($value) /** * Helper function when assigning values via the ctor. * Determines the actual value to assign to a property. + * + * @param string $class The name of the class the property belong to. + * @param string $property The property name. + * @param mixed $value The property value. + * + * @return mixed */ private static function determineActualValueToAssign($class, $property, $value) { @@ -609,18 +633,23 @@ private static function determineActualValueToAssign($class, $property, $value) if ($info['repeatable'] && is_array($value)) { $values = []; foreach ($value as $val) { - $values[] = self::actualValue($info, $class, $property, $val); + $values[] = self::actualValue($info, $val); } return $values; } - return self::actualValue($info, $class, $property, $value); + return self::actualValue($info, $value); } /** * Helper function when assigning values via the ctor. + * + * @param array $info The metadata for the property. + * @param mixed $value The property value. + * + * @return mixed */ - private static function actualValue($info, $class, $property, $value) + private static function actualValue(array $info, $value) { /** * Shortcut. Objects can be assigned as is. @@ -637,12 +666,29 @@ private static function actualValue($info, $class, $property, $value) case 'string': case 'double': case 'boolean': + case 'any': return $value; case 'DateTime': return new \DateTime($value, new \DateTimeZone('UTC')); - default: - return new $info['type']($value); } } + + return new $info['type']($value); + } + + /** + * @param mixed $value Remove null elements if an array. + * + * @return mixed Original value if not an array or array without null elements. + */ + private static function removeNull($value) + { + if (!is_array($value)) { + return $value; + } + + return array_filter($value, function ($val) { + return !is_null($val); + }); } } diff --git a/src/Types/RepeatableType.php b/src/Types/RepeatableType.php index 91bbb6560..217d1aa97 100644 --- a/src/Types/RepeatableType.php +++ b/src/Types/RepeatableType.php @@ -17,7 +17,7 @@ class RepeatableType implements \ArrayAccess, \Countable, \Iterator, JmesPathabl private $data = []; /** - * @var integer The current position in the array. + * @var int The current position in the array. */ private $position = 0; @@ -52,9 +52,9 @@ public function __construct($class, $property, $expectedType) /** * Determines if the offset exists in the array. * - * @param integer $offset The array index to check. + * @param int $offset The array index to check. * - * @return boolean Returns if the offset exists in the array. + * @return bool Returns if the offset exists in the array. */ public function offsetExists($offset) { @@ -64,7 +64,7 @@ public function offsetExists($offset) /** * Returns the value of the given offset. * - * @param integer $offset The array index. + * @param int $offset The array index. * * @return mixed Returns the value for the given offset or null if it doesn't exist. */ @@ -77,7 +77,9 @@ public function offsetGet($offset) * Sets a value for the given offset. * * @param mixed $offset The array index or null to add the value to the end of the array. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * @param mixed $value The value to add. + * + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the array. */ public function offsetSet($offset, $value) { @@ -93,7 +95,7 @@ public function offsetSet($offset, $value) /** * Unsets the value of the given offset. * - * @param integer $offset The array index. + * @param int $offset The array index. */ public function offsetUnset($offset) { @@ -101,7 +103,7 @@ public function offsetUnset($offset) } /** - * @return integer The number of array items. + * @return int The number of array items. */ public function count() { @@ -117,7 +119,7 @@ public function current() } /** - * @return index The current array index. + * @return int The current array index. */ public function key() { @@ -141,7 +143,7 @@ public function rewind() } /** - * @return boolean Return if the current array index is valid. + * @return bool Return if the current array index is valid. */ public function valid() { @@ -149,10 +151,11 @@ public function valid() } /** - * Determines if the value is the correct type to assign to a property. + * Determines if the value is the correct type to assign to the array. + * + * @param mixed $value The value to check the type of. * - * @param mixed $name The value to check the type of. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the array. */ private function ensurePropertyType($value) { @@ -164,7 +167,7 @@ private function ensurePropertyType($value) $valid = explode('|', $this->expectedType); $isValid = false; foreach ($valid as $check) { - if (\DTS\eBaySDK\checkPropertyType($check)) { + if ($check !== 'any' && \DTS\eBaySDK\checkPropertyType($check)) { if ($check === $actualType) { return; } diff --git a/src/UriResolver.php b/src/UriResolver.php new file mode 100644 index 000000000..b64319e6d --- /dev/null +++ b/src/UriResolver.php @@ -0,0 +1,162 @@ + 'is_array', + 'bool' => 'is_bool', + 'callable' => 'is_callable', + 'int' => 'is_int', + 'string' => 'is_string' + ]; + + public function __construct() + { + } + + /** + * Resolve and validate the passed uri. + * + * @param string $uri Uri to resolve. + * @param string $version API version. + * @param string $resource The name of the resource. + * @param array $paramDefs Associative array of uri parameter definitions for the operation. + * @param array $paramValues Associative array of uri parameter values for the operation. + * + * @return string Returns a resolved uri. + * @throws \InvalidArgumentException. + */ + public function resolve($uri, $version, $resource, array $paramDefs, array $paramValues) + { + foreach ($paramValues as $param => $value) { + if (!array_key_exists($param, $paramDefs)) { + throw new \InvalidArgumentException("Unknown uri parameter \"$param\" provided"); + } + } + + foreach ($paramDefs as $key => $def) { + if (!isset($paramValues[$key])) { + if (isset($def['default'])) { + $paramValues[$key] = is_callable($def['default']) + ? $def['default']($paramValues) + : $def['default']; + } elseif (empty($def['required'])) { + continue; + } else { + $this->throwRequired($paramDefs, $paramValues); + } + } + + $this->checkType($def['valid'], $key, $paramValues[$key]); + + if (isset($def['fn'])) { + $def['fn']($paramValues[$key], $paramValues); + } + } + + return ( + "$uri/". + "$version/". + $this->fillPathParams($resource, $paramValues). + $this->buildQueryParameters($paramValues) + ); + } + + private function checkType(array $valid, $name, $provided) + { + foreach ($valid as $check) { + if (isset(self::$typeMap[$check])) { + $fn = self::$typeMap[$check]; + if ($fn($provided)) { + return; + } + } elseif ($provided instanceof $check) { + return; + } + } + + $expected = implode('|', $valid); + $msg = sprintf( + 'Invalid uri parameter value provided for "%s". Expected %s, but got %s', + $name, + $expected, + describeType($provided) + ); + throw new \InvalidArgumentException($msg); + } + + private function throwRequired(array $paramDefs, array $paramValues) + { + $missing = []; + + foreach ($paramDefs as $key => $def) { + if (empty($def['required']) + || isset($def['default']) + || array_key_exists($key, $paramValues) + ) { + continue; + } + $missing[] = $key; + } + + $msg = "Missing required uri parameters: \n\n"; + $msg .= implode("\n\n", $missing); + throw new \InvalidArgumentException($msg); + } + + /** + * Replaces path parameters placeholders in the uri with the correct values. + * + * @param string $uri A uri with path parameters. + * @param array $paramValues Associative array of path parameter names and their values. + * + * @return string The path. + */ + private function fillPathParams($uri, array &$paramValues) + { + return preg_replace_callback('/{(\S+)}/U', function ($matches) use (&$paramValues) { + $path = $matches[1]; + if (array_key_exists($path, $paramValues)) { + $value = $paramValues[$path]; + unset($paramValues[$path]); + } else { + $value = $path; + } + return $value; + }, $uri); + } + + /** + * Builds a query parameters string. + * + * @param array $paramValues Associative array of query parameter names and their values. + * + * @return string The query parameters string + */ + private function buildQueryParameters(array $paramValues) + { + if (empty($paramValues)) { + return ''; + } + + $query = []; + foreach ($paramValues as $param => $value) { + if (is_array($value)) { + $value = join(',', $value); + } elseif (is_bool($value)) { + $value = $value ? 'true' : 'false'; + } elseif (is_callable($value)) { + $value = $value(); + } + $query[] = $param.'='.urlencode($value); + } + return '?'.join('&', $query); + } +} diff --git a/src/functions.php b/src/functions.php index cceeaf617..a86a61ead 100644 --- a/src/functions.php +++ b/src/functions.php @@ -4,9 +4,14 @@ use DTS\eBaySDK\Credentials\Credentials; use DTS\eBaySDK\Credentials\CredentialsProvider; use DTS\eBaySDK\Credentials\CredentialsInterface; -use DTS\eBaySDK\Debugger; -use DTS\eBaySDK\HttpHandler; +/** + * Returns a description of the type for the passed value. + * + * @param mixed $value The value whos type will be described. + * + * @return string A description of the value's type. + */ function describeType($value) { switch (gettype($value)) { @@ -22,8 +27,11 @@ function describeType($value) } /** + * Merges multiple arrays, recursively, and returns the merged array. * Code taken from * https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_array_merge_deep/7 + * + * @return array The merged array. */ function arrayMergeDeep() { @@ -31,7 +39,14 @@ function arrayMergeDeep() return arrayMergeDeepArray($args); } -function arrayMergeDeepArray($arrays) +/** + * Merges multiple arrays, recursively, and returns the merged array. + * + * @param array $arrays The arrays to merge. + * + * @return array The merged array. + */ +function arrayMergeDeepArray(array $arrays) { $result = []; @@ -55,6 +70,14 @@ function arrayMergeDeepArray($arrays) return $result; } +/** + * Resolve and apply the passed credentials. + * + * @param mixed $value The credentials. + * @param array &$configuration The configuration array where the resolved credentials will be stored. + * + * @throws \InvalidArgumentException. + */ function applyCredentials($value, array &$configuration) { if (is_callable($value)) { @@ -64,7 +87,7 @@ function applyCredentials($value, array &$configuration) } else { $configuration['credentials'] = $c; } - } else if ($value instanceof CredentialsInterface) { + } elseif ($value instanceof CredentialsInterface) { return; } elseif (is_array($value) && isset($value['appId']) @@ -86,11 +109,23 @@ function applyCredentials($value, array &$configuration) } } +/** + * Resolves the credentials with a ini provider. + * + * @param mixed $value Not used. + * @param array &$configuration The configuration array where the provider will be stored. + */ function applyProfile($value, array &$configuration) { $configuration['credentials'] = CredentialsProvider::ini($configuration['profile']); } +/** + * Applies the default debugger if required. + * + * @param mixed $value Debugger options. + * @param array &$configuration The configuration array where the resolved debugger will be stored. + */ function applyDebug($value, array &$configuration) { if ($value !== false) { @@ -100,6 +135,13 @@ function applyDebug($value, array &$configuration) } } +/** + * Returns the default HTTP handler. + * + * @param array &$configuration Not used. + * + * @return \DTS\eBaySDK\HttpHandler + */ function defaultHttpHandler(array &$configuration) { return new HttpHandler(); @@ -107,6 +149,10 @@ function defaultHttpHandler(array &$configuration) /** * Helper function that returns true if the property type should be checked. + * + * @param string $type The type name. + * + * @return bool */ function checkPropertyType($type) { diff --git a/test/Account/Enums/CategoryTypeEnumTest.php b/test/Account/Enums/CategoryTypeEnumTest.php new file mode 100644 index 000000000..e40cc47e3 --- /dev/null +++ b/test/Account/Enums/CategoryTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CategoryTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\CategoryTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/CountryCodeEnumTest.php b/test/Account/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..e6a8030ac --- /dev/null +++ b/test/Account/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/CurrencyCodeEnumTest.php b/test/Account/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..51661c914 --- /dev/null +++ b/test/Account/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php b/test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..56342e74e --- /dev/null +++ b/test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ExternalPaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ExternalPaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/MarketplaceIdEnumTest.php b/test/Account/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..bb86930b2 --- /dev/null +++ b/test/Account/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/Account/Enums/PaymentInstrumentBrandEnumTest.php b/test/Account/Enums/PaymentInstrumentBrandEnumTest.php new file mode 100644 index 000000000..aae506061 --- /dev/null +++ b/test/Account/Enums/PaymentInstrumentBrandEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentInstrumentBrandEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\PaymentInstrumentBrandEnum', $this->obj); + } +} diff --git a/test/Account/Enums/PaymentMethodTypeEnumTest.php b/test/Account/Enums/PaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..6cba64a13 --- /dev/null +++ b/test/Account/Enums/PaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\PaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ProgramTypeEnumTest.php b/test/Account/Enums/ProgramTypeEnumTest.php new file mode 100644 index 000000000..d8d1a468d --- /dev/null +++ b/test/Account/Enums/ProgramTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ProgramTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ProgramTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php b/test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php new file mode 100644 index 000000000..037b9ee6f --- /dev/null +++ b/test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RecipientAccountReferenceTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\RecipientAccountReferenceTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/RefundMethodEnumTest.php b/test/Account/Enums/RefundMethodEnumTest.php new file mode 100644 index 000000000..9d4ba2a2a --- /dev/null +++ b/test/Account/Enums/RefundMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\RefundMethodEnum', $this->obj); + } +} diff --git a/test/Account/Enums/RegionTypeEnumTest.php b/test/Account/Enums/RegionTypeEnumTest.php new file mode 100644 index 000000000..8a846c7d9 --- /dev/null +++ b/test/Account/Enums/RegionTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RegionTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\RegionTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ReturnMethodEnumTest.php b/test/Account/Enums/ReturnMethodEnumTest.php new file mode 100644 index 000000000..660c65569 --- /dev/null +++ b/test/Account/Enums/ReturnMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ReturnMethodEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ReturnShippingCostPayerEnumTest.php b/test/Account/Enums/ReturnShippingCostPayerEnumTest.php new file mode 100644 index 000000000..8a5f1429d --- /dev/null +++ b/test/Account/Enums/ReturnShippingCostPayerEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnShippingCostPayerEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ReturnShippingCostPayerEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ShippingCostTypeEnumTest.php b/test/Account/Enums/ShippingCostTypeEnumTest.php new file mode 100644 index 000000000..0fe3ef987 --- /dev/null +++ b/test/Account/Enums/ShippingCostTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingCostTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ShippingCostTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ShippingOptionTypeEnumTest.php b/test/Account/Enums/ShippingOptionTypeEnumTest.php new file mode 100644 index 000000000..bb75ca5f7 --- /dev/null +++ b/test/Account/Enums/ShippingOptionTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingOptionTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ShippingOptionTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/TimeDurationUnitEnumTest.php b/test/Account/Enums/TimeDurationUnitEnumTest.php new file mode 100644 index 000000000..020278eb3 --- /dev/null +++ b/test/Account/Enums/TimeDurationUnitEnumTest.php @@ -0,0 +1,28 @@ +obj = new TimeDurationUnitEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\TimeDurationUnitEnum', $this->obj); + } +} diff --git a/test/Account/Mocks/Service.php b/test/Account/Mocks/Service.php new file mode 100644 index 000000000..0fd7d9114 --- /dev/null +++ b/test/Account/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Account/Services/ServiceTest.php b/test/Account/Services/ServiceTest.php new file mode 100644 index 000000000..380573b64 --- /dev/null +++ b/test/Account/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => AccountService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(AccountBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[AccountBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(AccountBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(AccountBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[AccountBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Account/Types/AmountTest.php b/test/Account/Types/AmountTest.php new file mode 100644 index 000000000..a2079d3c5 --- /dev/null +++ b/test/Account/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/CategoryTypeTest.php b/test/Account/Types/CategoryTypeTest.php new file mode 100644 index 000000000..0106a2ea7 --- /dev/null +++ b/test/Account/Types/CategoryTypeTest.php @@ -0,0 +1,33 @@ +obj = new CategoryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CategoryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php b/test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php new file mode 100644 index 000000000..96bc460ef --- /dev/null +++ b/test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAFulfillmentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest', $this->obj); + } + + public function testExtendsFulfillmentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php b/test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php new file mode 100644 index 000000000..9ebabf618 --- /dev/null +++ b/test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAFulfillmentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetFulfillmentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetFulfillmentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/CreateAPaymentPolicyRestRequestTest.php b/test/Account/Types/CreateAPaymentPolicyRestRequestTest.php new file mode 100644 index 000000000..6ce653f1b --- /dev/null +++ b/test/Account/Types/CreateAPaymentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAPaymentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest', $this->obj); + } + + public function testExtendsPaymentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/CreateAPaymentPolicyRestResponseTest.php b/test/Account/Types/CreateAPaymentPolicyRestResponseTest.php new file mode 100644 index 000000000..eab6b8287 --- /dev/null +++ b/test/Account/Types/CreateAPaymentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAPaymentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetPaymentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetPaymentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/CreateAReturnPolicyRestRequestTest.php b/test/Account/Types/CreateAReturnPolicyRestRequestTest.php new file mode 100644 index 000000000..2d73f5d9f --- /dev/null +++ b/test/Account/Types/CreateAReturnPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAReturnPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest', $this->obj); + } + + public function testExtendsReturnPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/CreateAReturnPolicyRestResponseTest.php b/test/Account/Types/CreateAReturnPolicyRestResponseTest.php new file mode 100644 index 000000000..96987f8b3 --- /dev/null +++ b/test/Account/Types/CreateAReturnPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAReturnPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse', $this->obj); + } + + public function testExtendsSetReturnPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetReturnPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/CreateASalesTaxTableRestRequestTest.php b/test/Account/Types/CreateASalesTaxTableRestRequestTest.php new file mode 100644 index 000000000..a1739a8ea --- /dev/null +++ b/test/Account/Types/CreateASalesTaxTableRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateASalesTaxTableRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest', $this->obj); + } + + public function testExtendsSalesTaxBase() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxBase', $this->obj); + } +} diff --git a/test/Account/Types/CreateASalesTaxTableRestResponseTest.php b/test/Account/Types/CreateASalesTaxTableRestResponseTest.php new file mode 100644 index 000000000..c1457e843 --- /dev/null +++ b/test/Account/Types/CreateASalesTaxTableRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateASalesTaxTableRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php b/test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php new file mode 100644 index 000000000..5c27e9cbc --- /dev/null +++ b/test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAFulfillmentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php b/test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php new file mode 100644 index 000000000..45a93d0a7 --- /dev/null +++ b/test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAFulfillmentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php b/test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php new file mode 100644 index 000000000..d27c25079 --- /dev/null +++ b/test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAPaymentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php b/test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php new file mode 100644 index 000000000..c3143daaf --- /dev/null +++ b/test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAPaymentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAReturnPolicyRestRequestTest.php b/test/Account/Types/DeleteAReturnPolicyRestRequestTest.php new file mode 100644 index 000000000..9f65f207e --- /dev/null +++ b/test/Account/Types/DeleteAReturnPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAReturnPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAReturnPolicyRestResponseTest.php b/test/Account/Types/DeleteAReturnPolicyRestResponseTest.php new file mode 100644 index 000000000..fcd35573a --- /dev/null +++ b/test/Account/Types/DeleteAReturnPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAReturnPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteASalesTaxTableRestRequestTest.php b/test/Account/Types/DeleteASalesTaxTableRestRequestTest.php new file mode 100644 index 000000000..d4960dd23 --- /dev/null +++ b/test/Account/Types/DeleteASalesTaxTableRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteASalesTaxTableRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteASalesTaxTableRestResponseTest.php b/test/Account/Types/DeleteASalesTaxTableRestResponseTest.php new file mode 100644 index 000000000..a36e1c816 --- /dev/null +++ b/test/Account/Types/DeleteASalesTaxTableRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteASalesTaxTableRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DepositTest.php b/test/Account/Types/DepositTest.php new file mode 100644 index 000000000..2951a3bd9 --- /dev/null +++ b/test/Account/Types/DepositTest.php @@ -0,0 +1,33 @@ +obj = new Deposit(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Deposit', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ErrorDetailV3Test.php b/test/Account/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..591a89541 --- /dev/null +++ b/test/Account/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ErrorParameterV3Test.php b/test/Account/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..cb6eaa494 --- /dev/null +++ b/test/Account/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ExternalPaymentMethodTest.php b/test/Account/Types/ExternalPaymentMethodTest.php new file mode 100644 index 000000000..8def38c2f --- /dev/null +++ b/test/Account/Types/ExternalPaymentMethodTest.php @@ -0,0 +1,33 @@ +obj = new ExternalPaymentMethod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ExternalPaymentMethod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/FulfillmentPolicyRequestTest.php b/test/Account/Types/FulfillmentPolicyRequestTest.php new file mode 100644 index 000000000..6aa474107 --- /dev/null +++ b/test/Account/Types/FulfillmentPolicyRequestTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentPolicyRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/FulfillmentPolicyResponseTest.php b/test/Account/Types/FulfillmentPolicyResponseTest.php new file mode 100644 index 000000000..c04cb15c7 --- /dev/null +++ b/test/Account/Types/FulfillmentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/FulfillmentPolicyTest.php b/test/Account/Types/FulfillmentPolicyTest.php new file mode 100644 index 000000000..dfe25b7cb --- /dev/null +++ b/test/Account/Types/FulfillmentPolicyTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentPolicy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php b/test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php new file mode 100644 index 000000000..918506760 --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php b/test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php new file mode 100644 index 000000000..0a8fb8ce9 --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestResponse', $this->obj); + } + + public function testExtendsFulfillmentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php b/test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php new file mode 100644 index 000000000..a9e999a5f --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php b/test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php new file mode 100644 index 000000000..810dd5c67 --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestResponse', $this->obj); + } + + public function testExtendsFulfillmentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php b/test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php new file mode 100644 index 000000000..333429266 --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php b/test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php new file mode 100644 index 000000000..4760a2d93 --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestResponse', $this->obj); + } + + public function testExtendsPaymentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php b/test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php new file mode 100644 index 000000000..3267f361f --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php b/test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php new file mode 100644 index 000000000..113f035c1 --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestResponse', $this->obj); + } + + public function testExtendsPaymentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php b/test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php new file mode 100644 index 000000000..7139db297 --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php b/test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php new file mode 100644 index 000000000..3438ac21b --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestResponse', $this->obj); + } + + public function testExtendsReturnPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php b/test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php new file mode 100644 index 000000000..067159246 --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php b/test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php new file mode 100644 index 000000000..462abeee4 --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestResponse', $this->obj); + } + + public function testExtendsReturnPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetASalesTaxTableRestRequestTest.php b/test/Account/Types/GetASalesTaxTableRestRequestTest.php new file mode 100644 index 000000000..b1898e0d1 --- /dev/null +++ b/test/Account/Types/GetASalesTaxTableRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetASalesTaxTableRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetASalesTaxTableRestResponseTest.php b/test/Account/Types/GetASalesTaxTableRestResponseTest.php new file mode 100644 index 000000000..1f00d1698 --- /dev/null +++ b/test/Account/Types/GetASalesTaxTableRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetASalesTaxTableRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestResponse', $this->obj); + } + + public function testExtendsSalesTax() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTax', $this->obj); + } +} diff --git a/test/Account/Types/GetAccountPrivilegesRestResponseTest.php b/test/Account/Types/GetAccountPrivilegesRestResponseTest.php new file mode 100644 index 000000000..e82d3c0a6 --- /dev/null +++ b/test/Account/Types/GetAccountPrivilegesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAccountPrivilegesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAccountPrivilegesRestResponse', $this->obj); + } + + public function testExtendsSellingPrivileges() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SellingPrivileges', $this->obj); + } +} diff --git a/test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php b/test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php new file mode 100644 index 000000000..5b560e438 --- /dev/null +++ b/test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAllSalesTaxTablesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php b/test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php new file mode 100644 index 000000000..b586e3348 --- /dev/null +++ b/test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAllSalesTaxTablesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestResponse', $this->obj); + } + + public function testExtendsSalesTaxes() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxes', $this->obj); + } +} diff --git a/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php new file mode 100644 index 000000000..b074cce89 --- /dev/null +++ b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetFulfillmentPoliciesByMarketplaceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php new file mode 100644 index 000000000..bafbeedae --- /dev/null +++ b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetFulfillmentPoliciesByMarketplaceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestResponse', $this->obj); + } + + public function testExtendsFulfillmentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/GetOptedInProgramsRestResponseTest.php b/test/Account/Types/GetOptedInProgramsRestResponseTest.php new file mode 100644 index 000000000..c963e2506 --- /dev/null +++ b/test/Account/Types/GetOptedInProgramsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOptedInProgramsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetOptedInProgramsRestResponse', $this->obj); + } + + public function testExtendsPrograms() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Programs', $this->obj); + } +} diff --git a/test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php new file mode 100644 index 000000000..1c77e7872 --- /dev/null +++ b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPaymentPoliciesByMarketplaceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php new file mode 100644 index 000000000..01dd2ec78 --- /dev/null +++ b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPaymentPoliciesByMarketplaceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestResponse', $this->obj); + } + + public function testExtendsPaymentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php b/test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php new file mode 100644 index 000000000..6e23a9639 --- /dev/null +++ b/test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnPoliciesByMarketplaceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php b/test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php new file mode 100644 index 000000000..7a465507d --- /dev/null +++ b/test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnPoliciesByMarketplaceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestResponse', $this->obj); + } + + public function testExtendsReturnPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/InventorySizingTest.php b/test/Account/Types/InventorySizingTest.php new file mode 100644 index 000000000..e23b97168 --- /dev/null +++ b/test/Account/Types/InventorySizingTest.php @@ -0,0 +1,33 @@ +obj = new InventorySizing(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\InventorySizing', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/InventorySnapshotTest.php b/test/Account/Types/InventorySnapshotTest.php new file mode 100644 index 000000000..7681e9fe9 --- /dev/null +++ b/test/Account/Types/InventorySnapshotTest.php @@ -0,0 +1,33 @@ +obj = new InventorySnapshot(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\InventorySnapshot', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/LookbackPeriodTest.php b/test/Account/Types/LookbackPeriodTest.php new file mode 100644 index 000000000..ab23d4c7d --- /dev/null +++ b/test/Account/Types/LookbackPeriodTest.php @@ -0,0 +1,33 @@ +obj = new LookbackPeriod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\LookbackPeriod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/MerchantExternalProfileTest.php b/test/Account/Types/MerchantExternalProfileTest.php new file mode 100644 index 000000000..d4051e80e --- /dev/null +++ b/test/Account/Types/MerchantExternalProfileTest.php @@ -0,0 +1,33 @@ +obj = new MerchantExternalProfile(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\MerchantExternalProfile', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/OptInToProgramRestRequestTest.php b/test/Account/Types/OptInToProgramRestRequestTest.php new file mode 100644 index 000000000..1e0e537cd --- /dev/null +++ b/test/Account/Types/OptInToProgramRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new OptInToProgramRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptInToProgramRestRequest', $this->obj); + } + + public function testExtendsProgram() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Program', $this->obj); + } +} diff --git a/test/Account/Types/OptInToProgramRestResponseTest.php b/test/Account/Types/OptInToProgramRestResponseTest.php new file mode 100644 index 000000000..09bb77c3a --- /dev/null +++ b/test/Account/Types/OptInToProgramRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new OptInToProgramRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptInToProgramRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/OptOutOfProgramRestRequestTest.php b/test/Account/Types/OptOutOfProgramRestRequestTest.php new file mode 100644 index 000000000..571c493bf --- /dev/null +++ b/test/Account/Types/OptOutOfProgramRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new OptOutOfProgramRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest', $this->obj); + } + + public function testExtendsProgram() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Program', $this->obj); + } +} diff --git a/test/Account/Types/OptOutOfProgramRestResponseTest.php b/test/Account/Types/OptOutOfProgramRestResponseTest.php new file mode 100644 index 000000000..02c3db905 --- /dev/null +++ b/test/Account/Types/OptOutOfProgramRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new OptOutOfProgramRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptOutOfProgramRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentMethodTest.php b/test/Account/Types/PaymentMethodTest.php new file mode 100644 index 000000000..bd5ad8b70 --- /dev/null +++ b/test/Account/Types/PaymentMethodTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentMethod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentPolicyRequestTest.php b/test/Account/Types/PaymentPolicyRequestTest.php new file mode 100644 index 000000000..9856be7ea --- /dev/null +++ b/test/Account/Types/PaymentPolicyRequestTest.php @@ -0,0 +1,33 @@ +obj = new PaymentPolicyRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentPolicyResponseTest.php b/test/Account/Types/PaymentPolicyResponseTest.php new file mode 100644 index 000000000..17e9c04ed --- /dev/null +++ b/test/Account/Types/PaymentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new PaymentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentPolicyTest.php b/test/Account/Types/PaymentPolicyTest.php new file mode 100644 index 000000000..72ff4d966 --- /dev/null +++ b/test/Account/Types/PaymentPolicyTest.php @@ -0,0 +1,33 @@ +obj = new PaymentPolicy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ProgramTest.php b/test/Account/Types/ProgramTest.php new file mode 100644 index 000000000..e99e96de8 --- /dev/null +++ b/test/Account/Types/ProgramTest.php @@ -0,0 +1,33 @@ +obj = new Program(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Program', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ProgramsTest.php b/test/Account/Types/ProgramsTest.php new file mode 100644 index 000000000..472759a7a --- /dev/null +++ b/test/Account/Types/ProgramsTest.php @@ -0,0 +1,33 @@ +obj = new Programs(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Programs', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/RecipientAccountReferenceTest.php b/test/Account/Types/RecipientAccountReferenceTest.php new file mode 100644 index 000000000..1cf2a030d --- /dev/null +++ b/test/Account/Types/RecipientAccountReferenceTest.php @@ -0,0 +1,33 @@ +obj = new RecipientAccountReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\RecipientAccountReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/RegionSetTest.php b/test/Account/Types/RegionSetTest.php new file mode 100644 index 000000000..424588aa3 --- /dev/null +++ b/test/Account/Types/RegionSetTest.php @@ -0,0 +1,33 @@ +obj = new RegionSet(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\RegionSet', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/RegionTest.php b/test/Account/Types/RegionTest.php new file mode 100644 index 000000000..c780d669a --- /dev/null +++ b/test/Account/Types/RegionTest.php @@ -0,0 +1,33 @@ +obj = new Region(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Region', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnPolicyRequestTest.php b/test/Account/Types/ReturnPolicyRequestTest.php new file mode 100644 index 000000000..f6f083321 --- /dev/null +++ b/test/Account/Types/ReturnPolicyRequestTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicyRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnPolicyResponseTest.php b/test/Account/Types/ReturnPolicyResponseTest.php new file mode 100644 index 000000000..346e9edb7 --- /dev/null +++ b/test/Account/Types/ReturnPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnPolicyTest.php b/test/Account/Types/ReturnPolicyTest.php new file mode 100644 index 000000000..db88b6ca5 --- /dev/null +++ b/test/Account/Types/ReturnPolicyTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnSnapshotTest.php b/test/Account/Types/ReturnSnapshotTest.php new file mode 100644 index 000000000..d3ceedba7 --- /dev/null +++ b/test/Account/Types/ReturnSnapshotTest.php @@ -0,0 +1,33 @@ +obj = new ReturnSnapshot(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnSnapshot', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SalesTaxBaseTest.php b/test/Account/Types/SalesTaxBaseTest.php new file mode 100644 index 000000000..258d79261 --- /dev/null +++ b/test/Account/Types/SalesTaxBaseTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxBase(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxBase', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SalesTaxTest.php b/test/Account/Types/SalesTaxTest.php new file mode 100644 index 000000000..b5dcc150b --- /dev/null +++ b/test/Account/Types/SalesTaxTest.php @@ -0,0 +1,33 @@ +obj = new SalesTax(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTax', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SalesTaxesTest.php b/test/Account/Types/SalesTaxesTest.php new file mode 100644 index 000000000..e17430de2 --- /dev/null +++ b/test/Account/Types/SalesTaxesTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxes(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxes', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SellingLimitTest.php b/test/Account/Types/SellingLimitTest.php new file mode 100644 index 000000000..f73ffc3fc --- /dev/null +++ b/test/Account/Types/SellingLimitTest.php @@ -0,0 +1,33 @@ +obj = new SellingLimit(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SellingLimit', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SellingPrivilegesTest.php b/test/Account/Types/SellingPrivilegesTest.php new file mode 100644 index 000000000..657439718 --- /dev/null +++ b/test/Account/Types/SellingPrivilegesTest.php @@ -0,0 +1,33 @@ +obj = new SellingPrivileges(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SellingPrivileges', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SetFulfillmentPolicyResponseTest.php b/test/Account/Types/SetFulfillmentPolicyResponseTest.php new file mode 100644 index 000000000..7decb0e6f --- /dev/null +++ b/test/Account/Types/SetFulfillmentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetFulfillmentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetFulfillmentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SetPaymentPolicyResponseTest.php b/test/Account/Types/SetPaymentPolicyResponseTest.php new file mode 100644 index 000000000..03e38e097 --- /dev/null +++ b/test/Account/Types/SetPaymentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetPaymentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetPaymentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SetReturnPolicyResponseTest.php b/test/Account/Types/SetReturnPolicyResponseTest.php new file mode 100644 index 000000000..d192032ac --- /dev/null +++ b/test/Account/Types/SetReturnPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetReturnPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ShippingOptionTest.php b/test/Account/Types/ShippingOptionTest.php new file mode 100644 index 000000000..e467e67cc --- /dev/null +++ b/test/Account/Types/ShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ShippingServiceTest.php b/test/Account/Types/ShippingServiceTest.php new file mode 100644 index 000000000..ce0f10377 --- /dev/null +++ b/test/Account/Types/ShippingServiceTest.php @@ -0,0 +1,33 @@ +obj = new ShippingService(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ShippingService', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SoldAggregatedMetricsTest.php b/test/Account/Types/SoldAggregatedMetricsTest.php new file mode 100644 index 000000000..b73f0932b --- /dev/null +++ b/test/Account/Types/SoldAggregatedMetricsTest.php @@ -0,0 +1,33 @@ +obj = new SoldAggregatedMetrics(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SoldAggregatedMetrics', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/TimeDurationTest.php b/test/Account/Types/TimeDurationTest.php new file mode 100644 index 000000000..d08db55c9 --- /dev/null +++ b/test/Account/Types/TimeDurationTest.php @@ -0,0 +1,33 @@ +obj = new TimeDuration(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\TimeDuration', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/TransactionSnapshotTest.php b/test/Account/Types/TransactionSnapshotTest.php new file mode 100644 index 000000000..d0b4fa521 --- /dev/null +++ b/test/Account/Types/TransactionSnapshotTest.php @@ -0,0 +1,33 @@ +obj = new TransactionSnapshot(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\TransactionSnapshot', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/TransactionVolumeTest.php b/test/Account/Types/TransactionVolumeTest.php new file mode 100644 index 000000000..e36e36d0a --- /dev/null +++ b/test/Account/Types/TransactionVolumeTest.php @@ -0,0 +1,33 @@ +obj = new TransactionVolume(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\TransactionVolume', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php b/test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php new file mode 100644 index 000000000..cd57fc449 --- /dev/null +++ b/test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAFulfillmentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest', $this->obj); + } + + public function testExtendsFulfillmentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php b/test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php new file mode 100644 index 000000000..584a9ee66 --- /dev/null +++ b/test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAFulfillmentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetFulfillmentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetFulfillmentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php b/test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php new file mode 100644 index 000000000..164d23d0a --- /dev/null +++ b/test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAPaymentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest', $this->obj); + } + + public function testExtendsPaymentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php b/test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php new file mode 100644 index 000000000..9183c742d --- /dev/null +++ b/test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAPaymentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetPaymentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetPaymentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAReturnPolicyRestRequestTest.php b/test/Account/Types/UpdateAReturnPolicyRestRequestTest.php new file mode 100644 index 000000000..7d9b1c807 --- /dev/null +++ b/test/Account/Types/UpdateAReturnPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAReturnPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest', $this->obj); + } + + public function testExtendsReturnPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAReturnPolicyRestResponseTest.php b/test/Account/Types/UpdateAReturnPolicyRestResponseTest.php new file mode 100644 index 000000000..d94be539d --- /dev/null +++ b/test/Account/Types/UpdateAReturnPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAReturnPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestResponse', $this->obj); + } + + public function testExtendsSetReturnPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetReturnPolicyResponse', $this->obj); + } +} diff --git a/test/Analytics/Enums/CycleTypeEnumTest.php b/test/Analytics/Enums/CycleTypeEnumTest.php new file mode 100644 index 000000000..f60d671fc --- /dev/null +++ b/test/Analytics/Enums/CycleTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CycleTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\CycleTypeEnum', $this->obj); + } +} diff --git a/test/Analytics/Enums/DataTypeEnumTest.php b/test/Analytics/Enums/DataTypeEnumTest.php new file mode 100644 index 000000000..ea03bdef1 --- /dev/null +++ b/test/Analytics/Enums/DataTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DataTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\DataTypeEnum', $this->obj); + } +} diff --git a/test/Analytics/Enums/ProgramEnumTest.php b/test/Analytics/Enums/ProgramEnumTest.php new file mode 100644 index 000000000..d6bf423fc --- /dev/null +++ b/test/Analytics/Enums/ProgramEnumTest.php @@ -0,0 +1,28 @@ +obj = new ProgramEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\ProgramEnum', $this->obj); + } +} diff --git a/test/Analytics/Enums/StandardsLevelEnumTest.php b/test/Analytics/Enums/StandardsLevelEnumTest.php new file mode 100644 index 000000000..660926b65 --- /dev/null +++ b/test/Analytics/Enums/StandardsLevelEnumTest.php @@ -0,0 +1,28 @@ +obj = new StandardsLevelEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\StandardsLevelEnum', $this->obj); + } +} diff --git a/test/Analytics/Mocks/Service.php b/test/Analytics/Mocks/Service.php new file mode 100644 index 000000000..eef48c23f --- /dev/null +++ b/test/Analytics/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Analytics/Services/ServiceTest.php b/test/Analytics/Services/ServiceTest.php new file mode 100644 index 000000000..b6fd814a9 --- /dev/null +++ b/test/Analytics/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => AnalyticsService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(AnalyticsBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[AnalyticsBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(AnalyticsBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(AnalyticsBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[AnalyticsBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Analytics/Types/CycleTest.php b/test/Analytics/Types/CycleTest.php new file mode 100644 index 000000000..2541716ae --- /dev/null +++ b/test/Analytics/Types/CycleTest.php @@ -0,0 +1,33 @@ +obj = new Cycle(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Cycle', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/DefinitionTest.php b/test/Analytics/Types/DefinitionTest.php new file mode 100644 index 000000000..bb8ca6e8f --- /dev/null +++ b/test/Analytics/Types/DefinitionTest.php @@ -0,0 +1,33 @@ +obj = new Definition(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Definition', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ErrorDetailV3Test.php b/test/Analytics/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..1cb094517 --- /dev/null +++ b/test/Analytics/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ErrorParameterV3Test.php b/test/Analytics/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..ae6a7094b --- /dev/null +++ b/test/Analytics/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/FilterFieldTest.php b/test/Analytics/Types/FilterFieldTest.php new file mode 100644 index 000000000..e3cece265 --- /dev/null +++ b/test/Analytics/Types/FilterFieldTest.php @@ -0,0 +1,33 @@ +obj = new FilterField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\FilterField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php b/test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php new file mode 100644 index 000000000..758a739e0 --- /dev/null +++ b/test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindSellerStandardsProfilesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\FindSellerStandardsProfilesResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php b/test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php new file mode 100644 index 000000000..35b822d5b --- /dev/null +++ b/test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetASpecificSellerProfileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php b/test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php new file mode 100644 index 000000000..02cf1e145 --- /dev/null +++ b/test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetASpecificSellerProfileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestResponse', $this->obj); + } + + public function testExtendsStandardsProfile() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\StandardsProfile', $this->obj); + } +} diff --git a/test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php b/test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php new file mode 100644 index 000000000..2274636e9 --- /dev/null +++ b/test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAllSellerProfilesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetAllSellerProfilesRestResponse', $this->obj); + } + + public function testExtendsFindSellerStandardsProfilesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\FindSellerStandardsProfilesResponse', $this->obj); + } +} diff --git a/test/Analytics/Types/GetTrafficReportRestRequestTest.php b/test/Analytics/Types/GetTrafficReportRestRequestTest.php new file mode 100644 index 000000000..2ac401c60 --- /dev/null +++ b/test/Analytics/Types/GetTrafficReportRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetTrafficReportRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/GetTrafficReportRestResponseTest.php b/test/Analytics/Types/GetTrafficReportRestResponseTest.php new file mode 100644 index 000000000..0d58528be --- /dev/null +++ b/test/Analytics/Types/GetTrafficReportRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetTrafficReportRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestResponse', $this->obj); + } + + public function testExtendsReport() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Report', $this->obj); + } +} diff --git a/test/Analytics/Types/HeaderTest.php b/test/Analytics/Types/HeaderTest.php new file mode 100644 index 000000000..5a40990d8 --- /dev/null +++ b/test/Analytics/Types/HeaderTest.php @@ -0,0 +1,33 @@ +obj = new Header(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Header', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/MetricTest.php b/test/Analytics/Types/MetricTest.php new file mode 100644 index 000000000..ee77930d6 --- /dev/null +++ b/test/Analytics/Types/MetricTest.php @@ -0,0 +1,33 @@ +obj = new Metric(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Metric', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/RangeValueTest.php b/test/Analytics/Types/RangeValueTest.php new file mode 100644 index 000000000..8ebd3ac74 --- /dev/null +++ b/test/Analytics/Types/RangeValueTest.php @@ -0,0 +1,33 @@ +obj = new RangeValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\RangeValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/RecordTest.php b/test/Analytics/Types/RecordTest.php new file mode 100644 index 000000000..73c01209d --- /dev/null +++ b/test/Analytics/Types/RecordTest.php @@ -0,0 +1,33 @@ +obj = new Record(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Record', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ReportTest.php b/test/Analytics/Types/ReportTest.php new file mode 100644 index 000000000..6c955e000 --- /dev/null +++ b/test/Analytics/Types/ReportTest.php @@ -0,0 +1,33 @@ +obj = new Report(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Report', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/StandardsProfileTest.php b/test/Analytics/Types/StandardsProfileTest.php new file mode 100644 index 000000000..932433825 --- /dev/null +++ b/test/Analytics/Types/StandardsProfileTest.php @@ -0,0 +1,33 @@ +obj = new StandardsProfile(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\StandardsProfile', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ValueTest.php b/test/Analytics/Types/ValueTest.php new file mode 100644 index 000000000..0f26d558b --- /dev/null +++ b/test/Analytics/Types/ValueTest.php @@ -0,0 +1,33 @@ +obj = new Value(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Value', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Enums/AvailabilityStatusEnumTest.php b/test/Browse/Enums/AvailabilityStatusEnumTest.php new file mode 100644 index 000000000..7403e5030 --- /dev/null +++ b/test/Browse/Enums/AvailabilityStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new AvailabilityStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\AvailabilityStatusEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/CountryCodeEnumTest.php b/test/Browse/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..d34ba9b83 --- /dev/null +++ b/test/Browse/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/CurrencyCodeEnumTest.php b/test/Browse/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..148e5bb3c --- /dev/null +++ b/test/Browse/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/PriceDisplayConditionEnumTest.php b/test/Browse/Enums/PriceDisplayConditionEnumTest.php new file mode 100644 index 000000000..0abf31d9b --- /dev/null +++ b/test/Browse/Enums/PriceDisplayConditionEnumTest.php @@ -0,0 +1,28 @@ +obj = new PriceDisplayConditionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\PriceDisplayConditionEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/RefundMethodEnumTest.php b/test/Browse/Enums/RefundMethodEnumTest.php new file mode 100644 index 000000000..7eaf6592b --- /dev/null +++ b/test/Browse/Enums/RefundMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\RefundMethodEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/ReturnMethodEnumTest.php b/test/Browse/Enums/ReturnMethodEnumTest.php new file mode 100644 index 000000000..1fbfd4f98 --- /dev/null +++ b/test/Browse/Enums/ReturnMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\ReturnMethodEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/ReturnShippingCostPayerEnumTest.php b/test/Browse/Enums/ReturnShippingCostPayerEnumTest.php new file mode 100644 index 000000000..425eb8fcb --- /dev/null +++ b/test/Browse/Enums/ReturnShippingCostPayerEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnShippingCostPayerEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\ReturnShippingCostPayerEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/TimeDurationUnitEnumTest.php b/test/Browse/Enums/TimeDurationUnitEnumTest.php new file mode 100644 index 000000000..44d8ddb0b --- /dev/null +++ b/test/Browse/Enums/TimeDurationUnitEnumTest.php @@ -0,0 +1,28 @@ +obj = new TimeDurationUnitEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\TimeDurationUnitEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/ValueTypeEnumTest.php b/test/Browse/Enums/ValueTypeEnumTest.php new file mode 100644 index 000000000..84dbda680 --- /dev/null +++ b/test/Browse/Enums/ValueTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ValueTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\ValueTypeEnum', $this->obj); + } +} diff --git a/test/Browse/Mocks/Service.php b/test/Browse/Mocks/Service.php new file mode 100644 index 000000000..8deea896f --- /dev/null +++ b/test/Browse/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Browse/Services/ServiceTest.php b/test/Browse/Services/ServiceTest.php new file mode 100644 index 000000000..795d81cbc --- /dev/null +++ b/test/Browse/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => BrowseService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(BrowseBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[BrowseBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(BrowseBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(BrowseBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[BrowseBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Browse/Types/AddressTest.php b/test/Browse/Types/AddressTest.php new file mode 100644 index 000000000..a41045542 --- /dev/null +++ b/test/Browse/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/AmountTest.php b/test/Browse/Types/AmountTest.php new file mode 100644 index 000000000..e55d5c8a1 --- /dev/null +++ b/test/Browse/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/Amount_0Test.php b/test/Browse/Types/Amount_0Test.php new file mode 100644 index 000000000..6b3dd9005 --- /dev/null +++ b/test/Browse/Types/Amount_0Test.php @@ -0,0 +1,33 @@ +obj = new Amount_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Amount_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/CategoryTest.php b/test/Browse/Types/CategoryTest.php new file mode 100644 index 000000000..ac511ea29 --- /dev/null +++ b/test/Browse/Types/CategoryTest.php @@ -0,0 +1,33 @@ +obj = new Category(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Category', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ErrorDetailV3Test.php b/test/Browse/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..507962171 --- /dev/null +++ b/test/Browse/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ErrorParameterV3Test.php b/test/Browse/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..e29b3b7eb --- /dev/null +++ b/test/Browse/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/FilterFieldTest.php b/test/Browse/Types/FilterFieldTest.php new file mode 100644 index 000000000..8f21ab699 --- /dev/null +++ b/test/Browse/Types/FilterFieldTest.php @@ -0,0 +1,33 @@ +obj = new FilterField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\FilterField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemFeedRestRequestTest.php b/test/Browse/Types/GetItemFeedRestRequestTest.php new file mode 100644 index 000000000..6d7ff2bd8 --- /dev/null +++ b/test/Browse/Types/GetItemFeedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemFeedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemFeedRestResponseTest.php b/test/Browse/Types/GetItemFeedRestResponseTest.php new file mode 100644 index 000000000..ff0c26625 --- /dev/null +++ b/test/Browse/Types/GetItemFeedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemFeedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemFeedRestResponse', $this->obj); + } + + public function testExtendsItemFeedResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemFeedResponse', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemGroupRestRequestTest.php b/test/Browse/Types/GetItemGroupRestRequestTest.php new file mode 100644 index 000000000..609bc140a --- /dev/null +++ b/test/Browse/Types/GetItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemGroupRestResponseTest.php b/test/Browse/Types/GetItemGroupRestResponseTest.php new file mode 100644 index 000000000..24a2ad491 --- /dev/null +++ b/test/Browse/Types/GetItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemGroupRestResponse', $this->obj); + } + + public function testExtendsItemGroup() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemGroup', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemRestRequestTest.php b/test/Browse/Types/GetItemRestRequestTest.php new file mode 100644 index 000000000..b9eff2a26 --- /dev/null +++ b/test/Browse/Types/GetItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemRestResponseTest.php b/test/Browse/Types/GetItemRestResponseTest.php new file mode 100644 index 000000000..a8ebbcdae --- /dev/null +++ b/test/Browse/Types/GetItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemRestResponse', $this->obj); + } + + public function testExtendsItem() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Item', $this->obj); + } +} diff --git a/test/Browse/Types/ImageTest.php b/test/Browse/Types/ImageTest.php new file mode 100644 index 000000000..d3df8daaa --- /dev/null +++ b/test/Browse/Types/ImageTest.php @@ -0,0 +1,33 @@ +obj = new Image(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Image', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemDigestTest.php b/test/Browse/Types/ItemDigestTest.php new file mode 100644 index 000000000..c8a5d7791 --- /dev/null +++ b/test/Browse/Types/ItemDigestTest.php @@ -0,0 +1,33 @@ +obj = new ItemDigest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemDigest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemFeedResponseTest.php b/test/Browse/Types/ItemFeedResponseTest.php new file mode 100644 index 000000000..dc5363280 --- /dev/null +++ b/test/Browse/Types/ItemFeedResponseTest.php @@ -0,0 +1,33 @@ +obj = new ItemFeedResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemFeedResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemFeedTest.php b/test/Browse/Types/ItemFeedTest.php new file mode 100644 index 000000000..a5998d1ba --- /dev/null +++ b/test/Browse/Types/ItemFeedTest.php @@ -0,0 +1,33 @@ +obj = new ItemFeed(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemFeed', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemGroupTest.php b/test/Browse/Types/ItemGroupTest.php new file mode 100644 index 000000000..e92435391 --- /dev/null +++ b/test/Browse/Types/ItemGroupTest.php @@ -0,0 +1,33 @@ +obj = new ItemGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemLocationImplTest.php b/test/Browse/Types/ItemLocationImplTest.php new file mode 100644 index 000000000..8460819e0 --- /dev/null +++ b/test/Browse/Types/ItemLocationImplTest.php @@ -0,0 +1,33 @@ +obj = new ItemLocationImpl(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemLocationImpl', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemReturnTermsTest.php b/test/Browse/Types/ItemReturnTermsTest.php new file mode 100644 index 000000000..d68ed06a4 --- /dev/null +++ b/test/Browse/Types/ItemReturnTermsTest.php @@ -0,0 +1,33 @@ +obj = new ItemReturnTerms(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemReturnTerms', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemSummaryTest.php b/test/Browse/Types/ItemSummaryTest.php new file mode 100644 index 000000000..3ab01da9a --- /dev/null +++ b/test/Browse/Types/ItemSummaryTest.php @@ -0,0 +1,33 @@ +obj = new ItemSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemTest.php b/test/Browse/Types/ItemTest.php new file mode 100644 index 000000000..b4ff849d4 --- /dev/null +++ b/test/Browse/Types/ItemTest.php @@ -0,0 +1,33 @@ +obj = new Item(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Item', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/MarketingPriceTest.php b/test/Browse/Types/MarketingPriceTest.php new file mode 100644 index 000000000..720fc0462 --- /dev/null +++ b/test/Browse/Types/MarketingPriceTest.php @@ -0,0 +1,33 @@ +obj = new MarketingPrice(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\MarketingPrice', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/MarketingPrice_0Test.php b/test/Browse/Types/MarketingPrice_0Test.php new file mode 100644 index 000000000..f7983da39 --- /dev/null +++ b/test/Browse/Types/MarketingPrice_0Test.php @@ -0,0 +1,33 @@ +obj = new MarketingPrice_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\MarketingPrice_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/PickupOptionSummaryTest.php b/test/Browse/Types/PickupOptionSummaryTest.php new file mode 100644 index 000000000..a3145b3c6 --- /dev/null +++ b/test/Browse/Types/PickupOptionSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PickupOptionSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\PickupOptionSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/RangeValueTest.php b/test/Browse/Types/RangeValueTest.php new file mode 100644 index 000000000..0aabdb7ec --- /dev/null +++ b/test/Browse/Types/RangeValueTest.php @@ -0,0 +1,33 @@ +obj = new RangeValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\RangeValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/RatingHistogramTest.php b/test/Browse/Types/RatingHistogramTest.php new file mode 100644 index 000000000..0c9c607f6 --- /dev/null +++ b/test/Browse/Types/RatingHistogramTest.php @@ -0,0 +1,33 @@ +obj = new RatingHistogram(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\RatingHistogram', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ReviewRatingTest.php b/test/Browse/Types/ReviewRatingTest.php new file mode 100644 index 000000000..57d05e1aa --- /dev/null +++ b/test/Browse/Types/ReviewRatingTest.php @@ -0,0 +1,33 @@ +obj = new ReviewRating(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ReviewRating', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SearchForItemsRestRequestTest.php b/test/Browse/Types/SearchForItemsRestRequestTest.php new file mode 100644 index 000000000..d97521eb5 --- /dev/null +++ b/test/Browse/Types/SearchForItemsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchForItemsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SearchForItemsRestResponseTest.php b/test/Browse/Types/SearchForItemsRestResponseTest.php new file mode 100644 index 000000000..1ac375bc6 --- /dev/null +++ b/test/Browse/Types/SearchForItemsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchForItemsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchForItemsRestResponse', $this->obj); + } + + public function testExtendsSearchPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchPagedCollection', $this->obj); + } +} diff --git a/test/Browse/Types/SearchPagedCollectionTest.php b/test/Browse/Types/SearchPagedCollectionTest.php new file mode 100644 index 000000000..4e682d091 --- /dev/null +++ b/test/Browse/Types/SearchPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new SearchPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SellerTest.php b/test/Browse/Types/SellerTest.php new file mode 100644 index 000000000..93b8529f7 --- /dev/null +++ b/test/Browse/Types/SellerTest.php @@ -0,0 +1,33 @@ +obj = new Seller(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Seller', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ShippingOptionSummaryTest.php b/test/Browse/Types/ShippingOptionSummaryTest.php new file mode 100644 index 000000000..7dbc18876 --- /dev/null +++ b/test/Browse/Types/ShippingOptionSummaryTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOptionSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ShippingOptionSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ShippingOptionTest.php b/test/Browse/Types/ShippingOptionTest.php new file mode 100644 index 000000000..26e03af33 --- /dev/null +++ b/test/Browse/Types/ShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SortFieldTest.php b/test/Browse/Types/SortFieldTest.php new file mode 100644 index 000000000..0217ce6e4 --- /dev/null +++ b/test/Browse/Types/SortFieldTest.php @@ -0,0 +1,33 @@ +obj = new SortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/TargetLocationTest.php b/test/Browse/Types/TargetLocationTest.php new file mode 100644 index 000000000..771e8993c --- /dev/null +++ b/test/Browse/Types/TargetLocationTest.php @@ -0,0 +1,33 @@ +obj = new TargetLocation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\TargetLocation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/TimeDurationTest.php b/test/Browse/Types/TimeDurationTest.php new file mode 100644 index 000000000..3e7b088dd --- /dev/null +++ b/test/Browse/Types/TimeDurationTest.php @@ -0,0 +1,33 @@ +obj = new TimeDuration(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\TimeDuration', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/TypedNameValueTest.php b/test/Browse/Types/TypedNameValueTest.php new file mode 100644 index 000000000..f19fea408 --- /dev/null +++ b/test/Browse/Types/TypedNameValueTest.php @@ -0,0 +1,33 @@ +obj = new TypedNameValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\TypedNameValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/BulkDataExchange/Enums/AckValueTest.php b/test/BulkDataExchange/Enums/AckValueTest.php index ba608a022..b7f345be5 100644 --- a/test/BulkDataExchange/Enums/AckValueTest.php +++ b/test/BulkDataExchange/Enums/AckValueTest.php @@ -1,8 +1,11 @@ function () { }, 'int' => 1, - 'stdClass' => new \StdClass(), + 'stdClass' => new \stdClass(), 'string' => 'foo' ]; diff --git a/test/Constants/MarketplaceIdsTest.php b/test/Constants/MarketplaceIdsTest.php new file mode 100644 index 000000000..167bf830d --- /dev/null +++ b/test/Constants/MarketplaceIdsTest.php @@ -0,0 +1,57 @@ +assertInternalType('string', MarketplaceIds::US); + $this->assertInternalType('string', MarketplaceIds::CA); + $this->assertInternalType('string', MarketplaceIds::GB); + $this->assertInternalType('string', MarketplaceIds::AU); + $this->assertInternalType('string', MarketplaceIds::AT); + $this->assertInternalType('string', MarketplaceIds::BE); + $this->assertInternalType('string', MarketplaceIds::FR); + $this->assertInternalType('string', MarketplaceIds::DE); + $this->assertInternalType('string', MarketplaceIds::MOTORS); + $this->assertInternalType('string', MarketplaceIds::IT); + $this->assertInternalType('string', MarketplaceIds::NL); + $this->assertInternalType('string', MarketplaceIds::ES); + $this->assertInternalType('string', MarketplaceIds::CH); + $this->assertInternalType('string', MarketplaceIds::HK); + $this->assertInternalType('string', MarketplaceIds::IN); + $this->assertInternalType('string', MarketplaceIds::IE); + $this->assertInternalType('string', MarketplaceIds::MY); + $this->assertInternalType('string', MarketplaceIds::PH); + $this->assertInternalType('string', MarketplaceIds::PL); + $this->assertInternalType('string', MarketplaceIds::SG); + $this->assertInternalType('string', MarketplaceIds::CN); + } + + public function testConstantsHaveCorrectValue() + { + $this->assertEquals('EBAY-US', MarketplaceIds::US); + $this->assertEquals('EBAY-CA', MarketplaceIds::CA); + $this->assertEquals('EBAY-GB', MarketplaceIds::GB); + $this->assertEquals('EBAY-AU', MarketplaceIds::AU); + $this->assertEquals('EBAY-AT', MarketplaceIds::AT); + $this->assertEquals('EBAY-BE', MarketplaceIds::BE); + $this->assertEquals('EBAY-FR', MarketplaceIds::FR); + $this->assertEquals('EBAY-DE', MarketplaceIds::DE); + $this->assertEquals('EBAY-US.MOTORS', MarketplaceIds::MOTORS); + $this->assertEquals('EBAY-IT', MarketplaceIds::IT); + $this->assertEquals('EBAY-NL', MarketplaceIds::NL); + $this->assertEquals('EBAY-ES', MarketplaceIds::ES); + $this->assertEquals('EBAY-CH', MarketplaceIds::CH); + $this->assertEquals('EBAY-HK', MarketplaceIds::HK); + $this->assertEquals('EBAY-IN', MarketplaceIds::IN); + $this->assertEquals('EBAY-IE', MarketplaceIds::IE); + $this->assertEquals('EBAY-MY', MarketplaceIds::MY); + $this->assertEquals('EBAY-PH', MarketplaceIds::PH); + $this->assertEquals('EBAY-PL', MarketplaceIds::PL); + $this->assertEquals('EBAY-SG', MarketplaceIds::SG); + $this->assertEquals('EBAY-CN', MarketplaceIds::CN); + } +} diff --git a/test/Exceptions/InvalidPropertyTypeExceptionTest.php b/test/Exceptions/InvalidPropertyTypeExceptionTest.php index ec1838b68..f514902bf 100644 --- a/test/Exceptions/InvalidPropertyTypeExceptionTest.php +++ b/test/Exceptions/InvalidPropertyTypeExceptionTest.php @@ -5,6 +5,8 @@ class InvalidPropertyTypeExceptionTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new InvalidPropertyTypeException('foo', 'string', 'integer'); diff --git a/test/Exceptions/UnknownPropertyExceptionTest.php b/test/Exceptions/UnknownPropertyExceptionTest.php index ff972b6b5..7319e933a 100644 --- a/test/Exceptions/UnknownPropertyExceptionTest.php +++ b/test/Exceptions/UnknownPropertyExceptionTest.php @@ -5,6 +5,8 @@ class UnknownPropertyExceptionTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new UnknownPropertyException('foo'); diff --git a/test/Feedback/Enums/AckValueTest.php b/test/Feedback/Enums/AckValueTest.php new file mode 100644 index 000000000..ee46df3f8 --- /dev/null +++ b/test/Feedback/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Enums\AckValue', $this->obj); + } +} diff --git a/test/Feedback/Enums/ErrorCategoryTest.php b/test/Feedback/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..c5d53752d --- /dev/null +++ b/test/Feedback/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/Feedback/Enums/ErrorSeverityTest.php b/test/Feedback/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..38dffe727 --- /dev/null +++ b/test/Feedback/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/Feedback/Mocks/Service.php b/test/Feedback/Mocks/Service.php new file mode 100644 index 000000000..59049eaec --- /dev/null +++ b/test/Feedback/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/Feedback/Services/ServiceTest.php b/test/Feedback/Services/ServiceTest.php new file mode 100644 index 000000000..fd5e5fd67 --- /dev/null +++ b/test/Feedback/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => FeedbackService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('authToken', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authToken']); + } + + public function testEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(FeedbackBaseService::HDR_AUTH_TOKEN, $h->headers); + $this->assertEquals('321', $h->headers[FeedbackBaseService::HDR_AUTH_TOKEN]); + + $this->assertArrayHasKey(FeedbackBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[FeedbackBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(FeedbackBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(FeedbackService::API_VERSION, $h->headers[FeedbackBaseService::HDR_API_VERSION]); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(FeedbackBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[FeedbackBaseService::HDR_API_VERSION]); + } +} diff --git a/test/Feedback/Types/BaseServiceRequestTest.php b/test/Feedback/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..95ca4da7f --- /dev/null +++ b/test/Feedback/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/BaseServiceResponseTest.php b/test/Feedback/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..6b994c95d --- /dev/null +++ b/test/Feedback/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php new file mode 100644 index 000000000..cd20c6970 --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByCategoryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php new file mode 100644 index 000000000..77c85062a --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByPeriodRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php new file mode 100644 index 000000000..151e0ed93 --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByShippingDetailRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php new file mode 100644 index 000000000..a2344e0fc --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByTransactionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByTransactionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryResponseTest.php b/test/Feedback/Types/CreateDSRSummaryResponseTest.php new file mode 100644 index 000000000..c7963bf49 --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Feedback/Types/DSRSummaryTest.php b/test/Feedback/Types/DSRSummaryTest.php new file mode 100644 index 000000000..55c69d03d --- /dev/null +++ b/test/Feedback/Types/DSRSummaryTest.php @@ -0,0 +1,33 @@ +obj = new DSRSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\DSRSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/DateRangeTest.php b/test/Feedback/Types/DateRangeTest.php new file mode 100644 index 000000000..dd22df41c --- /dev/null +++ b/test/Feedback/Types/DateRangeTest.php @@ -0,0 +1,33 @@ +obj = new DateRange(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\DateRange', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/ErrorDataTest.php b/test/Feedback/Types/ErrorDataTest.php new file mode 100644 index 000000000..f9d836dd1 --- /dev/null +++ b/test/Feedback/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/ErrorMessageTest.php b/test/Feedback/Types/ErrorMessageTest.php new file mode 100644 index 000000000..790e274e2 --- /dev/null +++ b/test/Feedback/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/ErrorParameterTest.php b/test/Feedback/Types/ErrorParameterTest.php new file mode 100644 index 000000000..a6e520376 --- /dev/null +++ b/test/Feedback/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Feedback/Types/GetDSRSummaryRequestTest.php b/test/Feedback/Types/GetDSRSummaryRequestTest.php new file mode 100644 index 000000000..335b36159 --- /dev/null +++ b/test/Feedback/Types/GetDSRSummaryRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetDSRSummaryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/GetDSRSummaryResponseTest.php b/test/Feedback/Types/GetDSRSummaryResponseTest.php new file mode 100644 index 000000000..a0f2ffb93 --- /dev/null +++ b/test/Feedback/Types/GetDSRSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDSRSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\GetDSRSummaryResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Feedback/Types/TransactionKeyTest.php b/test/Feedback/Types/TransactionKeyTest.php new file mode 100644 index 000000000..3b147300b --- /dev/null +++ b/test/Feedback/Types/TransactionKeyTest.php @@ -0,0 +1,33 @@ +obj = new TransactionKey(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\TransactionKey', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/FileTransfer/Enums/AckValueTest.php b/test/FileTransfer/Enums/AckValueTest.php index ab0a29a62..6055f2050 100644 --- a/test/FileTransfer/Enums/AckValueTest.php +++ b/test/FileTransfer/Enums/AckValueTest.php @@ -1,8 +1,11 @@ callOperationASync( + return $this->callOperationAsync( 'testOperation', new ComplexClass(), '\DTS\eBaySDK\Test\Mocks\ComplexClass' diff --git a/test/FileTransfer/Types/BaseServiceRequestTest.php b/test/FileTransfer/Types/BaseServiceRequestTest.php index c08fb5996..a399a9063 100644 --- a/test/FileTransfer/Types/BaseServiceRequestTest.php +++ b/test/FileTransfer/Types/BaseServiceRequestTest.php @@ -1,8 +1,11 @@ obj = new AcknowledgeStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\AcknowledgeStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CancelRequestStateEnumTest.php b/test/Fulfillment/Enums/CancelRequestStateEnumTest.php new file mode 100644 index 000000000..56af1d6e3 --- /dev/null +++ b/test/Fulfillment/Enums/CancelRequestStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelRequestStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CancelRequestStateEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CancelStateEnumTest.php b/test/Fulfillment/Enums/CancelStateEnumTest.php new file mode 100644 index 000000000..f09b46ea2 --- /dev/null +++ b/test/Fulfillment/Enums/CancelStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CancelStateEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CountryCodeEnumTest.php b/test/Fulfillment/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..b55d7f6d5 --- /dev/null +++ b/test/Fulfillment/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CurrencyCodeEnumTest.php b/test/Fulfillment/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..c82311a78 --- /dev/null +++ b/test/Fulfillment/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php b/test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php new file mode 100644 index 000000000..5ba9ad691 --- /dev/null +++ b/test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LineItemFulfillmentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\LineItemFulfillmentStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/MarketplaceIdEnumTest.php b/test/Fulfillment/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..e5d1afbb8 --- /dev/null +++ b/test/Fulfillment/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php b/test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php new file mode 100644 index 000000000..127bca99c --- /dev/null +++ b/test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new OrderPaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\OrderPaymentStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php b/test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..fe726a140 --- /dev/null +++ b/test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\PaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/PaymentStatusEnumTest.php b/test/Fulfillment/Enums/PaymentStatusEnumTest.php new file mode 100644 index 000000000..e5e9c8063 --- /dev/null +++ b/test/Fulfillment/Enums/PaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\PaymentStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/RefundStatusEnumTest.php b/test/Fulfillment/Enums/RefundStatusEnumTest.php new file mode 100644 index 000000000..5ce88d908 --- /dev/null +++ b/test/Fulfillment/Enums/RefundStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\RefundStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/RefundTypeEnumTest.php b/test/Fulfillment/Enums/RefundTypeEnumTest.php new file mode 100644 index 000000000..f27506077 --- /dev/null +++ b/test/Fulfillment/Enums/RefundTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\RefundTypeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/SoldFormatEnumTest.php b/test/Fulfillment/Enums/SoldFormatEnumTest.php new file mode 100644 index 000000000..14dde2174 --- /dev/null +++ b/test/Fulfillment/Enums/SoldFormatEnumTest.php @@ -0,0 +1,28 @@ +obj = new SoldFormatEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\SoldFormatEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Mocks/Service.php b/test/Fulfillment/Mocks/Service.php new file mode 100644 index 000000000..2a0cdcfd0 --- /dev/null +++ b/test/Fulfillment/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Fulfillment/Services/ServiceTest.php b/test/Fulfillment/Services/ServiceTest.php new file mode 100644 index 000000000..fff8d09c1 --- /dev/null +++ b/test/Fulfillment/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => FulfillmentService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(FulfillmentBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[FulfillmentBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(FulfillmentBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(FulfillmentBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[FulfillmentBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Fulfillment/Types/AddressTest.php b/test/Fulfillment/Types/AddressTest.php new file mode 100644 index 000000000..75551b2ab --- /dev/null +++ b/test/Fulfillment/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/AmountTest.php b/test/Fulfillment/Types/AmountTest.php new file mode 100644 index 000000000..f035073f1 --- /dev/null +++ b/test/Fulfillment/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/AppliedPromotionTest.php b/test/Fulfillment/Types/AppliedPromotionTest.php new file mode 100644 index 000000000..c249475c9 --- /dev/null +++ b/test/Fulfillment/Types/AppliedPromotionTest.php @@ -0,0 +1,33 @@ +obj = new AppliedPromotion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\AppliedPromotion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/AttributeTest.php b/test/Fulfillment/Types/AttributeTest.php new file mode 100644 index 000000000..75ffd23ff --- /dev/null +++ b/test/Fulfillment/Types/AttributeTest.php @@ -0,0 +1,33 @@ +obj = new Attribute(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Attribute', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/BuyerTest.php b/test/Fulfillment/Types/BuyerTest.php new file mode 100644 index 000000000..6ae09c08e --- /dev/null +++ b/test/Fulfillment/Types/BuyerTest.php @@ -0,0 +1,33 @@ +obj = new Buyer(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Buyer', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CancelRequestTest.php b/test/Fulfillment/Types/CancelRequestTest.php new file mode 100644 index 000000000..e260af90a --- /dev/null +++ b/test/Fulfillment/Types/CancelRequestTest.php @@ -0,0 +1,33 @@ +obj = new CancelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CancelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CancelStatusTest.php b/test/Fulfillment/Types/CancelStatusTest.php new file mode 100644 index 000000000..18dad5155 --- /dev/null +++ b/test/Fulfillment/Types/CancelStatusTest.php @@ -0,0 +1,33 @@ +obj = new CancelStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CancelStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ContactTest.php b/test/Fulfillment/Types/ContactTest.php new file mode 100644 index 000000000..b536a9214 --- /dev/null +++ b/test/Fulfillment/Types/ContactTest.php @@ -0,0 +1,33 @@ +obj = new Contact(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Contact', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php b/test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php new file mode 100644 index 000000000..cd64f02c1 --- /dev/null +++ b/test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAShippingFulfillmentRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest', $this->obj); + } + + public function testExtendsShippingFulfillmentDetails() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentDetails', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php b/test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php new file mode 100644 index 000000000..81510e509 --- /dev/null +++ b/test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAShippingFulfillmentRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/DeliveryCostTest.php b/test/Fulfillment/Types/DeliveryCostTest.php new file mode 100644 index 000000000..17dadab1f --- /dev/null +++ b/test/Fulfillment/Types/DeliveryCostTest.php @@ -0,0 +1,33 @@ +obj = new DeliveryCost(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\DeliveryCost', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ErrorDetailV3Test.php b/test/Fulfillment/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..17c608a4d --- /dev/null +++ b/test/Fulfillment/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ErrorParameterV3Test.php b/test/Fulfillment/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..0e2e828ec --- /dev/null +++ b/test/Fulfillment/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FeeTest.php b/test/Fulfillment/Types/FeeTest.php new file mode 100644 index 000000000..da0194b17 --- /dev/null +++ b/test/Fulfillment/Types/FeeTest.php @@ -0,0 +1,33 @@ +obj = new Fee(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Fee', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FilterFieldTest.php b/test/Fulfillment/Types/FilterFieldTest.php new file mode 100644 index 000000000..94a061f86 --- /dev/null +++ b/test/Fulfillment/Types/FilterFieldTest.php @@ -0,0 +1,33 @@ +obj = new FilterField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\FilterField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php b/test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php new file mode 100644 index 000000000..360ca6bb2 --- /dev/null +++ b/test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentInstructionsType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\FulfillmentInstructionsType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FulfillmentStartInstructionTest.php b/test/Fulfillment/Types/FulfillmentStartInstructionTest.php new file mode 100644 index 000000000..930ea8e1a --- /dev/null +++ b/test/Fulfillment/Types/FulfillmentStartInstructionTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentStartInstruction(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\FulfillmentStartInstruction', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php b/test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php new file mode 100644 index 000000000..6e3cf79de --- /dev/null +++ b/test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAShippingFulfillmentRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php b/test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php new file mode 100644 index 000000000..5ece3f9ab --- /dev/null +++ b/test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAShippingFulfillmentRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestResponse', $this->obj); + } + + public function testExtendsShippingFulfillment() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillment', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAnOrderRestRequestTest.php b/test/Fulfillment/Types/GetAnOrderRestRequestTest.php new file mode 100644 index 000000000..c1f133e2b --- /dev/null +++ b/test/Fulfillment/Types/GetAnOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAnOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAnOrderRestResponseTest.php b/test/Fulfillment/Types/GetAnOrderRestResponseTest.php new file mode 100644 index 000000000..5bacc513b --- /dev/null +++ b/test/Fulfillment/Types/GetAnOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAnOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestResponse', $this->obj); + } + + public function testExtendsOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Order', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetOrdersRestRequestTest.php b/test/Fulfillment/Types/GetOrdersRestRequestTest.php new file mode 100644 index 000000000..f1de299ba --- /dev/null +++ b/test/Fulfillment/Types/GetOrdersRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetOrdersRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetOrdersRestResponseTest.php b/test/Fulfillment/Types/GetOrdersRestResponseTest.php new file mode 100644 index 000000000..3268c1a26 --- /dev/null +++ b/test/Fulfillment/Types/GetOrdersRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOrdersRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestResponse', $this->obj); + } + + public function testExtendsOrderSearchPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderSearchPagedCollection', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php b/test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php new file mode 100644 index 000000000..463f65c48 --- /dev/null +++ b/test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetShippingFulfillmentsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php b/test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php new file mode 100644 index 000000000..9dd8160cf --- /dev/null +++ b/test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetShippingFulfillmentsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestResponse', $this->obj); + } + + public function testExtendsShippingFulfillmentPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentPagedCollection', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GiftDetailsTest.php b/test/Fulfillment/Types/GiftDetailsTest.php new file mode 100644 index 000000000..48537ad81 --- /dev/null +++ b/test/Fulfillment/Types/GiftDetailsTest.php @@ -0,0 +1,33 @@ +obj = new GiftDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GiftDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/LineItemPropertiesTest.php b/test/Fulfillment/Types/LineItemPropertiesTest.php new file mode 100644 index 000000000..86ccd3079 --- /dev/null +++ b/test/Fulfillment/Types/LineItemPropertiesTest.php @@ -0,0 +1,33 @@ +obj = new LineItemProperties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\LineItemProperties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/LineItemReferenceTest.php b/test/Fulfillment/Types/LineItemReferenceTest.php new file mode 100644 index 000000000..63ec38878 --- /dev/null +++ b/test/Fulfillment/Types/LineItemReferenceTest.php @@ -0,0 +1,33 @@ +obj = new LineItemReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\LineItemReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/LineItemTest.php b/test/Fulfillment/Types/LineItemTest.php new file mode 100644 index 000000000..3beb8702e --- /dev/null +++ b/test/Fulfillment/Types/LineItemTest.php @@ -0,0 +1,33 @@ +obj = new LineItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\LineItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderFulfillmentStatusTest.php b/test/Fulfillment/Types/OrderFulfillmentStatusTest.php new file mode 100644 index 000000000..2952fe5eb --- /dev/null +++ b/test/Fulfillment/Types/OrderFulfillmentStatusTest.php @@ -0,0 +1,33 @@ +obj = new OrderFulfillmentStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderFulfillmentStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderRefundTest.php b/test/Fulfillment/Types/OrderRefundTest.php new file mode 100644 index 000000000..e9805ed61 --- /dev/null +++ b/test/Fulfillment/Types/OrderRefundTest.php @@ -0,0 +1,33 @@ +obj = new OrderRefund(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderRefund', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderSearchPagedCollectionTest.php b/test/Fulfillment/Types/OrderSearchPagedCollectionTest.php new file mode 100644 index 000000000..07b279727 --- /dev/null +++ b/test/Fulfillment/Types/OrderSearchPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new OrderSearchPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderSearchPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderTest.php b/test/Fulfillment/Types/OrderTest.php new file mode 100644 index 000000000..42482a72a --- /dev/null +++ b/test/Fulfillment/Types/OrderTest.php @@ -0,0 +1,33 @@ +obj = new Order(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Order', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PaymentHoldTest.php b/test/Fulfillment/Types/PaymentHoldTest.php new file mode 100644 index 000000000..2e00054cc --- /dev/null +++ b/test/Fulfillment/Types/PaymentHoldTest.php @@ -0,0 +1,33 @@ +obj = new PaymentHold(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PaymentHold', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PaymentSummaryTest.php b/test/Fulfillment/Types/PaymentSummaryTest.php new file mode 100644 index 000000000..aca704ea2 --- /dev/null +++ b/test/Fulfillment/Types/PaymentSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PaymentSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PaymentSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PaymentTest.php b/test/Fulfillment/Types/PaymentTest.php new file mode 100644 index 000000000..eafaf267b --- /dev/null +++ b/test/Fulfillment/Types/PaymentTest.php @@ -0,0 +1,33 @@ +obj = new Payment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Payment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PhoneNumberTest.php b/test/Fulfillment/Types/PhoneNumberTest.php new file mode 100644 index 000000000..5902e68a3 --- /dev/null +++ b/test/Fulfillment/Types/PhoneNumberTest.php @@ -0,0 +1,33 @@ +obj = new PhoneNumber(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PhoneNumber', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PricingSummaryTest.php b/test/Fulfillment/Types/PricingSummaryTest.php new file mode 100644 index 000000000..0c1bc6368 --- /dev/null +++ b/test/Fulfillment/Types/PricingSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PricingSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PricingSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/RangeValueTest.php b/test/Fulfillment/Types/RangeValueTest.php new file mode 100644 index 000000000..763a4d01a --- /dev/null +++ b/test/Fulfillment/Types/RangeValueTest.php @@ -0,0 +1,33 @@ +obj = new RangeValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\RangeValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/SellerActionsToReleaseTest.php b/test/Fulfillment/Types/SellerActionsToReleaseTest.php new file mode 100644 index 000000000..718e0c646 --- /dev/null +++ b/test/Fulfillment/Types/SellerActionsToReleaseTest.php @@ -0,0 +1,33 @@ +obj = new SellerActionsToRelease(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\SellerActionsToRelease', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php b/test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php new file mode 100644 index 000000000..2341eba29 --- /dev/null +++ b/test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillmentDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php b/test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php new file mode 100644 index 000000000..25eefb22c --- /dev/null +++ b/test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillmentPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingFulfillmentTest.php b/test/Fulfillment/Types/ShippingFulfillmentTest.php new file mode 100644 index 000000000..094c23835 --- /dev/null +++ b/test/Fulfillment/Types/ShippingFulfillmentTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingStepTest.php b/test/Fulfillment/Types/ShippingStepTest.php new file mode 100644 index 000000000..56f71074b --- /dev/null +++ b/test/Fulfillment/Types/ShippingStepTest.php @@ -0,0 +1,33 @@ +obj = new ShippingStep(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingStep', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/TaxTest.php b/test/Fulfillment/Types/TaxTest.php new file mode 100644 index 000000000..68145ba9e --- /dev/null +++ b/test/Fulfillment/Types/TaxTest.php @@ -0,0 +1,33 @@ +obj = new Tax(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Tax', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/HalfFinding/Enums/AckValueTest.php b/test/HalfFinding/Enums/AckValueTest.php index 555322412..15551e9ea 100644 --- a/test/HalfFinding/Enums/AckValueTest.php +++ b/test/HalfFinding/Enums/AckValueTest.php @@ -1,8 +1,11 @@ assertEquals([], $h->getHeaders()); + } + + public function testReturnsHeaders() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals([ + 'foo' => ['foo'], + 'Bar' => ['bar', 'foo'] + ], $h->getHeaders()); + } + + public function testReturnAHeader() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals(['foo'], $h->getHeader('FOO')); + $this->assertEquals(['bar', 'foo'], $h->getHeader('bAR')); + } + + public function testHasHeader() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals(true, $h->hasHeader('FOO')); + $this->assertEquals(true, $h->hasHeader('bAR')); + } + + public function testGetHeaderLine() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals('foo', $h->getHeaderLine('FOO')); + $this->assertEquals('bar, foo', $h->getHeaderLine('bAR')); + } +} diff --git a/test/Inventory/Enums/AvailabilityTypeEnumTest.php b/test/Inventory/Enums/AvailabilityTypeEnumTest.php new file mode 100644 index 000000000..8d4b0807b --- /dev/null +++ b/test/Inventory/Enums/AvailabilityTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new AvailabilityTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\AvailabilityTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/ConditionEnumTest.php b/test/Inventory/Enums/ConditionEnumTest.php new file mode 100644 index 000000000..a440dbaf1 --- /dev/null +++ b/test/Inventory/Enums/ConditionEnumTest.php @@ -0,0 +1,28 @@ +obj = new ConditionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\ConditionEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/CountryCodeEnumTest.php b/test/Inventory/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..3d0d3647a --- /dev/null +++ b/test/Inventory/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/DayOfWeekEnumTest.php b/test/Inventory/Enums/DayOfWeekEnumTest.php new file mode 100644 index 000000000..325b66606 --- /dev/null +++ b/test/Inventory/Enums/DayOfWeekEnumTest.php @@ -0,0 +1,28 @@ +obj = new DayOfWeekEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\DayOfWeekEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/FormatTypeEnumTest.php b/test/Inventory/Enums/FormatTypeEnumTest.php new file mode 100644 index 000000000..dc8a9dac1 --- /dev/null +++ b/test/Inventory/Enums/FormatTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new FormatTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\FormatTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php b/test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php new file mode 100644 index 000000000..f423475fa --- /dev/null +++ b/test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php @@ -0,0 +1,28 @@ +obj = new LengthUnitOfMeasureEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\LengthUnitOfMeasureEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/ListingStatusEnumTest.php b/test/Inventory/Enums/ListingStatusEnumTest.php new file mode 100644 index 000000000..9ef4ab965 --- /dev/null +++ b/test/Inventory/Enums/ListingStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new ListingStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\ListingStatusEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/MarketplaceEnumTest.php b/test/Inventory/Enums/MarketplaceEnumTest.php new file mode 100644 index 000000000..72cbb2c2d --- /dev/null +++ b/test/Inventory/Enums/MarketplaceEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\MarketplaceEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php b/test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php new file mode 100644 index 000000000..cdc433464 --- /dev/null +++ b/test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php @@ -0,0 +1,28 @@ +obj = new MinimumAdvertisedPriceHandlingEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\MinimumAdvertisedPriceHandlingEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/OfferStatusEnumTest.php b/test/Inventory/Enums/OfferStatusEnumTest.php new file mode 100644 index 000000000..bf413e2e8 --- /dev/null +++ b/test/Inventory/Enums/OfferStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new OfferStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\OfferStatusEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/PackageTypeEnumTest.php b/test/Inventory/Enums/PackageTypeEnumTest.php new file mode 100644 index 000000000..ee8f15f33 --- /dev/null +++ b/test/Inventory/Enums/PackageTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PackageTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\PackageTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/ShippingServiceTypeEnumTest.php b/test/Inventory/Enums/ShippingServiceTypeEnumTest.php new file mode 100644 index 000000000..20153c792 --- /dev/null +++ b/test/Inventory/Enums/ShippingServiceTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingServiceTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\ShippingServiceTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/SoldOnEnumTest.php b/test/Inventory/Enums/SoldOnEnumTest.php new file mode 100644 index 000000000..a75ff9bcf --- /dev/null +++ b/test/Inventory/Enums/SoldOnEnumTest.php @@ -0,0 +1,28 @@ +obj = new SoldOnEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\SoldOnEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/StatusEnumTest.php b/test/Inventory/Enums/StatusEnumTest.php new file mode 100644 index 000000000..822960dff --- /dev/null +++ b/test/Inventory/Enums/StatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new StatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\StatusEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/StoreTypeEnumTest.php b/test/Inventory/Enums/StoreTypeEnumTest.php new file mode 100644 index 000000000..dba352b2f --- /dev/null +++ b/test/Inventory/Enums/StoreTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new StoreTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\StoreTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/TimeDurationUnitEnumTest.php b/test/Inventory/Enums/TimeDurationUnitEnumTest.php new file mode 100644 index 000000000..60095f9fc --- /dev/null +++ b/test/Inventory/Enums/TimeDurationUnitEnumTest.php @@ -0,0 +1,28 @@ +obj = new TimeDurationUnitEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\TimeDurationUnitEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php b/test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php new file mode 100644 index 000000000..6268e36ea --- /dev/null +++ b/test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php @@ -0,0 +1,28 @@ +obj = new WeightUnitOfMeasureEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\WeightUnitOfMeasureEnum', $this->obj); + } +} diff --git a/test/Inventory/Mocks/Service.php b/test/Inventory/Mocks/Service.php new file mode 100644 index 000000000..41872597e --- /dev/null +++ b/test/Inventory/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Inventory/Services/ServiceTest.php b/test/Inventory/Services/ServiceTest.php new file mode 100644 index 000000000..65db42590 --- /dev/null +++ b/test/Inventory/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => InventoryService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(InventoryBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[InventoryBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(InventoryBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(InventoryBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[InventoryBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Inventory/Types/AddressTest.php b/test/Inventory/Types/AddressTest.php new file mode 100644 index 000000000..74859d43c --- /dev/null +++ b/test/Inventory/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/AmountTest.php b/test/Inventory/Types/AmountTest.php new file mode 100644 index 000000000..fbc7c99a1 --- /dev/null +++ b/test/Inventory/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/AvailabilityTest.php b/test/Inventory/Types/AvailabilityTest.php new file mode 100644 index 000000000..90e8ceaeb --- /dev/null +++ b/test/Inventory/Types/AvailabilityTest.php @@ -0,0 +1,33 @@ +obj = new Availability(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Availability', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BaseResponseTest.php b/test/Inventory/Types/BaseResponseTest.php new file mode 100644 index 000000000..76edf3c8e --- /dev/null +++ b/test/Inventory/Types/BaseResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkPriceQuantityResponseTest.php b/test/Inventory/Types/BulkPriceQuantityResponseTest.php new file mode 100644 index 000000000..a5e6fbdd2 --- /dev/null +++ b/test/Inventory/Types/BulkPriceQuantityResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkPriceQuantityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkPriceQuantityTest.php b/test/Inventory/Types/BulkPriceQuantityTest.php new file mode 100644 index 000000000..9736cd2f6 --- /dev/null +++ b/test/Inventory/Types/BulkPriceQuantityTest.php @@ -0,0 +1,33 @@ +obj = new BulkPriceQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php new file mode 100644 index 000000000..c28ca5074 --- /dev/null +++ b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdatePriceAndQuantityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest', $this->obj); + } + + public function testExtendsBulkPriceQuantity() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantity', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php new file mode 100644 index 000000000..9d2d45535 --- /dev/null +++ b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdatePriceAndQuantityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestResponse', $this->obj); + } + + public function testExtendsBulkPriceQuantityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantityResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CompatibilityTest.php b/test/Inventory/Types/CompatibilityTest.php new file mode 100644 index 000000000..d2ee69e53 --- /dev/null +++ b/test/Inventory/Types/CompatibilityTest.php @@ -0,0 +1,33 @@ +obj = new Compatibility(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Compatibility', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/CompatibleProductTest.php b/test/Inventory/Types/CompatibleProductTest.php new file mode 100644 index 000000000..749010b75 --- /dev/null +++ b/test/Inventory/Types/CompatibleProductTest.php @@ -0,0 +1,33 @@ +obj = new CompatibleProduct(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CompatibleProduct', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateInventoryLocationRestRequestTest.php b/test/Inventory/Types/CreateInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..6343e832e --- /dev/null +++ b/test/Inventory/Types/CreateInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsInventoryLocationFull() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationFull', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateInventoryLocationRestResponseTest.php b/test/Inventory/Types/CreateInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..b727cef4b --- /dev/null +++ b/test/Inventory/Types/CreateInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOfferRestRequestTest.php b/test/Inventory/Types/CreateOfferRestRequestTest.php new file mode 100644 index 000000000..d9caee91c --- /dev/null +++ b/test/Inventory/Types/CreateOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest', $this->obj); + } + + public function testExtendsEbayOfferDetailsWithKeys() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithKeys', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOfferRestResponseTest.php b/test/Inventory/Types/CreateOfferRestResponseTest.php new file mode 100644 index 000000000..489f30c5e --- /dev/null +++ b/test/Inventory/Types/CreateOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOfferRestResponse', $this->obj); + } + + public function testExtendsOfferResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..a8d72b2cf --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsInventoryItemGroup() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItemGroup', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..ae1227984 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php new file mode 100644 index 000000000..9d628493a --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest', $this->obj); + } + + public function testExtendsInventoryItem() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItem', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php new file mode 100644 index 000000000..8644b8589 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php new file mode 100644 index 000000000..4ad7b6608 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceProductCompatibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest', $this->obj); + } + + public function testExtendsCompatibility() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Compatibility', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php new file mode 100644 index 000000000..fe051b041 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceProductCompatibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..8409d5f61 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..c9194ef22 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemRestRequestTest.php b/test/Inventory/Types/DeleteInventoryItemRestRequestTest.php new file mode 100644 index 000000000..cef53b613 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemRestResponseTest.php b/test/Inventory/Types/DeleteInventoryItemRestResponseTest.php new file mode 100644 index 000000000..a43ef59f6 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php b/test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..31e935e1c --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php b/test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..012812406 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteOfferRestRequestTest.php b/test/Inventory/Types/DeleteOfferRestRequestTest.php new file mode 100644 index 000000000..7ccba69b2 --- /dev/null +++ b/test/Inventory/Types/DeleteOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteOfferRestResponseTest.php b/test/Inventory/Types/DeleteOfferRestResponseTest.php new file mode 100644 index 000000000..87d98c540 --- /dev/null +++ b/test/Inventory/Types/DeleteOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteOfferRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php b/test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php new file mode 100644 index 000000000..122eddf83 --- /dev/null +++ b/test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteProductCompatibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php b/test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php new file mode 100644 index 000000000..d31bdaa3b --- /dev/null +++ b/test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteProductCompatibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DimensionTest.php b/test/Inventory/Types/DimensionTest.php new file mode 100644 index 000000000..ab3e9d8ab --- /dev/null +++ b/test/Inventory/Types/DimensionTest.php @@ -0,0 +1,33 @@ +obj = new Dimension(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Dimension', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DisableInventoryLocationRestRequestTest.php b/test/Inventory/Types/DisableInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..d67fcffed --- /dev/null +++ b/test/Inventory/Types/DisableInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DisableInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DisableInventoryLocationRestResponseTest.php b/test/Inventory/Types/DisableInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..e0d2c2c0d --- /dev/null +++ b/test/Inventory/Types/DisableInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DisableInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EbayOfferDetailsWithAllTest.php b/test/Inventory/Types/EbayOfferDetailsWithAllTest.php new file mode 100644 index 000000000..2f365db32 --- /dev/null +++ b/test/Inventory/Types/EbayOfferDetailsWithAllTest.php @@ -0,0 +1,33 @@ +obj = new EbayOfferDetailsWithAll(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithAll', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EbayOfferDetailsWithIdTest.php b/test/Inventory/Types/EbayOfferDetailsWithIdTest.php new file mode 100644 index 000000000..547d7e04b --- /dev/null +++ b/test/Inventory/Types/EbayOfferDetailsWithIdTest.php @@ -0,0 +1,33 @@ +obj = new EbayOfferDetailsWithId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithId', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EbayOfferDetailsWithKeysTest.php b/test/Inventory/Types/EbayOfferDetailsWithKeysTest.php new file mode 100644 index 000000000..6478d1d1a --- /dev/null +++ b/test/Inventory/Types/EbayOfferDetailsWithKeysTest.php @@ -0,0 +1,33 @@ +obj = new EbayOfferDetailsWithKeys(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithKeys', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EnableInventoryLocationRestRequestTest.php b/test/Inventory/Types/EnableInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..0701ffdee --- /dev/null +++ b/test/Inventory/Types/EnableInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EnableInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EnableInventoryLocationRestResponseTest.php b/test/Inventory/Types/EnableInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..1e47beb22 --- /dev/null +++ b/test/Inventory/Types/EnableInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EnableInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ErrorDetailV3Test.php b/test/Inventory/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..49b746ea8 --- /dev/null +++ b/test/Inventory/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ErrorParameterV3Test.php b/test/Inventory/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..588302dc8 --- /dev/null +++ b/test/Inventory/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/FeeSummaryTest.php b/test/Inventory/Types/FeeSummaryTest.php new file mode 100644 index 000000000..656392454 --- /dev/null +++ b/test/Inventory/Types/FeeSummaryTest.php @@ -0,0 +1,33 @@ +obj = new FeeSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\FeeSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/FeeTest.php b/test/Inventory/Types/FeeTest.php new file mode 100644 index 000000000..ad3dd4549 --- /dev/null +++ b/test/Inventory/Types/FeeTest.php @@ -0,0 +1,33 @@ +obj = new Fee(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Fee', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/FeesSummaryResponseTest.php b/test/Inventory/Types/FeesSummaryResponseTest.php new file mode 100644 index 000000000..98cf26bbb --- /dev/null +++ b/test/Inventory/Types/FeesSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new FeesSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\FeesSummaryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GeoCoordinatesTest.php b/test/Inventory/Types/GeoCoordinatesTest.php new file mode 100644 index 000000000..498530a02 --- /dev/null +++ b/test/Inventory/Types/GeoCoordinatesTest.php @@ -0,0 +1,33 @@ +obj = new GeoCoordinates(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GeoCoordinates', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..5f0d2e6f2 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..6f643e0eb --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsInventoryItemGroup() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItemGroup', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemRestRequestTest.php b/test/Inventory/Types/GetInventoryItemRestRequestTest.php new file mode 100644 index 000000000..e022cb536 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemRestResponseTest.php b/test/Inventory/Types/GetInventoryItemRestResponseTest.php new file mode 100644 index 000000000..1160865f7 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestResponse', $this->obj); + } + + public function testExtendsInventoryItem() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItem', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemsRestRequestTest.php b/test/Inventory/Types/GetInventoryItemsRestRequestTest.php new file mode 100644 index 000000000..9cbe74e72 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemsRestResponseTest.php b/test/Inventory/Types/GetInventoryItemsRestResponseTest.php new file mode 100644 index 000000000..7894be5d2 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestResponse', $this->obj); + } + + public function testExtendsInventoryItems() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItems', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationRestRequestTest.php b/test/Inventory/Types/GetInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..594705096 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationRestResponseTest.php b/test/Inventory/Types/GetInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..5c48b8a53 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsInventoryLocationResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationsRestRequestTest.php b/test/Inventory/Types/GetInventoryLocationsRestRequestTest.php new file mode 100644 index 000000000..3bb939486 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationsRestResponseTest.php b/test/Inventory/Types/GetInventoryLocationsRestResponseTest.php new file mode 100644 index 000000000..2d65d6b79 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestResponse', $this->obj); + } + + public function testExtendsLocationResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\LocationResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/GetListingFeesRestRequestTest.php b/test/Inventory/Types/GetListingFeesRestRequestTest.php new file mode 100644 index 000000000..8d7fb68fe --- /dev/null +++ b/test/Inventory/Types/GetListingFeesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetListingFeesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest', $this->obj); + } + + public function testExtendsOfferKeysWithId() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferKeysWithId', $this->obj); + } +} diff --git a/test/Inventory/Types/GetListingFeesRestResponseTest.php b/test/Inventory/Types/GetListingFeesRestResponseTest.php new file mode 100644 index 000000000..ee9a04b37 --- /dev/null +++ b/test/Inventory/Types/GetListingFeesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetListingFeesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetListingFeesRestResponse', $this->obj); + } + + public function testExtendsFeesSummaryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\FeesSummaryResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOfferRestRequestTest.php b/test/Inventory/Types/GetOfferRestRequestTest.php new file mode 100644 index 000000000..2985dfdd0 --- /dev/null +++ b/test/Inventory/Types/GetOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOfferRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOfferRestResponseTest.php b/test/Inventory/Types/GetOfferRestResponseTest.php new file mode 100644 index 000000000..984d07ee3 --- /dev/null +++ b/test/Inventory/Types/GetOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOfferRestResponse', $this->obj); + } + + public function testExtendsEbayOfferDetailsWithAll() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithAll', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOffersRestRequestTest.php b/test/Inventory/Types/GetOffersRestRequestTest.php new file mode 100644 index 000000000..b461a37a1 --- /dev/null +++ b/test/Inventory/Types/GetOffersRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetOffersRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOffersRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOffersRestResponseTest.php b/test/Inventory/Types/GetOffersRestResponseTest.php new file mode 100644 index 000000000..ec6be38f1 --- /dev/null +++ b/test/Inventory/Types/GetOffersRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOffersRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOffersRestResponse', $this->obj); + } + + public function testExtendsOffers() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Offers', $this->obj); + } +} diff --git a/test/Inventory/Types/GetProductCompatibilityRestRequestTest.php b/test/Inventory/Types/GetProductCompatibilityRestRequestTest.php new file mode 100644 index 000000000..7938b5f40 --- /dev/null +++ b/test/Inventory/Types/GetProductCompatibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetProductCompatibilityRestResponseTest.php b/test/Inventory/Types/GetProductCompatibilityRestResponseTest.php new file mode 100644 index 000000000..266460c28 --- /dev/null +++ b/test/Inventory/Types/GetProductCompatibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestResponse', $this->obj); + } + + public function testExtendsCompatibility() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Compatibility', $this->obj); + } +} diff --git a/test/Inventory/Types/IntervalTest.php b/test/Inventory/Types/IntervalTest.php new file mode 100644 index 000000000..873627725 --- /dev/null +++ b/test/Inventory/Types/IntervalTest.php @@ -0,0 +1,33 @@ +obj = new Interval(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Interval', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryItemGroupTest.php b/test/Inventory/Types/InventoryItemGroupTest.php new file mode 100644 index 000000000..6689a8349 --- /dev/null +++ b/test/Inventory/Types/InventoryItemGroupTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItemGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItemGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryItemTest.php b/test/Inventory/Types/InventoryItemTest.php new file mode 100644 index 000000000..9c31e2b06 --- /dev/null +++ b/test/Inventory/Types/InventoryItemTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryItemsTest.php b/test/Inventory/Types/InventoryItemsTest.php new file mode 100644 index 000000000..b7cf23c7d --- /dev/null +++ b/test/Inventory/Types/InventoryItemsTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItems(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItems', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryLocationFullTest.php b/test/Inventory/Types/InventoryLocationFullTest.php new file mode 100644 index 000000000..4eb43d5fe --- /dev/null +++ b/test/Inventory/Types/InventoryLocationFullTest.php @@ -0,0 +1,33 @@ +obj = new InventoryLocationFull(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationFull', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryLocationResponseTest.php b/test/Inventory/Types/InventoryLocationResponseTest.php new file mode 100644 index 000000000..a5d4ffdb4 --- /dev/null +++ b/test/Inventory/Types/InventoryLocationResponseTest.php @@ -0,0 +1,33 @@ +obj = new InventoryLocationResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryLocationTest.php b/test/Inventory/Types/InventoryLocationTest.php new file mode 100644 index 000000000..4a0d50b2b --- /dev/null +++ b/test/Inventory/Types/InventoryLocationTest.php @@ -0,0 +1,33 @@ +obj = new InventoryLocation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ListingDetailsTest.php b/test/Inventory/Types/ListingDetailsTest.php new file mode 100644 index 000000000..011742787 --- /dev/null +++ b/test/Inventory/Types/ListingDetailsTest.php @@ -0,0 +1,33 @@ +obj = new ListingDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ListingDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ListingPoliciesTest.php b/test/Inventory/Types/ListingPoliciesTest.php new file mode 100644 index 000000000..e87f4580a --- /dev/null +++ b/test/Inventory/Types/ListingPoliciesTest.php @@ -0,0 +1,33 @@ +obj = new ListingPolicies(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ListingPolicies', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/LocationResponseTest.php b/test/Inventory/Types/LocationResponseTest.php new file mode 100644 index 000000000..f6c9c91de --- /dev/null +++ b/test/Inventory/Types/LocationResponseTest.php @@ -0,0 +1,33 @@ +obj = new LocationResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\LocationResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/LocationTest.php b/test/Inventory/Types/LocationTest.php new file mode 100644 index 000000000..ee7272c6c --- /dev/null +++ b/test/Inventory/Types/LocationTest.php @@ -0,0 +1,33 @@ +obj = new Location(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Location', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferKeyWithIdTest.php b/test/Inventory/Types/OfferKeyWithIdTest.php new file mode 100644 index 000000000..a50bb3cf8 --- /dev/null +++ b/test/Inventory/Types/OfferKeyWithIdTest.php @@ -0,0 +1,33 @@ +obj = new OfferKeyWithId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferKeyWithId', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferKeysWithIdTest.php b/test/Inventory/Types/OfferKeysWithIdTest.php new file mode 100644 index 000000000..dfa30ff67 --- /dev/null +++ b/test/Inventory/Types/OfferKeysWithIdTest.php @@ -0,0 +1,33 @@ +obj = new OfferKeysWithId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferKeysWithId', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferPriceQuantityTest.php b/test/Inventory/Types/OfferPriceQuantityTest.php new file mode 100644 index 000000000..66b0192c7 --- /dev/null +++ b/test/Inventory/Types/OfferPriceQuantityTest.php @@ -0,0 +1,33 @@ +obj = new OfferPriceQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferPriceQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferResponseTest.php b/test/Inventory/Types/OfferResponseTest.php new file mode 100644 index 000000000..1a0777da8 --- /dev/null +++ b/test/Inventory/Types/OfferResponseTest.php @@ -0,0 +1,33 @@ +obj = new OfferResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OffersTest.php b/test/Inventory/Types/OffersTest.php new file mode 100644 index 000000000..b71945163 --- /dev/null +++ b/test/Inventory/Types/OffersTest.php @@ -0,0 +1,33 @@ +obj = new Offers(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Offers', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OperatingHoursTest.php b/test/Inventory/Types/OperatingHoursTest.php new file mode 100644 index 000000000..0051e7dd8 --- /dev/null +++ b/test/Inventory/Types/OperatingHoursTest.php @@ -0,0 +1,33 @@ +obj = new OperatingHours(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OperatingHours', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PackageWeightAndSizeTest.php b/test/Inventory/Types/PackageWeightAndSizeTest.php new file mode 100644 index 000000000..9a0f78e13 --- /dev/null +++ b/test/Inventory/Types/PackageWeightAndSizeTest.php @@ -0,0 +1,33 @@ +obj = new PackageWeightAndSize(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PackageWeightAndSize', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PickupAtLocationAvailabilityTest.php b/test/Inventory/Types/PickupAtLocationAvailabilityTest.php new file mode 100644 index 000000000..474e6d1d9 --- /dev/null +++ b/test/Inventory/Types/PickupAtLocationAvailabilityTest.php @@ -0,0 +1,33 @@ +obj = new PickupAtLocationAvailability(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PickupAtLocationAvailability', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PriceQuantityResponseTest.php b/test/Inventory/Types/PriceQuantityResponseTest.php new file mode 100644 index 000000000..684ac04ee --- /dev/null +++ b/test/Inventory/Types/PriceQuantityResponseTest.php @@ -0,0 +1,33 @@ +obj = new PriceQuantityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PriceQuantityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PriceQuantityTest.php b/test/Inventory/Types/PriceQuantityTest.php new file mode 100644 index 000000000..f69f4fd03 --- /dev/null +++ b/test/Inventory/Types/PriceQuantityTest.php @@ -0,0 +1,33 @@ +obj = new PriceQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PriceQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PricingSummaryTest.php b/test/Inventory/Types/PricingSummaryTest.php new file mode 100644 index 000000000..b22608e68 --- /dev/null +++ b/test/Inventory/Types/PricingSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PricingSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PricingSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ProductFamilyPropertiesTest.php b/test/Inventory/Types/ProductFamilyPropertiesTest.php new file mode 100644 index 000000000..abd47a764 --- /dev/null +++ b/test/Inventory/Types/ProductFamilyPropertiesTest.php @@ -0,0 +1,33 @@ +obj = new ProductFamilyProperties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ProductFamilyProperties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ProductIdentifierTest.php b/test/Inventory/Types/ProductIdentifierTest.php new file mode 100644 index 000000000..0c1aeb19e --- /dev/null +++ b/test/Inventory/Types/ProductIdentifierTest.php @@ -0,0 +1,33 @@ +obj = new ProductIdentifier(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ProductIdentifier', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ProductTest.php b/test/Inventory/Types/ProductTest.php new file mode 100644 index 000000000..d8c9389ae --- /dev/null +++ b/test/Inventory/Types/ProductTest.php @@ -0,0 +1,33 @@ +obj = new Product(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Product', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishOfferRestRequestTest.php b/test/Inventory/Types/PublishOfferRestRequestTest.php new file mode 100644 index 000000000..56ac82064 --- /dev/null +++ b/test/Inventory/Types/PublishOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PublishOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishOfferRestResponseTest.php b/test/Inventory/Types/PublishOfferRestResponseTest.php new file mode 100644 index 000000000..f077e12dd --- /dev/null +++ b/test/Inventory/Types/PublishOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PublishOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishOfferRestResponse', $this->obj); + } + + public function testExtendsPublishResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishResponseTest.php b/test/Inventory/Types/PublishResponseTest.php new file mode 100644 index 000000000..3840d33c1 --- /dev/null +++ b/test/Inventory/Types/PublishResponseTest.php @@ -0,0 +1,33 @@ +obj = new PublishResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ShipToLocationAvailabilityTest.php b/test/Inventory/Types/ShipToLocationAvailabilityTest.php new file mode 100644 index 000000000..1591a15cd --- /dev/null +++ b/test/Inventory/Types/ShipToLocationAvailabilityTest.php @@ -0,0 +1,33 @@ +obj = new ShipToLocationAvailability(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ShipToLocationAvailability', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ShippingCostOverrideTest.php b/test/Inventory/Types/ShippingCostOverrideTest.php new file mode 100644 index 000000000..85b5ac544 --- /dev/null +++ b/test/Inventory/Types/ShippingCostOverrideTest.php @@ -0,0 +1,33 @@ +obj = new ShippingCostOverride(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ShippingCostOverride', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/SpecialHoursTest.php b/test/Inventory/Types/SpecialHoursTest.php new file mode 100644 index 000000000..6733da201 --- /dev/null +++ b/test/Inventory/Types/SpecialHoursTest.php @@ -0,0 +1,33 @@ +obj = new SpecialHours(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\SpecialHours', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/SpecificationTest.php b/test/Inventory/Types/SpecificationTest.php new file mode 100644 index 000000000..4135b0777 --- /dev/null +++ b/test/Inventory/Types/SpecificationTest.php @@ -0,0 +1,33 @@ +obj = new Specification(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Specification', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/TaxTest.php b/test/Inventory/Types/TaxTest.php new file mode 100644 index 000000000..b242f51b1 --- /dev/null +++ b/test/Inventory/Types/TaxTest.php @@ -0,0 +1,33 @@ +obj = new Tax(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Tax', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/TimeDurationTest.php b/test/Inventory/Types/TimeDurationTest.php new file mode 100644 index 000000000..8482e1787 --- /dev/null +++ b/test/Inventory/Types/TimeDurationTest.php @@ -0,0 +1,33 @@ +obj = new TimeDuration(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\TimeDuration', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php b/test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..c4331f042 --- /dev/null +++ b/test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsInventoryLocation() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocation', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php b/test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..f65aa6e0c --- /dev/null +++ b/test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateOfferRestRequestTest.php b/test/Inventory/Types/UpdateOfferRestRequestTest.php new file mode 100644 index 000000000..00f0147e0 --- /dev/null +++ b/test/Inventory/Types/UpdateOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest', $this->obj); + } + + public function testExtendsEbayOfferDetailsWithId() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithId', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateOfferRestResponseTest.php b/test/Inventory/Types/UpdateOfferRestResponseTest.php new file mode 100644 index 000000000..af76bdac5 --- /dev/null +++ b/test/Inventory/Types/UpdateOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateOfferRestResponse', $this->obj); + } + + public function testExtendsOfferResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/VariesByTest.php b/test/Inventory/Types/VariesByTest.php new file mode 100644 index 000000000..2df797514 --- /dev/null +++ b/test/Inventory/Types/VariesByTest.php @@ -0,0 +1,33 @@ +obj = new VariesBy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\VariesBy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/WeightTest.php b/test/Inventory/Types/WeightTest.php new file mode 100644 index 000000000..72364ff36 --- /dev/null +++ b/test/Inventory/Types/WeightTest.php @@ -0,0 +1,33 @@ +obj = new Weight(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Weight', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Json/JsonTest.php b/test/Json/JsonTest.php new file mode 100644 index 000000000..91ecd290f --- /dev/null +++ b/test/Json/JsonTest.php @@ -0,0 +1,58 @@ +assertEquals(false, isset($obj->foo)); + + $this->assertEquals(123, $obj->integer); + $this->assertEquals('<h1>Bits &amp; Bobs ©</h1><p>Just some &lt;stuff&gt; I found.&nbsp;&copy;</p>', $obj->string); + $this->assertEquals(123.45, $obj->double); + $this->assertEquals(true, $obj->booleanTrue); + $this->assertEquals(false, $obj->booleanFalse); + $this->assertEquals(new \DateTime('2000-01-01T16:15:30.123Z', new \DateTimeZone('UTC')), $obj->DateTime); + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\SimpleClass', $obj->SimpleClass); + $this->assertEquals(321, $obj->SimpleClass->integer); + $this->assertEquals('another string', $obj->SimpleClass->string); + $this->assertEquals('foo', $obj->strings[0]); + $this->assertEquals('bar', $obj->strings[1]); + $this->assertEquals(1, $obj->integers[0]); + $this->assertEquals(2, $obj->integers[1]); + $this->assertEquals(3, $obj->integers[2]); + $this->assertEquals(4, $obj->integers[3]); + $this->assertEquals(5, $obj->integers[4]); + $this->assertEquals('bar', $obj->strings[1]); + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\SimpleClass', $obj->simpleClasses[0]); + $this->assertEquals(888, $obj->simpleClasses[0]->integer); + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\SimpleClass', $obj->simpleClasses[1]); + $this->assertEquals(999, $obj->simpleClasses[1]->integer); + $this->assertEquals(543.21, $obj->AmountClass->value); + $this->assertEquals('binary type', $obj->base64BinaryType->value); + $this->assertEquals(true, $obj->booleanType->value); + $this->assertEquals(123, $obj->decimalType->value); + $this->assertEquals(123.45, $obj->doubleType->value); + $this->assertEquals(123, $obj->integerType->value); + $this->assertEquals('string type', $obj->stringType->value); + $this->assertEquals('token type', $obj->tokenType->value); + $this->assertEquals('uri type', $obj->uriType->value); + $this->assertEquals(123, $obj->decimalTypePosInteger->value); + $this->assertEquals(123.45, $obj->decimalTypePosFloat->value); + $this->assertEquals(-123, $obj->decimalTypeNegInteger->value); + $this->assertEquals(-123.45, $obj->decimalTypeNegFloat->value); + $this->assertEquals(1, $obj->anyType); + $this->assertEquals(1, $obj->anyTypes[0]); + $this->assertEquals('foo', $obj->anyTypes[1]); + $this->assertEquals(1.23, $obj->anyTypes[2]); + $this->assertEquals(true, $obj->anyTypes[3]); + $this->assertEquals(false, $obj->anyTypes[4]); + $this->assertEquals([1, 2, 3], $obj->anyTypes[5]); + } +} diff --git a/test/Marketing/Enums/CampaignStatusEnumTest.php b/test/Marketing/Enums/CampaignStatusEnumTest.php new file mode 100644 index 000000000..035920e9c --- /dev/null +++ b/test/Marketing/Enums/CampaignStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new CampaignStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CampaignStatusEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/CategoryScopeEnumTest.php b/test/Marketing/Enums/CategoryScopeEnumTest.php new file mode 100644 index 000000000..68ce4e2df --- /dev/null +++ b/test/Marketing/Enums/CategoryScopeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CategoryScopeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CategoryScopeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/CriterionTypeEnumTest.php b/test/Marketing/Enums/CriterionTypeEnumTest.php new file mode 100644 index 000000000..02e738bc4 --- /dev/null +++ b/test/Marketing/Enums/CriterionTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CriterionTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CriterionTypeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/CurrencyCodeEnumTest.php b/test/Marketing/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..6a01d64ce --- /dev/null +++ b/test/Marketing/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/FundingModelEnumTest.php b/test/Marketing/Enums/FundingModelEnumTest.php new file mode 100644 index 000000000..36fc4a2c9 --- /dev/null +++ b/test/Marketing/Enums/FundingModelEnumTest.php @@ -0,0 +1,28 @@ +obj = new FundingModelEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\FundingModelEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/InventoryCriterionEnumTest.php b/test/Marketing/Enums/InventoryCriterionEnumTest.php new file mode 100644 index 000000000..1c02c169e --- /dev/null +++ b/test/Marketing/Enums/InventoryCriterionEnumTest.php @@ -0,0 +1,28 @@ +obj = new InventoryCriterionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\InventoryCriterionEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/InventoryReferenceTypeEnumTest.php b/test/Marketing/Enums/InventoryReferenceTypeEnumTest.php new file mode 100644 index 000000000..c6097c416 --- /dev/null +++ b/test/Marketing/Enums/InventoryReferenceTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new InventoryReferenceTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\InventoryReferenceTypeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/MarketplaceIdEnumTest.php b/test/Marketing/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..906b163dc --- /dev/null +++ b/test/Marketing/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/PromotionPriorityEnumTest.php b/test/Marketing/Enums/PromotionPriorityEnumTest.php new file mode 100644 index 000000000..9d3cc8f0c --- /dev/null +++ b/test/Marketing/Enums/PromotionPriorityEnumTest.php @@ -0,0 +1,28 @@ +obj = new PromotionPriorityEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\PromotionPriorityEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/PromotionStatusEnumTest.php b/test/Marketing/Enums/PromotionStatusEnumTest.php new file mode 100644 index 000000000..5da3f3ba8 --- /dev/null +++ b/test/Marketing/Enums/PromotionStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PromotionStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\PromotionStatusEnum', $this->obj); + } +} diff --git a/test/Marketing/Mocks/Service.php b/test/Marketing/Mocks/Service.php new file mode 100644 index 000000000..c098c9547 --- /dev/null +++ b/test/Marketing/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Marketing/Services/ServiceTest.php b/test/Marketing/Services/ServiceTest.php new file mode 100644 index 000000000..eb27fd11f --- /dev/null +++ b/test/Marketing/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => MarketingService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(MarketingBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[MarketingBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(MarketingBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(MarketingBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[MarketingBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Marketing/Types/AdIdsTest.php b/test/Marketing/Types/AdIdsTest.php new file mode 100644 index 000000000..5e1c5301f --- /dev/null +++ b/test/Marketing/Types/AdIdsTest.php @@ -0,0 +1,33 @@ +obj = new AdIds(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdIds', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdPagedCollectionTest.php b/test/Marketing/Types/AdPagedCollectionTest.php new file mode 100644 index 000000000..063994639 --- /dev/null +++ b/test/Marketing/Types/AdPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new AdPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdReferenceTest.php b/test/Marketing/Types/AdReferenceTest.php new file mode 100644 index 000000000..5becafb77 --- /dev/null +++ b/test/Marketing/Types/AdReferenceTest.php @@ -0,0 +1,33 @@ +obj = new AdReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdReferencesTest.php b/test/Marketing/Types/AdReferencesTest.php new file mode 100644 index 000000000..aaf9302b7 --- /dev/null +++ b/test/Marketing/Types/AdReferencesTest.php @@ -0,0 +1,33 @@ +obj = new AdReferences(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdReferences', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdResponseTest.php b/test/Marketing/Types/AdResponseTest.php new file mode 100644 index 000000000..ff108fec0 --- /dev/null +++ b/test/Marketing/Types/AdResponseTest.php @@ -0,0 +1,33 @@ +obj = new AdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdTest.php b/test/Marketing/Types/AdTest.php new file mode 100644 index 000000000..51a957ddc --- /dev/null +++ b/test/Marketing/Types/AdTest.php @@ -0,0 +1,33 @@ +obj = new Ad(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ad', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdsTest.php b/test/Marketing/Types/AdsTest.php new file mode 100644 index 000000000..cc68fb202 --- /dev/null +++ b/test/Marketing/Types/AdsTest.php @@ -0,0 +1,33 @@ +obj = new Ads(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ads', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AmountTest.php b/test/Marketing/Types/AmountTest.php new file mode 100644 index 000000000..094b83a28 --- /dev/null +++ b/test/Marketing/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkAdResponseTest.php b/test/Marketing/Types/BulkAdResponseTest.php new file mode 100644 index 000000000..3268b39ea --- /dev/null +++ b/test/Marketing/Types/BulkAdResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkAdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkAdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdRequestTest.php b/test/Marketing/Types/BulkCreateAdRequestTest.php new file mode 100644 index 000000000..cab3bb9a7 --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..3710a5b0b --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..8a7a87ae9 --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..bf118292c --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php b/test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php new file mode 100644 index 000000000..5d72059ce --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php b/test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php new file mode 100644 index 000000000..f7e10b223 --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestResponse', $this->obj); + } + + public function testExtendsBulkAdResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkAdResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdRequestTest.php b/test/Marketing/Types/BulkDeleteAdRequestTest.php new file mode 100644 index 000000000..e77aae2b0 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdResponseTest.php b/test/Marketing/Types/BulkDeleteAdResponseTest.php new file mode 100644 index 000000000..bd34816a6 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..c66aa4ae2 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..f0fa6c1a4 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBulkDeleteAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..4a1a5c27c --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php b/test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php new file mode 100644 index 000000000..8d7f14768 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest', $this->obj); + } + + public function testExtendsBulkDeleteAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php b/test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php new file mode 100644 index 000000000..5c78fc99e --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestResponse', $this->obj); + } + + public function testExtendsBulkDeleteAdResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..24eb9d90f --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..b1c65163c --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php new file mode 100644 index 000000000..e26b89c15 --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php new file mode 100644 index 000000000..49790dc1f --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestResponse', $this->obj); + } + + public function testExtendsBulkAdResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkAdResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignCriterionTest.php b/test/Marketing/Types/CampaignCriterionTest.php new file mode 100644 index 000000000..a900d7595 --- /dev/null +++ b/test/Marketing/Types/CampaignCriterionTest.php @@ -0,0 +1,33 @@ +obj = new CampaignCriterion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CampaignCriterion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignPagedCollectionTest.php b/test/Marketing/Types/CampaignPagedCollectionTest.php new file mode 100644 index 000000000..b795423b2 --- /dev/null +++ b/test/Marketing/Types/CampaignPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new CampaignPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CampaignPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignTest.php b/test/Marketing/Types/CampaignTest.php new file mode 100644 index 000000000..87cd21c2d --- /dev/null +++ b/test/Marketing/Types/CampaignTest.php @@ -0,0 +1,33 @@ +obj = new Campaign(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaign', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignsTest.php b/test/Marketing/Types/CampaignsTest.php new file mode 100644 index 000000000..fb28f9772 --- /dev/null +++ b/test/Marketing/Types/CampaignsTest.php @@ -0,0 +1,33 @@ +obj = new Campaigns(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaigns', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CloneCampaignRequestTest.php b/test/Marketing/Types/CloneCampaignRequestTest.php new file mode 100644 index 000000000..5104965ec --- /dev/null +++ b/test/Marketing/Types/CloneCampaignRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloneCampaignRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CloneCampaignRestRequestTest.php b/test/Marketing/Types/CloneCampaignRestRequestTest.php new file mode 100644 index 000000000..41e514289 --- /dev/null +++ b/test/Marketing/Types/CloneCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloneCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest', $this->obj); + } + + public function testExtendsCloneCampaignRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CloneCampaignRestResponseTest.php b/test/Marketing/Types/CloneCampaignRestResponseTest.php new file mode 100644 index 000000000..137233f3d --- /dev/null +++ b/test/Marketing/Types/CloneCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CloneCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdByListingIDRestRequestTest.php b/test/Marketing/Types/CreateAdByListingIDRestRequestTest.php new file mode 100644 index 000000000..1b98a31e8 --- /dev/null +++ b/test/Marketing/Types/CreateAdByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest', $this->obj); + } + + public function testExtendsCreateAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdByListingIDRestResponseTest.php b/test/Marketing/Types/CreateAdByListingIDRestResponseTest.php new file mode 100644 index 000000000..30d3aa4cf --- /dev/null +++ b/test/Marketing/Types/CreateAdByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdRequestTest.php b/test/Marketing/Types/CreateAdRequestTest.php new file mode 100644 index 000000000..74409787c --- /dev/null +++ b/test/Marketing/Types/CreateAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..a0f51b5c0 --- /dev/null +++ b/test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..bf01f0ae6 --- /dev/null +++ b/test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsCreateAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..5555d7d0a --- /dev/null +++ b/test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsAdReferences() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdReferences', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateCampaignRequestTest.php b/test/Marketing/Types/CreateCampaignRequestTest.php new file mode 100644 index 000000000..660d73c61 --- /dev/null +++ b/test/Marketing/Types/CreateCampaignRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCampaignRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateCampaignRestRequestTest.php b/test/Marketing/Types/CreateCampaignRestRequestTest.php new file mode 100644 index 000000000..41f07c39f --- /dev/null +++ b/test/Marketing/Types/CreateCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest', $this->obj); + } + + public function testExtendsCreateCampaignRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateCampaignRestResponseTest.php b/test/Marketing/Types/CreateCampaignRestResponseTest.php new file mode 100644 index 000000000..2f6c934d6 --- /dev/null +++ b/test/Marketing/Types/CreateCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateItemPromotionRestRequestTest.php b/test/Marketing/Types/CreateItemPromotionRestRequestTest.php new file mode 100644 index 000000000..049614bb6 --- /dev/null +++ b/test/Marketing/Types/CreateItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest', $this->obj); + } + + public function testExtendsItemPromotion() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotion', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateItemPromotionRestResponseTest.php b/test/Marketing/Types/CreateItemPromotionRestResponseTest.php new file mode 100644 index 000000000..e3ef65a40 --- /dev/null +++ b/test/Marketing/Types/CreateItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdByIDRestRequestTest.php b/test/Marketing/Types/DeleteAdByIDRestRequestTest.php new file mode 100644 index 000000000..7e1de950b --- /dev/null +++ b/test/Marketing/Types/DeleteAdByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdByIDRestResponseTest.php b/test/Marketing/Types/DeleteAdByIDRestResponseTest.php new file mode 100644 index 000000000..9b30c18dc --- /dev/null +++ b/test/Marketing/Types/DeleteAdByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdRequestTest.php b/test/Marketing/Types/DeleteAdRequestTest.php new file mode 100644 index 000000000..55645bf76 --- /dev/null +++ b/test/Marketing/Types/DeleteAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdResponseTest.php b/test/Marketing/Types/DeleteAdResponseTest.php new file mode 100644 index 000000000..93a9fca40 --- /dev/null +++ b/test/Marketing/Types/DeleteAdResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..922952a3d --- /dev/null +++ b/test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..8fabb91c4 --- /dev/null +++ b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsDeleteAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..f249dec8e --- /dev/null +++ b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsAdIds() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdIds', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteCampaignRestRequestTest.php b/test/Marketing/Types/DeleteCampaignRestRequestTest.php new file mode 100644 index 000000000..a735c0e54 --- /dev/null +++ b/test/Marketing/Types/DeleteCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteCampaignRestResponseTest.php b/test/Marketing/Types/DeleteCampaignRestResponseTest.php new file mode 100644 index 000000000..249042103 --- /dev/null +++ b/test/Marketing/Types/DeleteCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteItemPromotionRestRequestTest.php b/test/Marketing/Types/DeleteItemPromotionRestRequestTest.php new file mode 100644 index 000000000..242355a1a --- /dev/null +++ b/test/Marketing/Types/DeleteItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteItemPromotionRestResponseTest.php b/test/Marketing/Types/DeleteItemPromotionRestResponseTest.php new file mode 100644 index 000000000..e67dac090 --- /dev/null +++ b/test/Marketing/Types/DeleteItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DiscountBenefitTest.php b/test/Marketing/Types/DiscountBenefitTest.php new file mode 100644 index 000000000..f3035bf97 --- /dev/null +++ b/test/Marketing/Types/DiscountBenefitTest.php @@ -0,0 +1,33 @@ +obj = new DiscountBenefit(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DiscountBenefit', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DiscountRuleTest.php b/test/Marketing/Types/DiscountRuleTest.php new file mode 100644 index 000000000..537265373 --- /dev/null +++ b/test/Marketing/Types/DiscountRuleTest.php @@ -0,0 +1,33 @@ +obj = new DiscountRule(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DiscountRule', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DiscountSpecificationTest.php b/test/Marketing/Types/DiscountSpecificationTest.php new file mode 100644 index 000000000..2040ed845 --- /dev/null +++ b/test/Marketing/Types/DiscountSpecificationTest.php @@ -0,0 +1,33 @@ +obj = new DiscountSpecification(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DiscountSpecification', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/EndCampaignRestRequestTest.php b/test/Marketing/Types/EndCampaignRestRequestTest.php new file mode 100644 index 000000000..014a55fcf --- /dev/null +++ b/test/Marketing/Types/EndCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EndCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/EndCampaignRestResponseTest.php b/test/Marketing/Types/EndCampaignRestResponseTest.php new file mode 100644 index 000000000..fb6ecae29 --- /dev/null +++ b/test/Marketing/Types/EndCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EndCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\EndCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ErrorDetailV3Test.php b/test/Marketing/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..4a48dd183 --- /dev/null +++ b/test/Marketing/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ErrorParameterV3Test.php b/test/Marketing/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..ca0a64d87 --- /dev/null +++ b/test/Marketing/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php b/test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php new file mode 100644 index 000000000..a6d17c5bb --- /dev/null +++ b/test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindCampaignByAdReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php b/test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php new file mode 100644 index 000000000..44f05a89e --- /dev/null +++ b/test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindCampaignByAdReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestResponse', $this->obj); + } + + public function testExtendsCampaigns() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaigns', $this->obj); + } +} diff --git a/test/Marketing/Types/FundingStrategyTest.php b/test/Marketing/Types/FundingStrategyTest.php new file mode 100644 index 000000000..f9bafd3fd --- /dev/null +++ b/test/Marketing/Types/FundingStrategyTest.php @@ -0,0 +1,33 @@ +obj = new FundingStrategy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\FundingStrategy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdByIDRestRequestTest.php b/test/Marketing/Types/GetAdByIDRestRequestTest.php new file mode 100644 index 000000000..abfde8c80 --- /dev/null +++ b/test/Marketing/Types/GetAdByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAdByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdByIDRestResponseTest.php b/test/Marketing/Types/GetAdByIDRestResponseTest.php new file mode 100644 index 000000000..ad870082e --- /dev/null +++ b/test/Marketing/Types/GetAdByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAdByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdByIDRestResponse', $this->obj); + } + + public function testExtendsAd() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ad', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..2f989fafa --- /dev/null +++ b/test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..84d44c95b --- /dev/null +++ b/test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsAds() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ads', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsRestRequestTest.php b/test/Marketing/Types/GetAdsRestRequestTest.php new file mode 100644 index 000000000..f2cde11ed --- /dev/null +++ b/test/Marketing/Types/GetAdsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsRestResponseTest.php b/test/Marketing/Types/GetAdsRestResponseTest.php new file mode 100644 index 000000000..4c0d0aef3 --- /dev/null +++ b/test/Marketing/Types/GetAdsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsRestResponse', $this->obj); + } + + public function testExtendsAdPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdPagedCollection', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAllCampaignsRestRequestTest.php b/test/Marketing/Types/GetAllCampaignsRestRequestTest.php new file mode 100644 index 000000000..c4c11ada6 --- /dev/null +++ b/test/Marketing/Types/GetAllCampaignsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAllCampaignsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAllCampaignsRestResponseTest.php b/test/Marketing/Types/GetAllCampaignsRestResponseTest.php new file mode 100644 index 000000000..e75552fdf --- /dev/null +++ b/test/Marketing/Types/GetAllCampaignsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAllCampaignsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestResponse', $this->obj); + } + + public function testExtendsCampaignPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CampaignPagedCollection', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByIDRestRequestTest.php b/test/Marketing/Types/GetCampaignByIDRestRequestTest.php new file mode 100644 index 000000000..8b0cf8184 --- /dev/null +++ b/test/Marketing/Types/GetCampaignByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByIDRestResponseTest.php b/test/Marketing/Types/GetCampaignByIDRestResponseTest.php new file mode 100644 index 000000000..b41f472ee --- /dev/null +++ b/test/Marketing/Types/GetCampaignByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestResponse', $this->obj); + } + + public function testExtendsCampaign() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaign', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByNameRestRequestTest.php b/test/Marketing/Types/GetCampaignByNameRestRequestTest.php new file mode 100644 index 000000000..fb5d162d8 --- /dev/null +++ b/test/Marketing/Types/GetCampaignByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByNameRestResponseTest.php b/test/Marketing/Types/GetCampaignByNameRestResponseTest.php new file mode 100644 index 000000000..96d3422e0 --- /dev/null +++ b/test/Marketing/Types/GetCampaignByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestResponse', $this->obj); + } + + public function testExtendsCampaign() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaign', $this->obj); + } +} diff --git a/test/Marketing/Types/GetItemPromotionRestRequestTest.php b/test/Marketing/Types/GetItemPromotionRestRequestTest.php new file mode 100644 index 000000000..efa7ec4ec --- /dev/null +++ b/test/Marketing/Types/GetItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetItemPromotionRestResponseTest.php b/test/Marketing/Types/GetItemPromotionRestResponseTest.php new file mode 100644 index 000000000..e1ab05987 --- /dev/null +++ b/test/Marketing/Types/GetItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestResponse', $this->obj); + } + + public function testExtendsItemPromotionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotionResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php b/test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php new file mode 100644 index 000000000..3e68af669 --- /dev/null +++ b/test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionSummaryReportRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php b/test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php new file mode 100644 index 000000000..262caac8a --- /dev/null +++ b/test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionSummaryReportRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestResponse', $this->obj); + } + + public function testExtendsSummaryReportResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SummaryReportResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionsRestRequestTest.php b/test/Marketing/Types/GetPromotionsRestRequestTest.php new file mode 100644 index 000000000..9990109f4 --- /dev/null +++ b/test/Marketing/Types/GetPromotionsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionsRestResponseTest.php b/test/Marketing/Types/GetPromotionsRestResponseTest.php new file mode 100644 index 000000000..be2a4b51c --- /dev/null +++ b/test/Marketing/Types/GetPromotionsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionsRestResponse', $this->obj); + } + + public function testExtendsPromotionsPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PromotionsPagedCollection', $this->obj); + } +} diff --git a/test/Marketing/Types/InventoryCriterionTest.php b/test/Marketing/Types/InventoryCriterionTest.php new file mode 100644 index 000000000..5cd34975c --- /dev/null +++ b/test/Marketing/Types/InventoryCriterionTest.php @@ -0,0 +1,33 @@ +obj = new InventoryCriterion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\InventoryCriterion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/InventoryItemTest.php b/test/Marketing/Types/InventoryItemTest.php new file mode 100644 index 000000000..9e054fe87 --- /dev/null +++ b/test/Marketing/Types/InventoryItemTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\InventoryItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ItemPromotionResponseTest.php b/test/Marketing/Types/ItemPromotionResponseTest.php new file mode 100644 index 000000000..fec70c4b0 --- /dev/null +++ b/test/Marketing/Types/ItemPromotionResponseTest.php @@ -0,0 +1,33 @@ +obj = new ItemPromotionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ItemPromotionTest.php b/test/Marketing/Types/ItemPromotionTest.php new file mode 100644 index 000000000..1343f653e --- /dev/null +++ b/test/Marketing/Types/ItemPromotionTest.php @@ -0,0 +1,33 @@ +obj = new ItemPromotion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseAPromotionRestRequestTest.php b/test/Marketing/Types/PauseAPromotionRestRequestTest.php new file mode 100644 index 000000000..f1e48f8f1 --- /dev/null +++ b/test/Marketing/Types/PauseAPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PauseAPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseAPromotionRestResponseTest.php b/test/Marketing/Types/PauseAPromotionRestResponseTest.php new file mode 100644 index 000000000..b0c15f03c --- /dev/null +++ b/test/Marketing/Types/PauseAPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PauseAPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseCampaignRestRequestTest.php b/test/Marketing/Types/PauseCampaignRestRequestTest.php new file mode 100644 index 000000000..16743b6e0 --- /dev/null +++ b/test/Marketing/Types/PauseCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PauseCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseCampaignRestResponseTest.php b/test/Marketing/Types/PauseCampaignRestResponseTest.php new file mode 100644 index 000000000..b9856e389 --- /dev/null +++ b/test/Marketing/Types/PauseCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PauseCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PromotionDetailTest.php b/test/Marketing/Types/PromotionDetailTest.php new file mode 100644 index 000000000..a41f039bf --- /dev/null +++ b/test/Marketing/Types/PromotionDetailTest.php @@ -0,0 +1,33 @@ +obj = new PromotionDetail(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PromotionDetail', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PromotionsPagedCollectionTest.php b/test/Marketing/Types/PromotionsPagedCollectionTest.php new file mode 100644 index 000000000..f0eb6fd0c --- /dev/null +++ b/test/Marketing/Types/PromotionsPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new PromotionsPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PromotionsPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeAPromotionRestRequestTest.php b/test/Marketing/Types/ResumeAPromotionRestRequestTest.php new file mode 100644 index 000000000..e6ea4d780 --- /dev/null +++ b/test/Marketing/Types/ResumeAPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ResumeAPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeAPromotionRestResponseTest.php b/test/Marketing/Types/ResumeAPromotionRestResponseTest.php new file mode 100644 index 000000000..0492dfc68 --- /dev/null +++ b/test/Marketing/Types/ResumeAPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ResumeAPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeCampaignRestRequestTest.php b/test/Marketing/Types/ResumeCampaignRestRequestTest.php new file mode 100644 index 000000000..106adb5f6 --- /dev/null +++ b/test/Marketing/Types/ResumeCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ResumeCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeCampaignRestResponseTest.php b/test/Marketing/Types/ResumeCampaignRestResponseTest.php new file mode 100644 index 000000000..df7672d52 --- /dev/null +++ b/test/Marketing/Types/ResumeCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ResumeCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/SelectionRuleTest.php b/test/Marketing/Types/SelectionRuleTest.php new file mode 100644 index 000000000..bae1333be --- /dev/null +++ b/test/Marketing/Types/SelectionRuleTest.php @@ -0,0 +1,33 @@ +obj = new SelectionRule(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SelectionRule', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/SortFieldTest.php b/test/Marketing/Types/SortFieldTest.php new file mode 100644 index 000000000..3e631e25c --- /dev/null +++ b/test/Marketing/Types/SortFieldTest.php @@ -0,0 +1,33 @@ +obj = new SortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/SummaryReportResponseTest.php b/test/Marketing/Types/SummaryReportResponseTest.php new file mode 100644 index 000000000..306007287 --- /dev/null +++ b/test/Marketing/Types/SummaryReportResponseTest.php @@ -0,0 +1,33 @@ +obj = new SummaryReportResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SummaryReportResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateBidPercentageRequestTest.php b/test/Marketing/Types/UpdateBidPercentageRequestTest.php new file mode 100644 index 000000000..ec821da5c --- /dev/null +++ b/test/Marketing/Types/UpdateBidPercentageRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBidPercentageRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidPercentageRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateBidRestRequestTest.php b/test/Marketing/Types/UpdateBidRestRequestTest.php new file mode 100644 index 000000000..c542eff7a --- /dev/null +++ b/test/Marketing/Types/UpdateBidRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBidRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest', $this->obj); + } + + public function testExtendsUpdateBidPercentageRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidPercentageRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateBidRestResponseTest.php b/test/Marketing/Types/UpdateBidRestResponseTest.php new file mode 100644 index 000000000..97adb394f --- /dev/null +++ b/test/Marketing/Types/UpdateBidRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBidRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php b/test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php new file mode 100644 index 000000000..434b5ed86 --- /dev/null +++ b/test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCampaignIDentificationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest', $this->obj); + } + + public function testExtendsUpdateCampaignIdentificationRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIdentificationRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php b/test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php new file mode 100644 index 000000000..bb90b5865 --- /dev/null +++ b/test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCampaignIDentificationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php b/test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php new file mode 100644 index 000000000..6477f0c37 --- /dev/null +++ b/test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCampaignIdentificationRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIdentificationRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateItemPromotionRestRequestTest.php b/test/Marketing/Types/UpdateItemPromotionRestRequestTest.php new file mode 100644 index 000000000..e8e6e8520 --- /dev/null +++ b/test/Marketing/Types/UpdateItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest', $this->obj); + } + + public function testExtendsItemPromotion() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotion', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateItemPromotionRestResponseTest.php b/test/Marketing/Types/UpdateItemPromotionRestResponseTest.php new file mode 100644 index 000000000..226341d81 --- /dev/null +++ b/test/Marketing/Types/UpdateItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Enums/AckValueTest.php b/test/Merchandising/Enums/AckValueTest.php new file mode 100644 index 000000000..1d2e8cc8f --- /dev/null +++ b/test/Merchandising/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\AckValue', $this->obj); + } +} diff --git a/test/Merchandising/Enums/ErrorCategoryTest.php b/test/Merchandising/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..e79d3103f --- /dev/null +++ b/test/Merchandising/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/Merchandising/Enums/ErrorSeverityTest.php b/test/Merchandising/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..3f0e5c51b --- /dev/null +++ b/test/Merchandising/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/Merchandising/Enums/ItemFilterTypeTest.php b/test/Merchandising/Enums/ItemFilterTypeTest.php new file mode 100644 index 000000000..76a3d955b --- /dev/null +++ b/test/Merchandising/Enums/ItemFilterTypeTest.php @@ -0,0 +1,28 @@ +obj = new ItemFilterType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\ItemFilterType', $this->obj); + } +} diff --git a/test/Merchandising/Enums/PriceTreatmentEnumTest.php b/test/Merchandising/Enums/PriceTreatmentEnumTest.php new file mode 100644 index 000000000..7e742e487 --- /dev/null +++ b/test/Merchandising/Enums/PriceTreatmentEnumTest.php @@ -0,0 +1,28 @@ +obj = new PriceTreatmentEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\PriceTreatmentEnum', $this->obj); + } +} diff --git a/test/Merchandising/Mocks/Service.php b/test/Merchandising/Mocks/Service.php new file mode 100644 index 000000000..fcae08ca4 --- /dev/null +++ b/test/Merchandising/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/Merchandising/Services/ServiceTest.php b/test/Merchandising/Services/ServiceTest.php new file mode 100644 index 000000000..eb94a4e6a --- /dev/null +++ b/test/Merchandising/Services/ServiceTest.php @@ -0,0 +1,71 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => MerchandisingService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'credentials' => ['appId' => '321', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(MerchandisingBaseService::HDR_APP_ID, $h->headers); + $this->assertEquals('321', $h->headers[MerchandisingBaseService::HDR_APP_ID]); + + $this->assertArrayHasKey(MerchandisingBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[MerchandisingBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(MerchandisingBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(MerchandisingService::API_VERSION, $h->headers[MerchandisingBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(MerchandisingBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(MerchandisingBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[MerchandisingBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(MerchandisingBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[MerchandisingBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/Merchandising/Types/AffiliateTest.php b/test/Merchandising/Types/AffiliateTest.php new file mode 100644 index 000000000..2e335c1bf --- /dev/null +++ b/test/Merchandising/Types/AffiliateTest.php @@ -0,0 +1,33 @@ +obj = new Affiliate(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Affiliate', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/AmountTest.php b/test/Merchandising/Types/AmountTest.php new file mode 100644 index 000000000..0024de960 --- /dev/null +++ b/test/Merchandising/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Amount', $this->obj); + } + + public function testExtendsDoubleType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\DoubleType', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php b/test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php new file mode 100644 index 000000000..01085e53a --- /dev/null +++ b/test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseMerchandisingServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php b/test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php new file mode 100644 index 000000000..84db5b6e4 --- /dev/null +++ b/test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseMerchandisingServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseServiceRequestTest.php b/test/Merchandising/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..f1df9250a --- /dev/null +++ b/test/Merchandising/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseServiceResponseTest.php b/test/Merchandising/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..78127fcd2 --- /dev/null +++ b/test/Merchandising/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/DiscountPriceInfoTest.php b/test/Merchandising/Types/DiscountPriceInfoTest.php new file mode 100644 index 000000000..85964febb --- /dev/null +++ b/test/Merchandising/Types/DiscountPriceInfoTest.php @@ -0,0 +1,33 @@ +obj = new DiscountPriceInfo(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\DiscountPriceInfo', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ErrorDataTest.php b/test/Merchandising/Types/ErrorDataTest.php new file mode 100644 index 000000000..caa116486 --- /dev/null +++ b/test/Merchandising/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ErrorMessageTest.php b/test/Merchandising/Types/ErrorMessageTest.php new file mode 100644 index 000000000..b33adcafc --- /dev/null +++ b/test/Merchandising/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ErrorParameterTest.php b/test/Merchandising/Types/ErrorParameterTest.php new file mode 100644 index 000000000..46c0a11f5 --- /dev/null +++ b/test/Merchandising/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetDealsRequestTest.php b/test/Merchandising/Types/GetDealsRequestTest.php new file mode 100644 index 000000000..19a8691a0 --- /dev/null +++ b/test/Merchandising/Types/GetDealsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetDealsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetDealsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetMostWatchedItemsRequestTest.php b/test/Merchandising/Types/GetMostWatchedItemsRequestTest.php new file mode 100644 index 000000000..75760dafd --- /dev/null +++ b/test/Merchandising/Types/GetMostWatchedItemsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetMostWatchedItemsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php b/test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php new file mode 100644 index 000000000..539c89fe3 --- /dev/null +++ b/test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetRelatedCategoryItemsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetRelatedCategoryItemsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetSimilarItemsRequestTest.php b/test/Merchandising/Types/GetSimilarItemsRequestTest.php new file mode 100644 index 000000000..b612863cb --- /dev/null +++ b/test/Merchandising/Types/GetSimilarItemsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetSimilarItemsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetTopSellingProductsRequestTest.php b/test/Merchandising/Types/GetTopSellingProductsRequestTest.php new file mode 100644 index 000000000..16bfcbe11 --- /dev/null +++ b/test/Merchandising/Types/GetTopSellingProductsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetTopSellingProductsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetVersionRequestTest.php b/test/Merchandising/Types/GetVersionRequestTest.php new file mode 100644 index 000000000..2df0b3b93 --- /dev/null +++ b/test/Merchandising/Types/GetVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetVersionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetVersionResponseTest.php b/test/Merchandising/Types/GetVersionResponseTest.php new file mode 100644 index 000000000..57a4a6dd3 --- /dev/null +++ b/test/Merchandising/Types/GetVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetVersionResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/ItemFilterTest.php b/test/Merchandising/Types/ItemFilterTest.php new file mode 100644 index 000000000..e2b47d084 --- /dev/null +++ b/test/Merchandising/Types/ItemFilterTest.php @@ -0,0 +1,33 @@ +obj = new ItemFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ItemFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ItemRecommendationsTest.php b/test/Merchandising/Types/ItemRecommendationsTest.php new file mode 100644 index 000000000..3b06f59fd --- /dev/null +++ b/test/Merchandising/Types/ItemRecommendationsTest.php @@ -0,0 +1,33 @@ +obj = new ItemRecommendations(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ItemRecommendations', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ItemTest.php b/test/Merchandising/Types/ItemTest.php new file mode 100644 index 000000000..d80de0e75 --- /dev/null +++ b/test/Merchandising/Types/ItemTest.php @@ -0,0 +1,33 @@ +obj = new Item(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Item', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/MerchandisingServiceItemResponseTest.php b/test/Merchandising/Types/MerchandisingServiceItemResponseTest.php new file mode 100644 index 000000000..047712603 --- /dev/null +++ b/test/Merchandising/Types/MerchandisingServiceItemResponseTest.php @@ -0,0 +1,33 @@ +obj = new MerchandisingServiceItemResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/MerchandisingServiceProductResponseTest.php b/test/Merchandising/Types/MerchandisingServiceProductResponseTest.php new file mode 100644 index 000000000..9df7df6db --- /dev/null +++ b/test/Merchandising/Types/MerchandisingServiceProductResponseTest.php @@ -0,0 +1,33 @@ +obj = new MerchandisingServiceProductResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductResponse', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/ProductIdTest.php b/test/Merchandising/Types/ProductIdTest.php new file mode 100644 index 000000000..2dadb9077 --- /dev/null +++ b/test/Merchandising/Types/ProductIdTest.php @@ -0,0 +1,33 @@ +obj = new ProductId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ProductId', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ProductRecommendationsTest.php b/test/Merchandising/Types/ProductRecommendationsTest.php new file mode 100644 index 000000000..fbb18c7e9 --- /dev/null +++ b/test/Merchandising/Types/ProductRecommendationsTest.php @@ -0,0 +1,33 @@ +obj = new ProductRecommendations(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ProductRecommendations', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ProductTest.php b/test/Merchandising/Types/ProductTest.php new file mode 100644 index 000000000..62785752d --- /dev/null +++ b/test/Merchandising/Types/ProductTest.php @@ -0,0 +1,33 @@ +obj = new Product(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Product', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/MerchantData/Enums/AckCodeTypeTest.php b/test/MerchantData/Enums/AckCodeTypeTest.php index ddbd7591c..6996304de 100644 --- a/test/MerchantData/Enums/AckCodeTypeTest.php +++ b/test/MerchantData/Enums/AckCodeTypeTest.php @@ -1,8 +1,11 @@ merchantData = new MerchantData(); diff --git a/test/MerchantData/Types/AbstractRequestTypeTest.php b/test/MerchantData/Types/AbstractRequestTypeTest.php index 90b53f983..3a77951db 100644 --- a/test/MerchantData/Types/AbstractRequestTypeTest.php +++ b/test/MerchantData/Types/AbstractRequestTypeTest.php @@ -1,8 +1,11 @@ obj = new CustomSecurityHeaderType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\MerchantData\Types\CustomSecurityHeaderType', $this->obj); - } - - public function testExtendsBaseType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); - } -} diff --git a/test/MerchantData/Types/DeliveryDetailsTypeTest.php b/test/MerchantData/Types/DeliveryDetailsTypeTest.php index 97ac361f6..5de32b09a 100644 --- a/test/MerchantData/Types/DeliveryDetailsTypeTest.php +++ b/test/MerchantData/Types/DeliveryDetailsTypeTest.php @@ -1,8 +1,11 @@ obj = new UserIdPasswordType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\MerchantData\Types\UserIdPasswordType', $this->obj); - } - - public function testExtendsBaseType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); - } -} diff --git a/test/MerchantData/Types/UserIdentityTypeTest.php b/test/MerchantData/Types/UserIdentityTypeTest.php index b61ff0392..d6cba25f7 100644 --- a/test/MerchantData/Types/UserIdentityTypeTest.php +++ b/test/MerchantData/Types/UserIdentityTypeTest.php @@ -1,8 +1,11 @@ obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Metadata/Mocks/Service.php b/test/Metadata/Mocks/Service.php new file mode 100644 index 000000000..498abf0ec --- /dev/null +++ b/test/Metadata/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Metadata/Services/ServiceTest.php b/test/Metadata/Services/ServiceTest.php new file mode 100644 index 000000000..c6e6edae9 --- /dev/null +++ b/test/Metadata/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => MetadataService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(MetadataBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[MetadataBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(MetadataBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(MetadataBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[MetadataBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Metadata/Types/ErrorDetailV3Test.php b/test/Metadata/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..d55073306 --- /dev/null +++ b/test/Metadata/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/ErrorParameterV3Test.php b/test/Metadata/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..5c7e1130e --- /dev/null +++ b/test/Metadata/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php b/test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php new file mode 100644 index 000000000..792d9a327 --- /dev/null +++ b/test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetSalesTaxJurisdictionsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php b/test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php new file mode 100644 index 000000000..64e6d5d91 --- /dev/null +++ b/test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetSalesTaxJurisdictionsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestResponse', $this->obj); + } + + public function testExtendsSalesTaxJurisdictions() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\SalesTaxJurisdictions', $this->obj); + } +} diff --git a/test/Metadata/Types/SalesTaxJurisdictionTest.php b/test/Metadata/Types/SalesTaxJurisdictionTest.php new file mode 100644 index 000000000..b5fda927d --- /dev/null +++ b/test/Metadata/Types/SalesTaxJurisdictionTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxJurisdiction(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\SalesTaxJurisdiction', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/SalesTaxJurisdictionsTest.php b/test/Metadata/Types/SalesTaxJurisdictionsTest.php new file mode 100644 index 000000000..1d9102563 --- /dev/null +++ b/test/Metadata/Types/SalesTaxJurisdictionsTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxJurisdictions(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\SalesTaxJurisdictions', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Mocks/BaseRestService.php b/test/Mocks/BaseRestService.php new file mode 100644 index 000000000..1e1096df0 --- /dev/null +++ b/test/Mocks/BaseRestService.php @@ -0,0 +1,33 @@ + 'http://sandbox.com', + 'production' => 'http://production.com' + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => 'v1', + 'required' => true + ] + ]; + } + + protected function getEbayHeaders() + { + return []; + } +} diff --git a/test/Mocks/ComplexClassJson.json b/test/Mocks/ComplexClassJson.json new file mode 100644 index 000000000..2003d0699 --- /dev/null +++ b/test/Mocks/ComplexClassJson.json @@ -0,0 +1,46 @@ +{ + "integer": 123, + "string": "

Bits & Bobs<\/h1>

Just some <stuff> I found. ©<\/p>", + "double": 123.45, + "booleanTrue": true, + "booleanFalse": false, + "DateTime": "2000-01-01T00:00:00.000Z", + "SimpleClass": { + "integer": 321, + "string": "another string" + }, + "strings": [ + "foo", + "bar" + ], + "integers": [ + 1, + 2, + 3, + 4, + 5 + ], + "foo": "foo", + "AmountClass": { + "value": 543.21, + "AttributeOne": "one" + }, + "simpleClasses": [ + { + "integer": 888 + }, + { + "integer": 999 + } + ], + "anyType": 1, + "anyTypes": [ + 1, + "foo", + 1.23, + true, + false, + "2000-01-01T00:00:00.000Z", + [1, 2, 3] + ] +} diff --git a/test/Mocks/HttpHeaders.php b/test/Mocks/HttpHeaders.php new file mode 100644 index 000000000..28a057f2d --- /dev/null +++ b/test/Mocks/HttpHeaders.php @@ -0,0 +1,14 @@ +setHeaders($headers); + } +} diff --git a/test/Mocks/HttpRestHandler.php b/test/Mocks/HttpRestHandler.php new file mode 100644 index 000000000..a2404fd4e --- /dev/null +++ b/test/Mocks/HttpRestHandler.php @@ -0,0 +1,33 @@ +url = $request->getUri(); + $this->headers = []; + foreach ($request->getHeaders() as $name => $values) { + $this->headers[$name] = implode(', ', $values); + } + $this->body = $request->getBody(); + + // Return a fake json response. + $json = file_get_contents(__DIR__.'/../Mocks/RestResponse.json'); + + return new FulfilledPromise(new Response(200, [], Psr7\stream_for($json))); + } +} diff --git a/test/Mocks/Response.json b/test/Mocks/Response.json new file mode 100644 index 000000000..ff29a713e --- /dev/null +++ b/test/Mocks/Response.json @@ -0,0 +1,67 @@ +{ + "integer": 123, + "string": "<h1>Bits &amp; Bobs ©</h1><p>Just some &lt;stuff&gt; I found.&nbsp;&copy;</p>", + "double": 123.45, + "booleanTrue": true, + "booleanFalse": false, + "DateTime": "2000-01-01T16:15:30.123Z", + "SimpleClass": { + "integer": 321, + "string": "another string" + }, + "strings": ["foo", "bar"], + "integers": [1, 2, 3, 4, 5], + "simpleClasses": [{ + "integer": 888 + }, { + "integer": 999 + }], + "AmountClass": { + "value": 543.21 + }, + "base64BinaryType": { + "value": "binary type" + }, + "booleanType": { + "value": true + }, + "decimalType": { + "value": 123 + }, + "doubleType": { + "value": 123.45 + }, + "integerType": { + "value": 123 + }, + "stringType": { + "value": "string type" + }, + "tokenType": { + "value": "token type" + }, + "uriType": { + "value": "uri type" + }, + "decimalTypePosInteger":{ + "value": 123 + }, + "decimalTypePosFloat": { + "value": 123.45 + }, + "decimalTypeNegInteger": { + "value": -123 + }, + "decimalTypeNegFloat": { + "value": -123.45 + }, + "anyType": 1, + "anyTypes": [ + 1, + "foo", + 1.23, + true, + false, + [1, 2, 3] + ] +} diff --git a/test/Mocks/Response.xml b/test/Mocks/Response.xml index 69401b40d..b27010f82 100644 --- a/test/Mocks/Response.xml +++ b/test/Mocks/Response.xml @@ -2,7 +2,6 @@ 123 <h1>Bits &amp; Bobs ©</h1><p>Just some &lt;stuff&gt; I found.&nbsp;&copy;</p> - foo 123.45 TRUE false diff --git a/test/Mocks/ResponseNS.xml b/test/Mocks/ResponseNS.xml index f05bb30df..a40a9570e 100644 --- a/test/Mocks/ResponseNS.xml +++ b/test/Mocks/ResponseNS.xml @@ -2,7 +2,6 @@ 123 a string - foo 123.45 TRUE false diff --git a/test/Mocks/RestResponse.json b/test/Mocks/RestResponse.json new file mode 100644 index 000000000..64ba5d484 --- /dev/null +++ b/test/Mocks/RestResponse.json @@ -0,0 +1,35 @@ +{ + "integer": 123, + "string": "

Bits & Bobs ©

Just some <stuff> I found. ©

", + "foo": "foo", + "double": 123.45, + "booleanTrue": true, + "booleanFalse": false, + "DateTime": "2000-01-01T16:15:30.123Z", + "SimpleClass": { + "integer": 321, + "string": "another string" + }, + "strings": [ + "foo", + "bar" + ], + "integers": [ + 1, + 2, + 3, + 4, + 5 + ], + "simpleClasses": [ + { + "integer": 888 + }, + { + "integer": 999 + } + ], + "AmountClass": { + "value": 543.21 + } +} diff --git a/test/Mocks/RestService.php b/test/Mocks/RestService.php new file mode 100644 index 000000000..541d3c352 --- /dev/null +++ b/test/Mocks/RestService.php @@ -0,0 +1,25 @@ + [ + 'method' => 'GET', + 'resource' => '', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function foo(\DTS\eBaySDK\Test\Mocks\ComplexClass $request) + { + return $this->callOperationAsync('foo', $request)->wait(); + } +} diff --git a/test/Mocks/SimpleClass.php b/test/Mocks/SimpleClass.php index 82dc6ff2f..bb0bb891c 100644 --- a/test/Mocks/SimpleClass.php +++ b/test/Mocks/SimpleClass.php @@ -165,6 +165,18 @@ class SimpleClass extends \DTS\eBaySDK\Types\BaseType 'repeatable' => false, 'attribute' => false, 'elementName' => 'decimalTypeNegFloat' + ], + 'anyType' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'anyType' + ], + 'anyTypes' => [ + 'type' => 'any', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'anyTypes' ] ]; diff --git a/test/Mocks/StatusCode.php b/test/Mocks/StatusCode.php new file mode 100644 index 000000000..462e5ed53 --- /dev/null +++ b/test/Mocks/StatusCode.php @@ -0,0 +1,14 @@ +statusCode = $statusCode; + } +} diff --git a/test/Order/Enums/CountryCodeEnumTest.php b/test/Order/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..c29161a08 --- /dev/null +++ b/test/Order/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Order/Enums/CurrencyCodeEnumTest.php b/test/Order/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..8efea22a4 --- /dev/null +++ b/test/Order/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Order/Enums/LineItemPaymentStatusEnumTest.php b/test/Order/Enums/LineItemPaymentStatusEnumTest.php new file mode 100644 index 000000000..4e7226608 --- /dev/null +++ b/test/Order/Enums/LineItemPaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LineItemPaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\LineItemPaymentStatusEnum', $this->obj); + } +} diff --git a/test/Order/Enums/LineItemStatusEnumTest.php b/test/Order/Enums/LineItemStatusEnumTest.php new file mode 100644 index 000000000..965e5c621 --- /dev/null +++ b/test/Order/Enums/LineItemStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LineItemStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\LineItemStatusEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PaymentMethodBrandEnumTest.php b/test/Order/Enums/PaymentMethodBrandEnumTest.php new file mode 100644 index 000000000..3d2bd89cd --- /dev/null +++ b/test/Order/Enums/PaymentMethodBrandEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodBrandEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PaymentMethodBrandEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PaymentMethodTypeEnumTest.php b/test/Order/Enums/PaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..71d1e1d25 --- /dev/null +++ b/test/Order/Enums/PaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php b/test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php new file mode 100644 index 000000000..dc0af064d --- /dev/null +++ b/test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PurchaseOrderPaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PurchaseOrderPaymentStatusEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PurchaseOrderStatusEnumTest.php b/test/Order/Enums/PurchaseOrderStatusEnumTest.php new file mode 100644 index 000000000..780f639cf --- /dev/null +++ b/test/Order/Enums/PurchaseOrderStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PurchaseOrderStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PurchaseOrderStatusEnum', $this->obj); + } +} diff --git a/test/Order/Mocks/Service.php b/test/Order/Mocks/Service.php new file mode 100644 index 000000000..199eb09a8 --- /dev/null +++ b/test/Order/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Order/Services/ServiceTest.php b/test/Order/Services/ServiceTest.php new file mode 100644 index 000000000..a48854c91 --- /dev/null +++ b/test/Order/Services/ServiceTest.php @@ -0,0 +1,76 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => OrderService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + + $this->assertArrayHasKey('riskCorrelationId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['riskCorrelationId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(OrderBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[OrderBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(OrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertArrayNotHasKey(OrderBaseService::HDR_END_USER_CTX, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'riskCorrelationId' => '456', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(OrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[OrderBaseService::HDR_MARKETPLACE_ID]); + $this->assertEquals('deviceId=456', $h->headers[OrderBaseService::HDR_END_USER_CTX ]); + } +} diff --git a/test/Order/Types/AdjustmentTest.php b/test/Order/Types/AdjustmentTest.php new file mode 100644 index 000000000..5fbaeeebd --- /dev/null +++ b/test/Order/Types/AdjustmentTest.php @@ -0,0 +1,33 @@ +obj = new Adjustment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Adjustment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/Adjustment_0Test.php b/test/Order/Types/Adjustment_0Test.php new file mode 100644 index 000000000..8c8c98225 --- /dev/null +++ b/test/Order/Types/Adjustment_0Test.php @@ -0,0 +1,33 @@ +obj = new Adjustment_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Adjustment_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/AmountTest.php b/test/Order/Types/AmountTest.php new file mode 100644 index 000000000..9c9edb844 --- /dev/null +++ b/test/Order/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/Amount_0Test.php b/test/Order/Types/Amount_0Test.php new file mode 100644 index 000000000..e81abea11 --- /dev/null +++ b/test/Order/Types/Amount_0Test.php @@ -0,0 +1,33 @@ +obj = new Amount_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Amount_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/BillingAddressTest.php b/test/Order/Types/BillingAddressTest.php new file mode 100644 index 000000000..32fefac48 --- /dev/null +++ b/test/Order/Types/BillingAddressTest.php @@ -0,0 +1,33 @@ +obj = new BillingAddress(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\BillingAddress', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CheckoutSessionResponseTest.php b/test/Order/Types/CheckoutSessionResponseTest.php new file mode 100644 index 000000000..769f201b8 --- /dev/null +++ b/test/Order/Types/CheckoutSessionResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckoutSessionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CreateGuestCheckoutSessionRequestTest.php b/test/Order/Types/CreateGuestCheckoutSessionRequestTest.php new file mode 100644 index 000000000..201755ba0 --- /dev/null +++ b/test/Order/Types/CreateGuestCheckoutSessionRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateGuestCheckoutSessionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateGuestCheckoutSessionRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CreateSignInCheckoutSessionRequestTest.php b/test/Order/Types/CreateSignInCheckoutSessionRequestTest.php new file mode 100644 index 000000000..b357d445f --- /dev/null +++ b/test/Order/Types/CreateSignInCheckoutSessionRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateSignInCheckoutSessionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateSignInCheckoutSessionRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CreditCardTest.php b/test/Order/Types/CreditCardTest.php new file mode 100644 index 000000000..635d9db16 --- /dev/null +++ b/test/Order/Types/CreditCardTest.php @@ -0,0 +1,33 @@ +obj = new CreditCard(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreditCard', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ErrorDetailV3Test.php b/test/Order/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..7409af838 --- /dev/null +++ b/test/Order/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ErrorParameterV3Test.php b/test/Order/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..3a347b2da --- /dev/null +++ b/test/Order/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetCheckoutSessionRestRequestTest.php b/test/Order/Types/GetCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..07c9fa887 --- /dev/null +++ b/test/Order/Types/GetCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetCheckoutSessionRestResponseTest.php b/test/Order/Types/GetCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..d501251f0 --- /dev/null +++ b/test/Order/Types/GetCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php b/test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..8d231fe44 --- /dev/null +++ b/test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php b/test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..4cb52e663 --- /dev/null +++ b/test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php b/test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php new file mode 100644 index 000000000..23bce94a0 --- /dev/null +++ b/test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestPurchaseOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php b/test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php new file mode 100644 index 000000000..4bf0946e2 --- /dev/null +++ b/test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestPurchaseOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestResponse', $this->obj); + } + + public function testExtendsGuestPurchaseOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GuestPurchaseOrder', $this->obj); + } +} diff --git a/test/Order/Types/GetPurchaseOrderRestRequestTest.php b/test/Order/Types/GetPurchaseOrderRestRequestTest.php new file mode 100644 index 000000000..7ca08e2c7 --- /dev/null +++ b/test/Order/Types/GetPurchaseOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPurchaseOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetPurchaseOrderRestResponseTest.php b/test/Order/Types/GetPurchaseOrderRestResponseTest.php new file mode 100644 index 000000000..b7593c63b --- /dev/null +++ b/test/Order/Types/GetPurchaseOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPurchaseOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestResponse', $this->obj); + } + + public function testExtendsPurchaseOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrder', $this->obj); + } +} diff --git a/test/Order/Types/GuestPurchaseOrderTest.php b/test/Order/Types/GuestPurchaseOrderTest.php new file mode 100644 index 000000000..f17c3d280 --- /dev/null +++ b/test/Order/Types/GuestPurchaseOrderTest.php @@ -0,0 +1,33 @@ +obj = new GuestPurchaseOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GuestPurchaseOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ImageTest.php b/test/Order/Types/ImageTest.php new file mode 100644 index 000000000..f63c36a3e --- /dev/null +++ b/test/Order/Types/ImageTest.php @@ -0,0 +1,33 @@ +obj = new Image(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Image', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/InitiateCheckoutSessionRestRequestTest.php b/test/Order/Types/InitiateCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..4bc45c1bc --- /dev/null +++ b/test/Order/Types/InitiateCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new InitiateCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsCreateSignInCheckoutSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateSignInCheckoutSessionRequest', $this->obj); + } +} diff --git a/test/Order/Types/InitiateCheckoutSessionRestResponseTest.php b/test/Order/Types/InitiateCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..308dfb3ee --- /dev/null +++ b/test/Order/Types/InitiateCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new InitiateCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php b/test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..d8645e587 --- /dev/null +++ b/test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new InitiateGuestCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsCreateGuestCheckoutSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateGuestCheckoutSessionRequest', $this->obj); + } +} diff --git a/test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php b/test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..13c9e6fc3 --- /dev/null +++ b/test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new InitiateGuestCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/LineItemInputTest.php b/test/Order/Types/LineItemInputTest.php new file mode 100644 index 000000000..b25b11bc0 --- /dev/null +++ b/test/Order/Types/LineItemInputTest.php @@ -0,0 +1,33 @@ +obj = new LineItemInput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItemInput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/LineItemReferenceTest.php b/test/Order/Types/LineItemReferenceTest.php new file mode 100644 index 000000000..80772b9f6 --- /dev/null +++ b/test/Order/Types/LineItemReferenceTest.php @@ -0,0 +1,33 @@ +obj = new LineItemReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItemReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/LineItemTest.php b/test/Order/Types/LineItemTest.php new file mode 100644 index 000000000..b23deb026 --- /dev/null +++ b/test/Order/Types/LineItemTest.php @@ -0,0 +1,33 @@ +obj = new LineItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/LineItem_0Test.php b/test/Order/Types/LineItem_0Test.php new file mode 100644 index 000000000..1acb39c69 --- /dev/null +++ b/test/Order/Types/LineItem_0Test.php @@ -0,0 +1,33 @@ +obj = new LineItem_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItem_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentInstrumentReferenceTest.php b/test/Order/Types/PaymentInstrumentReferenceTest.php new file mode 100644 index 000000000..80772b309 --- /dev/null +++ b/test/Order/Types/PaymentInstrumentReferenceTest.php @@ -0,0 +1,33 @@ +obj = new PaymentInstrumentReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentInstrumentReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentInstrumentTest.php b/test/Order/Types/PaymentInstrumentTest.php new file mode 100644 index 000000000..4dadce872 --- /dev/null +++ b/test/Order/Types/PaymentInstrumentTest.php @@ -0,0 +1,33 @@ +obj = new PaymentInstrument(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentInstrument', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentMethodBrandTest.php b/test/Order/Types/PaymentMethodBrandTest.php new file mode 100644 index 000000000..7d603893a --- /dev/null +++ b/test/Order/Types/PaymentMethodBrandTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethodBrand(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentMethodBrand', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentMethodMessageTest.php b/test/Order/Types/PaymentMethodMessageTest.php new file mode 100644 index 000000000..990fc1a27 --- /dev/null +++ b/test/Order/Types/PaymentMethodMessageTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethodMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentMethodMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentMethodTest.php b/test/Order/Types/PaymentMethodTest.php new file mode 100644 index 000000000..23813f951 --- /dev/null +++ b/test/Order/Types/PaymentMethodTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentMethod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PlaceGuestOrderRestRequestTest.php b/test/Order/Types/PlaceGuestOrderRestRequestTest.php new file mode 100644 index 000000000..d625268a6 --- /dev/null +++ b/test/Order/Types/PlaceGuestOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PlaceGuestOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PlaceGuestOrderRestResponseTest.php b/test/Order/Types/PlaceGuestOrderRestResponseTest.php new file mode 100644 index 000000000..080da80f5 --- /dev/null +++ b/test/Order/Types/PlaceGuestOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PlaceGuestOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestResponse', $this->obj); + } + + public function testExtendsPurchaseOrderSummary() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrderSummary', $this->obj); + } +} diff --git a/test/Order/Types/PlaceOrderRestRequestTest.php b/test/Order/Types/PlaceOrderRestRequestTest.php new file mode 100644 index 000000000..b5d4b4fd6 --- /dev/null +++ b/test/Order/Types/PlaceOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PlaceOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PlaceOrderRestResponseTest.php b/test/Order/Types/PlaceOrderRestResponseTest.php new file mode 100644 index 000000000..4596457a8 --- /dev/null +++ b/test/Order/Types/PlaceOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PlaceOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceOrderRestResponse', $this->obj); + } + + public function testExtendsPurchaseOrderSummary() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrderSummary', $this->obj); + } +} diff --git a/test/Order/Types/PricingSummaryTest.php b/test/Order/Types/PricingSummaryTest.php new file mode 100644 index 000000000..1518aa305 --- /dev/null +++ b/test/Order/Types/PricingSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PricingSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PricingSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PricingSummary_0Test.php b/test/Order/Types/PricingSummary_0Test.php new file mode 100644 index 000000000..87b820468 --- /dev/null +++ b/test/Order/Types/PricingSummary_0Test.php @@ -0,0 +1,33 @@ +obj = new PricingSummary_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PricingSummary_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PromotionTest.php b/test/Order/Types/PromotionTest.php new file mode 100644 index 000000000..d9293a21c --- /dev/null +++ b/test/Order/Types/PromotionTest.php @@ -0,0 +1,33 @@ +obj = new Promotion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Promotion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ProvidedPaymentInstrumentTest.php b/test/Order/Types/ProvidedPaymentInstrumentTest.php new file mode 100644 index 000000000..e30122e9f --- /dev/null +++ b/test/Order/Types/ProvidedPaymentInstrumentTest.php @@ -0,0 +1,33 @@ +obj = new ProvidedPaymentInstrument(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ProvidedPaymentInstrument', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PurchaseOrderSummaryTest.php b/test/Order/Types/PurchaseOrderSummaryTest.php new file mode 100644 index 000000000..113cf9614 --- /dev/null +++ b/test/Order/Types/PurchaseOrderSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PurchaseOrderSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrderSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PurchaseOrderTest.php b/test/Order/Types/PurchaseOrderTest.php new file mode 100644 index 000000000..6fd12165c --- /dev/null +++ b/test/Order/Types/PurchaseOrderTest.php @@ -0,0 +1,33 @@ +obj = new PurchaseOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/SellerTest.php b/test/Order/Types/SellerTest.php new file mode 100644 index 000000000..fbe97aee2 --- /dev/null +++ b/test/Order/Types/SellerTest.php @@ -0,0 +1,33 @@ +obj = new Seller(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Seller', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingAddressImplTest.php b/test/Order/Types/ShippingAddressImplTest.php new file mode 100644 index 000000000..06a486b2b --- /dev/null +++ b/test/Order/Types/ShippingAddressImplTest.php @@ -0,0 +1,33 @@ +obj = new ShippingAddressImpl(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddressImpl', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingAddressTest.php b/test/Order/Types/ShippingAddressTest.php new file mode 100644 index 000000000..d50e746bf --- /dev/null +++ b/test/Order/Types/ShippingAddressTest.php @@ -0,0 +1,33 @@ +obj = new ShippingAddress(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddress', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingAddress_0Test.php b/test/Order/Types/ShippingAddress_0Test.php new file mode 100644 index 000000000..74b1a75ce --- /dev/null +++ b/test/Order/Types/ShippingAddress_0Test.php @@ -0,0 +1,33 @@ +obj = new ShippingAddress_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddress_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingDetailTest.php b/test/Order/Types/ShippingDetailTest.php new file mode 100644 index 000000000..c81d88acf --- /dev/null +++ b/test/Order/Types/ShippingDetailTest.php @@ -0,0 +1,33 @@ +obj = new ShippingDetail(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingDetail', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingFulfillmentTest.php b/test/Order/Types/ShippingFulfillmentTest.php new file mode 100644 index 000000000..323f2052e --- /dev/null +++ b/test/Order/Types/ShippingFulfillmentTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingFulfillment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingOptionTest.php b/test/Order/Types/ShippingOptionTest.php new file mode 100644 index 000000000..542624549 --- /dev/null +++ b/test/Order/Types/ShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php b/test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php new file mode 100644 index 000000000..192fcf99e --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemQuantityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest', $this->obj); + } + + public function testExtendsUpdateQuantity() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantity', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php b/test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php new file mode 100644 index 000000000..f8c418dd9 --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemQuantityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php b/test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php new file mode 100644 index 000000000..b5a8053a1 --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemShippingAddressRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest', $this->obj); + } + + public function testExtendsShippingAddressImpl() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddressImpl', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php b/test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php new file mode 100644 index 000000000..7f1b97416 --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemShippingAddressRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php b/test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php new file mode 100644 index 000000000..ffa593770 --- /dev/null +++ b/test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestPaymentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest', $this->obj); + } + + public function testExtendsUpdatePaymentInformation() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInformation', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php b/test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php new file mode 100644 index 000000000..9cd1f6f76 --- /dev/null +++ b/test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestPaymentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php b/test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php new file mode 100644 index 000000000..d1c585edd --- /dev/null +++ b/test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestShippingOptionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest', $this->obj); + } + + public function testExtendsUpdateShippingOption() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOption', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php b/test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php new file mode 100644 index 000000000..a1d012b51 --- /dev/null +++ b/test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestShippingOptionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdatePaymentInfoRestRequestTest.php b/test/Order/Types/UpdatePaymentInfoRestRequestTest.php new file mode 100644 index 000000000..ddcbdac74 --- /dev/null +++ b/test/Order/Types/UpdatePaymentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdatePaymentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest', $this->obj); + } + + public function testExtendsUpdatePaymentInformation() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInformation', $this->obj); + } +} diff --git a/test/Order/Types/UpdatePaymentInfoRestResponseTest.php b/test/Order/Types/UpdatePaymentInfoRestResponseTest.php new file mode 100644 index 000000000..cbedca0f6 --- /dev/null +++ b/test/Order/Types/UpdatePaymentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdatePaymentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdatePaymentInformationTest.php b/test/Order/Types/UpdatePaymentInformationTest.php new file mode 100644 index 000000000..5d50001b1 --- /dev/null +++ b/test/Order/Types/UpdatePaymentInformationTest.php @@ -0,0 +1,33 @@ +obj = new UpdatePaymentInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php b/test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php new file mode 100644 index 000000000..a2ccfc449 --- /dev/null +++ b/test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateQuantityForLineItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest', $this->obj); + } + + public function testExtendsUpdateQuantity() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantity', $this->obj); + } +} diff --git a/test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php b/test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php new file mode 100644 index 000000000..edc78face --- /dev/null +++ b/test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateQuantityForLineItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateQuantityTest.php b/test/Order/Types/UpdateQuantityTest.php new file mode 100644 index 000000000..4877cd2b6 --- /dev/null +++ b/test/Order/Types/UpdateQuantityTest.php @@ -0,0 +1,33 @@ +obj = new UpdateQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingAddressRestRequestTest.php b/test/Order/Types/UpdateShippingAddressRestRequestTest.php new file mode 100644 index 000000000..cd8ceff91 --- /dev/null +++ b/test/Order/Types/UpdateShippingAddressRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingAddressRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest', $this->obj); + } + + public function testExtendsShippingAddressImpl() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddressImpl', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingAddressRestResponseTest.php b/test/Order/Types/UpdateShippingAddressRestResponseTest.php new file mode 100644 index 000000000..f27c60bf6 --- /dev/null +++ b/test/Order/Types/UpdateShippingAddressRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingAddressRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingOptionRestRequestTest.php b/test/Order/Types/UpdateShippingOptionRestRequestTest.php new file mode 100644 index 000000000..85556cf87 --- /dev/null +++ b/test/Order/Types/UpdateShippingOptionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingOptionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest', $this->obj); + } + + public function testExtendsUpdateShippingOption() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOption', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingOptionRestResponseTest.php b/test/Order/Types/UpdateShippingOptionRestResponseTest.php new file mode 100644 index 000000000..b28110922 --- /dev/null +++ b/test/Order/Types/UpdateShippingOptionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingOptionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingOptionTest.php b/test/Order/Types/UpdateShippingOptionTest.php new file mode 100644 index 000000000..1fe016f6a --- /dev/null +++ b/test/Order/Types/UpdateShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Parser/XmlTest.php b/test/Parser/XmlTest.php index a2e6176d8..6d97b9c34 100644 --- a/test/Parser/XmlTest.php +++ b/test/Parser/XmlTest.php @@ -5,31 +5,21 @@ class XmlTest extends \PHPUnit_Framework_TestCase { - protected function setUp() - { - $this->xmlParser = new XmlParser('\DTS\eBaySDK\Test\Mocks\ComplexClass'); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Parser\XmlParser', $this->xmlParser); - } - public function testCanParseXml() { + $xmlParser = new XmlParser('\DTS\eBaySDK\Test\Mocks\ComplexClass'); $xml = file_get_contents(__DIR__.'/../Mocks/Response.xml'); $xml = preg_replace('/[\n\r]/', '', $xml); $xml = preg_replace('/>\s+/', '>', $xml); - $obj = $this->xmlParser->parse($xml); + $obj = $xmlParser->parse($xml); $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\ComplexClass', $obj); // This is not in the XML and so should not be set. - $this->assertEquals(false, isset($this->obj->foo)); + $this->assertEquals(false, isset($obj->foo)); $this->assertEquals(123, $obj->integer); $this->assertEquals('

Bits & Bobs ©

Just some <stuff> I found. ©

', $obj->string); - $this->assertEquals('foo', $obj->foo); $this->assertEquals(123.45, $obj->double); $this->assertEquals(true, $obj->booleanTrue); $this->assertEquals(false, $obj->booleanFalse); @@ -72,19 +62,19 @@ public function testCanParseXml() public function testCanParseXmlWithNamespace() { + $xmlParser = new XmlParser('\DTS\eBaySDK\Test\Mocks\ComplexClass'); $xml = file_get_contents(__DIR__.'/../Mocks/ResponseNS.xml'); $xml = preg_replace('/[\n\r]/', '', $xml); $xml = preg_replace('/>\s+/', '>', $xml); - $obj = $this->xmlParser->parse($xml); + $obj = $xmlParser->parse($xml); $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\ComplexClass', $obj); // This is not in the XML and so should not be set. - $this->assertEquals(false, isset($this->obj->foo)); + $this->assertEquals(false, isset($obj->foo)); $this->assertEquals(123, $obj->integer); $this->assertEquals('a string', $obj->string); - $this->assertEquals('foo', $obj->foo); $this->assertEquals(123.45, $obj->double); $this->assertEquals(true, $obj->booleanTrue); $this->assertEquals(false, $obj->booleanFalse); diff --git a/test/PostOrder/Enums/ActivityOptionEnumTest.php b/test/PostOrder/Enums/ActivityOptionEnumTest.php new file mode 100644 index 000000000..834ed8a4f --- /dev/null +++ b/test/PostOrder/Enums/ActivityOptionEnumTest.php @@ -0,0 +1,28 @@ +obj = new ActivityOptionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ActivityOptionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AddressTypeEnumTest.php b/test/PostOrder/Enums/AddressTypeEnumTest.php new file mode 100644 index 000000000..e8cd19e9b --- /dev/null +++ b/test/PostOrder/Enums/AddressTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new AddressTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AddressTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AppealCloseReasonEnumTest.php b/test/PostOrder/Enums/AppealCloseReasonEnumTest.php new file mode 100644 index 000000000..1e79bef50 --- /dev/null +++ b/test/PostOrder/Enums/AppealCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new AppealCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AppealCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AppealGrantStatusEnumTest.php b/test/PostOrder/Enums/AppealGrantStatusEnumTest.php new file mode 100644 index 000000000..802cc3793 --- /dev/null +++ b/test/PostOrder/Enums/AppealGrantStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new AppealGrantStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AppealGrantStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AppealStatusEnumTest.php b/test/PostOrder/Enums/AppealStatusEnumTest.php new file mode 100644 index 000000000..de79e216e --- /dev/null +++ b/test/PostOrder/Enums/AppealStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new AppealStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AppealStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/BuyerCloseReasonEnumTest.php b/test/PostOrder/Enums/BuyerCloseReasonEnumTest.php new file mode 100644 index 000000000..8a6c2e196 --- /dev/null +++ b/test/PostOrder/Enums/BuyerCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new BuyerCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\BuyerCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php b/test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php new file mode 100644 index 000000000..f360825ba --- /dev/null +++ b/test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new BuyerCloseReturnReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\BuyerCloseReturnReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelActivityTypeEnumTest.php b/test/PostOrder/Enums/CancelActivityTypeEnumTest.php new file mode 100644 index 000000000..a3a0cc151 --- /dev/null +++ b/test/PostOrder/Enums/CancelActivityTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelActivityTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelActivityTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelCloseReasonEnumTest.php b/test/PostOrder/Enums/CancelCloseReasonEnumTest.php new file mode 100644 index 000000000..753161eb0 --- /dev/null +++ b/test/PostOrder/Enums/CancelCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelReasonEnumTest.php b/test/PostOrder/Enums/CancelReasonEnumTest.php new file mode 100644 index 000000000..c4181ed4b --- /dev/null +++ b/test/PostOrder/Enums/CancelReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelSortTypeEnumTest.php b/test/PostOrder/Enums/CancelSortTypeEnumTest.php new file mode 100644 index 000000000..98605fea5 --- /dev/null +++ b/test/PostOrder/Enums/CancelSortTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelSortTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelSortTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelStateEnumTest.php b/test/PostOrder/Enums/CancelStateEnumTest.php new file mode 100644 index 000000000..ed555be8b --- /dev/null +++ b/test/PostOrder/Enums/CancelStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelStateEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelStatusEnumTest.php b/test/PostOrder/Enums/CancelStatusEnumTest.php new file mode 100644 index 000000000..900cdecae --- /dev/null +++ b/test/PostOrder/Enums/CancelStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseCloseReasonEnumTest.php b/test/PostOrder/Enums/CaseCloseReasonEnumTest.php new file mode 100644 index 000000000..bb0d13538 --- /dev/null +++ b/test/PostOrder/Enums/CaseCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php b/test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php new file mode 100644 index 000000000..8dcaa61a8 --- /dev/null +++ b/test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseSearchFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseSearchFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseStatusEnumTest.php b/test/PostOrder/Enums/CaseStatusEnumTest.php new file mode 100644 index 000000000..b5df39cb7 --- /dev/null +++ b/test/PostOrder/Enums/CaseStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseTypeEnumTest.php b/test/PostOrder/Enums/CaseTypeEnumTest.php new file mode 100644 index 000000000..6074edc08 --- /dev/null +++ b/test/PostOrder/Enums/CaseTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CloseReturnReasonEnumTest.php b/test/PostOrder/Enums/CloseReturnReasonEnumTest.php new file mode 100644 index 000000000..2a49315e2 --- /dev/null +++ b/test/PostOrder/Enums/CloseReturnReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CloseReturnReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CloseReturnReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CountryCodeEnumTest.php b/test/PostOrder/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..bccf7da9e --- /dev/null +++ b/test/PostOrder/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CurrencyCodeEnumTest.php b/test/PostOrder/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..09b55c12e --- /dev/null +++ b/test/PostOrder/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/DecisionEnumTest.php b/test/PostOrder/Enums/DecisionEnumTest.php new file mode 100644 index 000000000..37b3756b8 --- /dev/null +++ b/test/PostOrder/Enums/DecisionEnumTest.php @@ -0,0 +1,28 @@ +obj = new DecisionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\DecisionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php b/test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php new file mode 100644 index 000000000..e6215fa0b --- /dev/null +++ b/test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DesiredOutcomeTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\DesiredOutcomeTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php b/test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php new file mode 100644 index 000000000..e7693b7ce --- /dev/null +++ b/test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DispositionRuleTemplateTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\DispositionRuleTemplateTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php b/test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php new file mode 100644 index 000000000..4d8fd2153 --- /dev/null +++ b/test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new EligibilityCheckTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\EligibilityCheckTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php b/test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php new file mode 100644 index 000000000..5ccb02d01 --- /dev/null +++ b/test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new EligibilityFailureReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\EligibilityFailureReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/EscalateReasonEnumTest.php b/test/PostOrder/Enums/EscalateReasonEnumTest.php new file mode 100644 index 000000000..37fe6dd6a --- /dev/null +++ b/test/PostOrder/Enums/EscalateReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new EscalateReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\EscalateReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/FileFormatEnumTest.php b/test/PostOrder/Enums/FileFormatEnumTest.php new file mode 100644 index 000000000..fc30812cd --- /dev/null +++ b/test/PostOrder/Enums/FileFormatEnumTest.php @@ -0,0 +1,28 @@ +obj = new FileFormatEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\FileFormatEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/FilePurposeEnumTest.php b/test/PostOrder/Enums/FilePurposeEnumTest.php new file mode 100644 index 000000000..4e51cf635 --- /dev/null +++ b/test/PostOrder/Enums/FilePurposeEnumTest.php @@ -0,0 +1,28 @@ +obj = new FilePurposeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\FilePurposeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/FileStatusEnumTest.php b/test/PostOrder/Enums/FileStatusEnumTest.php new file mode 100644 index 000000000..3b6b6d825 --- /dev/null +++ b/test/PostOrder/Enums/FileStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new FileStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\FileStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php b/test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php new file mode 100644 index 000000000..54f9d4402 --- /dev/null +++ b/test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new GetReturnFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\GetReturnFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php b/test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php new file mode 100644 index 000000000..66edb3578 --- /dev/null +++ b/test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryEligibilityStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryEligibilityStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php b/test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php new file mode 100644 index 000000000..6a0e62178 --- /dev/null +++ b/test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryEscalationReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryEscalationReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php b/test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php new file mode 100644 index 000000000..bca31be40 --- /dev/null +++ b/test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquirySearchFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquirySearchFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryStateEnumTest.php b/test/PostOrder/Enums/InquiryStateEnumTest.php new file mode 100644 index 000000000..899a6ac5a --- /dev/null +++ b/test/PostOrder/Enums/InquiryStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryStateEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryStatusEnumTest.php b/test/PostOrder/Enums/InquiryStatusEnumTest.php new file mode 100644 index 000000000..cdee06801 --- /dev/null +++ b/test/PostOrder/Enums/InquiryStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LabelActionEnumTest.php b/test/PostOrder/Enums/LabelActionEnumTest.php new file mode 100644 index 000000000..26f8cf4c2 --- /dev/null +++ b/test/PostOrder/Enums/LabelActionEnumTest.php @@ -0,0 +1,28 @@ +obj = new LabelActionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LabelActionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LabelPrintStatusEnumTest.php b/test/PostOrder/Enums/LabelPrintStatusEnumTest.php new file mode 100644 index 000000000..3adb9ca7f --- /dev/null +++ b/test/PostOrder/Enums/LabelPrintStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LabelPrintStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LabelPrintStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LanguageEnumTest.php b/test/PostOrder/Enums/LanguageEnumTest.php new file mode 100644 index 000000000..ddd17750f --- /dev/null +++ b/test/PostOrder/Enums/LanguageEnumTest.php @@ -0,0 +1,28 @@ +obj = new LanguageEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LanguageEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LanguageScriptEnumTest.php b/test/PostOrder/Enums/LanguageScriptEnumTest.php new file mode 100644 index 000000000..d7016fc92 --- /dev/null +++ b/test/PostOrder/Enums/LanguageScriptEnumTest.php @@ -0,0 +1,28 @@ +obj = new LanguageScriptEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LanguageScriptEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/MarketplaceIdEnumTest.php b/test/PostOrder/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..283d0627c --- /dev/null +++ b/test/PostOrder/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/MoneyMovementStatusEnumTest.php b/test/PostOrder/Enums/MoneyMovementStatusEnumTest.php new file mode 100644 index 000000000..c208d61af --- /dev/null +++ b/test/PostOrder/Enums/MoneyMovementStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new MoneyMovementStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\MoneyMovementStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/MoneyMovementTypeEnumTest.php b/test/PostOrder/Enums/MoneyMovementTypeEnumTest.php new file mode 100644 index 000000000..db6a979bb --- /dev/null +++ b/test/PostOrder/Enums/MoneyMovementTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new MoneyMovementTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\MoneyMovementTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php b/test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php new file mode 100644 index 000000000..697588f2e --- /dev/null +++ b/test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new NoSellerUploadLabelReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\NoSellerUploadLabelReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/OrderTypeEnumTest.php b/test/PostOrder/Enums/OrderTypeEnumTest.php new file mode 100644 index 000000000..2d3aac375 --- /dev/null +++ b/test/PostOrder/Enums/OrderTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new OrderTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\OrderTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PartyEnumTest.php b/test/PostOrder/Enums/PartyEnumTest.php new file mode 100644 index 000000000..30425d41e --- /dev/null +++ b/test/PostOrder/Enums/PartyEnumTest.php @@ -0,0 +1,28 @@ +obj = new PartyEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PartyEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PaymentDenialReasonEnumTest.php b/test/PostOrder/Enums/PaymentDenialReasonEnumTest.php new file mode 100644 index 000000000..70fd90cf3 --- /dev/null +++ b/test/PostOrder/Enums/PaymentDenialReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentDenialReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PaymentDenialReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PaymentProviderEnumTest.php b/test/PostOrder/Enums/PaymentProviderEnumTest.php new file mode 100644 index 000000000..ea4ee38c7 --- /dev/null +++ b/test/PostOrder/Enums/PaymentProviderEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentProviderEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PaymentProviderEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PaymentStatusEnumTest.php b/test/PostOrder/Enums/PaymentStatusEnumTest.php new file mode 100644 index 000000000..a1843c295 --- /dev/null +++ b/test/PostOrder/Enums/PaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PaymentStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RefundFeeTypeEnumTest.php b/test/PostOrder/Enums/RefundFeeTypeEnumTest.php new file mode 100644 index 000000000..95569b59a --- /dev/null +++ b/test/PostOrder/Enums/RefundFeeTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundFeeTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RefundFeeTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RefundPaymentTypeEnumTest.php b/test/PostOrder/Enums/RefundPaymentTypeEnumTest.php new file mode 100644 index 000000000..560c0785b --- /dev/null +++ b/test/PostOrder/Enums/RefundPaymentTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundPaymentTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RefundPaymentTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RefundStatusEnumTest.php b/test/PostOrder/Enums/RefundStatusEnumTest.php new file mode 100644 index 000000000..e95658665 --- /dev/null +++ b/test/PostOrder/Enums/RefundStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RefundStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RequestTypeEnumTest.php b/test/PostOrder/Enums/RequestTypeEnumTest.php new file mode 100644 index 000000000..ea3c630b4 --- /dev/null +++ b/test/PostOrder/Enums/RequestTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RequestTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RequestTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnCountFilterEnumTest.php b/test/PostOrder/Enums/ReturnCountFilterEnumTest.php new file mode 100644 index 000000000..c6e2da5f9 --- /dev/null +++ b/test/PostOrder/Enums/ReturnCountFilterEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnCountFilterEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnCountFilterEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnHoldStatusEnumTest.php b/test/PostOrder/Enums/ReturnHoldStatusEnumTest.php new file mode 100644 index 000000000..8f8072e1a --- /dev/null +++ b/test/PostOrder/Enums/ReturnHoldStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnHoldStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnHoldStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php b/test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php new file mode 100644 index 000000000..c11886506 --- /dev/null +++ b/test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnMetadataKeyEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnMetadataKeyEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnReasonEnumTest.php b/test/PostOrder/Enums/ReturnReasonEnumTest.php new file mode 100644 index 000000000..c3e78cd39 --- /dev/null +++ b/test/PostOrder/Enums/ReturnReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php b/test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php new file mode 100644 index 000000000..61d4a12ee --- /dev/null +++ b/test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnRefundInitiatorEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnRefundInitiatorEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnSortEnumTest.php b/test/PostOrder/Enums/ReturnSortEnumTest.php new file mode 100644 index 000000000..3f70be125 --- /dev/null +++ b/test/PostOrder/Enums/ReturnSortEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnSortEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnSortEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnStateEnumTest.php b/test/PostOrder/Enums/ReturnStateEnumTest.php new file mode 100644 index 000000000..5a76ca92f --- /dev/null +++ b/test/PostOrder/Enums/ReturnStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnStateEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnStatusEnumTest.php b/test/PostOrder/Enums/ReturnStatusEnumTest.php new file mode 100644 index 000000000..1c45ad115 --- /dev/null +++ b/test/PostOrder/Enums/ReturnStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnTypeEnumTest.php b/test/PostOrder/Enums/ReturnTypeEnumTest.php new file mode 100644 index 000000000..791456683 --- /dev/null +++ b/test/PostOrder/Enums/ReturnTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnUserRoleEnumTest.php b/test/PostOrder/Enums/ReturnUserRoleEnumTest.php new file mode 100644 index 000000000..541c533a4 --- /dev/null +++ b/test/PostOrder/Enums/ReturnUserRoleEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnUserRoleEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnUserRoleEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RuleListFieldGroupEnumTest.php b/test/PostOrder/Enums/RuleListFieldGroupEnumTest.php new file mode 100644 index 000000000..4e1ad0840 --- /dev/null +++ b/test/PostOrder/Enums/RuleListFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new RuleListFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RuleListFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ShippingCarrierEnumTest.php b/test/PostOrder/Enums/ShippingCarrierEnumTest.php new file mode 100644 index 000000000..d7db30069 --- /dev/null +++ b/test/PostOrder/Enums/ShippingCarrierEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingCarrierEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ShippingCarrierEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ShippingMethodEnumTest.php b/test/PostOrder/Enums/ShippingMethodEnumTest.php new file mode 100644 index 000000000..1170dad94 --- /dev/null +++ b/test/PostOrder/Enums/ShippingMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ShippingMethodEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/TrackingStatusEnumTest.php b/test/PostOrder/Enums/TrackingStatusEnumTest.php new file mode 100644 index 000000000..ee51827db --- /dev/null +++ b/test/PostOrder/Enums/TrackingStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new TrackingStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\TrackingStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/UserPartyEnumTest.php b/test/PostOrder/Enums/UserPartyEnumTest.php new file mode 100644 index 000000000..9b300ba71 --- /dev/null +++ b/test/PostOrder/Enums/UserPartyEnumTest.php @@ -0,0 +1,28 @@ +obj = new UserPartyEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\UserPartyEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/WorldRegionEnumTest.php b/test/PostOrder/Enums/WorldRegionEnumTest.php new file mode 100644 index 000000000..2387b1eb2 --- /dev/null +++ b/test/PostOrder/Enums/WorldRegionEnumTest.php @@ -0,0 +1,28 @@ +obj = new WorldRegionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\WorldRegionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Mocks/Service.php b/test/PostOrder/Mocks/Service.php new file mode 100644 index 000000000..639b09ef2 --- /dev/null +++ b/test/PostOrder/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/PostOrder/Services/ServiceTest.php b/test/PostOrder/Services/ServiceTest.php new file mode 100644 index 000000000..1b1d08d16 --- /dev/null +++ b/test/PostOrder/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => PostOrderService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authToken', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authToken']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authToken' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(PostOrderBaseService::HDR_AUTH_TOKEN, $h->headers); + $this->assertEquals('TOKEN 321', $h->headers[PostOrderBaseService::HDR_AUTH_TOKEN ]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(PostOrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authToken' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(PostOrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[PostOrderBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/PostOrder/Types/ActionDeadlinesTest.php b/test/PostOrder/Types/ActionDeadlinesTest.php new file mode 100644 index 000000000..d26c8a5cc --- /dev/null +++ b/test/PostOrder/Types/ActionDeadlinesTest.php @@ -0,0 +1,33 @@ +obj = new ActionDeadlines(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ActionDeadlines', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ActualRefundDetailTypeTest.php b/test/PostOrder/Types/ActualRefundDetailTypeTest.php new file mode 100644 index 000000000..274cc9e3a --- /dev/null +++ b/test/PostOrder/Types/ActualRefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ActualRefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ActualRefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php b/test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php new file mode 100644 index 000000000..641a386a3 --- /dev/null +++ b/test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new AddShippingLabelInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest', $this->obj); + } + + public function testExtendsProvideLabelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php b/test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php new file mode 100644 index 000000000..5f1e23f73 --- /dev/null +++ b/test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new AddShippingLabelInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestResponse', $this->obj); + } + + public function testExtendsProvideLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/AddressTest.php b/test/PostOrder/Types/AddressTest.php new file mode 100644 index 000000000..b74f13135 --- /dev/null +++ b/test/PostOrder/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AmountTest.php b/test/PostOrder/Types/AmountTest.php new file mode 100644 index 000000000..699975ae1 --- /dev/null +++ b/test/PostOrder/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php b/test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php new file mode 100644 index 000000000..45a9a37b2 --- /dev/null +++ b/test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new AppealCaseDecisionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest', $this->obj); + } + + public function testExtendsAppealRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php b/test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php new file mode 100644 index 000000000..01ca3bc58 --- /dev/null +++ b/test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new AppealCaseDecisionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealDetailsTest.php b/test/PostOrder/Types/AppealDetailsTest.php new file mode 100644 index 000000000..ce3975ac7 --- /dev/null +++ b/test/PostOrder/Types/AppealDetailsTest.php @@ -0,0 +1,33 @@ +obj = new AppealDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealRequestTest.php b/test/PostOrder/Types/AppealRequestTest.php new file mode 100644 index 000000000..171d9c117 --- /dev/null +++ b/test/PostOrder/Types/AppealRequestTest.php @@ -0,0 +1,33 @@ +obj = new AppealRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php b/test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php new file mode 100644 index 000000000..c49e6ab2f --- /dev/null +++ b/test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ApproveCancellationRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php b/test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php new file mode 100644 index 000000000..6e85ccf12 --- /dev/null +++ b/test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ApproveCancellationRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AvailableOptionTypeTest.php b/test/PostOrder/Types/AvailableOptionTypeTest.php new file mode 100644 index 000000000..05bf4237e --- /dev/null +++ b/test/PostOrder/Types/AvailableOptionTypeTest.php @@ -0,0 +1,33 @@ +obj = new AvailableOptionType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AvailableOptionType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/BuyerCloseCaseRequestTest.php b/test/PostOrder/Types/BuyerCloseCaseRequestTest.php new file mode 100644 index 000000000..90767c54a --- /dev/null +++ b/test/PostOrder/Types/BuyerCloseCaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new BuyerCloseCaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseCaseRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/BuyerCloseInquiryRequestTest.php b/test/PostOrder/Types/BuyerCloseInquiryRequestTest.php new file mode 100644 index 000000000..d0caf2064 --- /dev/null +++ b/test/PostOrder/Types/BuyerCloseInquiryRequestTest.php @@ -0,0 +1,33 @@ +obj = new BuyerCloseInquiryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseInquiryRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelActivityHistoryTest.php b/test/PostOrder/Types/CancelActivityHistoryTest.php new file mode 100644 index 000000000..e25753802 --- /dev/null +++ b/test/PostOrder/Types/CancelActivityHistoryTest.php @@ -0,0 +1,33 @@ +obj = new CancelActivityHistory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelActivityHistory', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelDetailTest.php b/test/PostOrder/Types/CancelDetailTest.php new file mode 100644 index 000000000..058c2434d --- /dev/null +++ b/test/PostOrder/Types/CancelDetailTest.php @@ -0,0 +1,33 @@ +obj = new CancelDetail(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelDetail', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelReturnRequestRestRequestTest.php b/test/PostOrder/Types/CancelReturnRequestRestRequestTest.php new file mode 100644 index 000000000..88cf102ef --- /dev/null +++ b/test/PostOrder/Types/CancelReturnRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CancelReturnRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest', $this->obj); + } + + public function testExtendsCloseReturnRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseReturnRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelReturnRequestRestResponseTest.php b/test/PostOrder/Types/CancelReturnRequestRestResponseTest.php new file mode 100644 index 000000000..b3821a82c --- /dev/null +++ b/test/PostOrder/Types/CancelReturnRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CancelReturnRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelSortFieldTest.php b/test/PostOrder/Types/CancelSortFieldTest.php new file mode 100644 index 000000000..0b98256c1 --- /dev/null +++ b/test/PostOrder/Types/CancelSortFieldTest.php @@ -0,0 +1,33 @@ +obj = new CancelSortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelSortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelSummaryTest.php b/test/PostOrder/Types/CancelSummaryTest.php new file mode 100644 index 000000000..0f4214cad --- /dev/null +++ b/test/PostOrder/Types/CancelSummaryTest.php @@ -0,0 +1,33 @@ +obj = new CancelSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php b/test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php new file mode 100644 index 000000000..991b45ced --- /dev/null +++ b/test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new CarrierShippingCostInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CarrierShippingCostInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseDetailsResponseTest.php b/test/PostOrder/Types/CaseDetailsResponseTest.php new file mode 100644 index 000000000..0bf4a24c3 --- /dev/null +++ b/test/PostOrder/Types/CaseDetailsResponseTest.php @@ -0,0 +1,33 @@ +obj = new CaseDetailsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseDetailsResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseDetailsTest.php b/test/PostOrder/Types/CaseDetailsTest.php new file mode 100644 index 000000000..4cce76084 --- /dev/null +++ b/test/PostOrder/Types/CaseDetailsTest.php @@ -0,0 +1,33 @@ +obj = new CaseDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseSearchResponseTest.php b/test/PostOrder/Types/CaseSearchResponseTest.php new file mode 100644 index 000000000..3b49f1989 --- /dev/null +++ b/test/PostOrder/Types/CaseSearchResponseTest.php @@ -0,0 +1,33 @@ +obj = new CaseSearchResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseSearchResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseStatusFilterTest.php b/test/PostOrder/Types/CaseStatusFilterTest.php new file mode 100644 index 000000000..3d3d953b4 --- /dev/null +++ b/test/PostOrder/Types/CaseStatusFilterTest.php @@ -0,0 +1,33 @@ +obj = new CaseStatusFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseStatusFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseSummaryTypeTest.php b/test/PostOrder/Types/CaseSummaryTypeTest.php new file mode 100644 index 000000000..95e6e48e6 --- /dev/null +++ b/test/PostOrder/Types/CaseSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new CaseSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php b/test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php new file mode 100644 index 000000000..bbbae7319 --- /dev/null +++ b/test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new CaseVoluntaryRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseVoluntaryRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php new file mode 100644 index 000000000..8efeebdbf --- /dev/null +++ b/test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckCancellationEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest', $this->obj); + } + + public function testExtendsOrderEligibilityCheckInfo() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityCheckInfo', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php new file mode 100644 index 000000000..60c961a21 --- /dev/null +++ b/test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckCancellationEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestResponse', $this->obj); + } + + public function testExtendsOrderEligibilityResult() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityResult', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckEligibilityRequestTest.php b/test/PostOrder/Types/CheckEligibilityRequestTest.php new file mode 100644 index 000000000..c4129ffe4 --- /dev/null +++ b/test/PostOrder/Types/CheckEligibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckEligibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckEligibilityResponseTest.php b/test/PostOrder/Types/CheckEligibilityResponseTest.php new file mode 100644 index 000000000..80526f878 --- /dev/null +++ b/test/PostOrder/Types/CheckEligibilityResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckEligibilityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php b/test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php new file mode 100644 index 000000000..6e1c7cbbf --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php b/test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php new file mode 100644 index 000000000..a3436fd6e --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php new file mode 100644 index 000000000..62eaa7749 --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest', $this->obj); + } + + public function testExtendsCheckInquiryEligibilityRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php new file mode 100644 index 000000000..c58566820 --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestResponse', $this->obj); + } + + public function testExtendsCheckInquiryEligibilityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php b/test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php new file mode 100644 index 000000000..21b0b2aa2 --- /dev/null +++ b/test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckLabelPrintEligibilityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckLabelPrintEligibilityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php new file mode 100644 index 000000000..c870d9aa9 --- /dev/null +++ b/test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckReturnEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest', $this->obj); + } + + public function testExtendsCheckEligibilityRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php new file mode 100644 index 000000000..5a3fd0522 --- /dev/null +++ b/test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckReturnEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestResponse', $this->obj); + } + + public function testExtendsCheckEligibilityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php new file mode 100644 index 000000000..e4a994413 --- /dev/null +++ b/test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckShippingLabelEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php new file mode 100644 index 000000000..b322d1723 --- /dev/null +++ b/test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckShippingLabelEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestResponse', $this->obj); + } + + public function testExtendsCheckLabelPrintEligibilityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckLabelPrintEligibilityResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/ClaimHistoryEventModelTest.php b/test/PostOrder/Types/ClaimHistoryEventModelTest.php new file mode 100644 index 000000000..e75552489 --- /dev/null +++ b/test/PostOrder/Types/ClaimHistoryEventModelTest.php @@ -0,0 +1,33 @@ +obj = new ClaimHistoryEventModel(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ClaimHistoryEventModel', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ClaimHistoryResponseTest.php b/test/PostOrder/Types/ClaimHistoryResponseTest.php new file mode 100644 index 000000000..3e53c76c2 --- /dev/null +++ b/test/PostOrder/Types/ClaimHistoryResponseTest.php @@ -0,0 +1,33 @@ +obj = new ClaimHistoryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ClaimHistoryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseCaseRestRequestTest.php b/test/PostOrder/Types/CloseCaseRestRequestTest.php new file mode 100644 index 000000000..602d012af --- /dev/null +++ b/test/PostOrder/Types/CloseCaseRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloseCaseRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest', $this->obj); + } + + public function testExtendsBuyerCloseCaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseCaseRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseCaseRestResponseTest.php b/test/PostOrder/Types/CloseCaseRestResponseTest.php new file mode 100644 index 000000000..97db92299 --- /dev/null +++ b/test/PostOrder/Types/CloseCaseRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CloseCaseRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseCaseRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseInquiryRestRequestTest.php b/test/PostOrder/Types/CloseInquiryRestRequestTest.php new file mode 100644 index 000000000..eb701a519 --- /dev/null +++ b/test/PostOrder/Types/CloseInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloseInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest', $this->obj); + } + + public function testExtendsBuyerCloseInquiryRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseInquiryRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseInquiryRestResponseTest.php b/test/PostOrder/Types/CloseInquiryRestResponseTest.php new file mode 100644 index 000000000..8a0b76285 --- /dev/null +++ b/test/PostOrder/Types/CloseInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CloseInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseReturnRequestTest.php b/test/PostOrder/Types/CloseReturnRequestTest.php new file mode 100644 index 000000000..921397627 --- /dev/null +++ b/test/PostOrder/Types/CloseReturnRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloseReturnRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseReturnRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConditionDataRangeTypeTest.php b/test/PostOrder/Types/ConditionDataRangeTypeTest.php new file mode 100644 index 000000000..e8ed8c025 --- /dev/null +++ b/test/PostOrder/Types/ConditionDataRangeTypeTest.php @@ -0,0 +1,33 @@ +obj = new ConditionDataRangeType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConditionDataRangeType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConditionListDetailTypeTest.php b/test/PostOrder/Types/ConditionListDetailTypeTest.php new file mode 100644 index 000000000..18869e850 --- /dev/null +++ b/test/PostOrder/Types/ConditionListDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ConditionListDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConditionListDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php b/test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php new file mode 100644 index 000000000..018afb311 --- /dev/null +++ b/test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmCancellationRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest', $this->obj); + } + + public function testExtendsConfirmRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php b/test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php new file mode 100644 index 000000000..fc4b8aed4 --- /dev/null +++ b/test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmCancellationRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php b/test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php new file mode 100644 index 000000000..3833450f6 --- /dev/null +++ b/test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmInquiryRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php b/test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php new file mode 100644 index 000000000..cf450a8ad --- /dev/null +++ b/test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmInquiryRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmRefundRequestTest.php b/test/PostOrder/Types/ConfirmRefundRequestTest.php new file mode 100644 index 000000000..3b67a8139 --- /dev/null +++ b/test/PostOrder/Types/ConfirmRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CountSummaryTypeTest.php b/test/PostOrder/Types/CountSummaryTypeTest.php new file mode 100644 index 000000000..289a60e58 --- /dev/null +++ b/test/PostOrder/Types/CountSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new CountSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CountSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCancelRequestTest.php b/test/PostOrder/Types/CreateCancelRequestTest.php new file mode 100644 index 000000000..87686947d --- /dev/null +++ b/test/PostOrder/Types/CreateCancelRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCancelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCancelResponseTest.php b/test/PostOrder/Types/CreateCancelResponseTest.php new file mode 100644 index 000000000..86d94940e --- /dev/null +++ b/test/PostOrder/Types/CreateCancelResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCancelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListRequestTest.php b/test/PostOrder/Types/CreateCustomListRequestTest.php new file mode 100644 index 000000000..bd47f6c24 --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListResponseTest.php b/test/PostOrder/Types/CreateCustomListResponseTest.php new file mode 100644 index 000000000..f25305b47 --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListRestRequestTest.php b/test/PostOrder/Types/CreateCustomListRestRequestTest.php new file mode 100644 index 000000000..245d4b534 --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest', $this->obj); + } + + public function testExtendsCreateCustomListRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListRestResponseTest.php b/test/PostOrder/Types/CreateCustomListRestResponseTest.php new file mode 100644 index 000000000..6c99d1a2e --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestResponse', $this->obj); + } + + public function testExtendsCreateCustomListResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateDispositionRuleRequestTest.php b/test/PostOrder/Types/CreateDispositionRuleRequestTest.php new file mode 100644 index 000000000..326dcdfcd --- /dev/null +++ b/test/PostOrder/Types/CreateDispositionRuleRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDispositionRuleRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateDispositionRuleResponseTest.php b/test/PostOrder/Types/CreateDispositionRuleResponseTest.php new file mode 100644 index 000000000..c16652495 --- /dev/null +++ b/test/PostOrder/Types/CreateDispositionRuleResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateDispositionRuleResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateInquiryRequestTest.php b/test/PostOrder/Types/CreateInquiryRequestTest.php new file mode 100644 index 000000000..0e15b85de --- /dev/null +++ b/test/PostOrder/Types/CreateInquiryRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateInquiryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateInquiryRestRequestTest.php b/test/PostOrder/Types/CreateInquiryRestRequestTest.php new file mode 100644 index 000000000..61b8abbe6 --- /dev/null +++ b/test/PostOrder/Types/CreateInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest', $this->obj); + } + + public function testExtendsCreateInquiryRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateInquiryRestResponseTest.php b/test/PostOrder/Types/CreateInquiryRestResponseTest.php new file mode 100644 index 000000000..ef596a4eb --- /dev/null +++ b/test/PostOrder/Types/CreateInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnDraftRestRequestTest.php b/test/PostOrder/Types/CreateReturnDraftRestRequestTest.php new file mode 100644 index 000000000..8dcf34e76 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnDraftRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnDraftRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest', $this->obj); + } + + public function testExtendsSetReturnCreationSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnDraftRestResponseTest.php b/test/PostOrder/Types/CreateReturnDraftRestResponseTest.php new file mode 100644 index 000000000..60edf5423 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnDraftRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnDraftRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestResponse', $this->obj); + } + + public function testExtendsSetReturnCreationSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRequestRestRequestTest.php b/test/PostOrder/Types/CreateReturnRequestRestRequestTest.php new file mode 100644 index 000000000..0458c4ceb --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest', $this->obj); + } + + public function testExtendsCreateReturnRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRequestRestResponseTest.php b/test/PostOrder/Types/CreateReturnRequestRestResponseTest.php new file mode 100644 index 000000000..48415c07b --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestResponse', $this->obj); + } + + public function testExtendsCreateReturnResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRequestTest.php b/test/PostOrder/Types/CreateReturnRequestTest.php new file mode 100644 index 000000000..2214feb0d --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnResponseTest.php b/test/PostOrder/Types/CreateReturnResponseTest.php new file mode 100644 index 000000000..04f3d1cb9 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRulesRestRequestTest.php b/test/PostOrder/Types/CreateReturnRulesRestRequestTest.php new file mode 100644 index 000000000..17c181213 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRulesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRulesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest', $this->obj); + } + + public function testExtendsCreateDispositionRuleRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRulesRestResponseTest.php b/test/PostOrder/Types/CreateReturnRulesRestResponseTest.php new file mode 100644 index 000000000..bf7e879c9 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRulesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRulesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestResponse', $this->obj); + } + + public function testExtendsCreateDispositionRuleResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php b/test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php new file mode 100644 index 000000000..3db704d72 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php b/test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php new file mode 100644 index 000000000..d5034de45 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestResponse', $this->obj); + } + + public function testExtendsInitiateShippingLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InitiateShippingLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListDataTypeTest.php b/test/PostOrder/Types/CustomListDataTypeTest.php new file mode 100644 index 000000000..2f176d75b --- /dev/null +++ b/test/PostOrder/Types/CustomListDataTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListDataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListDataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListDetailTypeTest.php b/test/PostOrder/Types/CustomListDetailTypeTest.php new file mode 100644 index 000000000..5f176112a --- /dev/null +++ b/test/PostOrder/Types/CustomListDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListModificationTypeTest.php b/test/PostOrder/Types/CustomListModificationTypeTest.php new file mode 100644 index 000000000..e02819507 --- /dev/null +++ b/test/PostOrder/Types/CustomListModificationTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListModificationType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListModificationType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListTypeTest.php b/test/PostOrder/Types/CustomListTypeTest.php new file mode 100644 index 000000000..b2964d83e --- /dev/null +++ b/test/PostOrder/Types/CustomListTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DateTimeTest.php b/test/PostOrder/Types/DateTimeTest.php new file mode 100644 index 000000000..c3cf7c9b5 --- /dev/null +++ b/test/PostOrder/Types/DateTimeTest.php @@ -0,0 +1,33 @@ +obj = new DateTime(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DateTime', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DecideReturnRequestTest.php b/test/PostOrder/Types/DecideReturnRequestTest.php new file mode 100644 index 000000000..6980c4ca5 --- /dev/null +++ b/test/PostOrder/Types/DecideReturnRequestTest.php @@ -0,0 +1,33 @@ +obj = new DecideReturnRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DecideReturnResponseTest.php b/test/PostOrder/Types/DecideReturnResponseTest.php new file mode 100644 index 000000000..14dbc3c74 --- /dev/null +++ b/test/PostOrder/Types/DecideReturnResponseTest.php @@ -0,0 +1,33 @@ +obj = new DecideReturnResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php b/test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php new file mode 100644 index 000000000..6d5af1d66 --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnDraftFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php b/test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php new file mode 100644 index 000000000..36b5f7edd --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnDraftFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnFileRestRequestTest.php b/test/PostOrder/Types/DeleteReturnFileRestRequestTest.php new file mode 100644 index 000000000..8ce03c8a2 --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnFileRestResponseTest.php b/test/PostOrder/Types/DeleteReturnFileRestResponseTest.php new file mode 100644 index 000000000..b2db1850a --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DispositionRuleDetailTypeTest.php b/test/PostOrder/Types/DispositionRuleDetailTypeTest.php new file mode 100644 index 000000000..faf109cec --- /dev/null +++ b/test/PostOrder/Types/DispositionRuleDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new DispositionRuleDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DispositionRuleDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EligibilityErrorTypeTest.php b/test/PostOrder/Types/EligibilityErrorTypeTest.php new file mode 100644 index 000000000..22ae764f6 --- /dev/null +++ b/test/PostOrder/Types/EligibilityErrorTypeTest.php @@ -0,0 +1,33 @@ +obj = new EligibilityErrorType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EligibilityErrorType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EligibilityResponseErrorTest.php b/test/PostOrder/Types/EligibilityResponseErrorTest.php new file mode 100644 index 000000000..987ad4a88 --- /dev/null +++ b/test/PostOrder/Types/EligibilityResponseErrorTest.php @@ -0,0 +1,33 @@ +obj = new EligibilityResponseError(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EligibilityResultTypeTest.php b/test/PostOrder/Types/EligibilityResultTypeTest.php new file mode 100644 index 000000000..f5b7a12e6 --- /dev/null +++ b/test/PostOrder/Types/EligibilityResultTypeTest.php @@ -0,0 +1,33 @@ +obj = new EligibilityResultType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EligibilityResultType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorDetailV3Test.php b/test/PostOrder/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..0c42e5cbb --- /dev/null +++ b/test/PostOrder/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorMessageTest.php b/test/PostOrder/Types/ErrorMessageTest.php new file mode 100644 index 000000000..614ca3d34 --- /dev/null +++ b/test/PostOrder/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorParameterTest.php b/test/PostOrder/Types/ErrorParameterTest.php new file mode 100644 index 000000000..fa0353b6a --- /dev/null +++ b/test/PostOrder/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorParameter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorParameterV3Test.php b/test/PostOrder/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..25cffd85f --- /dev/null +++ b/test/PostOrder/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorTest.php b/test/PostOrder/Types/ErrorTest.php new file mode 100644 index 000000000..8b3207d2a --- /dev/null +++ b/test/PostOrder/Types/ErrorTest.php @@ -0,0 +1,33 @@ +obj = new Error(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Error', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateInquiryRequestTest.php b/test/PostOrder/Types/EscalateInquiryRequestTest.php new file mode 100644 index 000000000..57cd2d4d5 --- /dev/null +++ b/test/PostOrder/Types/EscalateInquiryRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateInquiryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateInquiryRestRequestTest.php b/test/PostOrder/Types/EscalateInquiryRestRequestTest.php new file mode 100644 index 000000000..ee602f9b4 --- /dev/null +++ b/test/PostOrder/Types/EscalateInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest', $this->obj); + } + + public function testExtendsEscalateInquiryRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateInquiryRestResponseTest.php b/test/PostOrder/Types/EscalateInquiryRestResponseTest.php new file mode 100644 index 000000000..a823698be --- /dev/null +++ b/test/PostOrder/Types/EscalateInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EscalateInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateRequestTest.php b/test/PostOrder/Types/EscalateRequestTest.php new file mode 100644 index 000000000..4354e3baf --- /dev/null +++ b/test/PostOrder/Types/EscalateRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateResponseTest.php b/test/PostOrder/Types/EscalateResponseTest.php new file mode 100644 index 000000000..99583f237 --- /dev/null +++ b/test/PostOrder/Types/EscalateResponseTest.php @@ -0,0 +1,33 @@ +obj = new EscalateResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateReturnRestRequestTest.php b/test/PostOrder/Types/EscalateReturnRestRequestTest.php new file mode 100644 index 000000000..17936d65c --- /dev/null +++ b/test/PostOrder/Types/EscalateReturnRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateReturnRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest', $this->obj); + } + + public function testExtendsEscalateRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateReturnRestResponseTest.php b/test/PostOrder/Types/EscalateReturnRestResponseTest.php new file mode 100644 index 000000000..f26b001c3 --- /dev/null +++ b/test/PostOrder/Types/EscalateReturnRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EscalateReturnRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestResponse', $this->obj); + } + + public function testExtendsEscalateResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalationEligibilityInfoTest.php b/test/PostOrder/Types/EscalationEligibilityInfoTest.php new file mode 100644 index 000000000..5d2616e49 --- /dev/null +++ b/test/PostOrder/Types/EscalationEligibilityInfoTest.php @@ -0,0 +1,33 @@ +obj = new EscalationEligibilityInfo(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalationEligibilityInfo', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalationInfoTypeTest.php b/test/PostOrder/Types/EscalationInfoTypeTest.php new file mode 100644 index 000000000..4b987f1fe --- /dev/null +++ b/test/PostOrder/Types/EscalationInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new EscalationInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalationInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedRefundDetailTypeTest.php b/test/PostOrder/Types/EstimatedRefundDetailTypeTest.php new file mode 100644 index 000000000..7d530d0c0 --- /dev/null +++ b/test/PostOrder/Types/EstimatedRefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedRefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedRefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedRefundInfoTypeTest.php b/test/PostOrder/Types/EstimatedRefundInfoTypeTest.php new file mode 100644 index 000000000..031b00773 --- /dev/null +++ b/test/PostOrder/Types/EstimatedRefundInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedRefundInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedRefundInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedRefundTypeTest.php b/test/PostOrder/Types/EstimatedRefundTypeTest.php new file mode 100644 index 000000000..c15329159 --- /dev/null +++ b/test/PostOrder/Types/EstimatedRefundTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedRefundType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedRefundType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedShippingInfoTypeTest.php b/test/PostOrder/Types/EstimatedShippingInfoTypeTest.php new file mode 100644 index 000000000..0ad7f7714 --- /dev/null +++ b/test/PostOrder/Types/EstimatedShippingInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedShippingInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedShippingInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/FindCancelResponseTest.php b/test/PostOrder/Types/FindCancelResponseTest.php new file mode 100644 index 000000000..e7951b8ac --- /dev/null +++ b/test/PostOrder/Types/FindCancelResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindCancelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\FindCancelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancelDetailResponseTest.php b/test/PostOrder/Types/GetCancelDetailResponseTest.php new file mode 100644 index 000000000..07d57bcb0 --- /dev/null +++ b/test/PostOrder/Types/GetCancelDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCancelDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancelDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancelFieldGroupTest.php b/test/PostOrder/Types/GetCancelFieldGroupTest.php new file mode 100644 index 000000000..6bded404a --- /dev/null +++ b/test/PostOrder/Types/GetCancelFieldGroupTest.php @@ -0,0 +1,33 @@ +obj = new GetCancelFieldGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancelFieldGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancellationRestRequestTest.php b/test/PostOrder/Types/GetCancellationRestRequestTest.php new file mode 100644 index 000000000..63a7fee58 --- /dev/null +++ b/test/PostOrder/Types/GetCancellationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCancellationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancellationRestResponseTest.php b/test/PostOrder/Types/GetCancellationRestResponseTest.php new file mode 100644 index 000000000..4bc919de6 --- /dev/null +++ b/test/PostOrder/Types/GetCancellationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCancellationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancellationRestResponse', $this->obj); + } + + public function testExtendsGetCancelDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancelDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCaseRestRequestTest.php b/test/PostOrder/Types/GetCaseRestRequestTest.php new file mode 100644 index 000000000..eddf5bf92 --- /dev/null +++ b/test/PostOrder/Types/GetCaseRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCaseRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCaseRestResponseTest.php b/test/PostOrder/Types/GetCaseRestResponseTest.php new file mode 100644 index 000000000..9b7c2eb04 --- /dev/null +++ b/test/PostOrder/Types/GetCaseRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCaseRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCaseRestResponse', $this->obj); + } + + public function testExtendsCaseDetailsResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseDetailsResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListDetailResponseTest.php b/test/PostOrder/Types/GetCustomListDetailResponseTest.php new file mode 100644 index 000000000..c4527d3d4 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListRestResponseTest.php b/test/PostOrder/Types/GetCustomListRestResponseTest.php new file mode 100644 index 000000000..c8de312d7 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListRestResponse', $this->obj); + } + + public function testExtendsGetCustomListDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListsResponseTest.php b/test/PostOrder/Types/GetCustomListsResponseTest.php new file mode 100644 index 000000000..f5e451217 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListsResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListsResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListsRestResponseTest.php b/test/PostOrder/Types/GetCustomListsRestResponseTest.php new file mode 100644 index 000000000..d5c25bfe5 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListsRestResponse', $this->obj); + } + + public function testExtendsGetCustomListsResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListsResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDetailResponseTest.php b/test/PostOrder/Types/GetDetailResponseTest.php new file mode 100644 index 000000000..6fdea9403 --- /dev/null +++ b/test/PostOrder/Types/GetDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php b/test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php new file mode 100644 index 000000000..3ddc70611 --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRuleDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php b/test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php new file mode 100644 index 000000000..8d88fd0e7 --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRuleTemplatesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTemplatesResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php b/test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php new file mode 100644 index 000000000..3d6e508fd --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRuleTriggerHistResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTriggerHistResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRulesResponseTest.php b/test/PostOrder/Types/GetDispositionRulesResponseTest.php new file mode 100644 index 000000000..b8fc1b417 --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRulesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRulesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRulesResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetEstimateRequestTest.php b/test/PostOrder/Types/GetEstimateRequestTest.php new file mode 100644 index 000000000..eef23e7b0 --- /dev/null +++ b/test/PostOrder/Types/GetEstimateRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetEstimateRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetEstimateResponseTest.php b/test/PostOrder/Types/GetEstimateResponseTest.php new file mode 100644 index 000000000..e96d6e4cc --- /dev/null +++ b/test/PostOrder/Types/GetEstimateResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetEstimateResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetFileResponseTest.php b/test/PostOrder/Types/GetFileResponseTest.php new file mode 100644 index 000000000..31ab9af7c --- /dev/null +++ b/test/PostOrder/Types/GetFileResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetFileResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetFileResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetInquiryRestRequestTest.php b/test/PostOrder/Types/GetInquiryRestRequestTest.php new file mode 100644 index 000000000..ce2bfcd5b --- /dev/null +++ b/test/PostOrder/Types/GetInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetInquiryRestResponseTest.php b/test/PostOrder/Types/GetInquiryRestResponseTest.php new file mode 100644 index 000000000..b586ba932 --- /dev/null +++ b/test/PostOrder/Types/GetInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetInquiryRestResponse', $this->obj); + } + + public function testExtendsInquiryDetailsResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryDetailsResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetMetadataResponseTest.php b/test/PostOrder/Types/GetMetadataResponseTest.php new file mode 100644 index 000000000..7a607a6a6 --- /dev/null +++ b/test/PostOrder/Types/GetMetadataResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetMetadataResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetMetadataResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnCreationSessionResponseTest.php b/test/PostOrder/Types/GetReturnCreationSessionResponseTest.php new file mode 100644 index 000000000..0bb9bdae5 --- /dev/null +++ b/test/PostOrder/Types/GetReturnCreationSessionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnCreationSessionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnCreationSessionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php b/test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php new file mode 100644 index 000000000..2f2a20982 --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftFilesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php b/test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php new file mode 100644 index 000000000..2d6216b68 --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftFilesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestResponse', $this->obj); + } + + public function testExtendsGetFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftRestRequestTest.php b/test/PostOrder/Types/GetReturnDraftRestRequestTest.php new file mode 100644 index 000000000..76edd259f --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftRestResponseTest.php b/test/PostOrder/Types/GetReturnDraftRestResponseTest.php new file mode 100644 index 000000000..4389232ec --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestResponse', $this->obj); + } + + public function testExtendsGetReturnCreationSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnCreationSessionResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnEstimateRestRequestTest.php b/test/PostOrder/Types/GetReturnEstimateRestRequestTest.php new file mode 100644 index 000000000..50bf386d9 --- /dev/null +++ b/test/PostOrder/Types/GetReturnEstimateRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnEstimateRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest', $this->obj); + } + + public function testExtendsGetEstimateRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnEstimateRestResponseTest.php b/test/PostOrder/Types/GetReturnEstimateRestResponseTest.php new file mode 100644 index 000000000..d6638c196 --- /dev/null +++ b/test/PostOrder/Types/GetReturnEstimateRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnEstimateRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestResponse', $this->obj); + } + + public function testExtendsGetEstimateResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnFilesRestRequestTest.php b/test/PostOrder/Types/GetReturnFilesRestRequestTest.php new file mode 100644 index 000000000..6924021a3 --- /dev/null +++ b/test/PostOrder/Types/GetReturnFilesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnFilesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnFilesRestResponseTest.php b/test/PostOrder/Types/GetReturnFilesRestResponseTest.php new file mode 100644 index 000000000..c36830172 --- /dev/null +++ b/test/PostOrder/Types/GetReturnFilesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnFilesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestResponse', $this->obj); + } + + public function testExtendsGetFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnMetadataRestRequestTest.php b/test/PostOrder/Types/GetReturnMetadataRestRequestTest.php new file mode 100644 index 000000000..f0220a6e8 --- /dev/null +++ b/test/PostOrder/Types/GetReturnMetadataRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnMetadataRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnMetadataRestResponseTest.php b/test/PostOrder/Types/GetReturnMetadataRestResponseTest.php new file mode 100644 index 000000000..ee175bdaf --- /dev/null +++ b/test/PostOrder/Types/GetReturnMetadataRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnMetadataRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestResponse', $this->obj); + } + + public function testExtendsGetMetadataResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetMetadataResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php b/test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php new file mode 100644 index 000000000..fe661de48 --- /dev/null +++ b/test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnPreferencesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnPreferencesRestResponse', $this->obj); + } + + public function testExtendsGetSellerReturnPreferenceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSellerReturnPreferenceResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRestRequestTest.php b/test/PostOrder/Types/GetReturnRestRequestTest.php new file mode 100644 index 000000000..715ca2865 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRestResponseTest.php b/test/PostOrder/Types/GetReturnRestResponseTest.php new file mode 100644 index 000000000..939755442 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRestResponse', $this->obj); + } + + public function testExtendsGetDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php b/test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php new file mode 100644 index 000000000..164961178 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleHistoryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php b/test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php new file mode 100644 index 000000000..bba1ce64e --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleHistoryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRuleTriggerHistResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTriggerHistResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleRestRequestTest.php b/test/PostOrder/Types/GetReturnRuleRestRequestTest.php new file mode 100644 index 000000000..2e12e5fd5 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleRestResponseTest.php b/test/PostOrder/Types/GetReturnRuleRestResponseTest.php new file mode 100644 index 000000000..d39c1248b --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRuleDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php b/test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php new file mode 100644 index 000000000..41b82f33e --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleTemplatesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleTemplatesRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRuleTemplatesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTemplatesResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRulesRestRequestTest.php b/test/PostOrder/Types/GetReturnRulesRestRequestTest.php new file mode 100644 index 000000000..5b395a294 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRulesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRulesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRulesRestResponseTest.php b/test/PostOrder/Types/GetReturnRulesRestResponseTest.php new file mode 100644 index 000000000..99fc9d0b3 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRulesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRulesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRulesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRulesResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php b/test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php new file mode 100644 index 000000000..b19c32abe --- /dev/null +++ b/test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php b/test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php new file mode 100644 index 000000000..3387c4d93 --- /dev/null +++ b/test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestResponse', $this->obj); + } + + public function testExtendsGetShippingLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShippingLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php b/test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php new file mode 100644 index 000000000..3d2a4171c --- /dev/null +++ b/test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetSellerReturnPreferenceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSellerReturnPreferenceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php b/test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php new file mode 100644 index 000000000..406796823 --- /dev/null +++ b/test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetShipmentTrackingRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php b/test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php new file mode 100644 index 000000000..ff3447444 --- /dev/null +++ b/test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetShipmentTrackingRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestResponse', $this->obj); + } + + public function testExtendsGetTrackingHistoryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetTrackingHistoryResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetShippingLabelResponseTest.php b/test/PostOrder/Types/GetShippingLabelResponseTest.php new file mode 100644 index 000000000..c4c543595 --- /dev/null +++ b/test/PostOrder/Types/GetShippingLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetShippingLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShippingLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php b/test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php new file mode 100644 index 000000000..7742f907b --- /dev/null +++ b/test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetStoreCategoriesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetStoreCategoriesRestResponse', $this->obj); + } + + public function testExtendsGetStoreCategoryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetStoreCategoryResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetStoreCategoryResponseTest.php b/test/PostOrder/Types/GetStoreCategoryResponseTest.php new file mode 100644 index 000000000..b5e299b2e --- /dev/null +++ b/test/PostOrder/Types/GetStoreCategoryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetStoreCategoryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetStoreCategoryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetSummaryResponseTest.php b/test/PostOrder/Types/GetSummaryResponseTest.php new file mode 100644 index 000000000..b3d0ccda6 --- /dev/null +++ b/test/PostOrder/Types/GetSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSummaryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetTrackingHistoryResponseTest.php b/test/PostOrder/Types/GetTrackingHistoryResponseTest.php new file mode 100644 index 000000000..59e5c1e14 --- /dev/null +++ b/test/PostOrder/Types/GetTrackingHistoryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetTrackingHistoryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetTrackingHistoryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InitiateShippingLabelResponseTest.php b/test/PostOrder/Types/InitiateShippingLabelResponseTest.php new file mode 100644 index 000000000..d0f9cc76f --- /dev/null +++ b/test/PostOrder/Types/InitiateShippingLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new InitiateShippingLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InitiateShippingLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryDetailsResponseTest.php b/test/PostOrder/Types/InquiryDetailsResponseTest.php new file mode 100644 index 000000000..c03213103 --- /dev/null +++ b/test/PostOrder/Types/InquiryDetailsResponseTest.php @@ -0,0 +1,33 @@ +obj = new InquiryDetailsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryDetailsResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryDetailsTest.php b/test/PostOrder/Types/InquiryDetailsTest.php new file mode 100644 index 000000000..acdb34a30 --- /dev/null +++ b/test/PostOrder/Types/InquiryDetailsTest.php @@ -0,0 +1,33 @@ +obj = new InquiryDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquirySearchResponseTest.php b/test/PostOrder/Types/InquirySearchResponseTest.php new file mode 100644 index 000000000..626de8de2 --- /dev/null +++ b/test/PostOrder/Types/InquirySearchResponseTest.php @@ -0,0 +1,33 @@ +obj = new InquirySearchResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquirySearchResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryStatusFilterTest.php b/test/PostOrder/Types/InquiryStatusFilterTest.php new file mode 100644 index 000000000..c0a4f7d7f --- /dev/null +++ b/test/PostOrder/Types/InquiryStatusFilterTest.php @@ -0,0 +1,33 @@ +obj = new InquiryStatusFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryStatusFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquirySummaryTypeTest.php b/test/PostOrder/Types/InquirySummaryTypeTest.php new file mode 100644 index 000000000..0a3af3ebe --- /dev/null +++ b/test/PostOrder/Types/InquirySummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new InquirySummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquirySummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php b/test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php new file mode 100644 index 000000000..d91003755 --- /dev/null +++ b/test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new InquiryVoluntaryRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryVoluntaryRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueCaseRefundRestRequestTest.php b/test/PostOrder/Types/IssueCaseRefundRestRequestTest.php new file mode 100644 index 000000000..28a5f4d94 --- /dev/null +++ b/test/PostOrder/Types/IssueCaseRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueCaseRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest', $this->obj); + } + + public function testExtendsCaseVoluntaryRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseVoluntaryRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueCaseRefundRestResponseTest.php b/test/PostOrder/Types/IssueCaseRefundRestResponseTest.php new file mode 100644 index 000000000..7b573b009 --- /dev/null +++ b/test/PostOrder/Types/IssueCaseRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueCaseRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestResponse', $this->obj); + } + + public function testExtendsVoluntaryRefundResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php b/test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php new file mode 100644 index 000000000..84187a28f --- /dev/null +++ b/test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueInquiryRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest', $this->obj); + } + + public function testExtendsInquiryVoluntaryRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryVoluntaryRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php b/test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php new file mode 100644 index 000000000..9b40ade42 --- /dev/null +++ b/test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueInquiryRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestResponse', $this->obj); + } + + public function testExtendsVoluntaryRefundResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueRefundRequestTest.php b/test/PostOrder/Types/IssueRefundRequestTest.php new file mode 100644 index 000000000..59c476d68 --- /dev/null +++ b/test/PostOrder/Types/IssueRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueRefundResponseTest.php b/test/PostOrder/Types/IssueRefundResponseTest.php new file mode 100644 index 000000000..10b14739f --- /dev/null +++ b/test/PostOrder/Types/IssueRefundResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueRefundResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueReturnRefundRestRequestTest.php b/test/PostOrder/Types/IssueReturnRefundRestRequestTest.php new file mode 100644 index 000000000..9d90595cd --- /dev/null +++ b/test/PostOrder/Types/IssueReturnRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueReturnRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest', $this->obj); + } + + public function testExtendsIssueRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueReturnRefundRestResponseTest.php b/test/PostOrder/Types/IssueReturnRefundRestResponseTest.php new file mode 100644 index 000000000..22159c7da --- /dev/null +++ b/test/PostOrder/Types/IssueReturnRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueReturnRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestResponse', $this->obj); + } + + public function testExtendsIssueRefundResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemDetailTypeTest.php b/test/PostOrder/Types/ItemDetailTypeTest.php new file mode 100644 index 000000000..76af97bc3 --- /dev/null +++ b/test/PostOrder/Types/ItemDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ItemDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemDetailsTest.php b/test/PostOrder/Types/ItemDetailsTest.php new file mode 100644 index 000000000..90898a320 --- /dev/null +++ b/test/PostOrder/Types/ItemDetailsTest.php @@ -0,0 +1,33 @@ +obj = new ItemDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemEligibilityResultTest.php b/test/PostOrder/Types/ItemEligibilityResultTest.php new file mode 100644 index 000000000..250c80d23 --- /dev/null +++ b/test/PostOrder/Types/ItemEligibilityResultTest.php @@ -0,0 +1,33 @@ +obj = new ItemEligibilityResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemEligibilityResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemizedRefundDetailTypeTest.php b/test/PostOrder/Types/ItemizedRefundDetailTypeTest.php new file mode 100644 index 000000000..9b022835d --- /dev/null +++ b/test/PostOrder/Types/ItemizedRefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ItemizedRefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemizedRefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php b/test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php new file mode 100644 index 000000000..b20907f0b --- /dev/null +++ b/test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php @@ -0,0 +1,33 @@ +obj = new ItemizedReturnShippingCostType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemizedReturnShippingCostType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ListDataTypeTest.php b/test/PostOrder/Types/ListDataTypeTest.php new file mode 100644 index 000000000..bad7daa2d --- /dev/null +++ b/test/PostOrder/Types/ListDataTypeTest.php @@ -0,0 +1,33 @@ +obj = new ListDataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ListDataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkAsReceivedRequestTest.php b/test/PostOrder/Types/MarkAsReceivedRequestTest.php new file mode 100644 index 000000000..47bee261e --- /dev/null +++ b/test/PostOrder/Types/MarkAsReceivedRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkAsReceivedRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsReceivedRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkAsShippedRequestTest.php b/test/PostOrder/Types/MarkAsShippedRequestTest.php new file mode 100644 index 000000000..243f0c0db --- /dev/null +++ b/test/PostOrder/Types/MarkAsShippedRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkAsShippedRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsShippedRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkRefundSentRequestTest.php b/test/PostOrder/Types/MarkRefundSentRequestTest.php new file mode 100644 index 000000000..48a4eb052 --- /dev/null +++ b/test/PostOrder/Types/MarkRefundSentRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkRefundSentRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkRefundSentRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php b/test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php new file mode 100644 index 000000000..47c769fea --- /dev/null +++ b/test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnReceivedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest', $this->obj); + } + + public function testExtendsMarkAsReceivedRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsReceivedRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php b/test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php new file mode 100644 index 000000000..f5ee90798 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnReceivedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php b/test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php new file mode 100644 index 000000000..32403b19c --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundReceivedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php b/test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php new file mode 100644 index 000000000..8f39b903a --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundReceivedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php b/test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php new file mode 100644 index 000000000..ecb6710b1 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundSentRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest', $this->obj); + } + + public function testExtendsMarkRefundSentRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkRefundSentRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php b/test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php new file mode 100644 index 000000000..ed0e09f03 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundSentRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnShippedRestRequestTest.php b/test/PostOrder/Types/MarkReturnShippedRestRequestTest.php new file mode 100644 index 000000000..201047049 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnShippedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnShippedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest', $this->obj); + } + + public function testExtendsMarkAsShippedRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsShippedRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnShippedRestResponseTest.php b/test/PostOrder/Types/MarkReturnShippedRestResponseTest.php new file mode 100644 index 000000000..78a6fcf0f --- /dev/null +++ b/test/PostOrder/Types/MarkReturnShippedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnShippedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ModifyCustomListRequestTest.php b/test/PostOrder/Types/ModifyCustomListRequestTest.php new file mode 100644 index 000000000..1a92147f2 --- /dev/null +++ b/test/PostOrder/Types/ModifyCustomListRequestTest.php @@ -0,0 +1,33 @@ +obj = new ModifyCustomListRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ModifyCustomListResponseTest.php b/test/PostOrder/Types/ModifyCustomListResponseTest.php new file mode 100644 index 000000000..8b110aa40 --- /dev/null +++ b/test/PostOrder/Types/ModifyCustomListResponseTest.php @@ -0,0 +1,33 @@ +obj = new ModifyCustomListResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ModifyDispositionRuleRequestTest.php b/test/PostOrder/Types/ModifyDispositionRuleRequestTest.php new file mode 100644 index 000000000..4717a432e --- /dev/null +++ b/test/PostOrder/Types/ModifyDispositionRuleRequestTest.php @@ -0,0 +1,33 @@ +obj = new ModifyDispositionRuleRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyDispositionRuleRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementDetailTypeTest.php b/test/PostOrder/Types/MoneyMovementDetailTypeTest.php new file mode 100644 index 000000000..d91f985a4 --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementEntriesTest.php b/test/PostOrder/Types/MoneyMovementEntriesTest.php new file mode 100644 index 000000000..a3f1b4d8a --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementEntriesTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementEntries(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementEntries', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementEntryTest.php b/test/PostOrder/Types/MoneyMovementEntryTest.php new file mode 100644 index 000000000..b66898068 --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementEntryTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementEntry(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementEntry', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementRefTest.php b/test/PostOrder/Types/MoneyMovementRefTest.php new file mode 100644 index 000000000..8e06f6195 --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementRefTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementRef(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementRef', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/OrderCancelLineItemTest.php b/test/PostOrder/Types/OrderCancelLineItemTest.php new file mode 100644 index 000000000..ef665d792 --- /dev/null +++ b/test/PostOrder/Types/OrderCancelLineItemTest.php @@ -0,0 +1,33 @@ +obj = new OrderCancelLineItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderCancelLineItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/OrderEligibilityCheckInfoTest.php b/test/PostOrder/Types/OrderEligibilityCheckInfoTest.php new file mode 100644 index 000000000..d6ec5e6a5 --- /dev/null +++ b/test/PostOrder/Types/OrderEligibilityCheckInfoTest.php @@ -0,0 +1,33 @@ +obj = new OrderEligibilityCheckInfo(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityCheckInfo', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/OrderEligibilityResultTest.php b/test/PostOrder/Types/OrderEligibilityResultTest.php new file mode 100644 index 000000000..60ccae0be --- /dev/null +++ b/test/PostOrder/Types/OrderEligibilityResultTest.php @@ -0,0 +1,33 @@ +obj = new OrderEligibilityResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/PaginationOutputTest.php b/test/PostOrder/Types/PaginationOutputTest.php new file mode 100644 index 000000000..9498bc4ab --- /dev/null +++ b/test/PostOrder/Types/PaginationOutputTest.php @@ -0,0 +1,33 @@ +obj = new PaginationOutput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\PaginationOutput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/PriorityListTypeTest.php b/test/PostOrder/Types/PriorityListTypeTest.php new file mode 100644 index 000000000..a91854f1a --- /dev/null +++ b/test/PostOrder/Types/PriorityListTypeTest.php @@ -0,0 +1,33 @@ +obj = new PriorityListType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\PriorityListType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php b/test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php new file mode 100644 index 000000000..2ffaabb84 --- /dev/null +++ b/test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProcessReturnRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest', $this->obj); + } + + public function testExtendsDecideReturnRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php b/test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php new file mode 100644 index 000000000..3de468585 --- /dev/null +++ b/test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProcessReturnRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse', $this->obj); + } + + public function testExtendsDecideReturnResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php b/test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php new file mode 100644 index 000000000..025ba81e9 --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryRefundInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest', $this->obj); + } + + public function testExtendsSellerProvideRefundInfoRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SellerProvideRefundInfoRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php b/test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php new file mode 100644 index 000000000..c79e828cd --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryRefundInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php new file mode 100644 index 000000000..7071ef990 --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryShipmentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest', $this->obj); + } + + public function testExtendsShipmentInfoRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentInfoRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php new file mode 100644 index 000000000..bfa26c95b --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryShipmentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideLabelRequestTest.php b/test/PostOrder/Types/ProvideLabelRequestTest.php new file mode 100644 index 000000000..b137f7e96 --- /dev/null +++ b/test/PostOrder/Types/ProvideLabelRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideLabelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideLabelResponseTest.php b/test/PostOrder/Types/ProvideLabelResponseTest.php new file mode 100644 index 000000000..1f534e74b --- /dev/null +++ b/test/PostOrder/Types/ProvideLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php b/test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php new file mode 100644 index 000000000..c238f7710 --- /dev/null +++ b/test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideReturnShipmentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest', $this->obj); + } + + public function testExtendsProvideShipmentInfoRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideShipmentInfoRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php b/test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php new file mode 100644 index 000000000..0ae21718e --- /dev/null +++ b/test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideReturnShipmentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideShipmentInfoRequestTest.php b/test/PostOrder/Types/ProvideShipmentInfoRequestTest.php new file mode 100644 index 000000000..980371099 --- /dev/null +++ b/test/PostOrder/Types/ProvideShipmentInfoRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideShipmentInfoRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideShipmentInfoRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php b/test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php new file mode 100644 index 000000000..f525b1778 --- /dev/null +++ b/test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvidesReturnAddressRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest', $this->obj); + } + + public function testExtendsReturnAddressRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddressRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php b/test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php new file mode 100644 index 000000000..8d3c98418 --- /dev/null +++ b/test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvidesReturnAddressRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundAmountsTest.php b/test/PostOrder/Types/RefundAmountsTest.php new file mode 100644 index 000000000..435ba0b58 --- /dev/null +++ b/test/PostOrder/Types/RefundAmountsTest.php @@ -0,0 +1,33 @@ +obj = new RefundAmounts(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundAmounts', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundDetailTypeTest.php b/test/PostOrder/Types/RefundDetailTypeTest.php new file mode 100644 index 000000000..bf979562c --- /dev/null +++ b/test/PostOrder/Types/RefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundInfoTypeTest.php b/test/PostOrder/Types/RefundInfoTypeTest.php new file mode 100644 index 000000000..5a308f2a1 --- /dev/null +++ b/test/PostOrder/Types/RefundInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new RefundInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundTypeTest.php b/test/PostOrder/Types/RefundTypeTest.php new file mode 100644 index 000000000..58088549c --- /dev/null +++ b/test/PostOrder/Types/RefundTypeTest.php @@ -0,0 +1,33 @@ +obj = new RefundType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RejectCancelRequestTest.php b/test/PostOrder/Types/RejectCancelRequestTest.php new file mode 100644 index 000000000..e8c4664fc --- /dev/null +++ b/test/PostOrder/Types/RejectCancelRequestTest.php @@ -0,0 +1,33 @@ +obj = new RejectCancelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php b/test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php new file mode 100644 index 000000000..417939f92 --- /dev/null +++ b/test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new RejectCancellationRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest', $this->obj); + } + + public function testExtendsRejectCancelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php b/test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php new file mode 100644 index 000000000..03b045b53 --- /dev/null +++ b/test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new RejectCancellationRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php b/test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php new file mode 100644 index 000000000..34ba0e044 --- /dev/null +++ b/test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php @@ -0,0 +1,33 @@ +obj = new ResponseHistoryAttributesType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ResponseHistoryAttributesType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnAddressRequestTest.php b/test/PostOrder/Types/ReturnAddressRequestTest.php new file mode 100644 index 000000000..aa1970098 --- /dev/null +++ b/test/PostOrder/Types/ReturnAddressRequestTest.php @@ -0,0 +1,33 @@ +obj = new ReturnAddressRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddressRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnAddressTest.php b/test/PostOrder/Types/ReturnAddressTest.php new file mode 100644 index 000000000..b97c2d809 --- /dev/null +++ b/test/PostOrder/Types/ReturnAddressTest.php @@ -0,0 +1,33 @@ +obj = new ReturnAddress(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddress', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnAddressTypeTest.php b/test/PostOrder/Types/ReturnAddressTypeTest.php new file mode 100644 index 000000000..86fc58513 --- /dev/null +++ b/test/PostOrder/Types/ReturnAddressTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnAddressType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddressType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnCloseInfoTypeTest.php b/test/PostOrder/Types/ReturnCloseInfoTypeTest.php new file mode 100644 index 000000000..b5bbc0fb2 --- /dev/null +++ b/test/PostOrder/Types/ReturnCloseInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnCloseInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnCloseInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnCreationInfoTypeTest.php b/test/PostOrder/Types/ReturnCreationInfoTypeTest.php new file mode 100644 index 000000000..874f2f5db --- /dev/null +++ b/test/PostOrder/Types/ReturnCreationInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnCreationInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnCreationInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnDetailTypeTest.php b/test/PostOrder/Types/ReturnDetailTypeTest.php new file mode 100644 index 000000000..5c101bac7 --- /dev/null +++ b/test/PostOrder/Types/ReturnDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php b/test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php new file mode 100644 index 000000000..af61b8880 --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityErrorDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityErrorDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php b/test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php new file mode 100644 index 000000000..81055516d --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityItemPerCheckTypeResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemPerCheckTypeResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityItemTypeTest.php b/test/PostOrder/Types/ReturnEligibilityItemTypeTest.php new file mode 100644 index 000000000..00aa46790 --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityItemTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityItemType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php b/test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php new file mode 100644 index 000000000..b99016e66 --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityPerItemType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityPerItemType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnFileTypeTest.php b/test/PostOrder/Types/ReturnFileTypeTest.php new file mode 100644 index 000000000..478a1b6f7 --- /dev/null +++ b/test/PostOrder/Types/ReturnFileTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnFileType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnFileType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnHoldInfoTypeTest.php b/test/PostOrder/Types/ReturnHoldInfoTypeTest.php new file mode 100644 index 000000000..47dcc5ec2 --- /dev/null +++ b/test/PostOrder/Types/ReturnHoldInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnHoldInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnHoldInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnItemTypeTest.php b/test/PostOrder/Types/ReturnItemTypeTest.php new file mode 100644 index 000000000..a62fce310 --- /dev/null +++ b/test/PostOrder/Types/ReturnItemTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnItemType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnItemType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnMetadataTypeTest.php b/test/PostOrder/Types/ReturnMetadataTypeTest.php new file mode 100644 index 000000000..88e0d450c --- /dev/null +++ b/test/PostOrder/Types/ReturnMetadataTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnMetadataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnMetadataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnPolicyTypeTest.php b/test/PostOrder/Types/ReturnPolicyTypeTest.php new file mode 100644 index 000000000..5e64a6062 --- /dev/null +++ b/test/PostOrder/Types/ReturnPolicyTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicyType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnPolicyType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnRequestTypeTest.php b/test/PostOrder/Types/ReturnRequestTypeTest.php new file mode 100644 index 000000000..b367dfcc7 --- /dev/null +++ b/test/PostOrder/Types/ReturnRequestTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnRequestType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnRequestType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnResponseDueTypeTest.php b/test/PostOrder/Types/ReturnResponseDueTypeTest.php new file mode 100644 index 000000000..99604f2d1 --- /dev/null +++ b/test/PostOrder/Types/ReturnResponseDueTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnResponseDueType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnResponseDueType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnResponseHistoryTypeTest.php b/test/PostOrder/Types/ReturnResponseHistoryTypeTest.php new file mode 100644 index 000000000..de968dd0c --- /dev/null +++ b/test/PostOrder/Types/ReturnResponseHistoryTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnResponseHistoryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnResponseHistoryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php b/test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php new file mode 100644 index 000000000..467ec7aef --- /dev/null +++ b/test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnShippingCostDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnShippingCostDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnShippingCostTypeTest.php b/test/PostOrder/Types/ReturnShippingCostTypeTest.php new file mode 100644 index 000000000..75fdabc64 --- /dev/null +++ b/test/PostOrder/Types/ReturnShippingCostTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnShippingCostType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnShippingCostType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnSortFieldTest.php b/test/PostOrder/Types/ReturnSortFieldTest.php new file mode 100644 index 000000000..2724156d2 --- /dev/null +++ b/test/PostOrder/Types/ReturnSortFieldTest.php @@ -0,0 +1,33 @@ +obj = new ReturnSortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnSortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnSummaryTypeTest.php b/test/PostOrder/Types/ReturnSummaryTypeTest.php new file mode 100644 index 000000000..7650f543c --- /dev/null +++ b/test/PostOrder/Types/ReturnSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionDataDetailTypeTest.php b/test/PostOrder/Types/RuleActionDataDetailTypeTest.php new file mode 100644 index 000000000..a3371b5de --- /dev/null +++ b/test/PostOrder/Types/RuleActionDataDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionDataDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionDataDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionDataTypeTest.php b/test/PostOrder/Types/RuleActionDataTypeTest.php new file mode 100644 index 000000000..085905c6c --- /dev/null +++ b/test/PostOrder/Types/RuleActionDataTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionDataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionDataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionDetailTypeTest.php b/test/PostOrder/Types/RuleActionDetailTypeTest.php new file mode 100644 index 000000000..5d0f573fb --- /dev/null +++ b/test/PostOrder/Types/RuleActionDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionInputTypeTest.php b/test/PostOrder/Types/RuleActionInputTypeTest.php new file mode 100644 index 000000000..b7aea6c1c --- /dev/null +++ b/test/PostOrder/Types/RuleActionInputTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionInputType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionInputType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleConditionDetailTypeTest.php b/test/PostOrder/Types/RuleConditionDetailTypeTest.php new file mode 100644 index 000000000..6d1ecead9 --- /dev/null +++ b/test/PostOrder/Types/RuleConditionDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleConditionDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleConditionInputTypeTest.php b/test/PostOrder/Types/RuleConditionInputTypeTest.php new file mode 100644 index 000000000..6243cdf56 --- /dev/null +++ b/test/PostOrder/Types/RuleConditionInputTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleConditionInputType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleConditionInputType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleDetailInputTypeTest.php b/test/PostOrder/Types/RuleDetailInputTypeTest.php new file mode 100644 index 000000000..dd3bf1205 --- /dev/null +++ b/test/PostOrder/Types/RuleDetailInputTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleDetailInputType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleDetailInputType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleDetailTypeTest.php b/test/PostOrder/Types/RuleDetailTypeTest.php new file mode 100644 index 000000000..e62837ab7 --- /dev/null +++ b/test/PostOrder/Types/RuleDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleModificationTypeTest.php b/test/PostOrder/Types/RuleModificationTypeTest.php new file mode 100644 index 000000000..c8773be15 --- /dev/null +++ b/test/PostOrder/Types/RuleModificationTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleModificationType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleModificationType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleSummaryTypeTest.php b/test/PostOrder/Types/RuleSummaryTypeTest.php new file mode 100644 index 000000000..f5abcb338 --- /dev/null +++ b/test/PostOrder/Types/RuleSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleTemplateDetailTypeTest.php b/test/PostOrder/Types/RuleTemplateDetailTypeTest.php new file mode 100644 index 000000000..2443727b4 --- /dev/null +++ b/test/PostOrder/Types/RuleTemplateDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleTemplateDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleTemplateDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php b/test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php new file mode 100644 index 000000000..05d7faf55 --- /dev/null +++ b/test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleTriggerHistDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleTriggerHistDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ScanDetailTypeTest.php b/test/PostOrder/Types/ScanDetailTypeTest.php new file mode 100644 index 000000000..07f3a9803 --- /dev/null +++ b/test/PostOrder/Types/ScanDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ScanDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ScanDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCancellationsRestRequestTest.php b/test/PostOrder/Types/SearchCancellationsRestRequestTest.php new file mode 100644 index 000000000..44f467d5f --- /dev/null +++ b/test/PostOrder/Types/SearchCancellationsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchCancellationsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCancellationsRestResponseTest.php b/test/PostOrder/Types/SearchCancellationsRestResponseTest.php new file mode 100644 index 000000000..a1bfa6ed4 --- /dev/null +++ b/test/PostOrder/Types/SearchCancellationsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchCancellationsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestResponse', $this->obj); + } + + public function testExtendsFindCancelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\FindCancelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCasesRestRequestTest.php b/test/PostOrder/Types/SearchCasesRestRequestTest.php new file mode 100644 index 000000000..0409fe4bc --- /dev/null +++ b/test/PostOrder/Types/SearchCasesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchCasesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCasesRestResponseTest.php b/test/PostOrder/Types/SearchCasesRestResponseTest.php new file mode 100644 index 000000000..e5281eb2d --- /dev/null +++ b/test/PostOrder/Types/SearchCasesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchCasesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCasesRestResponse', $this->obj); + } + + public function testExtendsCaseSearchResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseSearchResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchInquiriesRestRequestTest.php b/test/PostOrder/Types/SearchInquiriesRestRequestTest.php new file mode 100644 index 000000000..4f9b67b0a --- /dev/null +++ b/test/PostOrder/Types/SearchInquiriesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchInquiriesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchInquiriesRestResponseTest.php b/test/PostOrder/Types/SearchInquiriesRestResponseTest.php new file mode 100644 index 000000000..d5fad90d9 --- /dev/null +++ b/test/PostOrder/Types/SearchInquiriesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchInquiriesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestResponse', $this->obj); + } + + public function testExtendsInquirySearchResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquirySearchResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchReturnsRestRequestTest.php b/test/PostOrder/Types/SearchReturnsRestRequestTest.php new file mode 100644 index 000000000..aa149e6fb --- /dev/null +++ b/test/PostOrder/Types/SearchReturnsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchReturnsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchReturnsRestResponseTest.php b/test/PostOrder/Types/SearchReturnsRestResponseTest.php new file mode 100644 index 000000000..42bf632c1 --- /dev/null +++ b/test/PostOrder/Types/SearchReturnsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchReturnsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestResponse', $this->obj); + } + + public function testExtendsGetSummaryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSummaryResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php b/test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php new file mode 100644 index 000000000..a26704fca --- /dev/null +++ b/test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php @@ -0,0 +1,33 @@ +obj = new SellerProvideRefundInfoRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SellerProvideRefundInfoRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendInquiryMessageRestRequestTest.php b/test/PostOrder/Types/SendInquiryMessageRestRequestTest.php new file mode 100644 index 000000000..ea3eed769 --- /dev/null +++ b/test/PostOrder/Types/SendInquiryMessageRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendInquiryMessageRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest', $this->obj); + } + + public function testExtendsSendMessageRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendMessageRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendInquiryMessageRestResponseTest.php b/test/PostOrder/Types/SendInquiryMessageRestResponseTest.php new file mode 100644 index 000000000..0de18b503 --- /dev/null +++ b/test/PostOrder/Types/SendInquiryMessageRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendInquiryMessageRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendMessageRequestTest.php b/test/PostOrder/Types/SendMessageRequestTest.php new file mode 100644 index 000000000..00e3d2cae --- /dev/null +++ b/test/PostOrder/Types/SendMessageRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendMessageRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendMessageRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnMessageRestRequestTest.php b/test/PostOrder/Types/SendReturnMessageRestRequestTest.php new file mode 100644 index 000000000..c0391ea53 --- /dev/null +++ b/test/PostOrder/Types/SendReturnMessageRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnMessageRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest', $this->obj); + } + + public function testExtendsSendMessageRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendMessageRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnMessageRestResponseTest.php b/test/PostOrder/Types/SendReturnMessageRestResponseTest.php new file mode 100644 index 000000000..17321bd8c --- /dev/null +++ b/test/PostOrder/Types/SendReturnMessageRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnMessageRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php b/test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php new file mode 100644 index 000000000..6993857ab --- /dev/null +++ b/test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php b/test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php new file mode 100644 index 000000000..cfe22d69b --- /dev/null +++ b/test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestResponse', $this->obj); + } + + public function testExtendsSendShippingLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendShippingLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendShippingLabelResponseTest.php b/test/PostOrder/Types/SendShippingLabelResponseTest.php new file mode 100644 index 000000000..401945004 --- /dev/null +++ b/test/PostOrder/Types/SendShippingLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendShippingLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendShippingLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnCreationSessionRequestTest.php b/test/PostOrder/Types/SetReturnCreationSessionRequestTest.php new file mode 100644 index 000000000..6df09d220 --- /dev/null +++ b/test/PostOrder/Types/SetReturnCreationSessionRequestTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnCreationSessionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnCreationSessionResponseTest.php b/test/PostOrder/Types/SetReturnCreationSessionResponseTest.php new file mode 100644 index 000000000..8224a3865 --- /dev/null +++ b/test/PostOrder/Types/SetReturnCreationSessionResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnCreationSessionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php b/test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php new file mode 100644 index 000000000..365a60285 --- /dev/null +++ b/test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnPreferencesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest', $this->obj); + } + + public function testExtendsSetSellerReturnPreferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetSellerReturnPreferenceRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php b/test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php new file mode 100644 index 000000000..d7fa3b5d3 --- /dev/null +++ b/test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnPreferencesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php b/test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php new file mode 100644 index 000000000..74624bf28 --- /dev/null +++ b/test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new SetSellerReturnPreferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetSellerReturnPreferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentInfoRequestTest.php b/test/PostOrder/Types/ShipmentInfoRequestTest.php new file mode 100644 index 000000000..4a0333bef --- /dev/null +++ b/test/PostOrder/Types/ShipmentInfoRequestTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentInfoRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentInfoRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php b/test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php new file mode 100644 index 000000000..4e67fd07a --- /dev/null +++ b/test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentTrackingDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentTrackingDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentTrackingTypeTest.php b/test/PostOrder/Types/ShipmentTrackingTypeTest.php new file mode 100644 index 000000000..f89891130 --- /dev/null +++ b/test/PostOrder/Types/ShipmentTrackingTypeTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentTrackingType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentTrackingType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentTypeTest.php b/test/PostOrder/Types/ShipmentTypeTest.php new file mode 100644 index 000000000..c83af6239 --- /dev/null +++ b/test/PostOrder/Types/ShipmentTypeTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/StatusTypeTest.php b/test/PostOrder/Types/StatusTypeTest.php new file mode 100644 index 000000000..8b8b32e3e --- /dev/null +++ b/test/PostOrder/Types/StatusTypeTest.php @@ -0,0 +1,33 @@ +obj = new StatusType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\StatusType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/StoreCategoryTypeTest.php b/test/PostOrder/Types/StoreCategoryTypeTest.php new file mode 100644 index 000000000..adb536f92 --- /dev/null +++ b/test/PostOrder/Types/StoreCategoryTypeTest.php @@ -0,0 +1,33 @@ +obj = new StoreCategoryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\StoreCategoryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php b/test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php new file mode 100644 index 000000000..dc0e0914b --- /dev/null +++ b/test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SubmitCancellationRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest', $this->obj); + } + + public function testExtendsCreateCancelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php b/test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php new file mode 100644 index 000000000..36ed25bb1 --- /dev/null +++ b/test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SubmitCancellationRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestResponse', $this->obj); + } + + public function testExtendsCreateCancelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitFileRequestTest.php b/test/PostOrder/Types/SubmitFileRequestTest.php new file mode 100644 index 000000000..919164a1e --- /dev/null +++ b/test/PostOrder/Types/SubmitFileRequestTest.php @@ -0,0 +1,33 @@ +obj = new SubmitFileRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitFileResponseTest.php b/test/PostOrder/Types/SubmitFileResponseTest.php new file mode 100644 index 000000000..2e7387cb9 --- /dev/null +++ b/test/PostOrder/Types/SubmitFileResponseTest.php @@ -0,0 +1,33 @@ +obj = new SubmitFileResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitReturnFileRestRequestTest.php b/test/PostOrder/Types/SubmitReturnFileRestRequestTest.php new file mode 100644 index 000000000..75c8ada35 --- /dev/null +++ b/test/PostOrder/Types/SubmitReturnFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SubmitReturnFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest', $this->obj); + } + + public function testExtendsSubmitFileRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitReturnFileRestResponseTest.php b/test/PostOrder/Types/SubmitReturnFileRestResponseTest.php new file mode 100644 index 000000000..a1dd6ce2b --- /dev/null +++ b/test/PostOrder/Types/SubmitReturnFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SubmitReturnFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestResponse', $this->obj); + } + + public function testExtendsSubmitFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/TextTest.php b/test/PostOrder/Types/TextTest.php new file mode 100644 index 000000000..165f1fd2f --- /dev/null +++ b/test/PostOrder/Types/TextTest.php @@ -0,0 +1,33 @@ +obj = new Text(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Text', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/TotalRefundAmountTypeTest.php b/test/PostOrder/Types/TotalRefundAmountTypeTest.php new file mode 100644 index 000000000..4ee5b1e4d --- /dev/null +++ b/test/PostOrder/Types/TotalRefundAmountTypeTest.php @@ -0,0 +1,33 @@ +obj = new TotalRefundAmountType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\TotalRefundAmountType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateCustomListRestRequestTest.php b/test/PostOrder/Types/UpdateCustomListRestRequestTest.php new file mode 100644 index 000000000..3aa5b39bc --- /dev/null +++ b/test/PostOrder/Types/UpdateCustomListRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCustomListRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest', $this->obj); + } + + public function testExtendsModifyCustomListRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateCustomListRestResponseTest.php b/test/PostOrder/Types/UpdateCustomListRestResponseTest.php new file mode 100644 index 000000000..611a6ccf2 --- /dev/null +++ b/test/PostOrder/Types/UpdateCustomListRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCustomListRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestResponse', $this->obj); + } + + public function testExtendsModifyCustomListResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php b/test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php new file mode 100644 index 000000000..9cd6b7ffd --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnDraftRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest', $this->obj); + } + + public function testExtendsSetReturnCreationSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php b/test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php new file mode 100644 index 000000000..6dac41d4c --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnDraftRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestResponse', $this->obj); + } + + public function testExtendsSetReturnCreationSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php b/test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php new file mode 100644 index 000000000..10a39cb40 --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnRulesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest', $this->obj); + } + + public function testExtendsModifyDispositionRuleRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyDispositionRuleRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php b/test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php new file mode 100644 index 000000000..0eef3762a --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnRulesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php b/test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php new file mode 100644 index 000000000..40be40044 --- /dev/null +++ b/test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShipmentTrackingRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest', $this->obj); + } + + public function testExtendsUpdateTrackingRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateTrackingRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php b/test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php new file mode 100644 index 000000000..f58c0c47e --- /dev/null +++ b/test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShipmentTrackingRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateTrackingRequestTest.php b/test/PostOrder/Types/UpdateTrackingRequestTest.php new file mode 100644 index 000000000..f9030d701 --- /dev/null +++ b/test/PostOrder/Types/UpdateTrackingRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateTrackingRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateTrackingRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadFileRequestTest.php b/test/PostOrder/Types/UploadFileRequestTest.php new file mode 100644 index 000000000..0dff97791 --- /dev/null +++ b/test/PostOrder/Types/UploadFileRequestTest.php @@ -0,0 +1,33 @@ +obj = new UploadFileRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadFileResponseTest.php b/test/PostOrder/Types/UploadFileResponseTest.php new file mode 100644 index 000000000..3932daab3 --- /dev/null +++ b/test/PostOrder/Types/UploadFileResponseTest.php @@ -0,0 +1,33 @@ +obj = new UploadFileResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php b/test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php new file mode 100644 index 000000000..e166c6bd3 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnDraftFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest', $this->obj); + } + + public function testExtendsUploadFileRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php b/test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php new file mode 100644 index 000000000..d1b0d5587 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnDraftFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestResponse', $this->obj); + } + + public function testExtendsUploadFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnFileRestRequestTest.php b/test/PostOrder/Types/UploadReturnFileRestRequestTest.php new file mode 100644 index 000000000..599124754 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest', $this->obj); + } + + public function testExtendsUploadFileRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnFileRestResponseTest.php b/test/PostOrder/Types/UploadReturnFileRestResponseTest.php new file mode 100644 index 000000000..c486f90e2 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestResponse', $this->obj); + } + + public function testExtendsUploadFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoidLabelRequestTest.php b/test/PostOrder/Types/VoidLabelRequestTest.php new file mode 100644 index 000000000..cb1efffb1 --- /dev/null +++ b/test/PostOrder/Types/VoidLabelRequestTest.php @@ -0,0 +1,33 @@ +obj = new VoidLabelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidLabelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoidShippingLabelRestRequestTest.php b/test/PostOrder/Types/VoidShippingLabelRestRequestTest.php new file mode 100644 index 000000000..3959c4841 --- /dev/null +++ b/test/PostOrder/Types/VoidShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new VoidShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest', $this->obj); + } + + public function testExtendsVoidLabelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidLabelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoidShippingLabelRestResponseTest.php b/test/PostOrder/Types/VoidShippingLabelRestResponseTest.php new file mode 100644 index 000000000..1b5190abd --- /dev/null +++ b/test/PostOrder/Types/VoidShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new VoidShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoluntaryRefundResponseTest.php b/test/PostOrder/Types/VoluntaryRefundResponseTest.php new file mode 100644 index 000000000..f63c3e757 --- /dev/null +++ b/test/PostOrder/Types/VoluntaryRefundResponseTest.php @@ -0,0 +1,33 @@ +obj = new VoluntaryRefundResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoluntaryRefundResultTest.php b/test/PostOrder/Types/VoluntaryRefundResultTest.php new file mode 100644 index 000000000..8caf087b9 --- /dev/null +++ b/test/PostOrder/Types/VoluntaryRefundResultTest.php @@ -0,0 +1,33 @@ +obj = new VoluntaryRefundResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Enums/AckValueTest.php b/test/Product/Enums/AckValueTest.php new file mode 100644 index 000000000..ca199a16c --- /dev/null +++ b/test/Product/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\AckValue', $this->obj); + } +} diff --git a/test/Product/Enums/ErrorCategoryTest.php b/test/Product/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..42d69e4a4 --- /dev/null +++ b/test/Product/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/Product/Enums/ErrorSeverityTest.php b/test/Product/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..2df767804 --- /dev/null +++ b/test/Product/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/Product/Enums/MediaTypeTest.php b/test/Product/Enums/MediaTypeTest.php new file mode 100644 index 000000000..fdd916b3f --- /dev/null +++ b/test/Product/Enums/MediaTypeTest.php @@ -0,0 +1,28 @@ +obj = new MediaType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\MediaType', $this->obj); + } +} diff --git a/test/Product/Enums/OrderTypeTest.php b/test/Product/Enums/OrderTypeTest.php new file mode 100644 index 000000000..c43348c90 --- /dev/null +++ b/test/Product/Enums/OrderTypeTest.php @@ -0,0 +1,28 @@ +obj = new OrderType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\OrderType', $this->obj); + } +} diff --git a/test/Product/Enums/OutputSelectorTest.php b/test/Product/Enums/OutputSelectorTest.php new file mode 100644 index 000000000..6afdda6ea --- /dev/null +++ b/test/Product/Enums/OutputSelectorTest.php @@ -0,0 +1,28 @@ +obj = new OutputSelector(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\OutputSelector', $this->obj); + } +} diff --git a/test/Product/Enums/ProductSubmissionStatusCodeTest.php b/test/Product/Enums/ProductSubmissionStatusCodeTest.php new file mode 100644 index 000000000..92e27f873 --- /dev/null +++ b/test/Product/Enums/ProductSubmissionStatusCodeTest.php @@ -0,0 +1,28 @@ +obj = new ProductSubmissionStatusCode(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\ProductSubmissionStatusCode', $this->obj); + } +} diff --git a/test/Product/Enums/SortPriorityTest.php b/test/Product/Enums/SortPriorityTest.php new file mode 100644 index 000000000..f4d255c49 --- /dev/null +++ b/test/Product/Enums/SortPriorityTest.php @@ -0,0 +1,28 @@ +obj = new SortPriority(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\SortPriority', $this->obj); + } +} diff --git a/test/Product/Enums/SortTypeTest.php b/test/Product/Enums/SortTypeTest.php new file mode 100644 index 000000000..4aa7d17be --- /dev/null +++ b/test/Product/Enums/SortTypeTest.php @@ -0,0 +1,28 @@ +obj = new SortType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\SortType', $this->obj); + } +} diff --git a/test/Product/Mocks/Service.php b/test/Product/Mocks/Service.php new file mode 100644 index 000000000..875af9382 --- /dev/null +++ b/test/Product/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/Product/Services/ServiceTest.php b/test/Product/Services/ServiceTest.php new file mode 100644 index 000000000..4769eced5 --- /dev/null +++ b/test/Product/Services/ServiceTest.php @@ -0,0 +1,71 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => ProductService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'credentials' => ['appId' => '321', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(ProductBaseService::HDR_APP_ID, $h->headers); + $this->assertEquals('321', $h->headers[ProductBaseService::HDR_APP_ID]); + + $this->assertArrayHasKey(ProductBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[ProductBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(ProductBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(ProductService::API_VERSION, $h->headers[ProductBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(ProductBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(ProductBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[ProductBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(ProductBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[ProductBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/Product/Types/AddProductResponseTest.php b/test/Product/Types/AddProductResponseTest.php new file mode 100644 index 000000000..955e17b7a --- /dev/null +++ b/test/Product/Types/AddProductResponseTest.php @@ -0,0 +1,33 @@ +obj = new AddProductResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\AddProductResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/AddProductsRequestTest.php b/test/Product/Types/AddProductsRequestTest.php new file mode 100644 index 000000000..9a5b82d5e --- /dev/null +++ b/test/Product/Types/AddProductsRequestTest.php @@ -0,0 +1,33 @@ +obj = new AddProductsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\AddProductsRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/AddProductsResponseTest.php b/test/Product/Types/AddProductsResponseTest.php new file mode 100644 index 000000000..32a08bafe --- /dev/null +++ b/test/Product/Types/AddProductsResponseTest.php @@ -0,0 +1,33 @@ +obj = new AddProductsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\AddProductsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/BaseServiceRequestTest.php b/test/Product/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..c645cef2b --- /dev/null +++ b/test/Product/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/BaseServiceResponseTest.php b/test/Product/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..4218aec7e --- /dev/null +++ b/test/Product/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/CompatibilityDetailsTest.php b/test/Product/Types/CompatibilityDetailsTest.php new file mode 100644 index 000000000..2bbf37be5 --- /dev/null +++ b/test/Product/Types/CompatibilityDetailsTest.php @@ -0,0 +1,33 @@ +obj = new CompatibilityDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\CompatibilityDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/CompatibilityPropertyFilterTest.php b/test/Product/Types/CompatibilityPropertyFilterTest.php new file mode 100644 index 000000000..fd06ea10b --- /dev/null +++ b/test/Product/Types/CompatibilityPropertyFilterTest.php @@ -0,0 +1,33 @@ +obj = new CompatibilityPropertyFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\CompatibilityPropertyFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/CompatibilitySortTest.php b/test/Product/Types/CompatibilitySortTest.php new file mode 100644 index 000000000..082d55a3f --- /dev/null +++ b/test/Product/Types/CompatibilitySortTest.php @@ -0,0 +1,33 @@ +obj = new CompatibilitySort(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\CompatibilitySort', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ErrorDataTest.php b/test/Product/Types/ErrorDataTest.php new file mode 100644 index 000000000..035d4d11e --- /dev/null +++ b/test/Product/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ErrorMessageTest.php b/test/Product/Types/ErrorMessageTest.php new file mode 100644 index 000000000..9508e89a4 --- /dev/null +++ b/test/Product/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ErrorParameterTest.php b/test/Product/Types/ErrorParameterTest.php new file mode 100644 index 000000000..e209269e1 --- /dev/null +++ b/test/Product/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php b/test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php new file mode 100644 index 000000000..9834369f2 --- /dev/null +++ b/test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindCompatibilitiesBySpecificationRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php b/test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php new file mode 100644 index 000000000..e20dc7972 --- /dev/null +++ b/test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindCompatibilitiesBySpecificationResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/FindProductsByCompatibilityRequestTest.php b/test/Product/Types/FindProductsByCompatibilityRequestTest.php new file mode 100644 index 000000000..99b9dec2e --- /dev/null +++ b/test/Product/Types/FindProductsByCompatibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindProductsByCompatibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/FindProductsRequestTest.php b/test/Product/Types/FindProductsRequestTest.php new file mode 100644 index 000000000..af89eafb9 --- /dev/null +++ b/test/Product/Types/FindProductsRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindProductsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindProductsRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/FindProductsResponseTest.php b/test/Product/Types/FindProductsResponseTest.php new file mode 100644 index 000000000..b3153f0a4 --- /dev/null +++ b/test/Product/Types/FindProductsResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindProductsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindProductsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/GetProductCompatibilitiesRequestTest.php b/test/Product/Types/GetProductCompatibilitiesRequestTest.php new file mode 100644 index 000000000..c12c06817 --- /dev/null +++ b/test/Product/Types/GetProductCompatibilitiesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatibilitiesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/GetProductCompatiblitiesResponseTest.php b/test/Product/Types/GetProductCompatiblitiesResponseTest.php new file mode 100644 index 000000000..7e12be395 --- /dev/null +++ b/test/Product/Types/GetProductCompatiblitiesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatiblitiesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductCompatiblitiesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/GetProductDetailsRequestTest.php b/test/Product/Types/GetProductDetailsRequestTest.php new file mode 100644 index 000000000..24f49b152 --- /dev/null +++ b/test/Product/Types/GetProductDetailsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductDetailsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductDetailsRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/GetProductDetailsResponseTest.php b/test/Product/Types/GetProductDetailsResponseTest.php new file mode 100644 index 000000000..76c0ce7ce --- /dev/null +++ b/test/Product/Types/GetProductDetailsResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductDetailsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductDetailsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/GetProductSubmissionsRequestTest.php b/test/Product/Types/GetProductSubmissionsRequestTest.php new file mode 100644 index 000000000..ac0a84ffc --- /dev/null +++ b/test/Product/Types/GetProductSubmissionsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSubmissionsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/GetProductSubmissionsResponseTest.php b/test/Product/Types/GetProductSubmissionsResponseTest.php new file mode 100644 index 000000000..ef008274d --- /dev/null +++ b/test/Product/Types/GetProductSubmissionsResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSubmissionsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductSubmissionsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/MediaIdentifierTest.php b/test/Product/Types/MediaIdentifierTest.php new file mode 100644 index 000000000..3bdab3c93 --- /dev/null +++ b/test/Product/Types/MediaIdentifierTest.php @@ -0,0 +1,33 @@ +obj = new MediaIdentifier(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\MediaIdentifier', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/MediaTest.php b/test/Product/Types/MediaTest.php new file mode 100644 index 000000000..7f3eb275d --- /dev/null +++ b/test/Product/Types/MediaTest.php @@ -0,0 +1,33 @@ +obj = new Media(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Media', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/NotesTest.php b/test/Product/Types/NotesTest.php new file mode 100644 index 000000000..e334a5bc3 --- /dev/null +++ b/test/Product/Types/NotesTest.php @@ -0,0 +1,33 @@ +obj = new Notes(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Notes', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/NumericValueTest.php b/test/Product/Types/NumericValueTest.php new file mode 100644 index 000000000..3c63e3624 --- /dev/null +++ b/test/Product/Types/NumericValueTest.php @@ -0,0 +1,33 @@ +obj = new NumericValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\NumericValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/PaginationInputTest.php b/test/Product/Types/PaginationInputTest.php new file mode 100644 index 000000000..e00dce012 --- /dev/null +++ b/test/Product/Types/PaginationInputTest.php @@ -0,0 +1,33 @@ +obj = new PaginationInput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\PaginationInput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/PaginationOutputTest.php b/test/Product/Types/PaginationOutputTest.php new file mode 100644 index 000000000..b22befb79 --- /dev/null +++ b/test/Product/Types/PaginationOutputTest.php @@ -0,0 +1,33 @@ +obj = new PaginationOutput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\PaginationOutput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductByCompatibilityRequestTest.php b/test/Product/Types/ProductByCompatibilityRequestTest.php new file mode 100644 index 000000000..80305de88 --- /dev/null +++ b/test/Product/Types/ProductByCompatibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductByCompatibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductByCompatibilityRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductDetailsRequestTypeTest.php b/test/Product/Types/ProductDetailsRequestTypeTest.php new file mode 100644 index 000000000..931f558c8 --- /dev/null +++ b/test/Product/Types/ProductDetailsRequestTypeTest.php @@ -0,0 +1,33 @@ +obj = new ProductDetailsRequestType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductDetailsRequestType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductIdentifierTest.php b/test/Product/Types/ProductIdentifierTest.php new file mode 100644 index 000000000..4992d82f9 --- /dev/null +++ b/test/Product/Types/ProductIdentifierTest.php @@ -0,0 +1,33 @@ +obj = new ProductIdentifier(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductIdentifier', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductRequestTest.php b/test/Product/Types/ProductRequestTest.php new file mode 100644 index 000000000..e7a76c0a4 --- /dev/null +++ b/test/Product/Types/ProductRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductResponseTest.php b/test/Product/Types/ProductResponseTest.php new file mode 100644 index 000000000..4c6dc1f72 --- /dev/null +++ b/test/Product/Types/ProductResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProductResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductStatusTest.php b/test/Product/Types/ProductStatusTest.php new file mode 100644 index 000000000..6eeb580c9 --- /dev/null +++ b/test/Product/Types/ProductStatusTest.php @@ -0,0 +1,33 @@ +obj = new ProductStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionFilterTest.php b/test/Product/Types/ProductSubmissionFilterTest.php new file mode 100644 index 000000000..5e954ca49 --- /dev/null +++ b/test/Product/Types/ProductSubmissionFilterTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmissionFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmissionFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionResultTest.php b/test/Product/Types/ProductSubmissionResultTest.php new file mode 100644 index 000000000..814cbaabf --- /dev/null +++ b/test/Product/Types/ProductSubmissionResultTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmissionResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmissionResult', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionStatusTest.php b/test/Product/Types/ProductSubmissionStatusTest.php new file mode 100644 index 000000000..3e84e3fcb --- /dev/null +++ b/test/Product/Types/ProductSubmissionStatusTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmissionStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmissionStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionTest.php b/test/Product/Types/ProductSubmissionTest.php new file mode 100644 index 000000000..d93b13aac --- /dev/null +++ b/test/Product/Types/ProductSubmissionTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmission(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmission', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/ProductTest.php b/test/Product/Types/ProductTest.php new file mode 100644 index 000000000..1e327d742 --- /dev/null +++ b/test/Product/Types/ProductTest.php @@ -0,0 +1,33 @@ +obj = new Product(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Product', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/PropertyValueTest.php b/test/Product/Types/PropertyValueTest.php new file mode 100644 index 000000000..031554c3f --- /dev/null +++ b/test/Product/Types/PropertyValueTest.php @@ -0,0 +1,33 @@ +obj = new PropertyValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\PropertyValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/SortOptionTest.php b/test/Product/Types/SortOptionTest.php new file mode 100644 index 000000000..73c55908a --- /dev/null +++ b/test/Product/Types/SortOptionTest.php @@ -0,0 +1,33 @@ +obj = new SortOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\SortOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/SortOrderTest.php b/test/Product/Types/SortOrderTest.php new file mode 100644 index 000000000..7767c77fa --- /dev/null +++ b/test/Product/Types/SortOrderTest.php @@ -0,0 +1,33 @@ +obj = new SortOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\SortOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/StockPhotoURLTest.php b/test/Product/Types/StockPhotoURLTest.php new file mode 100644 index 000000000..23b6db76b --- /dev/null +++ b/test/Product/Types/StockPhotoURLTest.php @@ -0,0 +1,33 @@ +obj = new StockPhotoURL(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\StockPhotoURL', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/StringValueTest.php b/test/Product/Types/StringValueTest.php new file mode 100644 index 000000000..b675d05aa --- /dev/null +++ b/test/Product/Types/StringValueTest.php @@ -0,0 +1,33 @@ +obj = new StringValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\StringValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/URIValueTest.php b/test/Product/Types/URIValueTest.php new file mode 100644 index 000000000..a1a3e67e0 --- /dev/null +++ b/test/Product/Types/URIValueTest.php @@ -0,0 +1,33 @@ +obj = new URIValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\URIValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ValueTest.php b/test/Product/Types/ValueTest.php new file mode 100644 index 000000000..6c7d4166f --- /dev/null +++ b/test/Product/Types/ValueTest.php @@ -0,0 +1,33 @@ +obj = new Value(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Value', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/AckValueTest.php b/test/ProductMetadata/Enums/AckValueTest.php new file mode 100644 index 000000000..3ac456170 --- /dev/null +++ b/test/ProductMetadata/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\AckValue', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/DatasetValueTest.php b/test/ProductMetadata/Enums/DatasetValueTest.php new file mode 100644 index 000000000..65dc1ad37 --- /dev/null +++ b/test/ProductMetadata/Enums/DatasetValueTest.php @@ -0,0 +1,28 @@ +obj = new DatasetValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\DatasetValue', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/ErrorCategoryTest.php b/test/ProductMetadata/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..5b79219eb --- /dev/null +++ b/test/ProductMetadata/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/ErrorSeverityTest.php b/test/ProductMetadata/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..d060c3c2e --- /dev/null +++ b/test/ProductMetadata/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/OrderTypeTest.php b/test/ProductMetadata/Enums/OrderTypeTest.php new file mode 100644 index 000000000..d62440740 --- /dev/null +++ b/test/ProductMetadata/Enums/OrderTypeTest.php @@ -0,0 +1,28 @@ +obj = new OrderType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\OrderType', $this->obj); + } +} diff --git a/test/ProductMetadata/Mocks/Service.php b/test/ProductMetadata/Mocks/Service.php new file mode 100644 index 000000000..d2d059f72 --- /dev/null +++ b/test/ProductMetadata/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/ProductMetadata/Services/ServiceTest.php b/test/ProductMetadata/Services/ServiceTest.php new file mode 100644 index 000000000..0645595be --- /dev/null +++ b/test/ProductMetadata/Services/ServiceTest.php @@ -0,0 +1,71 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => ProductMetadataService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'credentials' => ['appId' => '321', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_APP_ID, $h->headers); + $this->assertEquals('321', $h->headers[ProductMetadataBaseService::HDR_APP_ID]); + + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[ProductMetadataBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(ProductMetadataService::API_VERSION, $h->headers[ProductMetadataBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(ProductMetadataBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[ProductMetadataBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[ProductMetadataBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/ProductMetadata/Types/BaseRequestTest.php b/test/ProductMetadata/Types/BaseRequestTest.php new file mode 100644 index 000000000..b4cfc384a --- /dev/null +++ b/test/ProductMetadata/Types/BaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/BaseResponseTest.php b/test/ProductMetadata/Types/BaseResponseTest.php new file mode 100644 index 000000000..733f98081 --- /dev/null +++ b/test/ProductMetadata/Types/BaseResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/BaseServiceRequestTest.php b/test/ProductMetadata/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..b94b710ee --- /dev/null +++ b/test/ProductMetadata/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/BaseServiceResponseTest.php b/test/ProductMetadata/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..c6115e87f --- /dev/null +++ b/test/ProductMetadata/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ErrorDataTest.php b/test/ProductMetadata/Types/ErrorDataTest.php new file mode 100644 index 000000000..135fb90d8 --- /dev/null +++ b/test/ProductMetadata/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ErrorMessageTest.php b/test/ProductMetadata/Types/ErrorMessageTest.php new file mode 100644 index 000000000..5f728345d --- /dev/null +++ b/test/ProductMetadata/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ErrorParameterTest.php b/test/ProductMetadata/Types/ErrorParameterTest.php new file mode 100644 index 000000000..5b97b79ef --- /dev/null +++ b/test/ProductMetadata/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ExtensionTypeTest.php b/test/ProductMetadata/Types/ExtensionTypeTest.php new file mode 100644 index 000000000..77e3c0bf7 --- /dev/null +++ b/test/ProductMetadata/Types/ExtensionTypeTest.php @@ -0,0 +1,33 @@ +obj = new ExtensionType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ExtensionType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php new file mode 100644 index 000000000..847ef4a1c --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchDataVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php new file mode 100644 index 000000000..adad79cfa --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchDataVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php new file mode 100644 index 000000000..93b3bcfce --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchNamesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php new file mode 100644 index 000000000..53e7e791f --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchNamesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php new file mode 100644 index 000000000..bac4ce761 --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesBulkRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php new file mode 100644 index 000000000..33bf541c6 --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesBulkResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkResponse', $this->obj); + } + + public function testExtendsGetProductSearchValuesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php new file mode 100644 index 000000000..8fc9d363f --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php new file mode 100644 index 000000000..5a1efab16 --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php b/test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php new file mode 100644 index 000000000..009244e53 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchDataVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php b/test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php new file mode 100644 index 000000000..8f524ab2d --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchDataVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php b/test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php new file mode 100644 index 000000000..144e4afb7 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchNamesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php b/test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php new file mode 100644 index 000000000..b42d0b7ab --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchNamesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php b/test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php new file mode 100644 index 000000000..f5ae3982d --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesBaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php b/test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php new file mode 100644 index 000000000..f34bed8fe --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesBulkRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php b/test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php new file mode 100644 index 000000000..ddb7aab83 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesBulkResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkResponse', $this->obj); + } + + public function testExtendsGetProductSearchValuesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php b/test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php new file mode 100644 index 000000000..d49236f88 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php b/test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php new file mode 100644 index 000000000..ef928aada --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GroupPropertiesTest.php b/test/ProductMetadata/Types/GroupPropertiesTest.php new file mode 100644 index 000000000..1200ea9a6 --- /dev/null +++ b/test/ProductMetadata/Types/GroupPropertiesTest.php @@ -0,0 +1,33 @@ +obj = new GroupProperties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GroupProperties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GroupPropertyTest.php b/test/ProductMetadata/Types/GroupPropertyTest.php new file mode 100644 index 000000000..89b8e5754 --- /dev/null +++ b/test/ProductMetadata/Types/GroupPropertyTest.php @@ -0,0 +1,33 @@ +obj = new GroupProperty(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GroupProperty', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php b/test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php new file mode 100644 index 000000000..58b6e1601 --- /dev/null +++ b/test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new MediaTypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\MediaTypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php b/test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php new file mode 100644 index 000000000..490d54981 --- /dev/null +++ b/test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new NumericTypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\NumericTypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/NumericValueTest.php b/test/ProductMetadata/Types/NumericValueTest.php new file mode 100644 index 000000000..7fbfe54af --- /dev/null +++ b/test/ProductMetadata/Types/NumericValueTest.php @@ -0,0 +1,33 @@ +obj = new NumericValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\NumericValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php b/test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php new file mode 100644 index 000000000..fa56928ef --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataBulkRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php b/test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php new file mode 100644 index 000000000..af10db569 --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataBulkResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataRequestTest.php b/test/ProductMetadata/Types/ProductMetadataRequestTest.php new file mode 100644 index 000000000..c80782045 --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataResponseTest.php b/test/ProductMetadata/Types/ProductMetadataResponseTest.php new file mode 100644 index 000000000..27223a4b1 --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataTest.php b/test/ProductMetadata/Types/ProductMetadataTest.php new file mode 100644 index 000000000..11d157c8d --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertiesTest.php b/test/ProductMetadata/Types/PropertiesTest.php new file mode 100644 index 000000000..d9f95364f --- /dev/null +++ b/test/ProductMetadata/Types/PropertiesTest.php @@ -0,0 +1,33 @@ +obj = new Properties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Properties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyMetadataTest.php b/test/ProductMetadata/Types/PropertyMetadataTest.php new file mode 100644 index 000000000..06f6d4abd --- /dev/null +++ b/test/ProductMetadata/Types/PropertyMetadataTest.php @@ -0,0 +1,33 @@ +obj = new PropertyMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyNameMetadataTest.php b/test/ProductMetadata/Types/PropertyNameMetadataTest.php new file mode 100644 index 000000000..4a6b5e22c --- /dev/null +++ b/test/ProductMetadata/Types/PropertyNameMetadataTest.php @@ -0,0 +1,33 @@ +obj = new PropertyNameMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyNameMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyNameValueTest.php b/test/ProductMetadata/Types/PropertyNameValueTest.php new file mode 100644 index 000000000..edbf24fd0 --- /dev/null +++ b/test/ProductMetadata/Types/PropertyNameValueTest.php @@ -0,0 +1,33 @@ +obj = new PropertyNameValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyTest.php b/test/ProductMetadata/Types/PropertyTest.php new file mode 100644 index 000000000..bd27b7f1c --- /dev/null +++ b/test/ProductMetadata/Types/PropertyTest.php @@ -0,0 +1,33 @@ +obj = new Property(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Property', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyValueTest.php b/test/ProductMetadata/Types/PropertyValueTest.php new file mode 100644 index 000000000..ff5d42e72 --- /dev/null +++ b/test/ProductMetadata/Types/PropertyValueTest.php @@ -0,0 +1,33 @@ +obj = new PropertyValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/SortOrderTest.php b/test/ProductMetadata/Types/SortOrderTest.php new file mode 100644 index 000000000..eb412ec3f --- /dev/null +++ b/test/ProductMetadata/Types/SortOrderTest.php @@ -0,0 +1,33 @@ +obj = new SortOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\SortOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/StringTypeSpecificInformationTest.php b/test/ProductMetadata/Types/StringTypeSpecificInformationTest.php new file mode 100644 index 000000000..9a23d45d0 --- /dev/null +++ b/test/ProductMetadata/Types/StringTypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new StringTypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\StringTypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/StringValueTest.php b/test/ProductMetadata/Types/StringValueTest.php new file mode 100644 index 000000000..52da3df11 --- /dev/null +++ b/test/ProductMetadata/Types/StringValueTest.php @@ -0,0 +1,33 @@ +obj = new StringValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\StringValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/TagTest.php b/test/ProductMetadata/Types/TagTest.php new file mode 100644 index 000000000..8c282cf93 --- /dev/null +++ b/test/ProductMetadata/Types/TagTest.php @@ -0,0 +1,33 @@ +obj = new Tag(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Tag', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/TypeSpecificInformationTest.php b/test/ProductMetadata/Types/TypeSpecificInformationTest.php new file mode 100644 index 000000000..70b55bf5f --- /dev/null +++ b/test/ProductMetadata/Types/TypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new TypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\TypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/URITypeSpecificInformationTest.php b/test/ProductMetadata/Types/URITypeSpecificInformationTest.php new file mode 100644 index 000000000..1d8ca3016 --- /dev/null +++ b/test/ProductMetadata/Types/URITypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new URITypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\URITypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/URIValueTest.php b/test/ProductMetadata/Types/URIValueTest.php new file mode 100644 index 000000000..6c69d4f14 --- /dev/null +++ b/test/ProductMetadata/Types/URIValueTest.php @@ -0,0 +1,33 @@ +obj = new URIValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\URIValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ValueTest.php b/test/ProductMetadata/Types/ValueTest.php new file mode 100644 index 000000000..2a687409c --- /dev/null +++ b/test/ProductMetadata/Types/ValueTest.php @@ -0,0 +1,33 @@ +obj = new Value(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Value', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/VersionDetailsTest.php b/test/ProductMetadata/Types/VersionDetailsTest.php new file mode 100644 index 000000000..584980063 --- /dev/null +++ b/test/ProductMetadata/Types/VersionDetailsTest.php @@ -0,0 +1,33 @@ +obj = new VersionDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\VersionDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/AckValueTest.php b/test/RelatedItemsManagement/Enums/AckValueTest.php new file mode 100644 index 000000000..ce3aae65f --- /dev/null +++ b/test/RelatedItemsManagement/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\AckValue', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php b/test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php new file mode 100644 index 000000000..3cb4bb585 --- /dev/null +++ b/test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php @@ -0,0 +1,28 @@ +obj = new BundleDetailEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\BundleDetailEnum', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php b/test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php new file mode 100644 index 000000000..2c511dcfa --- /dev/null +++ b/test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new BundleStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\BundleStatusEnum', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php b/test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php new file mode 100644 index 000000000..9caeacf5d --- /dev/null +++ b/test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DiscountTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\DiscountTypeEnum', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/ErrorCategoryTest.php b/test/RelatedItemsManagement/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..6a6b1f9e5 --- /dev/null +++ b/test/RelatedItemsManagement/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/ErrorSeverityTest.php b/test/RelatedItemsManagement/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..9e7018fe6 --- /dev/null +++ b/test/RelatedItemsManagement/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Mocks/Service.php b/test/RelatedItemsManagement/Mocks/Service.php new file mode 100644 index 000000000..ae1d48617 --- /dev/null +++ b/test/RelatedItemsManagement/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/RelatedItemsManagement/Services/ServiceTest.php b/test/RelatedItemsManagement/Services/ServiceTest.php new file mode 100644 index 000000000..7e49b5995 --- /dev/null +++ b/test/RelatedItemsManagement/Services/ServiceTest.php @@ -0,0 +1,79 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => RelatedItemsManagementService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('authToken', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authToken']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_AUTH_TOKEN, $h->headers); + $this->assertEquals('321', $h->headers[RelatedItemsManagementBaseService::HDR_AUTH_TOKEN]); + + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[RelatedItemsManagementBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(RelatedItemsManagementService::API_VERSION, $h->headers[RelatedItemsManagementBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(RelatedItemsManagementBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[RelatedItemsManagementBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[RelatedItemsManagementBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/RelatedItemsManagement/Types/AmountTest.php b/test/RelatedItemsManagement/Types/AmountTest.php new file mode 100644 index 000000000..f6060300d --- /dev/null +++ b/test/RelatedItemsManagement/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\Amount', $this->obj); + } + + public function testExtendsDoubleType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\DoubleType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BaseRequestTest.php b/test/RelatedItemsManagement/Types/BaseRequestTest.php new file mode 100644 index 000000000..c38494c3e --- /dev/null +++ b/test/RelatedItemsManagement/Types/BaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BaseResponseTest.php b/test/RelatedItemsManagement/Types/BaseResponseTest.php new file mode 100644 index 000000000..0135f7453 --- /dev/null +++ b/test/RelatedItemsManagement/Types/BaseResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleFilterTest.php b/test/RelatedItemsManagement/Types/BundleFilterTest.php new file mode 100644 index 000000000..6c5c82e49 --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleFilterTest.php @@ -0,0 +1,33 @@ +obj = new BundleFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BundleFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleStatusMapTest.php b/test/RelatedItemsManagement/Types/BundleStatusMapTest.php new file mode 100644 index 000000000..138457fc1 --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleStatusMapTest.php @@ -0,0 +1,33 @@ +obj = new BundleStatusMap(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatusMap', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleStatusTest.php b/test/RelatedItemsManagement/Types/BundleStatusTest.php new file mode 100644 index 000000000..51056f9df --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleStatusTest.php @@ -0,0 +1,33 @@ +obj = new BundleStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleTest.php b/test/RelatedItemsManagement/Types/BundleTest.php new file mode 100644 index 000000000..8f8e3d49a --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleTest.php @@ -0,0 +1,33 @@ +obj = new Bundle(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php b/test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php new file mode 100644 index 000000000..4ab5d1a44 --- /dev/null +++ b/test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php b/test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php new file mode 100644 index 000000000..b150dbc1c --- /dev/null +++ b/test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php b/test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php new file mode 100644 index 000000000..97392ea58 --- /dev/null +++ b/test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php b/test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php new file mode 100644 index 000000000..469f719e3 --- /dev/null +++ b/test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/DiscountTest.php b/test/RelatedItemsManagement/Types/DiscountTest.php new file mode 100644 index 000000000..028ecbdd8 --- /dev/null +++ b/test/RelatedItemsManagement/Types/DiscountTest.php @@ -0,0 +1,33 @@ +obj = new Discount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\Discount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ErrorDataTest.php b/test/RelatedItemsManagement/Types/ErrorDataTest.php new file mode 100644 index 000000000..9a4196638 --- /dev/null +++ b/test/RelatedItemsManagement/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ErrorMessageTest.php b/test/RelatedItemsManagement/Types/ErrorMessageTest.php new file mode 100644 index 000000000..6e877f41c --- /dev/null +++ b/test/RelatedItemsManagement/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ErrorParameterTest.php b/test/RelatedItemsManagement/Types/ErrorParameterTest.php new file mode 100644 index 000000000..92d00cc78 --- /dev/null +++ b/test/RelatedItemsManagement/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ExtensionTypeTest.php b/test/RelatedItemsManagement/Types/ExtensionTypeTest.php new file mode 100644 index 000000000..e0128d16e --- /dev/null +++ b/test/RelatedItemsManagement/Types/ExtensionTypeTest.php @@ -0,0 +1,33 @@ +obj = new ExtensionType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ExtensionType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/FindBundlesRequestTest.php b/test/RelatedItemsManagement/Types/FindBundlesRequestTest.php new file mode 100644 index 000000000..14b99aee5 --- /dev/null +++ b/test/RelatedItemsManagement/Types/FindBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/FindBundlesResponseTest.php b/test/RelatedItemsManagement/Types/FindBundlesResponseTest.php new file mode 100644 index 000000000..c5edd0b35 --- /dev/null +++ b/test/RelatedItemsManagement/Types/FindBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetBundlesRequestTest.php b/test/RelatedItemsManagement/Types/GetBundlesRequestTest.php new file mode 100644 index 000000000..e3298c168 --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetBundlesResponseTest.php b/test/RelatedItemsManagement/Types/GetBundlesResponseTest.php new file mode 100644 index 000000000..fed4292e8 --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetVersionRequestTest.php b/test/RelatedItemsManagement/Types/GetVersionRequestTest.php new file mode 100644 index 000000000..3a96f6454 --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetVersionResponseTest.php b/test/RelatedItemsManagement/Types/GetVersionResponseTest.php new file mode 100644 index 000000000..c6183d7cb --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/RelatedProductGroupTest.php b/test/RelatedItemsManagement/Types/RelatedProductGroupTest.php new file mode 100644 index 000000000..b8d06be45 --- /dev/null +++ b/test/RelatedItemsManagement/Types/RelatedProductGroupTest.php @@ -0,0 +1,33 @@ +obj = new RelatedProductGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProductGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/RelatedProductTest.php b/test/RelatedItemsManagement/Types/RelatedProductTest.php new file mode 100644 index 000000000..bc8da2a79 --- /dev/null +++ b/test/RelatedItemsManagement/Types/RelatedProductTest.php @@ -0,0 +1,33 @@ +obj = new RelatedProduct(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProduct', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php b/test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php new file mode 100644 index 000000000..d8aaedf31 --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundleStatusRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php b/test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php new file mode 100644 index 000000000..222018f7b --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundleStatusResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php b/test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php new file mode 100644 index 000000000..83800ce02 --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php b/test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php new file mode 100644 index 000000000..bad4ff4a6 --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/ResolutionCaseManagement/Enums/AckValueTest.php b/test/ResolutionCaseManagement/Enums/AckValueTest.php index 359de5af8..642d13346 100644 --- a/test/ResolutionCaseManagement/Enums/AckValueTest.php +++ b/test/ResolutionCaseManagement/Enums/AckValueTest.php @@ -1,8 +1,11 @@ obj = new AppealRef(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ResolutionCaseManagement\Types\AppealRef', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php b/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php index 408f452fa..db8445c97 100644 --- a/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php +++ b/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php @@ -1,8 +1,11 @@ obj = new MoneyMovementRef(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ResolutionCaseManagement\Types\MoneyMovementRef', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ResolutionCaseManagement/Types/MoneyTest.php b/test/ResolutionCaseManagement/Types/MoneyTest.php index 79e98c386..964b760c2 100644 --- a/test/ResolutionCaseManagement/Types/MoneyTest.php +++ b/test/ResolutionCaseManagement/Types/MoneyTest.php @@ -1,8 +1,11 @@ sdk = new Sdk([ 'apiVersion' => '', 'appId' => '', 'authToken' => '', + 'authorization' => '', 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], 'globalId' => '', 'siteId' => 0 @@ -61,6 +64,21 @@ public function testCallingUnknownMethod() $this->sdk->foo(); } + public function testCanCreateAccount() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Services\AccountService', $this->sdk->createAccount()); + } + + public function testCanCreateAnalytics() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Services\AnalyticsService', $this->sdk->createAnalytics()); + } + + public function testCanCreateBrowse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Services\BrowseService', $this->sdk->createBrowse()); + } + public function testCanCreateBulkDataExchange() { $this->assertInstanceOf('\DTS\eBaySDK\BulkDataExchange\Services\BulkDataExchangeService', $this->sdk->createBulkDataExchange()); @@ -71,6 +89,11 @@ public function testCanCreateBusinessPoliciesManagement() $this->assertInstanceOf('\DTS\eBaySDK\BusinessPoliciesManagement\Services\BusinessPoliciesManagementService', $this->sdk->createBusinessPoliciesManagement()); } + public function testCanCreateFeedback() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Services\FeedbackService', $this->sdk->createFeedback()); + } + public function testCanCreateFileTransfer() { $this->assertInstanceOf('\DTS\eBaySDK\FileTransfer\Services\FileTransferService', $this->sdk->createFileTransfer()); @@ -81,11 +104,61 @@ public function testCanCreateFinding() $this->assertInstanceOf('\DTS\eBaySDK\Finding\Services\FindingService', $this->sdk->createFinding()); } + public function testCanCreateFulfillment() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Services\FulfillmentService', $this->sdk->createFulfillment()); + } + public function testCanCreateHalfFinding() { $this->assertInstanceOf('\DTS\eBaySDK\HalfFinding\Services\HalfFindingService', $this->sdk->createHalfFinding()); } + public function testCanCreateInventory() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Services\InventoryService', $this->sdk->createInventory()); + } + + public function testCanCreateMarketing() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Services\MarketingService', $this->sdk->createMarketing()); + } + + public function testCanCreateMetadata() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Services\MetadataService', $this->sdk->createMetadata()); + } + + public function testCanCreateMerchandising() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Services\MerchandisingService', $this->sdk->createMerchandising()); + } + + public function testCanCreateOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Services\OrderService', $this->sdk->createOrder()); + } + + public function testCanCreatePostOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Services\PostOrderService', $this->sdk->createPostOrder()); + } + + public function testCanCreateProduct() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Services\ProductService', $this->sdk->createProduct()); + } + + public function testCanCreateProductMetadata() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Services\ProductMetadataService', $this->sdk->createProductMetadata()); + } + + public function testCanCreateRelatedItemsManagement() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Services\RelatedItemsManagementService', $this->sdk->createRelatedItemsManagement()); + } + public function testCanCreateResolutionCaseManagement() { $this->assertInstanceOf('\DTS\eBaySDK\ResolutionCaseManagement\Services\ResolutionCaseManagementService', $this->sdk->createResolutionCaseManagement()); diff --git a/test/Services/RestServiceTest.php b/test/Services/RestServiceTest.php new file mode 100644 index 000000000..a94a1a894 --- /dev/null +++ b/test/Services/RestServiceTest.php @@ -0,0 +1,195 @@ +assertArrayHasKey('debug', $d); + $this->assertEquals([ + 'valid' => ['bool', 'array'], + 'fn' => 'DTS\eBaySDK\applyDebug', + 'default' => false + ], $d['debug']); + + $this->assertArrayHasKey('httpHandler', $d); + $this->assertEquals([ + 'valid' => ['callable'], + 'default' => 'DTS\eBaySDK\defaultHttpHandler' + ], $d['httpHandler']); + + $this->assertArrayHasKey('httpOptions', $d); + $this->assertEquals([ + 'valid' => ['array'], + 'default' => ['http_errors' => false] + ], $d['httpOptions']); + + $this->assertArrayHasKey('requestLanguage', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['requestLanguage']); + + $this->assertArrayHasKey('responseLanguage', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['responseLanguage']); + + $this->assertArrayHasKey('sandbox', $d); + $this->assertEquals([ + 'valid' => ['bool'], + 'default' => false + ], $d['sandbox']); + } + + public function testProductionUrlIsUsed() + { + // By default sandbox will be false. + $h = new HttpRestHandler(); + $s = new RestService([ + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertEquals('http://production.com/v1/', $h->url); + } + + public function testSandboxUrlIsUsed() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'sandbox' => true, + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertEquals('http://sandbox.com/v1/', $h->url); + } + + public function testHttpHeadersAreCreated() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'requestLanguage' => 'en-GB', + 'responseLanguage' => 'en-US', + 'sandbox' => true, + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertArrayHasKey('Accept', $h->headers); + $this->assertEquals('application/json', $h->headers['Accept']); + $this->assertArrayHasKey('Accept-Language', $h->headers); + $this->assertEquals('en-US', $h->headers['Accept-Language']); + $this->assertArrayHasKey('Content-Language', $h->headers); + $this->assertEquals('en-GB', $h->headers['Content-Language']); + $this->assertArrayHasKey('Content-Type', $h->headers); + $this->assertEquals('application/json', $h->headers['Content-Type']); + $this->assertArrayHasKey('Content-Length', $h->headers); + $this->assertEquals(0, $h->headers['Content-Length']); + } + + public function testJsonIsCreated() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'httpHandler' => $h + ]); + $r = new ComplexClass(); + $r->foo = 'foo'; + $s->foo($r); + + $this->assertEquals(json_encode($r->toArray()), $h->body); + } + + public function testJsonIsNotCreated() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertEquals('', $h->body); + } + + public function testResponseIsReturned() + { + $s = new RestService([ + 'httpHandler' => new HttpRestHandler() + ]); + $r = $s->foo(new ComplexClass()); + + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\ComplexClass', $r); + } + + public function testDebugging() + { + $str = ''; + $logfn = function ($value) use (&$str) { + $str .= $value; + }; + + $s = new RestService([ + 'debug' => ['logfn' => $logfn], + 'httpHandler' => new HttpRestHandler() + ]); + $r = new ComplexClass(); + $r->foo = 'foo'; + $s->foo($r); + + $this->assertContains('Content-Type: application/json', $str); + $this->assertContains('Content-Length: '.strlen(json_encode($r->toArray())), $str); + $this->assertContains('{', $str); + $this->assertContains('}', $str); + } + + public function testCanSetConfigurationOptionsAfterInstaniation() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'sandbox' => true, + 'httpHandler' => $h, + 'httpOptions' => [] + ]); + + $this->assertEquals([ + 'apiVersion' => 'v1', + 'sandbox' => true, + 'debug' => false, + 'httpHandler' => $h, + 'httpOptions' => [] + ], $s->getConfig()); + + $s->setConfig([ + 'sandbox' => false, + ]); + + $this->assertEquals([ + 'apiVersion' => 'v1', + 'sandbox' => false, + 'debug' => false, + 'httpHandler' => $h, + 'httpOptions' => [] + ], $s->getConfig()); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid configuration value provided for "sandbox". Expected bool, but got int(-1) + */ + public function testSetConfigWillThrow() + { + $s = new RestService([ + 'x'=> 1 + ]); + + $s->setConfig(['sandbox' => -1]); + } +} diff --git a/test/Services/ServiceTest.php b/test/Services/ServiceTest.php index 053268b3e..5ea669b90 100644 --- a/test/Services/ServiceTest.php +++ b/test/Services/ServiceTest.php @@ -222,8 +222,8 @@ public function testCredentialsIniWillThrowException() ]); try { - $c = $s->getCredentials(); - } catch (Exception $e) { + $s->getCredentials(); + } catch (\Exception $e) { unlink($dir . '/credentials'); throw $e; } @@ -235,7 +235,7 @@ public function testCredentialsIniWillThrowException() */ public function testCredentialsProviderThrowsIfCantProvide() { - $s = new Service([ + new Service([ 'credentials' => function () { return new \InvalidArgumentException('Cannot locate credentials'); }, diff --git a/test/Shopping/Enums/AckCodeTypeTest.php b/test/Shopping/Enums/AckCodeTypeTest.php index d253f1692..4aec341fe 100644 --- a/test/Shopping/Enums/AckCodeTypeTest.php +++ b/test/Shopping/Enums/AckCodeTypeTest.php @@ -1,8 +1,11 @@ assertEquals(200, $s->getStatusCode()); + } +} diff --git a/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php b/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php index b4bfe29a8..273e8f3df 100644 --- a/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php +++ b/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php @@ -1,8 +1,11 @@ callOperationAsync( 'testOperation', - new ComplexClass(), + new GeteBayOfficialTimeRequestType(), '\DTS\eBaySDK\Test\Mocks\ComplexClass' )->wait(); } diff --git a/test/Trading/Services/AuthTokenTest.php b/test/Trading/Services/AuthTokenTest.php index 0c9c37b81..7e16858f7 100644 --- a/test/Trading/Services/AuthTokenTest.php +++ b/test/Trading/Services/AuthTokenTest.php @@ -41,4 +41,37 @@ public function testAuthTokenIsUsedInRequst() $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\CustomSecurityHeaderType', $r->RequesterCredentials); $this->assertEquals('123', $r->RequesterCredentials->eBayAuthToken); } + + public function testAuthTokenIsNotUsedInRequst() + { + $s = new TradingService([ + 'apiVersion' => '', + 'authorization' => '123', + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'siteId' => 0, + 'httpHandler' => new HttpHandler() + ]); + + /** + * Calling an operation when using an OAUTH token should not + * result in ANY token appearing withing the body of the request. + */ + $r = new Types\GeteBayOfficialTimeRequestType(); + $this->assertEquals(null, $r->RequesterCredentials); + $s->geteBayOfficialTime($r); + $this->assertEquals(null, $r->RequesterCredentials); + + $r = new Types\GeteBayOfficialTimeRequestType(); + $r->RequesterCredentials = new Types\CustomSecurityHeaderType(); + $this->assertEquals(null, $r->RequesterCredentials->eBayAuthToken); + $s->geteBayOfficialTime($r); + $this->assertEquals(null, $r->RequesterCredentials); + + $r = new Types\GeteBayOfficialTimeRequestType(); + $r->RequesterCredentials = new Types\CustomSecurityHeaderType(); + $r->RequesterCredentials->eBayAuthToken = '123'; + $s->geteBayOfficialTime($r); + $this->assertEquals(null, $r->RequesterCredentials); + } } diff --git a/test/Trading/Services/ServiceTest.php b/test/Trading/Services/ServiceTest.php index 5e1188bdd..9b12057ad 100644 --- a/test/Trading/Services/ServiceTest.php +++ b/test/Trading/Services/ServiceTest.php @@ -19,6 +19,11 @@ public function testConfigDefinitions() 'required' => true ], $d['apiVersion']); + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['authorization']); + $this->assertArrayHasKey('authToken', $d); $this->assertEquals([ 'valid' => ['string'] @@ -58,6 +63,7 @@ public function testRequiredEbayHeaders() $this->assertArrayNotHasKey(TradingBaseService::HDR_APP_ID, $h->headers); $this->assertArrayNotHasKey(TradingBaseService::HDR_CERT_ID, $h->headers); $this->assertArrayNotHasKey(TradingBaseService::HDR_DEV_ID, $h->headers); + $this->assertArrayNotHasKey(TradingBaseService::HDR_AUTHORIZATION, $h->headers); } public function testOptionalEbayHeaders() @@ -65,6 +71,7 @@ public function testOptionalEbayHeaders() $h = new HttpHandler(); $s = new Service([ + 'authorization' => 'foo', 'credentials' => ['appId' => 'appId', 'certId' => 'certId', 'devId' => 'devId'], 'siteId' => 999, 'httpHandler' => $h @@ -83,5 +90,9 @@ public function testOptionalEbayHeaders() $this->assertArrayHasKey(TradingBaseService::HDR_DEV_ID, $h->headers); $this->assertEquals('devId', $h->headers[TradingBaseService::HDR_DEV_ID]); + + $this->assertArrayHasKey(TradingBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('foo', $h->headers[TradingBaseService::HDR_AUTHORIZATION]); + } } diff --git a/test/Trading/Types/ASQPreferencesTypeTest.php b/test/Trading/Types/ASQPreferencesTypeTest.php index 3b915c1f0..01f850103 100644 --- a/test/Trading/Types/ASQPreferencesTypeTest.php +++ b/test/Trading/Types/ASQPreferencesTypeTest.php @@ -1,8 +1,11 @@ obj = new AmountClass(); diff --git a/test/Types/AttachmentTest.php b/test/Types/AttachmentTest.php index a85232720..73def3fc9 100644 --- a/test/Types/AttachmentTest.php +++ b/test/Types/AttachmentTest.php @@ -7,6 +7,11 @@ class AttachmentTest extends \PHPUnit_Framework_TestCase { + private $httpHandler; + private $service; + private $request; + private $requestXml; + protected function setUp() { /** diff --git a/test/Types/Base64BinaryTypeTest.php b/test/Types/Base64BinaryTypeTest.php index 08291ec31..edf75a8d2 100644 --- a/test/Types/Base64BinaryTypeTest.php +++ b/test/Types/Base64BinaryTypeTest.php @@ -5,6 +5,8 @@ class Base64BinaryTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new Base64BinaryType(); diff --git a/test/Types/BaseTypeTest.php b/test/Types/BaseTypeTest.php index 85ef54b62..898ea8eac 100644 --- a/test/Types/BaseTypeTest.php +++ b/test/Types/BaseTypeTest.php @@ -5,6 +5,8 @@ class BaseTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new BaseType(); diff --git a/test/Types/BooleanTypeTest.php b/test/Types/BooleanTypeTest.php index 79ddcb95a..cd10bc3d8 100644 --- a/test/Types/BooleanTypeTest.php +++ b/test/Types/BooleanTypeTest.php @@ -5,6 +5,8 @@ class BooleanTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new BooleanType(); diff --git a/test/Types/ComplexClassTest.php b/test/Types/ComplexClassTest.php index 602028962..ed0a0eedf 100644 --- a/test/Types/ComplexClassTest.php +++ b/test/Types/ComplexClassTest.php @@ -7,6 +7,8 @@ class ComplexClassTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new ComplexClass(); @@ -112,4 +114,45 @@ public function testToXml() $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../Mocks/ComplexClassXml.xml', $this->obj->toRequestXml()); } + + public function testToJson() + { + $this->obj->foo = 'foo'; + $this->obj->integer = 123; + $this->obj->string = '

Bits & Bobs

Just some <stuff> I found. ©

'; + $this->obj->double = 123.45; + $this->obj->DateTime = new \DateTime('2000-01-01', new \DateTimeZone("UTC")); + $this->obj->booleanTrue = true; + $this->obj->booleanFalse = false; + + $simpleClass = new SimpleClass(); + $simpleClass->integer = 321; + $simpleClass->string = 'another string'; + $this->obj->SimpleClass = $simpleClass; + + $amountClass = new AmountClass(); + $amountClass->value = 543.21; + $amountClass->AttributeOne = 'one'; + $this->obj->AmountClass = $amountClass; + + $this->obj->strings = ['foo', 'bar']; + $this->obj->integers = [1,2,3,4,5]; + + $this->obj->simpleClasses = [ + new SimpleClass(['integer' => 888]), + new SimpleClass(['integer' => 999]) + ]; + + $this->obj->anyType = 1; + $this->obj->anyTypes[] = 1; + $this->obj->anyTypes[] = 'foo'; + $this->obj->anyTypes[] = 1.23; + $this->obj->anyTypes[] = true; + $this->obj->anyTypes[] = false; + $date = new \DateTime('2000-01-01', new \DateTimeZone('UTC')); + $this->obj->anyTypes[] = $date; + $this->obj->anyTypes[] = [1, 2, 3]; + + $this->assertJsonStringEqualsJsonFile(__DIR__ . '/../Mocks/ComplexClassJson.json', json_encode($this->obj->toArray())); + } } diff --git a/test/Types/ConstructTest.php b/test/Types/ConstructTest.php index a365f52a0..b7855d2bb 100644 --- a/test/Types/ConstructTest.php +++ b/test/Types/ConstructTest.php @@ -15,20 +15,9 @@ public function testSettingPropertiesViaCtor() 'double' => 123.45, 'booleanTrue' => true, 'booleanFalse' => false, - 'DateTime' => '2000-01-01T00:00:00.000Z', - /** - * Wouldn't do this in client code. - * Can pass the same field multiple times. The value is just assigned over the previous one. - * All we are doing here is testing that different types can be passed to the field - * and it will be handled correctly by the code. - */ 'DateTime' => new \DateTime('2000-01-01T00:00:00.000Z', new \DateTimeZone('UTC')), 'strings' => ['foo', 'bar'], 'integers' => [111, 222], - 'AmountClass' => [ - 'value' => 543.21, - 'AttributeOne' => 'one' - ], 'AmountClass' => new AmountClass(['value' => 543.21, 'AttributeOne' => 'one']), 'SimpleClass' => [ 'integer' => 123, @@ -57,6 +46,11 @@ public function testSettingPropertiesViaCtor() 'decimalTypes' => [ ['value' => 1], ['value' => 2.34] + ], + 'anyType' => 1, + 'anyTypes' => [ + 1, + 'foo' ] ]; @@ -120,13 +114,18 @@ public function testSettingPropertiesViaCtor() $this->assertEquals(1, $obj->decimalTypes[0]->value); $this->assertEquals(2.34, $obj->decimalTypes[1]->value); $this->assertInstanceOf('\DTS\eBaySDK\Types\RepeatableType', $obj->strings); + + $this->assertEquals(1, $obj->anyType); + + $this->assertEquals(2, count($obj->anyTypes)); + $this->assertInstanceOf('\DTS\eBaySDK\Types\RepeatableType', $obj->anyTypes); } public function testSettingInvalidPropertyViaCtor() { $this->setExpectedException('\DTS\eBaySDK\Exceptions\UnknownPropertyException', 'Unknown property bar'); - $obj = new ComplexClass([ + new ComplexClass([ 'bar' => 'bar' ]); } @@ -135,8 +134,34 @@ public function testSettingInvalidPropertyTypeViaCtor() { $this->setExpectedException('\DTS\eBaySDK\Exceptions\InvalidPropertyTypeException', 'Invalid property type provided for string. Expected string but got integer'); - $obj = new ComplexClass([ + new ComplexClass([ 'string' => 123 ]); } + + /** + * This is to handle JSON responses such as + * { + * "foo": [null], + * "bar": null + * } + * The null object results in the SDK trying to pass null + * to the ctor of an object, which expects an array. + */ + public function testNullValuesWillNotSetProperties() + { + $obj = new ComplexClass([ + 'foo' => null, + 'strings' => [null, null], + 'decimalTypes' => [null, null], + 'simpleClasses' => [null, null, new SimpleClass()] + ]); + + $this->assertEquals(false, isset($obj->foo)); + $this->assertEquals(true, isset($obj->strings)); + $this->assertEquals(0, count($obj->strings)); + $this->assertEquals(false, isset($obj->decimalType)); + $this->assertEquals(true, isset($obj->simpleClasses)); + $this->assertEquals(1, count($obj->simpleClasses)); + } } diff --git a/test/Types/DecimalTypeTest.php b/test/Types/DecimalTypeTest.php index 05486cd65..e2494218b 100644 --- a/test/Types/DecimalTypeTest.php +++ b/test/Types/DecimalTypeTest.php @@ -5,6 +5,8 @@ class DecimalTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new DecimalType(); diff --git a/test/Types/DoubleTypeTest.php b/test/Types/DoubleTypeTest.php index 471888bfc..e6efddad0 100644 --- a/test/Types/DoubleTypeTest.php +++ b/test/Types/DoubleTypeTest.php @@ -5,6 +5,8 @@ class DoubleTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new DoubleType(); diff --git a/test/Types/IntegerTypeTest.php b/test/Types/IntegerTypeTest.php index 7470348ad..0ba6c8234 100644 --- a/test/Types/IntegerTypeTest.php +++ b/test/Types/IntegerTypeTest.php @@ -5,6 +5,8 @@ class IntegerTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new IntegerType(); diff --git a/test/Types/RepeatableTypeTest.php b/test/Types/RepeatableTypeTest.php index 4da112d2a..a5235eba1 100644 --- a/test/Types/RepeatableTypeTest.php +++ b/test/Types/RepeatableTypeTest.php @@ -5,6 +5,8 @@ class RepeatableTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new RepeatableType('', '', 'string'); diff --git a/test/Types/SimpleClassTest.php b/test/Types/SimpleClassTest.php index 7fc1c27c8..72a3b4857 100644 --- a/test/Types/SimpleClassTest.php +++ b/test/Types/SimpleClassTest.php @@ -13,6 +13,8 @@ class SimpleClassTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new SimpleClass(); @@ -128,6 +130,41 @@ public function testGettingSettingProperties() $this->obj->uriType = new URIType(); $this->obj->uriType->value = 'uri type'; $this->assertEquals('uri type', $this->obj->uriType->value); + + $this->obj->anyType = 1; + $this->assertEquals(1, $this->obj->anyType); + $this->obj->anyType = 'foo'; + $this->assertEquals('foo', $this->obj->anyType); + $this->obj->anyType = 1.23; + $this->assertEquals(1.23, $this->obj->anyType); + $this->obj->anyType = true; + $this->assertEquals(true, $this->obj->anyType); + $this->obj->anyType = false; + $this->assertEquals(false, $this->obj->anyType); + $date = new \DateTime('2000-01-01', new \DateTimeZone('UTC')); + $this->obj->anyType = $date; + $this->assertEquals($date, $this->obj->anyType); + $this->obj->anyType = [1, 2, 3]; + $this->assertEquals([1, 2, 3], $this->obj->anyType); + + $this->assertEquals(0, count($this->obj->anyTypes)); + $this->assertInstanceOf('\DTS\eBaySDK\Types\RepeatableType', $this->obj->anyTypes); + $this->obj->anyTypes[] = 1; + $this->obj->anyTypes[] = 'foo'; + $this->obj->anyTypes[] = 1.23; + $this->obj->anyTypes[] = true; + $this->obj->anyTypes[] = false; + $date = new \DateTime('2000-01-01', new \DateTimeZone('UTC')); + $this->obj->anyTypes[] = $date; + $this->obj->anyTypes[] = [1, 2, 3]; + $this->assertEquals(7, count($this->obj->anyTypes)); + $this->assertEquals(1, $this->obj->anyTypes[0]); + $this->assertEquals('foo', $this->obj->anyTypes[1]); + $this->assertEquals(1.23, $this->obj->anyTypes[2]); + $this->assertEquals(true, $this->obj->anyTypes[3]); + $this->assertEquals(false, $this->obj->anyTypes[4]); + $this->assertEquals($date, $this->obj->anyTypes[5]); + $this->assertEquals([1, 2, 3], $this->obj->anyTypes[6]); } public function testIsSet() @@ -201,7 +238,7 @@ public function testSettingRepeatablePropertyDirectly() public function testCanGetElementMeta() { - $meta = new \StdClass(); + $meta = new \stdClass(); $meta->propertyName = 'SimpleClass'; $meta->phpType = 'DTS\eBaySDK\Test\Mocks\SimpleClass'; $meta->repeatable = false; diff --git a/test/Types/StrictPropertyTypesTest.php b/test/Types/StrictPropertyTypesTest.php index 9801b6bed..8027c130e 100644 --- a/test/Types/StrictPropertyTypesTest.php +++ b/test/Types/StrictPropertyTypesTest.php @@ -5,6 +5,8 @@ class StrictPropertyTypesTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { \DTS\eBaySDK\Sdk::$STRICT_PROPERTY_TYPES = false; diff --git a/test/Types/StringTypeTest.php b/test/Types/StringTypeTest.php index 041620c73..fde41ccdb 100644 --- a/test/Types/StringTypeTest.php +++ b/test/Types/StringTypeTest.php @@ -5,6 +5,8 @@ class StringTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new StringType(); diff --git a/test/Types/ToArrayTest.php b/test/Types/ToArrayTest.php index e5af83bd9..89689e71d 100644 --- a/test/Types/ToArrayTest.php +++ b/test/Types/ToArrayTest.php @@ -15,6 +15,8 @@ class ToArrayTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new ComplexClass(); diff --git a/test/Types/TokenTypeTest.php b/test/Types/TokenTypeTest.php index 2253bf7c5..070d37c4e 100644 --- a/test/Types/TokenTypeTest.php +++ b/test/Types/TokenTypeTest.php @@ -5,6 +5,8 @@ class TokenTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new TokenType(); diff --git a/test/Types/URITypeTest.php b/test/Types/URITypeTest.php index 138c68fa6..0196e3376 100644 --- a/test/Types/URITypeTest.php +++ b/test/Types/URITypeTest.php @@ -5,6 +5,8 @@ class URITypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new URIType(); diff --git a/test/UriResolverTest.php b/test/UriResolverTest.php new file mode 100644 index 000000000..b05712cac --- /dev/null +++ b/test/UriResolverTest.php @@ -0,0 +1,295 @@ + [ + 'valid' => ['array'], + 'default' => ['foo', 'bar'] + ], + 'bool' => [ + 'valid' => ['bool'], + 'default' => true + ], + 'callable' => [ + 'valid' => ['int'], + 'default' => [StaticMethods::class, 'defaultConfigValue'] + ], + 'int' => [ + 'valid' => ['int'], + 'default' => -1 + ], + 'string' => [ + 'valid' => ['string'], + 'default' => 'foo' + ] + ]; + + $paramValues = []; + + $this->assertEquals( + 'https://example.com/v1/item?array=foo%2Cbar&bool=true&callable=-1&int=-1&string=foo', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Missing required uri parameters + */ + public function testRequired() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['int'], + 'required' => true + ] + ]; + + $paramValues = []; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected array, but got int(-1) + */ + public function testValidatesArray() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['array'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected bool, but got int(-1) + */ + public function testValidatesBool() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['bool'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected callable, but got int(-1) + */ + public function testValidatesCallable() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['callable'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected int, but got string(3) + */ + public function testValidatesInt() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['int'] + ] + ]; + + $paramValues = [ + 'foo' => 'foo' + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected string, but got int(-1) + */ + public function testValidatesStrings() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + public function testAllowsValid() + { + $r = new UriResolver(); + + $paramDefs = [ + 'array' => [ + 'valid' => ['array'] + ], + 'bool' => [ + 'valid' => ['bool'] + ], + 'callable' => [ + 'valid' => ['callable'] + ], + 'int' => [ + 'valid' => ['int'] + ], + 'string' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'array' => [], + 'bool' => true, + 'callable' => function () { + }, + 'int' => 1, + 'string' => 'foo' + ]; + + $this->assertEquals( + 'https://example.com/v1/item?array=&bool=true&callable=&int=1&string=foo', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } + + public function testFn() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['int'], + 'fn' => [StaticMethods::class, 'applyConfigValue'] + ] + ]; + + $paramValues = [ + 'foo' => 1 + ]; + + $this->assertEquals( + 'https://example.com/v1/item?foo=3', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } + + public function testFillsInPathParameters() + { + $r = new UriResolver(); + + $paramDefs = [ + 'path1' => [ + 'valid' => ['string'] + ], + 'path2' => [ + 'valid' => ['string'] + ], + 'param1' => [ + 'valid' => ['string'] + ], + 'param2' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'path1' => 'foo', + 'path2' => 'bar', + 'param1' => 'baz', + 'param2' => 'shaz' + ]; + + $this->assertEquals( + 'https://example.com/v1/item/foo/bar?param1=baz¶m2=shaz', + $r->resolve('https://example.com', 'v1', 'item/{path1}/{path2}', $paramDefs, $paramValues) + ); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Unknown uri parameter "bar" provided + */ + public function testParamMustExist() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'bar' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + public function testNoParams() + { + $r = new UriResolver(); + + $paramDefs = [ + ]; + + $paramValues = [ + ]; + + $this->assertEquals( + 'https://example.com/v1/item', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } +}